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="mailto:me@gmail.com">me@gmail.com</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="mailto:me@gmail.com">me@gmail.com</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/main.cf like so:

relayhost = smtp.vc.shawcable.net

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

echo "<a href="mailto:me@gmail.com">me@gmail.com</a>" > /root/.forward
echo "<a href="mailto:me@gmail.com">me@gmail.com</a>" > /home/david/.forward

then,

/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).

Comments

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

Our editors, retouchers and designers bring the moments that are captured to life in the most sophisticated way. We deliberately approach each wedding with the same professional tools, talent and software we would if it were an editorial shoot for a national magazine. wedding photographer Virginia

I most likely appreciating each and every bit of it. It is an incredible site and decent impart. I need to much obliged. Great employment! You all do an incredible blog, and have some extraordinary substance. Keep doing awesome. eye exam costs at walmart

I as of late ran over your web journal and have been perusing along. I thought I would leave my first remark. I don't recognize what to say with the exception of that I have appreciated perusing. Pleasant site. I will continue going by this online journal all the time. GamerHome.co.uk

This is a decent post. This post gives genuinely quality data. I'm unquestionably going to investigate it. Truly exceptionally helpful tips are given here. Much thanks to you to such an extent. Keep up the acts of kindness. magnetic tape

 SEO differs from local search engine optimization in that the latter is focused on optimizing a business' online presence so that its web pages will be displayed by search engines when a user enters a local search for its products or services.  do follow backlinks

Fabulous web journal! Do you have any tips and indications for trying authors? I'm wanting to begin my own particular site soon however I'm somewhat lost on everything. Would you propose beginning with a free stage like WordPress or go for a paid alternative? There are such a large number of alternatives out there that I'm totally overpowered .. Any proposals? Much obliged! voyance par telephone gratuite

This sort of message continually rousing and I like to peruse quality substance, so glad to discover great spot to numerous here in the post, the written work is simply awesome, a debt of gratitude is in order for the post. putlocker

A debt of gratitude is in order For sharing this Superb article.I utilize this Article to demonstrate my task in college.it is helpful For me Great Work. infinity

Most of the content on YouTube is uploaded by individuals, but media corporations including CBS, the BBC, Vevo, and Hulu offer some of their material via YouTube as part of the YouTube partnership program. subscribe my channel

Hi I am so pleased I found your web journal, I truly found you by slip-up, while I was watching on google for something else, Anyways I am here now and could simply get a kick out of the chance to say thank for a huge post and an inside and out amusing site. Kindly do keep up the immense work. bookkeeping brampton

Hi I am so charmed I found your online journal, I truly found you by misstep, while I was watching on google for something else, Anyways I am here now and could simply get a kick out of the chance to say thank for an enormous post and an overall captivating site. Kindly do keep up the immense work. free dating sites

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...
-J

This is my first time i visit here. I discovered such a variety of intriguing stuff in your website particularly its dialog. From the huge amounts of remarks on your articles, I figure I am not by any means the only one having all the happiness here! keep doing awesome Car Hire Comparison

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

I think this is a decent article. You make this data fascinating and locks in. You give perusers a great deal to consider and I value that sort of composing. My Blog

With a unique design too, this site is definitely one of the most uniqe-looking NetEnt casinos on our list, with a kind of textile background that’s comfortable. Kind of odd for a mobile casino, but that’s precisely what we love about Spin Station! Netent Casino

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. Altomgaming.dk

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

Pages

Add new comment