Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to be able to send email from utility/batch/launchd scripts via my gmail account and the mailx client that is bundled in OS X Lion. I cannot find how to configure this. I found which describes doing this for mutt, but I'd rather not have to install mutt. I do have Thunderbird installed and use that to read/send mail (instead of

When I run mailx -v -s subject < file.txt I get no errors, but instead of getting an SMTP transaction log, mailx tells me

Mail Delivery Status Report will be mailed to <David>.

Worse, there is no /var/mail/David folder, so this report appears to go into a bitbucket.

share|improve this question

One way to fix this is to install the official server app in order to re-enable this feature. You don't have to setup a mail server through the app. Just installing it will allow use of mailx through the command line.

In the past, you had to buy and install OS X server as a separate product and now it's available from the App Store and gets installed on top of the normal OS.

share|improve this answer
Do you mean "OS X Server"? Or is there a specific mail server app? – djb Aug 7 '12 at 15:58

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.