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

Discussion in 'HOWTO-Related Questions' started by wherestheph, Feb 22, 2008.

  1. wherestheph

    wherestheph New Member

    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).
     
  2. falko

    falko Super Moderator Howtoforge Staff

    You must set the correct sender address in your email client.
     
  3. topdog

    topdog Active Member

    You can also fix the mis behaving clients by use of masquerading in postfix
    Code:
    masquerade_domains = domain.com
    
     
  4. wherestheph

    wherestheph New Member

    Doh! I can't believe it didn't occur to me think about the From: header being set by the email client.

    Thanks.
     

Share This Page