Postfix Smarthost-from-home HOWTO
Nov. 9th, 2005 03:49 pm![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
A short guide, actually. Replace obvious parts with valid names and info.
In /etc/postfix/main.cf:
relayhost = [smtpserver.yourisp.com]
canonical_maps=regexp:/etc/postfix/canonical
Then create /etc/postfix/canonical with the following and run postmap on it:
/(.+)@yourboxdomain/ user+$1@yourisp.com
If you need SASL support (SMTP AUTH) add this to your /etc/postfix/main.cf:
smtp_sasl_auth_enable = yes
smtp_sasl_security_options =
smtp_sasl_password_maps = hash:/etc/postfix/saslpass
And then edit /etc/postfix/saslpass, putting in a line like this, and rerun postmap on that:
smtpserver.yourisp.com yourispusername:yourisppassword
It works for me! :)
In /etc/postfix/main.cf:
relayhost = [smtpserver.yourisp.com]
canonical_maps=regexp:/etc/postfix/canonical
Then create /etc/postfix/canonical with the following and run postmap on it:
/(.+)@yourboxdomain/ user+$1@yourisp.com
If you need SASL support (SMTP AUTH) add this to your /etc/postfix/main.cf:
smtp_sasl_auth_enable = yes
smtp_sasl_security_options =
smtp_sasl_password_maps = hash:/etc/postfix/saslpass
And then edit /etc/postfix/saslpass, putting in a line like this, and rerun postmap on that:
smtpserver.yourisp.com yourispusername:yourisppassword
It works for me! :)