Postfix relay through ISP

17 May

This post is really just a reminder for me, as I’ve needed to configure postfix to authenticate through an ISP SMTP server a few times in the past. Each time I’ve wasted time re-googling the correct postfix configuration settings to use, so I’ve decided to stick it on here for the next time I do it.

For this example, I’m assuming that is the ISP relay server, is your email address and you’ve set up DNS entries so that emails sent to are delivered to your postfix server.

Edit /etc/postfix/ and add the following lines:

relay_host =
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options =

Now create the /etc/postfix/sasl_passwd file and add the following contents:

Create the db file with the following command:

postmap /etc/postfix/sasl_passwd

Reload postfix with:

/etc/init.d/postfix reload.

Finally, verify your account with BT by logging onto your BT webmail and clicking Options > Mail Options.
Click Accounts > Add or Edit an Account.
Click Add and provide an account name.
Click continue, then provide your name and email address (your postfix email, not your BT email).
Click continue, then click Skip this Step (as you don’t need BT to relay inbound emails).
Click Send Verification.
Your postfix server should receive an email with a verification code. Enter this into the final BT webpage and that should be it.

Leave a comment

Posted by on May 17, 2010 in General


Add Comment

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: