Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 07-30-2011, 10:24 PM   #1
LQ Newbie
Registered: Jul 2011
Posts: 2

Rep: Reputation: Disabled
Question 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 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 and other require config files would be a HUGE help.

Old 07-31-2011, 06:29 AM   #2
LQ Newbie
Registered: Jul 2011
Posts: 2

Original Poster
Rep: Reputation: Disabled
Most of the solution

After much hunting I found 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:
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Setup local mail server SMTP eulaersi Linux - Newbie 2 04-26-2009 12:59 AM
Mail MUA with external SMTP server rahmad Linux - Software 5 07-03-2008 08:18 AM
Help me guide to setup mail server as a mail-gateway use spamassasin (use sendmail) adcom99 Linux - Newbie 1 11-03-2007 04:47 PM
sendmail on CentOS 4.4 - where do I see the mail SENT to the server? Dan8080 Linux - Newbie 3 09-28-2006 12:30 AM
sendmail and external mail server levand Linux - Networking 10 12-17-2004 10:45 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:27 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration