|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Re: Use another E-Mail-Adress as Sender
From: Amin (raihan
citech-bd.com)
Date: Tue May 27 2003 - 04:58:54 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
In message <oprptmy8kkpjqb8n
localhost>, Ralph Piller writes:
> PC.office-domain who is accessible from the Internet. So we tried to
> tell Postfix to change the Sender of outgoing E-Mail to
> username
ISP-domain as if we are sending via the ISP's Mail-Server
> (btw. office- domain and ISP-domain are different)
You need to implement masquerading --- by putting the following lines
into your main.cf file:
masquerade_classes = envelope_sender, header_sender, header_recipient
masquerade_domains = isp.domain
sender_canonical_maps = hash:/etc/postfix/sender_canonical
Note that you should have the ``sender_canonical'' file in the
/etc/postfix directory containing mappings of addresses, like this:
username
office-pc.office-domain username
isp.domain
and run ``postmap sender_canonical'' to generate a
``sender_canonical.db'' file that Postfix can use to do the address
mapping.
The best place (IMHO) to read up on address masquerading is Red Hat's
Postfix HOWTO at:
www.redhat.com/support/resources/howto/RH-postfix-HOWTO/book1.html
Good luck.
Yawar Amin
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]