Achal tomar:
> 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 donot 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
> ddress:[email protected] to change to
> [email protected]. r09.4reseller.org is hostname of my mail
> server. This i have sone 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 donot get mail on
> [email protected]. I have tried virtual mapping in postfix i.e by
> the file /etc/postfix/virtual but its not helping. Can anybody help me in
> this issue.

On the PHP application host use smtp_generic_maps to transform
[email protected] to [email protected].

On the relay host use virtual_alias_maps (NOT: virtual_alias_domains)
to transform [email protected] to [email protected].

        Wietse

Reply via email to