[SOLVED] Need an MTA like ssmtp, but which can also deliver locally
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.