On 11/29/2010 9:24 AM, michael.h.gr...@googlemail.com wrote:
Dear all,
Is it possible to configure postfix for the following scenario?
Our ERP-System wants to send emails over a dedicated account
to it's users. As it tries to send the email as the current
user, using the users address, the e-mail gets rejected by our
provider (who is running Exchange).
As the providers security policy doesn't allow me to grant the
Exchange "Send as" permission to the ERP-Account I want to do
the following:
Configure an internal postfix installation to accept these
"faked" emails
Forward them to the Exchange server
replacing the faked senders address with the valid address of
the account dedicated to the ERP-System.
Is this possible?
I guess I have to use the Address Rewriting capabilities in
Postfix. But where to start?
Kind regards and many thanks in advance
Michael
Use the smtp_generic_maps feature to rewrite the bogus sender
to a valid address.
# main.cf
smtp_generic_maps = hash:/etc/postfix/generic
# /etc/postfix/generic
bogus_u...@example.com u...@other.example.com
Run "postfix reload" after editing main.cf.
Run "postmap generic" after editing the map file.
http://www.postfix.org/ADDRESS_REWRITING_README.html#generic
You may also need:
http://www.postfix.org/BASIC_CONFIGURATION_README.html
http://www.postfix.org/SOHO_README.html
http://www.postfix.org/STANDARD_CONFIGURATION_README.html
http://www.postfix.org/ADDRESS_CLASS_README.html
These and more can be found at
http://www.postfix.org/documentation.html
-- Noel Jones