I recently set up a home-server. And since my ISP quite annoyingly blocks outgoing port 25 I can't setup the SMTP properly. So I set it to relay via gmail(I don't send a lot of mails by this server anyhow, so it's no problem).
Now I have a Magento installation with contactform, if I use that(which uses the localhost SMTP) the from header field is fine with the correct name as well as the correct e-mail address.(note: this is not because of a reply-to header field, the from field really states the correct address)
I also created some e-mail accounts however with which I want to send mail through thunderbird. When I try to send a mail that way the From name is correct, but the e-mail address is the account I use for the relay. Here is an excerpt of my mail.log:
Mar 20 23:11:42 homeserver postfix/smtpd: connect from xxxx[ip address] Mar 20 23:11:42 homeserver postfix/smtpd: setting up TLS connection from xxxx[ip address] Mar 20 23:11:42 homeserver postfix/smtpd: Anonymous TLS connection established from xxxx[ip address]: TLSv1 with cipher AES256-SHA (256/256 bits) Mar 20 23:11:42 homeserver postfix/smtpd: C5A4936E0228: client=xxxx[ip address], sasl_method=PLAIN, email@example.com Mar 20 23:11:42 homeserver postfix/cleanup: C5A4936E0228: message-id=<4D867BA1.firstname.lastname@example.org> Mar 20 23:11:42 homeserver postfix/qmgr: C5A4936E0228: from=<email@example.com>, size=712, nrcpt=1 (queue active) Mar 20 23:11:43 homeserver postfix/smtpd: disconnect from xxxx[ip address] Mar 20 23:11:43 homeserver postfix/smtp: C5A4936E0228: to=<firstname.lastname@example.org>, relay=smtp.gmail.com[22.214.171.124]:587, delay=1, delays=0.18/0/0.41/0.43, dsn=2.0.0, status=sent (250 2.0.0 OK 1300659106 u45sm1482760eeh.9) Mar 20 23:11:43 homeserver postfix/qmgr: C5A4936E0228: removed
So when I would login to email@example.com now the from e-mail address is wrong. Is this a setting I got wrong on my homeserver, or can the client set this?