Forums / General Questions / Home Linux Server - Gmail help -- how to forward through gmail if using postfix

Home Linux Server - Gmail help -- how to forward through gmail if using postfix

Locked

Views: 16,973

Results 41 to 41 of 41
This thread is locked. New replies are disabled.
24 Sep 2008, 6:38 PM
#41
scotta avatar

scotta

New Zenner

Join Date:
Sep 2008
Posts:
1
Plugin Contributions:
0

Home Linux Server - Gmail help -- how to forward through gmail if using postfix

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