Fedora keeps sendmail — for now
The no default sendmail proposal, intended for the Fedora 20 development cycle, had a simple goal: remove sendmail from the "core" and "standard" package groups, so that sendmail would not be installed by default in Fedora's minimal or desktop configurations. Sendmail would, of course, remain as an option for anybody who wanted to install it separately. The simplest ideas are often those most subject to discussion, though; in this case, the proposal set off an email thread that was epic even by the standards of the Fedora development list.
The proponents of the change (Lennart Poettering and Matthew Miller) argued that there was little use for a mail transfer agent (MTA) installed by default. On today's Internet, there is no way to configure an MTA so that it comes up in a working configuration by default. Many or most Fedora users run in a situation where mail cannot be sent directly from (or to) their systems anyway, due to Internet service provider blocking policies and anti-spam measures taken at remote sites. Sendmail is set up to deliver mail into /var/spool/mail — a location that no mail user agent in the default Fedora install reads. So, it is said, there is little value in having sendmail around.
Going on, they argue that there are some costs to installing sendmail by default. Sendmail's time as a constant source of severe security problems is long past, but it is still a privileged program that need not be installed much of the time. Removing sendmail would reduce the distribution's disk space requirements and decrease system boot time. Ubuntu has not installed an MTA by default for years; systems like Mac OS X also install without an MTA. And in the end, Lennart and Matthew argued, even if Fedora were to install an MTA by default, sendmail is a bit of a peculiar choice.
The opposition to the proposal is a bit harder to summarize. A number of participants cited the fact that cron jobs send email if they produce unexpected output. In the absence of an MTA, that output goes instead to the system log which, for some, is a place where it can get lost in the noise. Miloslav Trmač suggested that the /usr/sbin/sendmail binary forms a sort of API by which applications can reliably send email; in its absence, those applications would have to grow their own SMTP implementations, which might not lead to a better system overall.
Some of the arguments against the removal of sendmail expressed a vague feeling that an MTA is an important and traditional component of a Unix system. Removing sendmail would take Fedora (further) away from that tradition, making some people uncomfortable. Having sendmail in the mix does not bother people who are not using it, they said, and anybody who really objects to its presence can always uninstall it. So, rather than making such a fundamental change to the system, it would be better to come up with a better set of default configurations for the mail transfer and user agents installed with the distribution.
The discussion went back and forth for some time while, seemingly, convincing few of the participants. Some Fedora users evidently value getting cron output in email, while others point out that, on most systems, it piles up unnoticed in /var/spool/mail and might as well be discarded. For the latter camp, the logging subsystem is clearly a better way for system daemons to communicate results to users or administrators, but discussions around the logging system tend to turn into an even bigger can of worms in short order. Arguments based on tradition almost never get anywhere with those who are determined to change that tradition — or leave it behind altogether.
The Fedora Engineering Steering Committee (FESCo) met on July 24 to (among other agenda items) make a decision on this issue. The discussion there was rather shorter; it can be found in the IRC log. In the end, the board voted unanimously to remove sendmail from the minimal "core" group. When it came to the "standard" group (which is what matters for most installations), though, the proposal faltered, eventually failing on a 4-4 vote after Matthew, despite having proposed the change, abstained from the actual vote as a gesture of respect for those who wanted to take a slower, more careful approach. So a Fedora 20 desktop installation will include sendmail.
It is fair to say that Lennart did not react well to the decision:
In truth, some progress has been made toward Lennart's goal, and some developers have expressed an interest in trying again for the Fedora 21 development cycle.
Fedora, as a Linux distribution, does have a lot of roots in the Unix tradition. It also has a number of users who have been with the distribution (and its predecessor, Red Hat Linux) for a very long time. Ways of working that have been established over decades can be awfully hard to change, especially when the people involved see no reason why they should change. It is, thus, unsurprising that the people who are trying to drive significant changes run into a certain type of conservatism at times.
What matters is how the system evolves over the long term.  There are few
who would say that Unix (or Linux) in any of its forms is the pinnacle of
computing.  The Linux systems we use ten years from now will certainly look
quite different from what we have now — either that, or we'll not be using
Linux at all.  Chances are that distant-future Linux distributions will not
have sendmail installed by 
default.  In the meantime, though, proponents of change can expect to have
to work through some resistance at times; that is, after all, how human
communities work.
      Posted Aug 1, 2013 1:56 UTC (Thu)
                               by davecb (subscriber, #1574)
                              [Link] (7 responses)
       
--dave 
     
    
      Posted Aug 1, 2013 9:05 UTC (Thu)
                               by tdalman (guest, #41971)
                              [Link] (1 responses)
       
... which is the default sendmail replacement on Gentoo for some time :) 
     
    
      Posted Aug 1, 2013 11:48 UTC (Thu)
                               by rsidd (subscriber, #2582)
                              [Link] 
       
     
      Posted Aug 1, 2013 11:28 UTC (Thu)
                               by jlayton (subscriber, #31672)
                              [Link] (1 responses)
       
...or maybe someone did and it got shot down. 
     
    
      Posted Aug 1, 2013 17:15 UTC (Thu)
                               by smoogen (subscriber, #97)
                              [Link] 
       
     
      Posted Aug 1, 2013 15:47 UTC (Thu)
                               by clump (subscriber, #27801)
                              [Link] 
       
     
      Posted Aug 1, 2013 16:15 UTC (Thu)
                               by davecb (subscriber, #1574)
                              [Link] 
       
     
      Posted Aug 27, 2013 17:38 UTC (Tue)
                               by zx2c4 (subscriber, #82519)
                              [Link] 
       
     
      Posted Aug 1, 2013 8:59 UTC (Thu)
                               by jezuch (subscriber, #52988)
                              [Link] (7 responses)
       
This. 
I noticed a long time ago that the email clients (or at least the clients I use) provided by distributions (or at least my distribution (Debian)) are (almost?) never configured to read the local accounts by default. Why is that? 
(Or why was that, in case it changed in the meantime?) 
     
    
      Posted Aug 1, 2013 14:03 UTC (Thu)
                               by drago01 (subscriber, #50715)
                              [Link] (6 responses)
       
Because those mails are mostly noise. 
     
    
      Posted Aug 1, 2013 17:24 UTC (Thu)
                               by isilmendil (subscriber, #80522)
                              [Link] (4 responses)
       
Yes, I also hate it when boring messages like "Your harddrive is dying" disturb my concentration. *g* 
     
    
      Posted Aug 1, 2013 19:42 UTC (Thu)
                               by raven667 (subscriber, #5198)
                              [Link] (3 responses)
       
Surely there is a better place for this information than /var/spool/mail which no one sees by default.  Either set up a forward for root mail as part of the install or make those reports go somewhere where they are likely to be seen.  Anything which requires actual action from the end user should probably result in a notification event going out over the dbus. 
     
    
      Posted Aug 1, 2013 21:26 UTC (Thu)
                               by drago01 (subscriber, #50715)
                              [Link] (1 responses)
       
     
    
      Posted Aug 2, 2013 8:03 UTC (Fri)
                               by jezuch (subscriber, #52988)
                              [Link] 
       
KDE sets up some monitoring of syslog as well. At least kernel oopses are rerouted to the desktop notifications panel. 
     
      Posted Aug 2, 2013 6:47 UTC (Fri)
                               by nhippi (subscriber, #34640)
                              [Link] 
       
I find it very telling that nobody has even mentioned mailing other users of the machine as the use case of local sendmail. The boat of local email delivery has sailed and reached it's destination at the harbour of UNIX museum. If the only remaining use of sendmail is to deliver notifications, I don't see why it should be treated different from nagios. 
     
      Posted Aug 2, 2013 8:00 UTC (Fri)
                               by jezuch (subscriber, #52988)
                              [Link] 
       
I don't see any noise there. 
(Well, OK, at the moment I do because I disabled some service that installs a cron schedule to restart it every hour but it fails every hour, because it's disabled, and I get a message every hour that the scheduled action failed. But that's a rare exception.) 
Basically the only thing I get there are denyhosts reports and apt-listchanges summaries. My hard drives are not dying yet ;) 
     
      Posted Aug 1, 2013 13:13 UTC (Thu)
                               by JEFFREY (guest, #79095)
                              [Link] (2 responses)
       
     
    
      Posted Aug 1, 2013 13:46 UTC (Thu)
                               by corbet (editor, #1)
                              [Link] 
       
     
      Posted Aug 1, 2013 14:04 UTC (Thu)
                               by drago01 (subscriber, #50715)
                              [Link] 
       
No one wants to remove it from the distro just not have it installed by default. 
     
      Posted Aug 1, 2013 14:00 UTC (Thu)
                               by kjp (guest, #39639)
                              [Link] 
       
     
      Posted Aug 1, 2013 15:48 UTC (Thu)
                               by johannbg (guest, #65743)
                              [Link] (1 responses)
       
Magic 8 ball FTW! ;) 
     
    
      Posted Aug 1, 2013 15:59 UTC (Thu)
                               by drago01 (subscriber, #50715)
                              [Link] 
       
     
      Posted Aug 1, 2013 17:14 UTC (Thu)
                               by rvfh (guest, #31018)
                              [Link] 
       
I think they got this the wrong way around. Should be: 
My ¢2 
     
      Posted Aug 1, 2013 19:45 UTC (Thu)
                               by drag (guest, #31333)
                              [Link] (20 responses)
       
All you have to do is look at the fact that other  MTA (postfix, qmail,  also provides a '/usr/bin/sendmail' work-alike script or binary to replace it.  
I really see no purpose in breaking a billion and a half scripts to get rid of sendmail.  All you have to do is replace sendmail binary with a python script or something else that just pipes the output to /var/spool/mail. That way you get to get rid of your MTA and you get to not break stuff. Make it fedora policy to not have anything send mails to local mta without user configuring it to do that first.  Then later on in Fedora 23 or 24 or whatever you just have /usr/bin/sendmail output to your logging mechanism and leave it at that. 
What is really the problem here? So what if /usr/bin/sendmail isn't a POSIX requirement or what the hell ever. Lots of other Unix programs stick around and don't get used by anybody simply because people have forgotten about them.  
You don't want to break third party packages and people's scripts just because of something so minor. It's also impossible to configure a MTA in a 'right' way. So the answer is just get rid of the MTA and replace it with a mechanism that won't break stuff needlessly. 
Done.   
     
    
      Posted Aug 1, 2013 21:27 UTC (Thu)
                               by dlang (guest, #313)
                              [Link] (18 responses)
       
The real problem is that the idea that a *nix system can send e-mail, send log messages to another server, and other things like that is considered "obsolete" and functionality that needs to be removed. 
this is why they are planning on no longer having a syslog daemon that can communicate over the network (the systemd journal is all that anyone needs), and similarly, if you accept that most people cannot use an MTA for some reason, removing it is considered 'good' 
I've never understood why having the local MTA configured to deliver mail to your ISP's mail server on port 25, with it mapping root@<yourserver> to your e-mail address is considered such an evil thing. 
It's not what I want, but I run my own mail server and domain, so I really do use a MTA, and syslog daemon. 
But apparently people like me aren't the target for Fedora any longer. According to Lennart, people like me are "the stone age" 
     
    
      Posted Aug 2, 2013 0:16 UTC (Fri)
                               by bloopletech (guest, #71203)
                              [Link] (4 responses)
       
I'm an avid vim user, and I use Ubuntu. Ubuntu ships with a fairly useless tiny version of vim. Do I get annoyed? No, I sudo apt-get install vim-gnome (the -gnome means it has X11 clipboard support etc etc; I use terminal vim exclusively). 
Given that sendmail is fairly despised, usually replaced by a different API-compatible program, and not usable or useful for the majority of users (most people who use POP/IMAP/SMTP probably use a mail client like Evolution/Thunderbird/etc rather than sendmail binaries), why _should_ it be in the base install? 
Also, Ubuntu _already_ doesn't ship sendmail in the base install, and it's not even in the main package set (it's in 'universe'). So if Fedora is meant to be edgy, it sure doesn't seem like it here. 
(I'm sure Fedora generally is a great distro, just like I believe Ubuntu is.) 
     
    
      Posted Aug 2, 2013 1:35 UTC (Fri)
                               by dlang (guest, #313)
                              [Link] (3 responses)
       
The point here is that Lennart is saying that any Distro that's not in the 'stone age' shouldn't have ANY MTA installed at all. 
That's the part that's causing people to protest. 
     
    
      Posted Aug 2, 2013 2:12 UTC (Fri)
                               by mjg59 (subscriber, #23239)
                              [Link] (2 responses)
       
(To avoid the obvious arguments: yes, there are plenty of cases where you can guarantee that there's an installed MTA that will deliver mail to a user who will read it. But all of those cases involve manual configuration, and so adding "install an MTA" to the list of steps required isn't a huge imposition) 
     
    
      Posted Aug 2, 2013 10:48 UTC (Fri)
                               by etienne (guest, #25256)
                              [Link] (1 responses)
       
Isn't it just having a ".forward" file in your home directory? 
     
    
      Posted Aug 2, 2013 14:04 UTC (Fri)
                               by mjg59 (subscriber, #23239)
                              [Link] 
       
     
      Posted Aug 2, 2013 3:35 UTC (Fri)
                               by raven667 (subscriber, #5198)
                              [Link] 
       
Wrong. That's not even close.  No one is trying to take syslog or sendmail away from you if you want to use them.  If you are going to try and participate in a technical discussion I'd appreciate it if you'd actually try and understand what the issues were, I know you are smart and capable of it. 
 
 
     
      Posted Aug 2, 2013 7:16 UTC (Fri)
                               by anselm (subscriber, #2796)
                              [Link] (9 responses)
       
I think you're confusing »removing package X that does Y from the Fedora default install« with »removing any package that does Y from Fedora completely«. AFAICT nobody is suggesting removing all MTAs from Fedora.
 
In addition, people who do intentionally want to run an MTA are probably going to have a fairly strong preference for which MTA they want to run, and in 2013, in many cases that preference is not going to be Sendmail. It is reasonable to argue that if most Fedora users have no use for a local MTA in the first place, and out of those who do many will not actually want to use Sendmail in particular, it makes little sense to pre-install Sendmail by default. Those people who do want Sendmail specifically (as opposed to, say, Postfix) can still find it in the repository.
 
     
    
      Posted Aug 2, 2013 7:27 UTC (Fri)
                               by dlang (guest, #313)
                              [Link] (8 responses)
       
If you really think that the majority of your userbase is going to be on ISPs that don't let MTAs go out to the Internet, a better solution that "eliminate the MTA" would be to have the distro install ask for outbound mail server info, and ask for an e-mail address to use to send messages to the system owner/admin. then store this info in a 'known place' for the distro. configure the MTA to deliver to this mail server (and deliver root mail to the e-mail address provided), and have mail client packages auto-configure themselves from this 'known place' as part of their installation scripts (while allowing users to override this by configuring it themselves after install) 
The mindset that "in some cases this isn't useful, so we should remove it completely from the install and force anyone who wants to to install it manually" seems very wrong to me. 
     
    
      Posted Aug 2, 2013 7:38 UTC (Fri)
                               by anselm (subscriber, #2796)
                              [Link] (7 responses)
       
I think there is something to be said for keeping the default installation lean. One could argue that having something like gcc, Emacs or TeX around would be »useful except in some cases«, but even so these packages are usually not part of the default installation.
 
I quite agree that it would be reasonable for distributions to allow the installing user to specify a destination for outbound mail to an administrator. It is by no means clear, however, that supporting this use case would require a full-blown MTA on the scale of Sendmail to be installed by default.
 
     
    
      Posted Aug 2, 2013 7:42 UTC (Fri)
                               by dlang (guest, #313)
                              [Link] (5 responses)
       
I think that for an opensource/free software desktop, gcc should be installed by default. Emacs and TeX aren't needed (says a vi user ;-) but it's hard to do very much stuff other than just being a consumer of services without running into some need for gcc, at least indirectly. 
     
    
      Posted Aug 2, 2013 7:48 UTC (Fri)
                               by anselm (subscriber, #2796)
                              [Link] (3 responses)
       
I'm with you, but:
 
     
    
      Posted Aug 2, 2013 10:27 UTC (Fri)
                               by dlang (guest, #313)
                              [Link] (2 responses)
       
I like how Debian has a "minimal" install, which is fairly close to the minimum needed to boot, talk on the network, and install additional packaged. This doesn't include gcc, but it doesn't include X or any "desktop" software either. This makes it a good starting point for a server build. 
     
    
      Posted Aug 2, 2013 12:08 UTC (Fri)
                               by peter-b (guest, #66996)
                              [Link] (1 responses)
       
     
    
      Posted Aug 13, 2013 3:36 UTC (Tue)
                               by mattdm (subscriber, #18)
                              [Link] 
       
Well, it has more than that. For example, it had sendmail in it before we decided, with this change, to remove it from that set. 
     
      Posted Aug 2, 2013 20:29 UTC (Fri)
                               by giraffedata (guest, #1954)
                              [Link] 
       
     
      Posted Aug 2, 2013 11:48 UTC (Fri)
                               by johannbg (guest, #65743)
                              [Link] 
       
Those defaults are part of the problem not the solution since people dont seem to realize for the first nothing goes away from Fedora unless it's dead upstream or no one no longer maintains it here with us so it just means things just get shuffled in,out or between comps groups. 
And while we have an "default" this will always be the case, people always scream if something is added or removed to the so called "default" instead of those individuals engaging and participating in the relevant sub-community and influence and have that discussion there. 
Which is why I'm forming a Gnome SIG an Gnome sub-community within Fedora [1] which will be aimed to deliver upstream modern, high-quality Gnome optimized desktop only experience targeted towards regular people for regular usage on common hardware. No more lvm, no more rsyslog, no more sendmail no more half baked enterprise/admin/desktop "defaults" that wind up being equally crappy for everybody causing nothing but tension,arguments and friction within our community and no more holding back progress in the process.  
And this will sail proudly under the name Gnome not "defaults" or "desktop" just like KDE,XFCE,LXDE Sugar and other sub-community already are and have been doing for all those years... 
If you are interested in participating in this effort feel free to join. 
     
      Posted Aug 2, 2013 12:39 UTC (Fri)
                               by drag (guest, #31333)
                              [Link] (1 responses)
       
The problem is that it doesn't usually work that well anymore.  
If you have some nice traditional server setup with a bunch of nodes all on the same network segment then it'll work, otherwise it's all just random chance if it works or not unless you actually configure things manually.  
And if, like most people I am guessing, are going to configure a MTA it's going to probably be Postfix and not Sendmail. 
     
    
      Posted Aug 2, 2013 17:02 UTC (Fri)
                               by dlang (guest, #313)
                              [Link] 
       
If they were proposing to change the default from Sendmail to Postfix, I don't think there would be any fuss. Several other Distros have done the same thing. 
this isn't about keeping Sendmail, it's about keeping an MTA. 
     
      Posted Aug 8, 2013 13:27 UTC (Thu)
                               by Otus (subscriber, #67685)
                              [Link] 
       
There are a lot of APIs that distros don't install by default. 
Usually a package that uses such APIs should depend on other packages that  
I don't see how this is any different. Whether sendmail is installed by  
     
      Posted Aug 2, 2013 22:20 UTC (Fri)
                               by nix (subscriber, #2304)
                              [Link] (10 responses)
       
He strikes me as someone who'd be very happy maintaining his own OS, with no users but himself to get in his way. But perhaps he's not happy unless he drags the world with him -- ready or not.
      
           
     
    
      Posted Aug 3, 2013 11:54 UTC (Sat)
                               by cdamian (subscriber, #1271)
                              [Link] (9 responses)
       
Only when we have turned Linux into Windows NT we will notice that you can't use vi on the registry or grep on the binary log.  
     
    
      Posted Aug 3, 2013 17:13 UTC (Sat)
                               by nix (subscriber, #2304)
                              [Link] 
       
 
     
      Posted Aug 4, 2013 0:17 UTC (Sun)
                               by anselm (subscriber, #2796)
                              [Link] (7 responses)
       
I must have missed something. Exactly when and where did Lennart Poettering propose introducing a binary registry for Linux configuration instead of simple Unix text files?
 
     
    
      Posted Aug 7, 2013 10:23 UTC (Wed)
                               by mikemol (guest, #83507)
                              [Link] (6 responses)
       
     
    
      Posted Aug 7, 2013 10:38 UTC (Wed)
                               by anselm (subscriber, #2796)
                              [Link] (5 responses)
       
I know about the binary logging format of journald, thank you very much.
 
Please show me where Lennart Poettering says that there should be a binary registry for configuration settings, which was my original question.
 
     
    
      Posted Aug 7, 2013 10:52 UTC (Wed)
                               by cdamian (subscriber, #1271)
                              [Link] (1 responses)
       
And as with binary log files there might be a good reason for these. In some people's opinion at least. 
     
    
      Posted Aug 7, 2013 11:05 UTC (Wed)
                               by anselm (subscriber, #2796)
                              [Link] 
       
You did give the impression that »Lennartix« was supposed to be an operating system that could no longer be maintained with »simple Unix file tools«.
 
One can probably quibble about whether journald's binary logs are A Good Thing (as of now it's not as if journald was mandatory in any way, shape, or form, even on systemd-based systems, or would preclude the use of a traditional syslog daemon). However, I don't think it is quite fair to suggest, even ironically, that Lennart Poettering was against text files for configuration – if anything, systemd itself is an obvious counterexample to this claim. Quite on the contrary, systemd is probably doing more for the cross-distribution standardisation, and hence future-proofing, of these text files than any other effort has done recently.
 
As far as binary configuration goes, there are various systems that try to store Linux configuration data in an LDAP directory, which is probably the closest we get to a »binary registry« these days. Like you said, there are some advantages to this (especially in larger networks) but so far nobody seems to be advocating for making this approach standard.
 
     
      Posted Aug 7, 2013 11:46 UTC (Wed)
                               by mikemol (guest, #83507)
                              [Link] (1 responses)
       
     
    
      Posted Aug 7, 2013 15:34 UTC (Wed)
                               by mathstuf (subscriber, #69389)
                              [Link] 
       
     
      Posted Aug 15, 2013 15:31 UTC (Thu)
                               by Tester (guest, #40675)
                              [Link] 
       
     
      Posted Aug 6, 2013 23:35 UTC (Tue)
                               by josh (subscriber, #17465)
                              [Link] (75 responses)
       
     
    
      Posted Aug 6, 2013 23:39 UTC (Tue)
                               by rahulsundaram (subscriber, #21946)
                              [Link] (2 responses)
       
     
    
      Posted Aug 7, 2013 0:13 UTC (Wed)
                               by josh (subscriber, #17465)
                              [Link] (1 responses)
       
     
    
      Posted Aug 7, 2013 3:33 UTC (Wed)
                               by rahulsundaram (subscriber, #21946)
                              [Link] 
       
     
      Posted Aug 9, 2013 11:02 UTC (Fri)
                               by cas (guest, #52554)
                              [Link] (71 responses)
       
the whole point of having /usr/sbin/sendmail on a system (whether that's provided by sendmail, exim, postfix, ssmtpd or anything else) is that other programs don't have to know how to route or deliver mail, they just pipe it to /usr/sbin/sendmail. 
you know, the unix "small tools" approach. 
the alternative is every app implementing their own crappy, partial, half-arsed version of an MTA (calibre is an excellently example of why this job should not be left to application developers). 
 
 
     
    
      Posted Aug 9, 2013 11:04 UTC (Fri)
                               by cas (guest, #52554)
                              [Link] 
       
     
      Posted Aug 9, 2013 11:39 UTC (Fri)
                               by josh (subscriber, #17465)
                              [Link] (11 responses)
       
     
    
      Posted Aug 9, 2013 17:23 UTC (Fri)
                               by mathstuf (subscriber, #69389)
                              [Link] (2 responses)
       
     
    
      Posted Aug 9, 2013 18:17 UTC (Fri)
                               by josh (subscriber, #17465)
                              [Link] (1 responses)
       
I'm not sure what you mean by your first point, though; what does an MTA queue have to do with keeping your mail client open to *check* email? 
     
    
      Posted Aug 9, 2013 19:06 UTC (Fri)
                               by mathstuf (subscriber, #69389)
                              [Link] 
       
     
      Posted Aug 11, 2013 10:52 UTC (Sun)
                               by cas (guest, #52554)
                              [Link] (7 responses)
       
2. there's more to sending mail than just speaking smtp. 
queuing and routing are the most obvious - routing is less important these days where 99+% of MTAs on the net speak SMTP but still useful in many cases, e.g. routing some mail via a specific authenticated/encrypted MTA. 
queuing is still important if your network link is down, or the recipient's MTA is busy/over-loaded/greylisting or just offline for whatever reason.   
it's merely crazy to think that every app that might need to send mail should speak smtp (and possibly several other protocols), but it's gibberingly insane to think they should maintain their own queue, routing table, and delivery scheduler. 
 
 
     
    
      Posted Aug 11, 2013 14:01 UTC (Sun)
                               by raven667 (subscriber, #5198)
                              [Link] (1 responses)
       
Pretty much every mail client already speaks SMTP and doesn't use /usr/sbin/sendmail and it has been that way for decades, they will also hold mail in an Outbox so aren't reliant on the local MTA for queueing. This is not just GUI clients like Evolution, KMail or Thunderbird but also PINE and mutt speak SMTP.  Only crazy people are still using mailx as their day-to-day MUA 8-) 
Also, local delivery to /var/lib/mail is bad for the default system because only a few utilities like mailx still can read from there, and most messages are destined to users who don't interactively log in at all.  Those messages disappear down a black hole and we would all be better served if they went to syslog by default.  Of course if you want cron mail, install ssmtp and configure it to go to your central mail hub. 
This isn't to say that /usr/sbin/sendmail isn't an API for scripts and programs to send mail, but that is a small case which doesn't _require_ a full MTA such as sendmail or postfix, a small shim like ssmtp is more appropriate, and should be listed as a dependency for programs which require it. 
     
    
      Posted Aug 11, 2013 14:19 UTC (Sun)
                               by cas (guest, #52554)
                              [Link] 
       
did you ever notice that the internet is a peer to peer network and not a producer to consumer network? 
> Also, local delivery to /var/lib/mail is bad for the default system 
you must be using some crappy distribution that doesn't have or enforce packaging policy and standards.  a decent distribution *requires* all mail-clients that can access local mail stores to access them in the same location...not doing so is a serious bug. 
> This isn't to say that /usr/sbin/sendmail isn't an API for scripts and 
thank you for re-iterating my point.  it really doesn't matter whether /usr/sbin/sendmail is provided by postfix, exim, sendmail, smail, qmail, ssmtp or some hacked up shell script as long as it reacts correctly to the input and the command-line options. 
 
 
     
      Posted Aug 11, 2013 16:59 UTC (Sun)
                               by josh (subscriber, #17465)
                              [Link] (4 responses)
       
I never suggested that my preferences applied universally.  I stated what applied to my own system.  Nothing stops people from installing and configuring an MTA on their system if that's their preferred way of handling email.  I don't, however, believe that's the right default for end-user client systems, because most users will either use webmail or configure a MUA to talk directly to their real mailserver; thus, I'd argue that when installing such systems, distros should not install an MTA by default. 
> queuing is still important if your network link is down, or the recipient's MTA is busy/over-loaded/greylisting or just offline for whatever reason. 
My MUA does talk to a proper queuing MTA (via SMTPS) for exactly that reason; that MTA just doesn't live on my laptop.  MUAs certainly shouldn't talk directly to recipient MTAs, nor would I advocate the elimination of MTAs in general; I'd simply suggest that the majority of systems want to talk to a mail server elsewhere rather than running one locally. 
> it's merely crazy to think that every app that might need to send mail should speak smtp (and possibly several other protocols), 
A MUA just needs to speak SMTP(S) to send mail, no other protocol.  And that's no crazier than expecting every app to fork and exec sendmail to send mail; it's just different. 
Any app other than the user's a MUA that wants to send mail on behalf of the user can invoke the user's MUA to do so.  See https://lwn.net/Articles/562141/ , in particular the discussion about evolution as a desktop service, for some discussion of that approach. 
That also fixes a major bug present when apps think they can just chat with sendmail to send mail: making sure that every outgoing mail ends up in the Sent folder in the user's MUA. 
> but it's gibberingly insane to think they should maintain their own queue, routing table, and delivery scheduler. 
Of course not.  A MUA should not be queuing and scheduling mail; at most, a MUA might have an outbox of mail it couldn't send to the user's MTA due to being offline, and it can retry sending that mail when online again.  That's not a complicated policy. 
     
    
      Posted Aug 11, 2013 23:39 UTC (Sun)
                               by cas (guest, #52554)
                              [Link] (3 responses)
       
IMO it is crazier.  it's certainly less functional, and requires a hell of a lot of code duplication and re-implementation because every app or script that *might* need to send mail has to have their own smtp implementation (with, at least, sending and simple queueing abilities) rather than relying on a standard executable they can pipe to. 
worse, it makes sending mail from shell scripts far more difficult - instead of piping to /usr/sbin/sendmail, you now have to implement a minimal smtp in sh or bash (perl or python would be a little easier because they already have smtp libraries - but you'd still have to implement a queue in case the remote MTA was down or unreachable). 
and each one of those apps and scripts has to be configured with the user's credentials if the remote MTA requires authentication...so lots of duplication of credentials too. 
> Any app other than the user's a MUA that wants to send mail on 
and how, exactly, is another app or script supposed to figure out which MUA the user uses?  or what it's command line options are?  or even if it has command-line options to send mail (i mostly use mutt, but i occasionally use icedove - 'icedove --help' doesn't seem to show any capability to be used by another program to send mail) 
what if multiple MUAs are installed - how does the app tell which one the user uses or prefers, or which one is actually configured to send mail? 
it makes far more sense to just rely on the presence of a /usr/sbin/sendmail executable with standardised command line options (and a man page to document those options).  that's what it's for. 
Henry Spencer's line seems appropriate here: 
"Those who don't understand Unix are condemned to reinvent it, poorly." 
 
 
     
    
      Posted Aug 12, 2013 2:27 UTC (Mon)
                               by josh (subscriber, #17465)
                              [Link] (2 responses)
       
> worse, it makes sending mail from shell scripts far more difficult 
I said a MUA, not a shell script.  I don't expect shell scripts to speak SMTPS (though something like Python or Perl certainly can).  See below. 
>> Any app other than the user's a MUA that wants to send mail on 
> and how, exactly, is another app or script supposed to figure out which 
There's an "xdg-email" command which opens a draft mail in the user's preferred mail client.  Desktop environments also have standard mechanisms of asking what program they should run, which they use to implement the "Send via email" commands and similar. 
 
I'd also point out that you seem to be taking personal offense at the idea that your preferred mode of operation might not be the perfect default for everyone.  Nobody's talking about removing MTAs; the question is whether a desktop Linux distribution might want to optimize for the single-user desktop use case. 
     
    
      Posted Aug 12, 2013 11:24 UTC (Mon)
                               by cas (guest, #52554)
                              [Link] (1 responses)
       
you're making an arbitrary and false distinction.  any script that sends mail is a (primitive) MUA - pretty graphics or even an ncurses interface are not required. 
 
> There's an "xdg-email" command which opens a draft mail in the user's 
xdg-* just defines the default MUA installed.  it doesn't tell another app or script which MUA the user actually uses, and which one is actually configured. 
nor does it tell a potential calling-app/script what command line options it has - i notice you completely ignored my point that /usr/sbin/sendmail provides standard and well-documented command-line options for other programs to use to send mail, whereas thunderbird (for example) does not...and (according to --help) doesn't even seem to be capable of doing that. 
since not all MUAs actually provide that function, it's crazy to say "/usr/sbin/sendmail isn't needed, just use an MUA".  "use something that *might* work if you're lucky" is not a solution, it's broken. 
 
> I'd also point out that you seem to be taking personal offense at 
no, i'm taking offence at short-sighted idiocy, lack of understanding of systems design, and the contempt for users that you are displaying ("they're too dumb to understand that").  users aren't as stupid or as incompetent as you claim. 
 
 
     
    
      Posted Aug 12, 2013 15:49 UTC (Mon)
                               by josh (subscriber, #17465)
                              [Link] 
       
> you're making an arbitrary and false distinction. any script that sends mail is a (primitive) MUA - pretty graphics or even an ncurses interface are not required. 
The difference is that the MUA is the program the *user* invokes when they want to send mail. 
MTAs can work nicely for fully automated mail (when configured appropriately on a network that supports them).  Not every user wants or needs fully automated mails sent on their behalf; in particular,  
To put it bluntly: I don't *want* sendmail to work on my system, because then programs might go around thinking they get to send mail without my involvement.  You're arguing as though every single system has a pile of programs with a legitimate reason to send mail, which might have been true on UNIX systems of yore, but is no longer true on a modern Linux system. 
In any case, I'm not going to spend time arguing the merits of modern mail clients.  MTAs have a target audience of mail server administrators.  MUAs have a far broader target audience, and the authors of modern MUAs spend far more time on UX and ease of use.  If you believe that both are equally easy to configure, I have no interest in trying to convincing you otherwise. 
     
      Posted Aug 9, 2013 15:15 UTC (Fri)
                               by mjg59 (subscriber, #23239)
                              [Link] (57 responses)
       
     
    
      Posted Aug 9, 2013 18:49 UTC (Fri)
                               by mathstuf (subscriber, #69389)
                              [Link] (4 responses)
       
I think esmtp handles this fine with ~/.esmtprc (msmtp and ssmtp are similar IIRC), so it's not impossible to get this without reimplementing SMTP support in every client ever. 
     
    
      Posted Aug 9, 2013 19:30 UTC (Fri)
                               by mjg59 (subscriber, #23239)
                              [Link] (3 responses)
       
     
    
      Posted Aug 9, 2013 19:37 UTC (Fri)
                               by mathstuf (subscriber, #69389)
                              [Link] (2 responses)
       
     
    
      Posted Aug 9, 2013 19:43 UTC (Fri)
                               by mjg59 (subscriber, #23239)
                              [Link] (1 responses)
       
     
    
      Posted Aug 9, 2013 23:01 UTC (Fri)
                               by mathstuf (subscriber, #69389)
                              [Link] 
       
     
      Posted Aug 11, 2013 11:07 UTC (Sun)
                               by cas (guest, #52554)
                              [Link] (51 responses)
       
that's really not a compelling or even convincing argument. 
the presence of your mail client is no guarantee that it's configured correctly.  ditto for every other piece of software installed. 
here's something for you to consider: if service foo is misconfigured or broken, where is the correct place to fix it?  in service foo itself or in client bar? 
 
> Meanwhile, mail applications still need to know how to speak 
first you argue that the MTA might not be configured correctly, and then you say that it's OK for it to be misconfigured, just work around it in every app - each one of which can have it's own incomplete, conflicting, misconfigured and most likely half-arsed implementation of an MTA. 
this is why programmers shouldn't make systems decisions. 
do you even know what a unix system is? or why the small-tools approach has worked so well for decades? 
> I don't want to have to code my work credentials into global 
then don't.  there's - slight exaggeration - a million ways for you to address your special needs that don't involve crippling distros by default. 
 
     
    
      Posted Aug 11, 2013 12:54 UTC (Sun)
                               by Cyberax (✭ supporter ✭, #52523)
                              [Link] (8 responses)
       
I bet that at least 90% of users have to use some form of authenticated submission to send mail these days. 
     
    
      Posted Aug 11, 2013 13:11 UTC (Sun)
                               by cas (guest, #52554)
                              [Link] (7 responses)
       
as i said, there are many ways of achieving that. 
 
     
    
      Posted Aug 11, 2013 13:13 UTC (Sun)
                               by Cyberax (✭ supporter ✭, #52523)
                              [Link] (6 responses)
       
I'd argue that anybody who keeps passwords on laptops unencrypted should have their head examined. 
> as i said, there are many ways of achieving that. 
     
    
      Posted Aug 11, 2013 14:09 UTC (Sun)
                               by cas (guest, #52554)
                              [Link] (5 responses)
       
right, because storing your credentials in your thunderbird or other MUA config or in ~/.muttrc or .fetchmailrc is so much more secure than storing them in a system config file readable only by root. 
hint: they're all insecure if the laptop is lost or stolen.  also, $user-readable credentials are slightly more insecure if someone has a few minutes access to the laptop. 
you know what is (relatively) secure?  using a local MTA and configuring it to use a certificate issued by your work to authenticate with your work server.  even if your laptop is stolen, your login and password are not leaked and the certificate can be revoked. 
even tunneling smtp to $work_server over ssh is more secure than storing your credentials on a laptop. 
> > as i said, there are many ways of achieving that. 
here, let me google that for you.  answering trivial FAQs for you is my entire purpose in life.  i'll get back to you with a complete report as soon as i have nothing more important to do. 
 
     
    
      Posted Aug 11, 2013 14:41 UTC (Sun)
                               by Cyberax (✭ supporter ✭, #52523)
                              [Link] 
       
Besides, my /home/username directory is also encrypted by ecryptfs. 
And neither of your solutions is actually implemented by the majority of mail relays out there.  
     
      Posted Aug 15, 2013 13:50 UTC (Thu)
                               by nye (subscriber, #51576)
                              [Link] (3 responses)
       
Except apparently ranting insanely about how your absurdly inconsequential use case should be the default inflicted upon millions of people, who would both need to spend the time reconfiguring their system to a semblance of sanity, assuming they somehow *know* that their system was configured by a selfish lunatic by default. 
Christ, what an asshole. 
     
    
      Posted Aug 17, 2013 8:01 UTC (Sat)
                               by cas (guest, #52554)
                              [Link] (2 responses)
       
and an ignorant fuckwit, too. 
     
    
      Posted Aug 17, 2013 13:05 UTC (Sat)
                               by corbet (editor, #1)
                              [Link] (1 responses)
       
     
    
      Posted Aug 17, 2013 15:38 UTC (Sat)
                               by cas (guest, #52554)
                              [Link] 
       
 
     
      Posted Aug 11, 2013 17:09 UTC (Sun)
                               by josh (subscriber, #17465)
                              [Link] 
       
A very reasonable point, but you've got it flipped around.  If the user wants to run a mail client, the mail client is the thing to configure.  And given the choice of configuring the mail client to talk to the user's mail server via SMTP, or configuring a local mail server to use the user's mail server and configuring the mail client to talk to that local mail server, the former ends up with far less configuration. 
On top of that, with the former setup, when the user's mail client says a mail is sent, it's *actually sent*, rather than potentially sitting in a mail queue on the user's system where it might get lost without the user knowing.  Not every user wants to be a mail server admin. 
>> Meanwhile, mail applications still need to know how to speak 
> first you argue that the MTA might not be configured correctly, and then you say that it's OK for it to be misconfigured 
You've entirely missed the point of the statement you replied to.  There may not be *any* valid system configuration for an MTA.  The smarthost each user uses for their own mail is not necessarily suitable for use in the system configuration, either because the user may not want the system sending automated mail as them, or because the user doesn't want to store the credentials for their mail account systemwide.  That's not a misconfigured MTA, that's a system where all the user's have their own mail server already and it doesn't live on the local system.  If you want to argue that a user's *session* should include something similar to an MTA, that's an interesting idea, but that doesn't mean a systemwide MTA makes sense on systems that aren't the mail server for a given domain. 
     
      Posted Aug 11, 2013 18:47 UTC (Sun)
                               by mjg59 (subscriber, #23239)
                              [Link] (40 responses)
       
What you're missing is that, even though Fedora currently installs sendmail by default, Fedora doesn't configure it by default. The same is true of many other Linux distributions. A client has no way to figure out whether sendmail will actually deliver remote mail or not, and nor does it have any way to report that to the user. 
So sure, you can assert that /usr/bin/sendmail should always be configured in such a way that it will deliver mail to remote users. That doesn't make it true, and when writing software it makes more sense to conform to reality than to some platonic ideal. 
(does the Debian installer even configure exim by default these days? My understanding was that it doesn't) 
"do you even know what a unix system is? or why the small-tools approach has worked so well for decades?" 
I've been a professional admin on Linux, Tru64 and (for my sins) Irix, and I've got an actual SVR4 box around here somewhere, so yeah, I've got some experience of that. But you seem to have misconstrued my argument. Would the world be a better place if all clients used a single implementation of SMTP? Yes, I think it would. Does that mean that the single implementation of SMTP should be a globally configured daemon? No. The argument that all mail should be sent via /usr/bin/sendmail is equivalent to arguing that all browsers should be hardcoded to talking to a machine-local proxy. 
"then don't. there's - slight exaggeration - a million ways for you to address your special needs that don't involve crippling distros by default." 
So, first, point me at a distribution that *by default* guarantees that /usr/bin/sendmail will be (a) present and (b) correctly configured. And then describe three of those ways. 
     
    
      Posted Aug 11, 2013 23:48 UTC (Sun)
                               by cas (guest, #52554)
                              [Link] (39 responses)
       
ditto for any other app or script that might need to send mail.  it's not their job. 
 
> I've been a professional admin on [...] 
then you really should know better than to propose that system level services should be run out of a user's home directory...and definitely know better than to discard the modular, replaceable small-tools component model of unix for the MS jack-of-all-trades-master-of-none model. 
 
 
 
 
     
    
      Posted Aug 12, 2013 0:10 UTC (Mon)
                               by Cyberax (✭ supporter ✭, #52523)
                              [Link] (38 responses)
       
System-level MTAs in default installations haven't been working AT ALL for at least 15 years. 
So your choices are: 
     
    
      Posted Aug 12, 2013 0:43 UTC (Mon)
                               by dlang (guest, #313)
                              [Link] (26 responses)
       
we are living in different worlds. 
Works for me. 
     
    
      Posted Aug 12, 2013 0:47 UTC (Mon)
                               by Cyberax (✭ supporter ✭, #52523)
                              [Link] (8 responses)
       
I'd gladly bet $100 that you can't use the default installation of Debian/Ubuntu to send a mail to alex.besogonov@gmail.com using the default MTA configuration, from within StarBucks network or any other random WiFi hotspot. 
     
    
      Posted Aug 12, 2013 1:51 UTC (Mon)
                               by cas (guest, #52554)
                              [Link] (7 responses)
       
2. the reason why that can be tricky to implement is not because the configuration is difficult but because of 1. above - nobody sane lets external clients relay through them without authentication. 
3. given that it's a special case that needs special configuration, the best place to configure it is *once* in the local system MTA and **NOT** multiple times in every app or script that needs to send mail. 
4. as i mentioned in a previous post, the calibre application is an excellent example of exactly why sending and queuing mail should not be left to application developers who clearly do not understand how mail works.  calibre's author is an expert in ebook formats - unfortunately, he thinks that makes him an expert in everything else (including smtp and security and GUI design, all of which he is atrocious at). 
even more unfortunately, it's only one of many examples - and removal of a standard tool (/usr/sbin/sendmail) would only encourage proliferation of crappy, sub-standard, poorly-understood smtp implementations by people who have no idea what they're doing. 
it's classic programmers NIH disease - rather than take the time to understand and make use of an existing system tool, they'll reinvent a half-arsed incomplete and shoddy implementation of it....and then refuse to see why it's a terrible idea for every other program to do the same. 
 
 
 
 
 
 
     
    
      Posted Aug 12, 2013 1:56 UTC (Mon)
                               by Cyberax (✭ supporter ✭, #52523)
                              [Link] (6 responses)
       
Ok, I get it. You don't even have an idea how people actually use their computers. 
     
    
      Posted Aug 12, 2013 2:10 UTC (Mon)
                               by cas (guest, #52554)
                              [Link] (5 responses)
       
optimising for that one special case is, to put it bluntly, FITH. 
 
     
    
      Posted Aug 12, 2013 2:22 UTC (Mon)
                               by Cyberax (✭ supporter ✭, #52523)
                              [Link] (2 responses)
       
Or do you argue that home users are just a filth that doesn't merit attention of developers? Maybe we should care only about 'serious' users? 
     
    
      Posted Aug 12, 2013 11:10 UTC (Mon)
                               by cas (guest, #52554)
                              [Link] (1 responses)
       
 
     
    
      Posted Aug 12, 2013 11:14 UTC (Mon)
                               by Cyberax (✭ supporter ✭, #52523)
                              [Link] 
       
A significant majority of home users simply can not send email using plain SMTP. What are you proposing to do? 
     
      Posted Aug 12, 2013 2:35 UTC (Mon)
                               by josh (subscriber, #17465)
                              [Link] (1 responses)
       
Every single person I know who maintains a mail server on their personal system has had at least one incident where they either lost mail or had it delayed for days stuck in a mail queue somewhere.  Life's too short.  If you want to run your own mail server, please go right ahead; nobody is stopping you.  However, many Linux distributions are trying to optimize for user-friendliness these days, not just flexibility and applicability to every possible use case.  (See also http://islinuxaboutchoice.com/ .) 
     
    
      Posted Aug 12, 2013 11:33 UTC (Mon)
                               by cas (guest, #52554)
                              [Link] 
       
it's nowhere near as difficult as you are pretending it is. 
it's far easier to tell your MTA *once only* "my smarthost is there", than to have to configure the same information in every program that needs it - and then to re-configure them all when you change ISP or mail provider. or when you realise you need to handle work mail differently to personal mail. 
> However, many Linux distributions are trying to optimize for 
the mistake you and your ilk are maing is assuming that "user-friendly" equals "crippled and dumbed-down".  it's the same mistake microsoft made in the 80s...that apple managed to avoid until the late 90s. 
if you want a system like that, there are several available - you don't need to turn linux into a clone of mac or windows.  OS X is actually a pretty good system. 
really, if you hate unix or linux that much, why do you even try to use it? use something else that suits your needs better instead of trying to ruin the things about linux that make it good. 
 
 
     
      Posted Aug 12, 2013 14:05 UTC (Mon)
                               by mjg59 (subscriber, #23239)
                              [Link] (16 responses)
       
     
    
      Posted Aug 12, 2013 20:55 UTC (Mon)
                               by dlang (guest, #313)
                              [Link] (9 responses)
       
     
    
      Posted Aug 12, 2013 20:59 UTC (Mon)
                               by mjg59 (subscriber, #23239)
                              [Link] (8 responses)
       
     
    
      Posted Aug 12, 2013 21:10 UTC (Mon)
                               by dlang (guest, #313)
                              [Link] (7 responses)
       
     
    
      Posted Aug 12, 2013 21:25 UTC (Mon)
                               by mjg59 (subscriber, #23239)
                              [Link] (6 responses)
       
     
    
      Posted Aug 12, 2013 21:45 UTC (Mon)
                               by dlang (guest, #313)
                              [Link] (1 responses)
       
     
    
      Posted Aug 12, 2013 21:48 UTC (Mon)
                               by mjg59 (subscriber, #23239)
                              [Link] 
       
     
      Posted Aug 12, 2013 21:48 UTC (Mon)
                               by cas (guest, #52554)
                              [Link] (3 responses)
       
if that's the case then i wouldn't have noticed because i always install postfix instead of exim.  and i can assure you that when you do install an MTA in debian, it does indeed offer to create a basic configuration for you with about 4 or 5 options for you to choose from - one of which is "send all mail through a smarthost" 
 
 
     
    
      Posted Aug 12, 2013 21:56 UTC (Mon)
                               by mjg59 (subscriber, #23239)
                              [Link] 
       
     
      Posted Aug 13, 2013 8:48 UTC (Tue)
                               by anselm (subscriber, #2796)
                              [Link] (1 responses)
       
But that still leaves you out in the cold if your ISP wants you to submit mail to port 587 with TLS and SMTP AUTH. You will need to configure that manually – in a manner that depends on your specific MTA – after the installation.
 
The fact remains that ISP mail setups are diverse enough that any method of getting mail off the local machine – via a local MTA or an MUA – requires configuration. Instead of debating whether a system should come with a full-blown MTA like Sendmail by default, it would arguably be more productive to come up with a standardised scheme of representing ISP mail setups such that a user could be asked »What is your e-mail address (and possibly submission password)?« and the system could figure out automatically, for a reasonable majority of common ISPs, how to configure the local MTA or MUA of the user's choice to actually send mail using whatever access method that ISP supports, including goodies like encryption if it is available.
 
     
    
      Posted Aug 13, 2013 10:02 UTC (Tue)
                               by dlang (guest, #313)
                              [Link] 
       
Just the work of identifying the different types of access, enumerating them, and maintaining a list of per-ISP configs would be of immense value. 
then configuring MTA or MUA software from that data would be much easier. 
 
 
and by the way, as long as the actual work of configuring the MTA/MUA was modular and scriptable, this would also fit into the "Unix way" quite nicely :-) 
     
      Posted Aug 12, 2013 21:33 UTC (Mon)
                               by cas (guest, #52554)
                              [Link] (5 responses)
       
this is even more contrived than the last example someone posted. 
it's also a good example of why a local MTA is useful...you've got a lot more tricks up your sleeve to work around blockage with an MTA than you have with an MUA. 
 
next up, "try to send mail from a laptop with a dead battery, during a power outage with no wifi or wired network available.  you can't, see! and it's all the stupid MTA's fault". 
 
 
     
    
      Posted Aug 12, 2013 21:40 UTC (Mon)
                               by mjg59 (subscriber, #23239)
                              [Link] (4 responses)
       
     
    
      Posted Aug 12, 2013 21:53 UTC (Mon)
                               by cas (guest, #52554)
                              [Link] (3 responses)
       
stop pretending that this is the MTA's fault. 
 
     
    
      Posted Aug 12, 2013 22:00 UTC (Mon)
                               by mjg59 (subscriber, #23239)
                              [Link] (2 responses)
       
     
    
      Posted Aug 12, 2013 22:37 UTC (Mon)
                               by cas (guest, #52554)
                              [Link] (1 responses)
       
just saying "it's too hard" and giving up is not a solution. 
to configure either an MUA or an MTA there's a certain minimum amount of knowledge and understanding (or at least facts, like the smarthost name or IP address) required. 
the same questions will be asked of the user, and a useful answer required - whether that's asked in a dialog/whiptail popup, a GUI dialog, or a plain tty style. 
 
 
 
 
also, some here seem to think that only a GUI or ncurses app is an MUA. or that only automated scripts, cron job need to send mail via command-line interface. 
/usr/sbin/sendmail *IS* an MUA.  as is /usr/bin/mail. I can use them to send useful information to any email address....and I can do it reliably and conveniently, with consistent and documented command-line options. 
grep foobar /var/log/something.log | sendmail me@somewhere.example.com 
that's using an MUA.  if i want to get fancy, i can use other command-line tools to compress the log extract and send it as a properly formatted mime-attachment. 
 
 
     
    
      Posted Aug 12, 2013 22:46 UTC (Mon)
                               by mjg59 (subscriber, #23239)
                              [Link] 
       
Yup. As a result, email's a poor default for reporting things, and so josh is trying to fix the fact that there are still things in Debian that default to logging via email. As you've demonstrated, it's easy to bridge from syslog to email if you know that your local configuration supports that. 
     
      Posted Aug 12, 2013 1:37 UTC (Mon)
                               by cas (guest, #52554)
                              [Link] (10 responses)
       
extraordinary claims require extraordinary proof.  or, in other words, 
debian manages to configure an MTA (with about 4 or 5 simple options for the user at install time, two of which are "use a smarthost" and "i'll configure it myself").  debian's been doing that for well over 15 years, and manages to do it for at least exim (the default), postfix, and sendmail.  if fedora can't do that, it's not the MTA that's at fault, it's fedora. 
 
 
 
 
     
    
      Posted Aug 12, 2013 1:42 UTC (Mon)
                               by Cyberax (✭ supporter ✭, #52523)
                              [Link] (9 responses)
       
1) Install a recent Debian/Ubuntu, make sure 'mailutils' package is installed. The default Postfix option is "Internet site", btw. 
2) Do "mail -s 'test' blah@gmail.com'".  
3) Observe that it doesn't work from 99% of networks. 
I just did it, btw: 
 
     
    
      Posted Aug 12, 2013 2:16 UTC (Mon)
                               by cas (guest, #52554)
                              [Link] (8 responses)
       
not. 
your one contrived example does not constitute extraordinary proof of an extraordinary claim. 
you also seem to have some sort of comprehension problem where you ignore 99% of what has been said and focus on some trivial - or non-existant - point and then pretend that it's the smoking gun that proves your argument.  this was mildly annoying at first but has now become tedious, which is unforgivable. bye. 
 
     
    
      Posted Aug 12, 2013 2:21 UTC (Mon)
                               by Cyberax (✭ supporter ✭, #52523)
                              [Link] (7 responses)
       
I got a Ubuntu 13.04 CD image, installed it in a VM and tried to send an email. I have a bog-standard home Internet connection and I haven't performed anything outstanding at all. 
So you're proposing that we keep a _broken_ interface, that is impossible for normal users to configure and that hasn't worked for ages. All in the name of 'unixyness'. 
 
     
    
      Posted Aug 12, 2013 11:10 UTC (Mon)
                               by cas (guest, #52554)
                              [Link] (6 responses)
       
I have no idea, because I have no idea what you actually did or didn't do.  neither do i have any idea how dumb you're pretending to be to prove your point, or how dumb you actually are. 
what i do know is that configuring an MTA to do a trivial task like sending an email from a desktop or laptop to an address @gmail.com is NOWHERE NEAR AS DIFFICULT AS YOU ARE PRETENDING IT IS.  If it didn't work, it's because you deliberately broke it. 
 
> So you're proposing that we keep a _broken_ interface, that is 
it's nowhere near impossible.  for simple stuff like you claim to have tried, it's trivial. 
any user who finds answering a single question at install-time ("what's your smarthost?") too difficult is going to have *exactly* the same comprehension problem answering the same question for their pretty GUI MUA. 
 
 
     
    
      Posted Aug 12, 2013 11:12 UTC (Mon)
                               by Cyberax (✭ supporter ✭, #52523)
                              [Link] (2 responses)
       
What exactly you don't understand? 
>any user who finds answering a single question at install-time ("what's your smarthost?")  
     
    
      Posted Aug 12, 2013 11:35 UTC (Mon)
                               by cas (guest, #52554)
                              [Link] (1 responses)
       
what is a mail server?  what is a mail relay?  how many facetious questions can you ask in the name of pretending ignorance? 
 
 
 
     
    
      Posted Aug 12, 2013 11:47 UTC (Mon)
                               by Cyberax (✭ supporter ✭, #52523)
                              [Link] 
       
You know, fanboys like you is a major factor that'd been limiting Linux desktop for many years. 
     
      Posted Aug 15, 2013 15:45 UTC (Thu)
                               by smurf (subscriber, #17840)
                              [Link] (2 responses)
       
The default email installation works by looking up an MX record and connecting to port 25 there. 
The default firewall of almost every home OR corporate user explicitly blocks port 25 because too many viruses and worms install too many spambots on too many Windows systems with nonexistent or broken security. 
Do you NOW understand why installing a standard Unix-style mailer no longer make sense? 
Most home users no longer even have a smarthost they could use without SMTP authorization, so even if people knew what a smarthost is (which they typically don't) asking them about that at installation time will not be helpful. 
     
    
      Posted Aug 17, 2013 8:04 UTC (Sat)
                               by cas (guest, #52554)
                              [Link] (1 responses)
       
you are either mistaken or being deliberately deceptive. i'll give you the benefit of the doubt and assume you just haven't thought it through. 
configuring an MTA to use a smarthost/relay/mail-server with authentication is NO MORE DIFFICULT than doing exactly the same thing in an MUA. 
 
     
    
      Posted Aug 17, 2013 11:43 UTC (Sat)
                               by anselm (subscriber, #2796)
                              [Link] 
       
I'm not so sure. Kmail, for example, will probe a SMTP server for the best way to connect, including encryption and authentication. All the user needs to provide is the SMTP server's name and possibly their own user name and password for SMTP AUTH – and they get to put that into a reasonably obvious to find, convenient, and straightforward GUI dialog. It is also easy to maintain different »identities« with their own methods of sending mail to different submission servers, and to select between these when composing a message.
 
Getting an MTA like Sendmail or Postfix to do the same usually involves figuring out which of a set of fairly obscure configuration files to edit, which parameters to tweak in which way, and so on. Normally you get to edit at least two different text files and may even have to remember to run a file through some command-line program in order to put it into the binary database format that the MTA will actually look at. With most MTAs, it is possible to assign different sender addresses their own smart hosts etc., but doing so for a given MTA – even a fairly straightforward one like Postfix – is way more than people will be happy to have to learn just to be able to send e-mail.
 
In a distribution like Debian, the popular MTAs do come with a setup method that lets the installer pick one of a small number of alternatives (directly connected to the Internet/connected via a smart host/local mail only/…) but they fall far short of what is actually required in practice these days. There is ample scope for a user-facing mail configuration method that would collect mail submission information in a way that is not specific to any MUA/MTA, and would support package-specific »backends« that generated appropriate configuration settings for whichever software people are using on any given system.
 
     
    Fedora keeps sendmail — for now
      
Fedora keeps sendmail — for now
      
Fedora keeps sendmail — for now
      
Fedora keeps sendmail — for now
      
Fedora keeps sendmail — for now
      
Fedora keeps sendmail — for now
      
Fedora keeps sendmail — for now
      
      I got the impression, for some reason, that ssmtp was mostly abandoned and that msmtp was it's modern replacement. Are you still maintaining ssmtp? AFAIK, Gentoo has switched its default MTA away from ssmtp to msmtp.
      
          Fedora keeps sendmail — for now
      Fedora keeps sendmail — for now
      
Fedora keeps sendmail — for now
      
Fedora keeps sendmail — for now
      
> Because those mails are mostly noise.
Fedora keeps sendmail — for now
      
Fedora keeps sendmail — for now
      
Fedora keeps sendmail — for now
      
Fedora keeps sendmail — for now
      
Fedora keeps sendmail — for now
      
Foolish and hasty
      
      Logwatch was mentioned as a tool that requires an MTA to do its job.  But logwatch seems to be seen as a fairly old-school solution these days as well.
      
          Foolish and hasty
      Foolish and hasty
      
Fedora keeps sendmail — for now
      
Fedora keeps sendmail — for now
      
      I don't like the decision either but how about remembering who voted based on feelings rather then technical arguments and make sure to not vote for them next time. (Didn't mean that you voted for them maybe you did maybe not but you get the message).
      
          Fedora keeps sendmail — for now
      Fedora keeps sendmail — for now
      
who really wants it can always install it
Fedora keeps sendmail — for now
      
Fedora keeps sendmail — for now
      
Fedora keeps sendmail — for now
      
Fedora keeps sendmail — for now
      
Fedora keeps sendmail — for now
      
Fedora keeps sendmail — for now
      
Fedora keeps sendmail — for now
      
Fedora keeps sendmail — for now
      
Fedora keeps sendmail — for now
      The real problem is that the idea that a *nix system can send e-mail, send log messages to another server, and other things like that is considered "obsolete" and functionality that needs to be removed.
Fedora keeps sendmail — for now
      
Fedora keeps sendmail — for now
      The mindset that "in some cases this isn't useful, so we should remove it completely from the install and force anyone who wants to to install it manually" seems very wrong to me.
Fedora keeps sendmail — for now
      
Fedora keeps sendmail — for now
      I think that for an opensource/free software desktop, gcc should be installed by default.
Fedora keeps sendmail — for now
      
Fedora keeps sendmail — for now
      
Fedora keeps sendmail — for now
      
      But surely you agree that there are thousands of useful packages that should not be in the default install.  What I haven't seen yet is what you think sets MTAs apart from those.  Is it because an MTA has been in the default install in the past?
      
          Fedora keeps sendmail — for now
      Fedora keeps sendmail — for now
      
Fedora keeps sendmail — for now
      
Fedora keeps sendmail — for now
      
Fedora keeps sendmail — for now
      
provide it.
default should depend only on whether other defaults depend on it.
      Wow. That really was an epic meltdown. Lennart should learn to take criticism better. He's even worse at taking it than I am. :)
Fedora keeps sendmail — for now
      Fedora keeps sendmail — for now
      
Fedora keeps sendmail — for now
      
Fedora keeps sendmail — for now
      Fedora keeps sendmail — for now
      Fedora keeps sendmail — for now
      Fedora keeps sendmail — for now
      
Fedora keeps sendmail — for now
      Fedora keeps sendmail — for now
      
Fedora keeps sendmail — for now
      
Fedora keeps sendmail — for now
      
Fedora keeps sendmail — for now
      
Fedora keeps sendmail — for now
      
Fedora keeps sendmail — for now
      
Fedora keeps sendmail — for now
      
Fedora keeps sendmail — for now
      
Fedora keeps sendmail — for now
      
Fedora keeps sendmail — for now
      
Fedora keeps sendmail — for now
      
Fedora keeps sendmail — for now
      
Fedora keeps sendmail — for now
      
Fedora keeps sendmail — for now
      
Fedora keeps sendmail — for now
      
Fedora keeps sendmail — for now
      
> actually an MTA by default, so why should we pretend? [...]
> because only a few utilities like mailx still can read from there
> programs to send mail, but that is a small case which doesn't _require_
> a full MTA such as sendmail or postfix, a small shim like ssmtp is more
> appropriate, and should be listed as a dependency for programs which
> require it.
Fedora keeps sendmail — for now
      
Fedora keeps sendmail — for now
      
> And that's no crazier than expecting every app to fork and exec
> sendmail to send mail; it's just different.
> behalf of the user can invoke the user's MUA to do so
Fedora keeps sendmail — for now
      
>> And that's no crazier than expecting every app to fork and exec
>> sendmail to send mail; it's just different.
>> behalf of the user can invoke the user's MUA to do so
> MUA the user uses?
Fedora keeps sendmail — for now
      
> preferred mail client. 
> the idea that your preferred mode of operation might not be the
> perfect default for everyone. Nobody's talking about removing MTAs;
Fedora keeps sendmail — for now
      
Fedora keeps sendmail — for now
      
Fedora keeps sendmail — for now
      
Fedora keeps sendmail — for now
      
Fedora keeps sendmail — for now
      
Fedora keeps sendmail — for now
      
Fedora keeps sendmail — for now
      
Fedora keeps sendmail — for now
      
> has a *configured* MTA
> various mail protocols because individual user requirements
> don't necessarily match the global system configuration
> configuration just so I can send work email.
Fedora keeps sendmail — for now
      
"Special needs"???
Fedora keeps sendmail — for now
      
Fedora keeps sendmail — for now
      
"Some reason" is "no world-readable passwords in plaintext". 
And they are...?
Fedora keeps sendmail — for now
      
> I'd argue that anybody who keeps passwords on laptops unencrypted
> should have their head examined.
> And they are...?
Fedora keeps sendmail — for now
      
Yes, they ARE more secure. Because they use a keychain which can be unlocked only by my password which I have to enter each time I resume my computer from sleep.
Fedora keeps sendmail — for now
      
Fedora keeps sendmail — for now
      
      Please... It's starting to feel like an elementary school playground here. Could I ask everyone to relax a bit and hold off on the personal attacks?
      
          Enough
      Enough
      
Fedora keeps sendmail — for now
      
>> various mail protocols because individual user requirements
>> don't necessarily match the global system configuration
Fedora keeps sendmail — for now
      
Fedora keeps sendmail — for now
      
Fedora keeps sendmail — for now
      
1) A dysfunctional mail system (i.e. it requires manual editing of complicated config files - not an option for a general user)
2) Per-user service.
Fedora keeps sendmail — for now
      
Fedora keeps sendmail — for now
      
Fedora keeps sendmail — for now
      
Fedora keeps sendmail — for now
      
Whiskey Tango Foxtrot? This is NOT a special case! That's about as mundane use-case as it gets.
Fedora keeps sendmail — for now
      
Fedora keeps sendmail — for now
      
Fedora keeps sendmail — for now
      
Fedora keeps sendmail — for now
      
Fedora keeps sendmail — for now
      
Fedora keeps sendmail — for now
      
> user-friendliness these days, 
Fedora keeps sendmail — for now
      
Fedora keeps sendmail — for now
      
Fedora keeps sendmail — for now
      
Fedora keeps sendmail — for now
      
Fedora keeps sendmail — for now
      
Fedora keeps sendmail — for now
      
Fedora keeps sendmail — for now
      
Fedora keeps sendmail — for now
      
Fedora keeps sendmail — for now
      
Fedora keeps sendmail — for now
      Fedora keeps sendmail — for now
      
Fedora keeps sendmail — for now
      
Fedora keeps sendmail — for now
      
Fedora keeps sendmail — for now
      
Fedora keeps sendmail — for now
      
Fedora keeps sendmail — for now
      
Fedora keeps sendmail — for now
      
Fedora keeps sendmail — for now
      
> AT ALL for at least 15 years.
you can't just make shit up and pretend that your argument is somehow "proved".
Fedora keeps sendmail — for now
      
>Aug 11 18:41:10 virtlin postfix/master[36505]: daemon started -- version 2.9.6, configuration /etc/postfix
>Aug 11 18:41:23 virtlin postfix/pickup[36508]: E903A2007B5: uid=1000 from=<cyberax@virtlin>
>Aug 11 18:41:23 virtlin postfix/cleanup[36535]: E903A2007B5: message-id=<20130812014123.E903A2007B5@virtlin>
>Aug 11 18:41:23 virtlin postfix/qmgr[36509]: E903A2007B5: from=<cyberax@virtlin>, size=338, nrcpt=1 (queue active)
>Aug 11 18:41:24 virtlin postfix/smtp[36537]: connect to gmail-smtp-in.l.google.com[2a00:1450:4001:c02::1a]:25: Network is unreachable
>Aug 11 18:41:54 virtlin postfix/smtp[36537]: connect to gmail-smtp-in.l.google.com[173.194.70.27]:25: Connection timed out
Fedora keeps sendmail — for now
      
Fedora keeps sendmail — for now
      
WHAT IS FREAKING 'CONTRIVED' IN THIS EXAMPLE???
Fedora keeps sendmail — for now
      
> impossible for normal users to configure 
Fedora keeps sendmail — for now
      
I described it - I took a stock Ubuntu image, installed it in a VM and tried to send a mail.
What IS a smarthost?
Fedora keeps sendmail — for now
      
Fedora keeps sendmail — for now
      
Fedora keeps sendmail — for now
      
Fedora keeps sendmail — for now
      
Fedora keeps sendmail — for now
      configuring an MTA to use a smarthost/relay/mail-server with authentication is NO MORE DIFFICULT than doing exactly the same thing in an MUA.
 
           