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 n...@domain.com unfortunately the hosts sending the mail announce themselves as r...@hostname.localdomain 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$/ r...@domain.com I can check this with the following command... postmap -fq "r...@hostname.localdomain" 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 n...@domain.com address (so the entry in aliases is fine) but the sender does not get translated - it still presents as "r...@hostname.localdomain" what am I doing wrong ? thanks very much.