yuzifu a écrit :
> I use the mail service of google apps now, I have pointed to
> mydomain.com <http://mydomain.com> MX record to google apps, but it is
> too slow, so I install a POSTFIX server in my LAN.
> My domain is a "mydomain.com <http://mydomain.com>",
> "i...@mydomain.com/mypasswd <mailto:i...@mydomain.com/mypasswd>" is my
> google apps account.
> 
> I have already set in the /etc/postfix/main.cf <http://main.cf>
> =============begin======================
> myhostname = server.mydomain.com <http://server.mydomain.com>
> myorigin = mydomain.com <http://mydomain.com>
> relayhost = [smtp.gmail.com <http://smtp.gmail.com>]:587
> smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
> .
> .
> .
> =============end=======================
> 
> set in the /etc/postfix/sasl_passwd
> =============begin======================
> [smtp.gmail.com <http://smtp.gmail.com>]:587   i...@mydomain.com:mypasswd
> <mailto:i...@mydomain.com:mypasswd>
> =============end=======================
> 
> Now, i can use MUA send a mail with POSTFIX in my LAN,
> but, the "From: " of mail always i...@mydomain.com
> <mailto:i...@mydomain.com>, when I use any account number in LAN.
> 
> -- 

you'll see some <foo> things above: this is because you didn't use the
"text" button on gmail.

anyway, the From: header is set by your mailer (thunderbird, outlook,
whatever). postfix is an MTA: it doesn't care about what headers your
mailer sets. the role of an MTA is mail routing, not mail composition.

Reply via email to