Getting sendmail to work on OS X 10.5 (Leopard)

With the aid of a couple of helpful blogs (here and here), I have managed to get command-line email-sending capability via sendmail going, at least as long as I’m on UCSD campus:


$ sudo postfix start
$ sudo postconf -e myhostname=
$ sudo postconf -e relayhost=

And sendmail just works now! Pretty cool, eh?

UPDATE: it’s a bit tricky to get Bcc: effects with sendmail, but I’ve found a way to do it. Specify all the addresses that you want to receive an email as arguments of sendmail, and then include an explicit From: line in standard input. For example:


*** Filename: sendmail.test ***
To: Jane Doe
From: John Doe
Subject: bcc test
(put what you want here)
*** End file sendmail.test ***


$ sendmail abc@def.com vw@xyz.com < sendmail.test

Post a Comment

You must be logged in to post a comment.