relay through gmail

Nicolas KOWALSKI niko at petole.dyndns.org
Thu Feb 28 11:31:55 UTC 2008


cuongvt <cuongvt at fpt.vn> 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 xxx.dyndns.com, not userA at gmail.com.
> Is there a way to do that?

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

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

In /etc/postfix/main.cf:

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


/etc/postfix/sender_relay:

userB at xxx.dyndns.com    [smtp.gmail.com]:587


/etc/postfix/sender_relay_auth:

userB at xxx.dyndns.com    userA:password_of_userA_on_gmail


-- 
Nicolas


More information about the freebsd-questions mailing list