Report this

What is the reason for this report?

MSMTP says the email is queued but never get's sent

Posted on December 31, 2014

I installed MSMTP as my mail client on my Ubuntu LAMP on 14.04 droplet. I followed a tutorial and managed to get PHP using it to send mail. Testing via Wordpress works beautifully.

I’ve got it setup to use Mandrill to send mail. I can view the Mandrill logs as well as the Droplet logs at /var/log/msmtp.log.

Now I’m trying to get cron to use msmtp to send it’s notifications. The first step was to verify my user could send mail via the command line. Well, that’s where I’ve got stuck. Using this command:

echo -e "Subject: Test Mail\r\n\r\nThis is a test mail" | msmtp --debug --from=default -t myemail@gmail.com

I see the log come into my msmtp.log file, and everything is reported as OK. I even get a queued number, something like:

Dec 31 03:56:50 host=smtp.mandrillapp.com tls=on auth=on user=joel@domain.com from=default recipients=myemail@gmail.com mailsize=40 smtpstatus=250 smtpmsg='250 2.0.0 Ok: queued as E467F1C02F5' exitcode=EX_OK

But this never get’s to Mandrill. Well from what I can tell it doesn’t.

Can anyone help me get through the first step of sending mail from the cmd line?

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.