Thanks wietse for your good reply but my PHP application host doesnt
has postfix installed on it at it just sends the mails to my server
i.e r09.4reseller.org for transfer so can this be not done on my
actual mail server i.e r09.4reseller.org.
(virtual_alias_maps points to /etc/postfix/virtual
And relay host is my mail server i.e r09.4reseller.org am i right).

On 6/18/12, Wietse Venema <[email protected]> wrote:
> 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