Address rewriting postfix

Posted by ACHAL on Server Fault See other posts from Server Fault or by ACHAL
Published on 2012-06-18T11:15:01Z Indexed on 2012/06/18 15:18 UTC
Read the original article Hit count: 269

Filed under:
|
|

I am using CentOs5 and postfix as an MTA for my server. My situation is as follows:- I have a mail server through which Php applications connect and send mails to the destination addresses. The problem is that the the application servers do not have spf/dkim record set up and my server which actually relays the mails to the network has spf/dkim records.

So i want the mail sent by an application having a return address:[email protected] to change to [email protected]. r09.4reseller.org is hostname of my mail server. This i have done by generic mapping in postfix:

    smtp_generic_maps = hash:/etc/postfix/generic
    In /etc/postfix/generic:
    [email protected]      [email protected]

This is working as return address is changed to [email protected] when mail is sent. But when i try to sent mail on [email protected] I don't get mail on [email protected]. I have tried virtual mapping in postfix i.e by the file /etc/postfix/virtual but its not helping.

© Server Fault or respective owner

Related posts about postfix

Related posts about emailserver