Configuring Postfix to use a smarthost


Some companies and ISP’s do not allow you to send mail from your machine directly, but force you to use their smarthost. In the Postfix SMTP server we can accomplish this by editing the file /etc/postfix/

relayhost =

We also have to tell Postfix to which domains it may send mail. We do this by adding:

relay_domains =

These two lines together allow your Postfix installation to send mail to through the smarthost

Leave a Reply

Your email will not be published. Name and Email fields are required.