In 7200-04 a new sendmail version was deployed where now we have /etc/mail/submit.cf in addition to /etc/mail/sendmail.cf.
There are instructions on the IBM site for configuring masquerading for root:
Configuring masquerading in AIX sendmail using generics tableI don't like hand editing those files in such a fragile way. I know that the sendmail.cf is generated by m4 macros, and that many of them are in /usr/samples/tcpip/sendmail/. I think it would be much better to generate a config from the macros with local customizations instead. Minimizing the features by omission sounds better than hand editing.
My goals are:
- Disable sendmail listening on *:25, it can listen on 127.0.0.1:25 if needed. I don't want to show up on network security scans as a relay. Retries and the mail queue processing still require the daemon running.
- Only send mail to an internal mail relay or smarthost. AIX should *never* try to send email by itself to the Internet.
- Rewrite root's outbound mail "From" header replacing "root@hostname" to "hostname-root@company.com". Cron jobs and root mail must be able to be forwarded without tripping spam filters. That's the generics table from the IBM link.
- Allow all users to send mail to the smarthost using only the mail command, no additional software. Database and application users should be able to mail command output and alerts without resorting to perl scripts, mutt, or additional mail tools.
Does anyone have a sendmail.mc and submit.mc to share that can be m4'ed into .cf files?
I would have thought a minimal configuration would have shipped by now.
------------------------------
========================
Russell Adams
https://adamssystems.nl/========================
------------------------------