Postfix config to accept incoming mails from subdomain

Discussion in 'Server Operation' started by vidas, Aug 8, 2011.

  1. vidas

    vidas New Member

    Hello to all,

    This is my first post, so bare with me :p

    I have a postfix relay server in front of a Windows Exchange Cluster. I have a problem with incoming mails that the sender belongs to a subdomain of the one postfix serves.

    To be more precise, lets say that my domain is "domain.com" and postfix works ok with all incoming and outgoing emails. I have a sender named "[email protected]" that is not located inside my lan but somewhere at the internet. When this user sends emails to "[email protected]", the emails pass through, but with MAIL FROM changed to "[email protected]". On MS Exchange logs, all emails are from [email protected], no reference to the subdomain. Also, the /var/log/maillog says:

    I can't seem to find something in the configuration that rewrites the mail from addresses based on some policy to [email protected]. Transport table has entries:

    domain.com smtp:[1.2.3.4]
    *.domain.com smtp:[1.2.3.4]

    Any help is greatly appreciated,
    Nick
     
  2. falko

    falko Super Moderator Howtoforge Staff

    Can you post your main.cf?

    Are you sure that it is Postfix that rewrites the sender address and not Exchange?
     
  3. vidas

    vidas New Member

    I will post the main.cf a little later.

    Yes, I am positive the rewrite takes place on the relay box.
     

Share This Page