relay through gmail

Nicolas KOWALSKI niko at
Thu Feb 28 11:31:55 UTC 2008

cuongvt <cuongvt at> writes:

> So I want to change so that when recipients received my mails and
> open them, the mail address in "from" of theses mails is
> userB at, not userA at
> Is there a way to do that?

First declare your userB at account as an additional
account in the Gmail interface.

Second, configure postfix to send mail from userB at
through gmail smtp server.

In /etc/postfix/

smtp_sender_dependent_authentication = yes
smtp_sasl_auth_enable = yes
smtp_sasl_security_options = noanonymous
sender_dependent_relayhost_maps = hash:/etc/postfix/sender_relay
smtp_sasl_password_maps = hash:/etc/postfix/sender_relay_auth


userB at    []:587


userB at    userA:password_of_userA_on_gmail


More information about the freebsd-questions mailing list