Now, if sendmail isn't easy
That's what I call a smart host
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:
define(`SMART_HOST', `smtp:mail.tbwil.ch')dnl
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.