From david at davidsconsultants.com Thu Jan 5 14:44:00 2017 From: david at davidsconsultants.com (David Suna) Date: Thu, 5 Jan 2017 14:44:00 +0200 Subject: sendmail or ssmtp or ?? Message-ID: <11db23ff-0350-c162-d633-8b0373b7eb5d@davidsconsultants.com> I have an Ubuntu machine that I am using to develop PHP based web application. I now need to configure it so that PHP can send out mail. The default seems to be to install sendmail. However, I have seen comments that sendmail is overkill and some references to ssmtp. What would be the recommended way to configure this? Sendmail, ssmtp or something else? Thanks, -- David Suna david at davidsconsultants.com From esr+linux-il at g.jct.ac.il Thu Jan 5 15:04:59 2017 From: esr+linux-il at g.jct.ac.il (E.S. Rosenberg) Date: Thu, 5 Jan 2017 15:04:59 +0200 Subject: sendmail or ssmtp or ?? In-Reply-To: <11db23ff-0350-c162-d633-8b0373b7eb5d@davidsconsultants.com> References: <11db23ff-0350-c162-d633-8b0373b7eb5d@davidsconsultants.com> Message-ID: In the debian world a machine used to ship with exim4, Ubuntu Server prefers postfix afaik but sendmail is also available through apt. Basically there's a ton of SMTP servers out there and you'll have to do that very hard thing: choose ;) A lot has been written comparing them and all of them are I believe well documented. Good luck, Eliyahu - ????? 2017-01-05 14:44 GMT+02:00 David Suna : > I have an Ubuntu machine that I am using to develop PHP based web > application. I now need to configure it so that PHP can send out mail. The > default seems to be to install sendmail. However, I have seen comments that > sendmail is overkill and some references to ssmtp. > > What would be the recommended way to configure this? Sendmail, ssmtp or > something else? > > Thanks, > > -- > David Suna > david at davidsconsultants.com > > > _______________________________________________ > Linux-il mailing list > Linux-il at cs.huji.ac.il > http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il From rabin at rabin.io Thu Jan 5 15:04:57 2017 From: rabin at rabin.io (Rabin Yasharzadehe) Date: Thu, 05 Jan 2017 13:04:57 +0000 Subject: sendmail or ssmtp or ?? In-Reply-To: <11db23ff-0350-c162-d633-8b0373b7eb5d@davidsconsultants.com> References: <11db23ff-0350-c162-d633-8b0373b7eb5d@davidsconsultants.com> Message-ID: Why not Postfix? On Thu, 5 Jan 2017, 14:45 David Suna, wrote: > I have an Ubuntu machine that I am using to develop PHP based web > application. I now need to configure it so that PHP can send out mail. > The default seems to be to install sendmail. However, I have seen > comments that sendmail is overkill and some references to ssmtp. > > What would be the recommended way to configure this? Sendmail, ssmtp or > something else? > > Thanks, > > -- > David Suna > david at davidsconsultants.com > > > _______________________________________________ > Linux-il mailing list > Linux-il at cs.huji.ac.il > http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tzafrir at cohens.org.il Thu Jan 5 15:45:58 2017 From: tzafrir at cohens.org.il (Tzafrir Cohen) Date: Thu, 5 Jan 2017 14:45:58 +0100 Subject: sendmail or ssmtp or ?? In-Reply-To: <11db23ff-0350-c162-d633-8b0373b7eb5d@davidsconsultants.com> References: <11db23ff-0350-c162-d633-8b0373b7eb5d@davidsconsultants.com> Message-ID: <20170105134558.GT18690@lemon.cohens.org.il> On Thu, Jan 05, 2017 at 02:44:00PM +0200, David Suna wrote: > I have an Ubuntu machine that I am using to develop PHP based web > application. I now need to configure it so that PHP can send out mail. The > default seems to be to install sendmail. However, I have seen comments that > sendmail is overkill and some references to ssmtp. The main difference is that ssmtp and nullmailer (and other similar "sendmails") don't queue. This greatly simplifies them. > > What would be the recommended way to configure this? Sendmail, ssmtp or > something else? I tried using ssmtp for some servers. It lacked too many basic features. Nullmailer came closer. I don't recall the specific issues now, though. But I ended up using either postfix. Or even exim4 in some cases where I didn't bother. -- Tzafrir Cohen | tzafrir at jabber.org | VIM is http://tzafrir.org.il | | a Mutt's tzafrir at cohens.org.il | | best tzafrir at debian.org | | friend From slitt at troubleshooters.com Thu Jan 5 22:34:59 2017 From: slitt at troubleshooters.com (Steve Litt) Date: Thu, 5 Jan 2017 15:34:59 -0500 Subject: sendmail or ssmtp or ?? In-Reply-To: <20170105134558.GT18690@lemon.cohens.org.il> References: <11db23ff-0350-c162-d633-8b0373b7eb5d@davidsconsultants.com> <20170105134558.GT18690@lemon.cohens.org.il> Message-ID: <20170105153459.76014363@mydesk.domain.cxm> On Thu, 5 Jan 2017 14:45:58 +0100 Tzafrir Cohen wrote: > On Thu, Jan 05, 2017 at 02:44:00PM +0200, David Suna wrote: > > I have an Ubuntu machine that I am using to develop PHP based web > > application. I now need to configure it so that PHP can send out > > mail. The default seems to be to install sendmail. However, I have > > seen comments that sendmail is overkill and some references to > > ssmtp. > > The main difference is that ssmtp and nullmailer (and other similar > "sendmails") don't queue. This greatly simplifies them. > > > > > What would be the recommended way to configure this? Sendmail, > > ssmtp or something else? > > I tried using ssmtp for some servers. It lacked too many basic > features. Nullmailer came closer. I don't recall the specific issues > now, though. But I ended up using either postfix. Or even exim4 in > some cases where I didn't bother. Nullmailer queues. It doesn't perform some other SMTP functionalities, but it queues. You can see it happen by ls'ing the queue directory while sending a bunch of email with it. I've never been able to have Nullmailer deliver messages to my local machine, probably because I just don't know how. SteveT Steve Litt December 2016 featured book: Rapid Learning for the 21st Century http://www.troubleshooters.com/rl21 From amos.shapira at gmail.com Fri Jan 6 12:17:30 2017 From: amos.shapira at gmail.com (Amos Shapira) Date: Fri, 6 Jan 2017 21:17:30 +1100 Subject: sendmail or ssmtp or ?? In-Reply-To: <20170105153459.76014363@mydesk.domain.cxm> References: <11db23ff-0350-c162-d633-8b0373b7eb5d@davidsconsultants.com> <20170105134558.GT18690@lemon.cohens.org.il> <20170105153459.76014363@mydesk.domain.cxm> Message-ID: Why do you need an SMTP server? You need an SMTP client talking to whichever SMTP server your hosting provider provides you. e.g. https://github.com/PHPMailer/PHPMailer (I only remember it because of a security flaw published about it last week, but it's PHP so... meh.) On 6 January 2017 at 07:34, Steve Litt wrote: > On Thu, 5 Jan 2017 14:45:58 +0100 > Tzafrir Cohen wrote: > > > On Thu, Jan 05, 2017 at 02:44:00PM +0200, David Suna wrote: > > > I have an Ubuntu machine that I am using to develop PHP based web > > > application. I now need to configure it so that PHP can send out > > > mail. The default seems to be to install sendmail. However, I have > > > seen comments that sendmail is overkill and some references to > > > ssmtp. > > > > The main difference is that ssmtp and nullmailer (and other similar > > "sendmails") don't queue. This greatly simplifies them. > > > > > > > > What would be the recommended way to configure this? Sendmail, > > > ssmtp or something else? > > > > I tried using ssmtp for some servers. It lacked too many basic > > features. Nullmailer came closer. I don't recall the specific issues > > now, though. But I ended up using either postfix. Or even exim4 in > > some cases where I didn't bother. > > Nullmailer queues. It doesn't perform some other SMTP functionalities, > but it queues. You can see it happen by ls'ing the queue directory > while sending a bunch of email with it. > > I've never been able to have Nullmailer deliver messages to my local > machine, probably because I just don't know how. > > SteveT > > Steve Litt > December 2016 featured book: Rapid Learning for the 21st Century > http://www.troubleshooters.com/rl21 > > _______________________________________________ > Linux-il mailing list > Linux-il at cs.huji.ac.il > http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il > -- -------------- next part -------------- An HTML attachment was scrubbed... URL: