Fedora keeps sendmail — for now
Fedora keeps sendmail — for now
Posted Aug 11, 2013 23:48 UTC (Sun) by cas (guest, #52554)In reply to: Fedora keeps sendmail — for now by mjg59
Parent article: Fedora keeps sendmail — for now
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
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.
