LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-03-2009, 04:37 PM   #1
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
Best solution for outgoing-only mail


I have been thinking about different ways to handle an issue on my new server build, and was interested in hearing opinions on others who might have done something similar.

Basically, I want my new home server to be able to have outgoing email capability so it can send various status reports and logs to my phone. I have been looking at different ways to go about this and a few solutions have come up.

Obviously I don't want to run a full sendmail daemon to simply send the occasional email from a single account. I understand that I can run sendmail in a mode where outgoing mail is queued and is occasionally sent out via a cron job. This sounded reasonable at first, but it means that any messages the server wanted to send me would have to sit in limbo until the next cron interval. Even if I was running a rather aggressive cron job (say, every 5 minutes), there are still situations in which I would want the message to be sent as quickly as possible (UPS triggered, hardware overheat, etc). Is there a method by which sendmail can instantly send an outgoing email without having to run the full daemon?

The other option I have been looking at are small SMTP clients, like msmtp. I was thinking I could simply make up a GMail account for the server, configure it in msmtp, and just use that. Aside from relying on an outside mail server/account, is there any downside to this method? It seems like this would be the easiest, and certainly the least taxing on resources. I know there are a few applications available that perform this function, is there a better one I should be checking out?

Any opinions on which direction I should take this? Is there another method I am overlooking? It probably goes without saying, but whatever method I go with needs to be easily scriptable.
 
Old 09-03-2009, 05:31 PM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Hi MS3FGX,

Most servers should have a local MTA running if only to send emails to the admin, the overhead is minimal and having it only bound to the loopback address means there is no increase in your servers attack surface. My personal preference is postfix but any MTA will do if you spend the time to learn it. Just ensure you relay all mail through your ISP if it's running at home, otherwise you run the chance of being dropped as spam,

cheers,

kbp
 
Old 09-04-2009, 01:18 PM   #3
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Original Poster
Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
So you would suggest running a full MTA and simply binding it to localhost only?
 
Old 09-05-2009, 04:35 AM   #4
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Yep... if its doing nothing you wont notice any load increase

cheers
 
  


Reply



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
Outgoing mail is lost Haines Browsn Linux - General 1 08-24-2009 09:39 AM
Which qmail log file details outgoing mail? (have huge outgoing mail volume) hilljockey Linux - Server 2 12-08-2008 04:26 PM
How to Trap all outgoing mail of all user of my mail server singh_chitranjan Linux - Server 1 07-09-2008 06:15 AM
outgoing e-mail for users metallica1973 Linux - Security 7 08-20-2007 06:07 PM
How to separate Incoming Mail and Outgoing Mail on SENDMAIL LiloAma Linux - Networking 1 03-22-2004 02:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:41 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration