That is nice but i didnt understand
 # Inbound. Address translation happens in virtual_alias_maps.
>     smtp-in   unix  -       -       n       -       -       smtp
>       -o smtp_generic_maps=

what to write after this "=" sign ,or i have to leave it blank

On 6/18/12, achal tomar <achal.toma...@gmail.com> wrote:
> Thanks wietse i will try this and inform you.
>
> On 6/18/12, Wietse Venema <wie...@porcupine.org> wrote:
>> On 6/18/12, Wietse Venema <wie...@porcupine.org> wrote:
>>> 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.
>>
>> achal tomar:
>>> 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.
>>
>> In that case you need to two SMTP clients on the relay host.
>>
>> - One SMTP client that delivers mail from the PHP application host
>> to the Internet. This uses smtp_generic_maps to transform
>> bounceap...@r09.4reseller.org into bou...@app01.4reseller.org.
>>
>> - One SMTP client that delivers mail from the Internet to the PHP
>> application host. This doesn't use smtp_generic_maps.
>>
>> /etc/postfix/master.cf:
>>     # Outbound with address translation.
>>     smtp      unix  -       -       n       -       -       smtp
>>      -o smtp_generic_maps=hash:/etc/postfix/generic
>>     # Inbound. Address translation happens in virtual_alias_maps.
>>     smtp-in   unix  -       -       n       -       -       smtp
>>      -o smtp_generic_maps=
>>
>> /etc/postfix/generic:
>>     # Outbound address translation.
>>     bou...@app01.4reseller.org bounceap...@r09.4reseller.org
>>
>> /etc/postfix/main.cf:
>>     virtual_alias_maps = hash:/etc/postfix/virtual
>>     transport_maps = hash:/etc/postfix/transport
>>
>> /etc/postfix/virtual:
>>     # Inbound address translation.
>>     bounceap...@r09.4reseller.org bou...@app01.4reseller.org
>>
>> /etc/postfix/transport:
>>     # Select the inbound SMTP client for PHP application host.
>>     app01.4reseller.org smtp-in:app01.4reseller.org
>>
>> "postmap" the tables, and "postfix reload" to make the smtp-in
>> channel available.
>>
>>      Wietse
>>
>

Reply via email to