Now, if sendmail isn't easy
As reported (in German) about my trouble with Cablecom in Switzerland, I am switching my sendmail to using a smarthost setup, which will route outgoing mail through my provider. It's kind of sad and a defeat for the free Internet, but what gives?
Sendmail configuration is often rumoured to be hard. I've already played around with it some times and I've read the bat book (the sendmail book from O'Reilly) a couple of times. Plus I had already grokked the concept of smarthost. So it was pretty easy. To my well kept m4 configuration file I just added one line:
Then I regenerated the cf file with
make conffilename.cfcopyed the resulting file to /etc/mail/ (where it is linked to become sendmail.cf) and then I restarted sendmail:
kill -HUP `head -1 /var/run/sendmail.pid`A few checks confirmed that mail is indeed flowing. So, after all, sendmail is easy.