hi there ! I have an issue with the generic maps table and wonder if anyone can help ?
we wish to deliver the output of root's cron jobs to our noc team. we have therefore set an entry in /etc/aliases which sends root's mail to [email protected] unfortunately the hosts sending the mail announce themselves as [email protected] which is being rejected by our exchange server (sender address rejected: domain not found) we cannot change how the servers present themselves and have no control over the exchange server. I have therefore added the following line to /etc/postfix/generic and run postmap /etc/postfix/generic... /^...@.*localdomain$/ [email protected] I can check this with the following command... postmap -fq "[email protected]" regexp:/etc/postfix/generic ...and it displays the match and exits true. but when I then send an email... echo "test" | mail -s "test" root ...it does indeed attempt to get delivered to the [email protected] address (so the entry in aliases is fine) but the sender does not get translated - it still presents as "[email protected]" what am I doing wrong ? thanks very much.
