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 [email protected] rather than [email protected]. 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).
You can also fix the mis behaving clients by use of masquerading in postfix Code: masquerade_domains = domain.com
Doh! I can't believe it didn't occur to me think about the From: header being set by the email client. Thanks.