How can I get mail to go out?

55 views
Skip to first unread message

C.J.S. Hayward

unread,
Jun 7, 2016, 7:06:33 AM6/7/16
to django...@googlegroups.com

I have a Pinax installation where a classic Django "python manage.py send_mail doesn't seem to be working.

I have a Debian server (Linux www 4.5.0-x86_64-linode65 #2 SMP Mon Mar 14 18:01:58 EDT 2016 x86_64 GNU/Linux), and postfix is installed.

It is working at least far enough that if, from the command line, I type "echo foo | Mail ______________", it behaves predictably well and I receive the test email without problems.

However, the Django mail service on my Pinax installation seems to be a noop. I have the following one-minute cron entry:

* * * * * /home/cjsh/bin/______________-mail

The referenced script is:

#!/bin/bash
source /home/cjsh/______________-env/bin/activate
cd /home/cjsh/______________
python manage.py send_mail >> /tmp/______________-mail.out 2>&1

When I do a tail -f on the output file, and I do not do anything to generate a new email, the output makes sense:

------------------------------------------------------------------------
acquiring lock...
acquired.
releasing lock...
released.

0 sent; 0 deferred;
done in 0.01 seconds

And if I request a password reset to trigger sending a test email, the output looks like that is being handled appropriately, too:

------------------------------------------------------------------------
acquiring lock...
acquired.
sending message 'Password reset e-mail sent' to _________________
releasing lock...
released.

1 sent; 0 deferred;
done in 0.15 seconds

But here's the problem. Although it reports an email is successfully sent, I have never seen an email sent by Pinax, including Gmail searches for "in:anywhere".

What, if anything, can I do to either:

  1. Install packages so that Pinax will have everything it needs for routine Django "python manage.py send_mail" invocations to work, or
  2. Configure Pinax to go through my pobox or gmail account, or
  3. Do something else so that routine email notifications from Pinax go out?

Thanks,



--
Christos Jonathan Seth Hayward
C.J.S. Hayward, a User Experience professional.

Loads of talent and a thorough grounding in all major academic disciplines supporting User Experience.

C.J.S. Hayward

unread,
Jun 7, 2016, 9:59:28 AM6/7/16
to django...@googlegroups.com
I uninstalled postfix and installed sendmail; now, for the first time, a password reset email went through.


Thanks,
Reply all
Reply to author
Forward
0 new messages