Hello
I saw your posting on Postfix. I was wondering if you have an updated configuration with regard to
Supporting multiple ISP accounts in the Postfix SMTP client
Postfix version 2.3 supports multiple ISP accounts. This can be useful when one person uses the same machine for work and for personal use, or when people with different ISP accounts share the same Postfix server. To make this possible, Postfix 2.3 supports per-sender SASL passwords and per-sender relay hosts. In the example below, Postfix will search the SASL password file by sender before it searches that same file by destination. Likewise, Postfix will search the per-sender relayhost file, and use the default relayhost only as a final resort.
/etc/postfix/main.cf:
smtp_sender_dependent_authentication = yes
sender_dependent_relayhost_maps = hash:/etc/postfix/sender_relay
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
relayhost = [mail.myisp.net]
# Alternative form:
# relayhost = [mail.myisp.net]:submission
/etc/postfix/sasl_passwd:
# Per-sender authentication; see also /etc/postfix/sender_relay.
[email protected] username2:password2
[email protected] username2:password2
# Login information for the default relayhost.
[mail.myisp.net] username:password
[mail.myisp.net]:submission username:password
/etc/postfix/sender_relay:
# Per-sender provider; see also /etc/postfix/sasl_passwd.
[email protected] [mail.example.com]:submission
[email protected] [mail.example.net]
The version of Postfix that you made the config for was pre 2.3
In Postfix 2.3 and later you can have multiple gmail accounts and Postfix would acknowledge the user and relay the mail through to gmail.
Also. do you know if Postfix acknowledges the sendmail -f syntax?
I would like postfix to send mail on behalf of the From: user.
Great post and easy to follow how to
Regards
Scott
Bookmarks