Hi,

Postfix 2.3 and later...

smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwords
smtp_sender_dependent_authentication = yes
sender_dependent_relayhost_maps = hash:/etc/postfix/sender_depend_relay

sasl_passwords:
        1...@gmail.com 1...@gmail.com:pass1
        2...@gmail.com 2...@gmail.com:pass2

sender_depend_relay
        1...@gmail.com [smtp.gmail.com]:587
        2...@gmail.com [smtp.gmail.com]:587

Postmap these files, "chmod 600" your password file and reload Postfix. :-) This should work.
I left some SASL options out you should already have.

André

Am 18.03.2015 um 06:06 schrieb Peng Yu:
Hi,

I see the following post.

How To Relay Postfix mails via smtp.gmail.com on Ubuntu 14.04.1
https://community.runabove.com/kb/en/instances/how-to-relay-postfix-mails-via-smtp.gmail.com-on-ubuntu-14.04.html

But the problem is that all users on the same ubuntu server will be
able to use the same google account to send emails. Is there a way to
configure postfix so that each Ubuntu user will use his/her own google
account to send emails? Thanks.


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to