|
|
Subscribe / Log in / New account

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

what you're missing is that it's not the MUAs job to figure out whether the local MTA is configured or not, same as it's not the MUAs job to figure out if the filesystem is corrupted or if the network is up or any one of a million other things that it should just rely on other parts of the system to do.

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.


to post comments

Fedora keeps sendmail — for now

Posted Aug 12, 2013 0:10 UTC (Mon) by Cyberax (✭ supporter ✭, #52523) [Link] (38 responses)

Are you living is some impervious bubble?

System-level MTAs in default installations haven't been working AT ALL for at least 15 years.

So your choices are:
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

Posted Aug 12, 2013 0:43 UTC (Mon) by dlang (guest, #313) [Link] (26 responses)

> System-level MTAs in default installations haven't been working AT ALL for at least 15 years.

we are living in different worlds.

Works for me.

Fedora keeps sendmail — for now

Posted Aug 12, 2013 0:47 UTC (Mon) by Cyberax (✭ supporter ✭, #52523) [Link] (8 responses)

Ok.

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.

Fedora keeps sendmail — for now

Posted Aug 12, 2013 1:51 UTC (Mon) by cas (guest, #52554) [Link] (7 responses)

1. sending mail from a public wifi is a special case that needs to be authenticated - nobody sane allows mail clients to connect and send from outside their network without authentication.

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.

Fedora keeps sendmail — for now

Posted Aug 12, 2013 1:56 UTC (Mon) by Cyberax (✭ supporter ✭, #52523) [Link] (6 responses)

> 1. sending mail from a public wifi is a special case that needs to be authenticated - nobody sane allows mail clients to connect and send from outside their network without authentication.
Whiskey Tango Foxtrot? This is NOT a special case! That's about as mundane use-case as it gets.

Ok, I get it. You don't even have an idea how people actually use their computers.

Fedora keeps sendmail — for now

Posted Aug 12, 2013 2:10 UTC (Mon) by cas (guest, #52554) [Link] (5 responses)

no, it's just that i think - actually, *know* - that sending mail from a starbucks wifi connection is only a tiny subset of what people do with their computers.

optimising for that one special case is, to put it bluntly, FITH.

Fedora keeps sendmail — for now

Posted Aug 12, 2013 2:22 UTC (Mon) by Cyberax (✭ supporter ✭, #52523) [Link] (2 responses)

I made a test on my home Internet connection. Same result.

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?

Fedora keeps sendmail — for now

Posted Aug 12, 2013 11:10 UTC (Mon) by cas (guest, #52554) [Link] (1 responses)

mmmm yum. i love the taste of strawman

Fedora keeps sendmail — for now

Posted Aug 12, 2013 11:14 UTC (Mon) by Cyberax (✭ supporter ✭, #52523) [Link]

So care to answer?

A significant majority of home users simply can not send email using plain SMTP. What are you proposing to do?

Fedora keeps sendmail — for now

Posted Aug 12, 2013 2:35 UTC (Mon) by josh (subscriber, #17465) [Link] (1 responses)

Systems privileged to act as mail servers, running on an IP that's not blacklisted, on a network that allows outbound unencrypted SMTP to random MXes, and maintained well enough to actually maintain reasonable deliverability metrics, are the vanishingly small special case compared to end-user client systems. Maintaining such a system requires non-trivial expertise. Congratulations, it sounds like you have it. Don't assume every random end-user does; it's far easier to tell your MUA "my mail server is over there".

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

Fedora keeps sendmail — for now

Posted Aug 12, 2013 11:33 UTC (Mon) by cas (guest, #52554) [Link]

> it's far easier to tell your MUA "my mail server is over there".

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
> user-friendliness these days,

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.

Fedora keeps sendmail — for now

Posted Aug 12, 2013 14:05 UTC (Mon) by mjg59 (subscriber, #23239) [Link] (16 responses)

Perform a stock Debian install, performing no additional configuration steps. Connect this computer to a standard residential internet connection which blocks outgoing port 25 (as the vast majority do). Are you able to send email to arbitrary email addresses?

Fedora keeps sendmail — for now

Posted Aug 12, 2013 20:55 UTC (Mon) by dlang (guest, #313) [Link] (9 responses)

If you set the Debian install to use your ISPs mail server as it's smarthost, then yes, you probably can send mail to arbitrary addresses on the Internet (at least, if you send them from an e-mail address your ISP assigned to you)

Fedora keeps sendmail — for now

Posted Aug 12, 2013 20:59 UTC (Mon) by mjg59 (subscriber, #23239) [Link] (8 responses)

That would be an additional configuration step, so it doesn't answer my question.

Fedora keeps sendmail — for now

Posted Aug 12, 2013 21:10 UTC (Mon) by dlang (guest, #313) [Link] (7 responses)

that configuration is done during the install, as others have pointed out.

Fedora keeps sendmail — for now

Posted Aug 12, 2013 21:25 UTC (Mon) by mjg59 (subscriber, #23239) [Link] (6 responses)

Having just performed a Debian install, I can assure you that it isn't.

Fedora keeps sendmail — for now

Posted Aug 12, 2013 21:45 UTC (Mon) by dlang (guest, #313) [Link] (1 responses)

since you are saying that this has to work without any configuration step, I'm surious as to what MUA you are using that works without any configuration.

Fedora keeps sendmail — for now

Posted Aug 12, 2013 21:48 UTC (Mon) by mjg59 (subscriber, #23239) [Link]

Sigh. No, that's not what I'm saying. What I'm saying is that you can't depend on there being a system-wide MTA that can deliver to the outside world, and as such any software that's expected to run on arbitrary machines cannot rely on the sendmail command doing anything useful.

Fedora keeps sendmail — for now

Posted Aug 12, 2013 21:48 UTC (Mon) by cas (guest, #52554) [Link] (3 responses)

if that's the case, it would only be because people like you have succeeded in having an MTA (the default used to be exim) excluded from the default install. and then to add insult to injury you triumphantly claim "look, it doesn't work, i told you so!".

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"

Fedora keeps sendmail — for now

Posted Aug 12, 2013 21:56 UTC (Mon) by mjg59 (subscriber, #23239) [Link]

Exim's still installed by default, it's just not configured to do remote delivery.

Fedora keeps sendmail — for now

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.

Fedora keeps sendmail — for now

Posted Aug 13, 2013 10:02 UTC (Tue) by dlang (guest, #313) [Link]

i don't think that you would find anyone who is opposed to such a tool being created.

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 :-)

Fedora keeps sendmail — for now

Posted Aug 12, 2013 21:33 UTC (Mon) by cas (guest, #52554) [Link] (5 responses)

oh no! the sky is falling! an ISP that blocks smtp makes sending mail difficult. and it's all the MTA's fault.

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

Fedora keeps sendmail — for now

Posted Aug 12, 2013 21:40 UTC (Mon) by mjg59 (subscriber, #23239) [Link] (4 responses)

The vast majority of residential ISPs block outgoing port 25 traffic, and those that don't will probably still be unable to deliver mail because their IP blocks will be in SORBS. This isn't a contrived example. This is the common case.

Fedora keeps sendmail — for now

Posted Aug 12, 2013 21:53 UTC (Mon) by cas (guest, #52554) [Link] (3 responses)

and the user will have just as much (or more) difficulty configuring an MUA to work around the block.

stop pretending that this is the MTA's fault.

Fedora keeps sendmail — for now

Posted Aug 12, 2013 22:00 UTC (Mon) by mjg59 (subscriber, #23239) [Link] (2 responses)

This discussion started with you claiming "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." Perhaps that's how it should be - there are clear benefits to things being configured in one place, and there are clear benefits to not reimplementing SMTP dozens of times. But, unfortunately, that's not how it is. If you want to send mail, you can't depend on the sendmail command.

Fedora keeps sendmail — for now

Posted Aug 12, 2013 22:37 UTC (Mon) by cas (guest, #52554) [Link] (1 responses)

and as i said several times previously, you can't depend on the MUA being configured or working either.

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.

Fedora keeps sendmail — for now

Posted Aug 12, 2013 22:46 UTC (Mon) by mjg59 (subscriber, #23239) [Link]

"and as i said several times previously, you can't depend on the MUA being configured or working either."

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.

Fedora keeps sendmail — for now

Posted Aug 12, 2013 1:37 UTC (Mon) by cas (guest, #52554) [Link] (10 responses)

> System-level MTAs in default installations haven't been working
> AT ALL for at least 15 years.

extraordinary claims require extraordinary proof. or, in other words,
you can't just make shit up and pretend that your argument is somehow "proved".

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.

Fedora keeps sendmail — for now

Posted Aug 12, 2013 1:42 UTC (Mon) by Cyberax (✭ supporter ✭, #52523) [Link] (9 responses)

Simple.

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:
>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

Posted Aug 12, 2013 2:16 UTC (Mon) by cas (guest, #52554) [Link] (8 responses)

> Simple.

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.

Fedora keeps sendmail — for now

Posted Aug 12, 2013 2:21 UTC (Mon) by Cyberax (✭ supporter ✭, #52523) [Link] (7 responses)

> your one contrived example does not constitute extraordinary proof of an extraordinary claim.
WHAT IS FREAKING 'CONTRIVED' IN THIS EXAMPLE???

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

Fedora keeps sendmail — for now

Posted Aug 12, 2013 11:10 UTC (Mon) by cas (guest, #52554) [Link] (6 responses)

> WHAT IS FREAKING 'CONTRIVED' IN THIS EXAMPLE???

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
> impossible for normal users to configure

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.

Fedora keeps sendmail — for now

Posted Aug 12, 2013 11:12 UTC (Mon) by Cyberax (✭ supporter ✭, #52523) [Link] (2 responses)

> I have no idea, because I have no idea what you actually did or didn't do.
I described it - I took a stock Ubuntu image, installed it in a VM and tried to send a mail.

What exactly you don't understand?

>any user who finds answering a single question at install-time ("what's your smarthost?")
What IS a smarthost?

Fedora keeps sendmail — for now

Posted Aug 12, 2013 11:35 UTC (Mon) by cas (guest, #52554) [Link] (1 responses)

> What IS a smarthost?

what is a mail server? what is a mail relay? how many facetious questions can you ask in the name of pretending ignorance?

Fedora keeps sendmail — for now

Posted Aug 12, 2013 11:47 UTC (Mon) by Cyberax (✭ supporter ✭, #52523) [Link]

Actually, what is a mailserver? Most people simply don't care - they want their systems work reliably and with minimal setup.

You know, fanboys like you is a major factor that'd been limiting Linux desktop for many years.

Fedora keeps sendmail — for now

Posted Aug 15, 2013 15:45 UTC (Thu) by smurf (subscriber, #17840) [Link] (2 responses)

Please think before replying.

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.

Fedora keeps sendmail — for now

Posted Aug 17, 2013 8:04 UTC (Sat) by cas (guest, #52554) [Link] (1 responses)

no, there's nothing to understand because you're still pretending that that is an issue that affects *ONLY* an MTA, that MUAs are somehow magically immune.

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.

Fedora keeps sendmail — for now

Posted Aug 17, 2013 11:43 UTC (Sat) by anselm (subscriber, #2796) [Link]

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.

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.


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds