CentOS mail setup - sendmail via external SMTP server
I am setting up a CentOS box as a NAT firewall that needs to also send mail. It needs to send this mail using an outside provider's SMTP. The provider requires SMTP over SSL. None of the machines inside the NAT will ever send mail except via the provider's SMTP nor will they ever receive mail except to local clients via the provider's IMAP servers.
So for the example the machine is TESTMACHINE. There is one internet facing ethernet port connected to a DSL modem via pppoe.
The SMTP it needs to send mail via is mail.host.net which requires SMTP over SSL (port 465) and username/password authentication.
The sendmail documentation is quite confusing on how to get this simple setup operating, so an example showing the appropriate changes to sendmail.mc and other require config files would be a HUGE help.
Most of the solution
After much hunting I found http://www.linuxha.com/other/sendmail/gmail.html which is most of the solution.
I also had to install sendmail-cf in order to rebuild the config files.
Another missing step was to build the cert - simple enough, just:
At some point I may switch from the google servers our primary email provider but for now it works.
|All times are GMT -5. The time now is 02:36 AM.|