I have two CentOS systems, version 5 and 6. Because our firewall has blocked off unsolicited port 25 traffic, we have a little Perl script that logs into our email server as a valid user to send email off our Linux systems. That works fine in CentOS.
I have an Ubuntu 12.04 workstation, which was recently updated, and I had lost the ability to send email off the system until I added this to /etc/mail/sendmail.cf, taking it from one of the CentOS /etc/mail/sendmail.cf files.
Msmtpredir, P=/usr/sbin/SMTPRedirect, F=DFMnSu, S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP, T=DNS/RFC822/SMTP, A=SMTPRedirect $h $f $u
/usr/sbin/SMTPRedirect is a perl script that logs into our email system as a legitimate client without the need for password.
Can Msmtpredir be configured in sendmail.mc?