LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 04-13-2015, 11:24 PM   #1
KenJackson
Member
 
Registered: Jul 2006
Location: Maryland, USA
Distribution: Fedora and others
Posts: 757

Rep: Reputation: 145Reputation: 145
Need an MTA like ssmtp, but which can also deliver locally


SSMTP and a couple similar projects are simplified replacements for behemoths sendmail, postfix or exim. It forwards all the mail it receives to a real SMTP server.

That's exactly what I need--almost. I have one additional requirement. I run cron jobs that send me email. I could tell cron to send email to my external address, but that adds an unnecessary dependency on the internet.

I want to be able to inspect mail sent to the SMTP port. If the 'to' address is of the form "user@example.com", it should be passed on to the external server. But if it's of the form "user@machine", then it's probably from cron (or maybe some other program) and I want it passed to maildrop for delivery on this machine.

So I just need a hook in SSMTP to catch the local stuff.

Is there already such a program anwhere?
 
Old 04-14-2015, 03:29 AM   #2
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
That's done by a MTA. As I know it can be done with sendmail, postifx, qmail, exim, openSMTPD software running as daemons.

ssmtp is just MSA (Mail Submission agent).

Last edited by veerain; 04-14-2015 at 03:31 AM.
 
Old 04-14-2015, 06:04 AM   #3
KenJackson
Member
 
Registered: Jul 2006
Location: Maryland, USA
Distribution: Fedora and others
Posts: 757

Original Poster
Rep: Reputation: 145Reputation: 145
Quote:
Originally Posted by veerain View Post
As I know it can be done with sendmail, postifx, qmail, exim, openSMTPD software running as daemons.
I have beaten my head against sendmail and postfix enough. They have immense capabilities, but I only need 5% of it. The other 95% just wastes my time and harasses me. As I said, I'm looking for a simplified replacement.

I hadn't heard of OpenSMTPD. Hmmm. They state as one of their goals, "Don't try to support each and every obscure usage case, but cover the typical ones." I'm skeptical, but it might be worth trying. And it's even available in the Fedora repo. Have you used it?
 
Old 12-15-2018, 06:49 PM   #4
KenJackson
Member
 
Registered: Jul 2006
Location: Maryland, USA
Distribution: Fedora and others
Posts: 757

Original Poster
Rep: Reputation: 145Reputation: 145
Quote:
Originally Posted by KenJackson View Post
So I just need a hook in SSMTP to catch the local stuff.

Is there already such a program anywhere?
No. I couldn't find one anywhere so I created one.

It's taken me a long time to publish it, but it's finally available on github here: lansmtpd

I don't know if anyone else will want it, but I can't live without it.
 
  


Reply

Tags
cron, maildrop, mta, sendmail, ssmtp



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
Postfix - Deliver mail locally and forward a copy ndc Linux - Software 1 04-25-2014 03:26 AM
mail server migration: howto deliver locally AND forward mail to new server pedrobl Linux - Server 1 01-21-2011 11:12 PM
Sendmail is installed as default MTA. How do I switch to Postfix as MTA? virtualpal Linux - Newbie 5 05-11-2009 02:10 AM
Sendmail: Deliver locally and remote mague Linux - Software 1 11-04-2003 06:08 PM
Mutt + MTA (ssmtp/smail) lea Linux - General 0 10-07-2002 07:32 AM

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

All times are GMT -5. The time now is 05:39 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