ssmtp vs. postfix: no contest

Why ssmtp should be removed from gentoo:

  • ssmtp is no longer maintained upstream
  • Even its successor, bssmtp has been abandoned. The writer of bssmtp and maintainer of ssmtp said himself "I have now switched back to using Postfix on my laptop."

According to this page by the maintainer, the two advantages of ssmtp are:

  • it is light (doesn't matter if it's crap)
  • it is easy to configure (it appears that way at first, but it isn't necessarily so, if you check out the gentoo forums)

He continues by saying that it has loads of problems:

  • it doesn't fail in a nice way (this is huge, I was running into problem with ssmtp not obeying the rules in /etc/ssmtp/revaliases; the output in syslog looked the same as a succesful send, but the mail wasn't sent successfully and there is no debugging output or logging whatsoever. Compare that to postfix's excellent logging.)
  • it doesn't do local delivery
  • it doesn't queue messages.
  • there is no nice support for several network environments.

Let me recount my recent experiences. I wanted a simple outgoing mail server. Something that I would allow me to run the following:

echo test |mail -s "test mail sent to external" <a href=""></a>
echo test |mail -s "test mail sent to david" david
echo test |mail -s "test mail sent to root" root

and have all 3 message sent to <a href=""></a>. With ssmtp I never got this working after many, many hours of trying. In the end, the last two commands never worked, /etc/ssmtp/revaliases was not working for some reason. Maybe I goofed, but so what. Getting postfix to work was so damn easy. All I had to do with postfix was change relayhost in /etc/postfix/ like so:

relayhost =

and add a .forward files in the home directory of the root and david users, like so:

echo "<a href=""></a>" > /root/.forward
echo "<a href=""></a>" > /home/david/.forward


/etc/init.d/postfix start
rc-update add postfix default

Presto! It all works! I am sure that there is an easy way to make local mail to all other users on my system get forwarded to gmail as well. Additionally, if I wanted to use gmail's smtp servers instead of shaw's I'm sure that would also be easy.

Let's look at smtp's setup for a bit.

In ssmtp.conf there is a "root=" options. There you can set "who gets all mail for userids less than 1000." The "mailhub=" option is simple enough and it like the relayhost option in postfix. The "hostname=" is the strangest option. You would think that it should be set to the hostname. According to many ssmtp howtos out there, it should be set to an email address. In this case I set it to my email address at shaw (which I don't use), again, according to many howtos. Then there is the revaliases file. In here you can re-route mail to local accounts to to external email addresses. Too bad it doesn't work. Although it does work for some users apparently. The main thing I didn't like about ssmtp config files were the lack of documentation in them compared to postfix's. I definitely will never be returning to ssmtp now that everything works with postfix (and only took 2 minutes to set up).


I totally agree that ssmtp needs to die. However I don't agree that postfix is the right replacement.
I champion nullmailer as the better replacement.

To match the ssmtp config options:
root=: echo $EMAIL > adminaddr
mailhub=: edit remotes

nullmailer does queue. It does support AUTH on outgoing. There's pending support for SSL. It has nice logging and fails sanely.
It only deliberately doesn't do local delivery.

This is such an incredible asset, to the point that you are giving and you give it away for nothing. I cherish seeing sites that comprehend the benefit of giving a quality asset to free. It is the old what circumvents comes around schedule. income tax in the united states

It is not clear how to set up postfix 'out of the box for a newbe' to make it have send only functionality. I need the send only functionality. I decided to try postfix because I wanted to evolve it into a full blown mail handler. After reading *LOTS* of manual pages and related docs *many* times, it was not clear AT ALL how it should be configured.
With all due respect, your post makes it look simple...but what is not said about other configuration parameters is bothersome, and in my experience a real source of reasons for the simple description not to work. There is no context in your description that describes a known starting point for the other parameters or, how a specific version of postfix and its conf files are set up 'out of the box.'
You do not state what version of Postfix this is or the distro it is working with. Thank God there is a publication date on the article (something almost all posters forget to add). Given this is 2010, postfix has gone through a few versions since then, which really begs the question of the context for your writeup.
SO, I installed ssmtp...had it working within 20 mins. I've been affected by the fact that it does not queue, so I'll probably try nullmailer instead of spending weeks trying to figure out postfix.
It would seem like a good idea to have a 'send only' how to for postfix, but I haven't seen any...

thank you sirs, for the discussion pointing to nullmailer. had to kick ssmtp to the curb, no offline queue was killing me.

one of the most essential detail of the committed gamer is customization. it's uncommon which you are inside the same manner and consequently the customizable gaming chairs are available.

Serving guidelines: One example of a really perfect meal that is complete of iron is ingesting a bird breast with pink peppers and spinach. This provides you with about one-third of your 18 mg each day requirement. amb

Fascinating theme for an online journal. I have been scanning the Internet for the sake of entertainment and happened upon your site. Impressive post. Much appreciated a ton for sharing your insight! It is extraordinary to see that a few individuals still invest an exertion into dealing with their sites. I'll make sure to return again genuine soon. tunbridge Wells taxi to heathrow

as it helps herbal hair increase by means of stimulating dormant hair follicles, you want no longer worry about destructive side effects that arise when a person makes use of artificial stimulants to grow hair. please do rght away

it was a magnificent opportunity to visit this sort of site and I am upbeat to know. much thanks to you such a great amount for allowing us to have this open door.. voyance par tel

gives you several methods to location bets and players have genuinely no affect over where the ball will land after every spin. So your fulfillment or failure depends completely on good fortune on my own. Online poker usa

My web page is continuously on the pinnacle of the primary page and has in no way disappeared. I usually get well timed reviews and fast replies to emails I send. This has been a enormously legitimate seo firm and one I plan on sticking with!

ssmtp's revaliases function is not meant to work the same way as /etc/aliases in postfix. ssmtp has no way to direct mail for a user with UID > 1000 to a specific account. The *reverse* alias function does work just fine, it lets you change the from address on mail. However that is not what you wanted :)

Just seek to say ones substance can be as unbelievable. This clarity with your post is magnificent and that i may believe you're a master for this issue. High caliber alongside your agree grant me to grab your present provide for keep altered by utilizing drawing nearer blog entry. You're the best many alongside you ought to go on the pleasurable take care of business. Massage classes

Incredible data! I as of late went over your site and have been perusing along. I thought I would leave my first remark. I don't comprehend what to say aside from that I have. Jamb 2018

I've been surfing online over three hours today, yet I never discovered any intriguing article like yours. It's really sufficiently worth for me. As I would like to think, if all website admins and bloggers made great substance as you did, the web will be significantly more helpful than any other time in recent memory. 3d architectural animation company

Much obliged for each other useful site. The spot else might just I understand that sort of data written in such a perfect means? I have an endeavor that I'm a few seconds ago working on, and I have been watchful for such data. car wash

Fantastic blog! Do you have any tips and hints for aspiring writers? I’m planning to start my own website soon but I’m a little lost on everything. Would you propose starting with a free platform like WordPress or go for a paid option? There are so many options out there that I’m completely overwhelmed .. Any suggestions? Many thanks! acupuncture clinic

This program comes preloaded along with additional some exceptional features which can't be entirely on additional Android altering tools. For folks who don't understand Tutuapp Apk intends to create most of the very well-known games together with coins, money, and jewels and software such as Pokemon Proceed, Clash of all Clans, 8ball Pool, Clash Royale, SuperMario Run, Gangstar New Orleans open-world, Apex Launcher Guru, Nova Launcher plus much more to get free without paying such a thing, isn't trendy?
Xmodgames Apk

This program comes preloaded along with additional some exceptional features which can't be entirely on additional Android altering tools. For folks who don't understand TutuApp Apk

Add new comment