Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Address rewriting

23 views
Skip to first unread message

Matt Shields

unread,
Feb 8, 2021, 11:46:34 AM2/8/21
to
Other than setting up a very basic Postfix server for sending out emails, I'm new to the advanced configuration. Here's what I've setup so far.
1. I've already setup an internal Postfix server to relay to our AWS SES account.
2. I've already configured a list of internal hosts by IP that are allowed to relay through using mynetworks = hash:/etc/postfix/network_table

Here's what I'm having trouble with.
1. Rewrite the FROM in each message if it is not a proper address.
a. host1.lan has a process that sets the FROM as te...@mycompany.com, that is okay to let it relay.
b. host2.lan has a script that sends as ro...@host2.lan, rewrite FROM as sysa...@mycompany.com
c. For any host not defined, change the FROM to notifi...@mycompany.com
2. On a host4.lan strip all TO addresses that do not match @mycompany.com.

Anyone able to help out?

Matt
0 new messages