PDA

View Full Version : change From: machine.domain.com to domain.com when using virtual postfix (SPF too)?


wherestheph
22nd February 2008, 23:30
I successfully followed the guide at http://www.howtoforge.com/virtual-users-and-domains-postfix-courier-mysql-centos5.1 :)

However, emails are sent out as being From user@machine.domain.com rather than user@domain.com. I think this is causing SPF problems because SPF is matching on machine.domain.com rather than domain.com. I tried setting the $myorigin directly to 'domain.com' but that didn't seem to effect the From after restarting postfix.

Is there some other service I need to restart? Or is there another variable I need to change? It seems like there should be a virtual domain way to do it (although it's not necessary for me).

falko
23rd February 2008, 18:33
You must set the correct sender address in your email client.

topdog
23rd February 2008, 19:40
You can also fix the mis behaving clients by use of masquerading in postfix

masquerade_domains = domain.com

wherestheph
23rd February 2008, 22:08
Doh! I can't believe it didn't occur to me think about the From: header being set by the email client.

Thanks.