Set up Postfix to send from Gmail
December 11, 2009
Alternate title: How to send 9,000 emails from a Gmail address
To preface this, I want to say that I am currently in charge of online activity for an honor society at school. As part of those responsibilities, I needed to send emails to over 9,000 prospective members to invite them to join the organization. We use Gmail addresses for our organizations email, but Google shuts off an email address after sending about 500 emails, and it shuts off an IP address after you send about 1,500 (using three different accounts).
To solve this problem, I installed an SMTP server (Postfix) on my computer at home so I could send that many emails. I couldn’t find any free email provider who allows that many emails. Here are the steps to create the server:
- Create an MX record with your DNS
- I used this tutorial to set up Postfix and Dovecot for SMTP and IMAP. It provides a great walkthrough for setting up a secured SMTP server (a must unless you want any Joe Shmoe to send spam through your computer).
- Open up ports 25 (SMTP), 143 & 993 (IMAP) in whatever network devices you need to
- Create a new email account in your mail client
- Set up the incoming and outgoing servers to direct to your domain (example.com)
- Your email account for both incoming and outgoing mail will require secure authentication. Use the username and password for your user account on the server
- Your email address on the server will be [email protected]
- For the "email address" section of the account setup, just enter your Gmail (or other) address
- Proceed to send mail
I'm Ryan Schuetzler, a husband and father, professor at the University of Nebraska at Omaha, and professional nerd. You can follow me on twitter, but there's not much there.