LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 07-30-2011, 09:24 PM   #1
taing@jtkdev.com
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 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.
 
Old 07-31-2011, 05:29 AM   #2
taing@jtkdev.com
LQ Newbie
 
Registered: Jul 2011
Posts: 2

Original Poster
Rep: Reputation: Disabled
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.
 
  


Reply


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-25-2009 11:59 PM
Mail MUA with external SMTP server rahmad Linux - Software 5 07-03-2008 07:18 AM
Help me guide to setup mail server as a mail-gateway use spamassasin (use sendmail) adcom99 Linux - Newbie 1 11-03-2007 03:47 PM
sendmail on CentOS 4.4 - where do I see the mail SENT to the server? Dan8080 Linux - Newbie 3 09-27-2006 11:30 PM
sendmail and external mail server levand Linux - Networking 10 12-17-2004 09:45 AM


All times are GMT -5. The time now is 08:15 PM.

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