Posts Tagged ‘thunderbird’

Changing the FROM address in Google Apps mail / Gmail

After searching a bit for this, I thought I’d share the solution.

I have mail automatically forwarded from other email addresses (at other domains) to a Google Apps email address. The problem is, even though I set my IMAP client (Thunderbird) to say “From: otheraddress@otherdomain.com”, Google automatically rewrites that to my Google Apps address when I use their SMTP server.

This is actually a good feature, it prevents spam by making it impossible to send an email *from* google’s servers while pretending you’re joe@fbi.gov.

Google have worked an elegant solution to this. In the user’s gmail/google apps account settings, under “Accounts”, you can add addresses for “Send Mail As:”. Google will send an email with a code to any address you with to impersonate, and clicking the link or typing back the code will activate that address. You can then make one of them the default one, which will be used for emails sent via SMTP from your regular email clients.

Thunderbird complains about invalid certificate

I setup my own mail server on my debian etch server, with IMAP SSL (courier-imap).

I guess I was asleep when I did it, because everytime I connect Thunderbird to my SSL imap account, it complains about the SSL certificate being invalid because the hostname doesn’t match.

rm -rf /etc/courier/*.pem
make-ssl-cert /usr/share/ssl-cert/ssleay.cnf /etc/courier/imapd.pem

I typed my publicly accessible hostname for the server instead of “localhost” and voilà.

EDIT August 25th 2009: As I activated SSL on Postfix, I encountered the very same error message in Thunderbird. This time, however, I discovered that I need to set the “Organizational Unit Name” and “Common Name” in the certificate to match the fully qualified domain name of the machine.

Ex: My mail server runs on “somehost.mybiz.com”, so I’ll put exactly that in both certificate fields.