Using GMail as a relay with Postfix

Fri 22 July 2011

I fiddled a bit with this, so I thought I'd do a no-nonsense guide to doing this. There are other guides, but a lot of them are incomplete and will leave you with queueing issues or annoyances.

The science bit:

smtp_use_tls = yes
# Send all mail through
relayhost =
# Stop getting a catpcha, hopefully.
smtp_destination_rate_delay = 60
relay_destination_rate_delay = 60

Then, edit /etc/postfix/sasl_passwd:

It doesn't have to be an @gmail account, it can be a GAFYD account, once you've logged into it once to activate it.

Then just generate the map file for the sasl_passwd file and reload. As root:

postmap sasl_passwd
postfix reload

And you're done. Monitor your queue a few times over the first few days to make sure stupid stuff hasn't happened (the delay between mails might get tweaked), but in general this has worked for me.

Have fun.

Category: Tech Tagged: imported gmail postfix tech

My Eyes!

Fri 15 April 2011

I've not had a lot of time to go at electronics in the past while (mainly a combination of work things and family things kicking my ass), but I got to some of it tonight -- The clever parts of the design and build are basically done, so what's left is …

Category: Tech Tagged: imported airsoft arduino electronics tech

Read More

Finding Day

Sun 03 April 2011


One year ago today, a very small ball of fur decided to mew outside our front door in particular. We let her in and looked after her for a bit, and eventually decided she could stay.

We're not sure exactly how old she is, we're guessing se was about 6-7 …

Category: Log Tagged: imported cat ping

Read More
Page 1 of 3

Next »