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 <wie...@porcupine.org> 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:-bou...@app01.4reseller.org to change to
>> bounceap...@r09.4reseller.org. 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:
>> bou...@app01.4reseller.org bounceap...@r09.4reseller.org .
>>
>>     This is working as return address is changed to
>> bounceap...@r09.4reseller.org when mail is sent. But when i try to sent
>> mail
>> on bounceap...@r09.4reseller.org I donot get mail on
>> bou...@app01.4reseller.org. 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
> bou...@app01.4reseller.org to bounceap...@r09.4reseller.org.
>
> On the relay host use virtual_alias_maps (NOT: virtual_alias_domains)
> to transform bounceap...@r09.4reseller.org to bou...@app01.4reseller.org.
>
>       Wietse
>

Reply via email to