LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   CentOS mail setup - sendmail via external SMTP server (http://www.linuxquestions.org/questions/linux-networking-3/centos-mail-setup-sendmail-via-external-smtp-server-894711/)

taing@jtkdev.com 07-30-2011 09:24 PM

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.

Thanks.

taing@jtkdev.com 07-31-2011 05:29 AM

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:
Code:

make sendmail.pem
from the cert directory

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 10:07 PM.