Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

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 http://www.andrews-corner.org/mutt.html#sending 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 Mail.app).

When I run mailx -v -s subject myemailaddress@gmail.com < 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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.