Here is what I'm trying to do. I want to set up Postfix 2.3 to send
emails. I'm using Postfix as a relay only server to Gmail. At Gmail we
have many accounts. Is what I want to happen is when the server sees
the sendmail -f flag the Postfix server will identify the user as an
alias and send the mail out on the aliases account through the users
Gmail account
For example /usr/bin/sendmail -f bo...@example.com would relay through
Gmails apps where his domain mail is hosted
From the Docs I found:
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.
us...@example.com username2:password2
us...@example.net 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.
us...@example.com [mail.example.com]:submission
us...@example.net [mail.example.net]
But this looks like it accepts the users username and password and
then relays from there.
Reason for doing this is I have an mulit-catalog e-commerce
application that runs as a single user. I want emails to be delivered
based on the -f flag to recipients and the from address is a variable
within the application.
Is this possible? If so, a how to or point to the documents would be
helpful
thank you
Regards
SA