Email makes it to Gmail, but not Squirrelmail

50 views
Skip to first unread message

Paco de Kumite

unread,
Dec 3, 2012, 3:47:46 PM12/3/12
to django...@googlegroups.com
Hi.  I have a little view that sends an email.  I looks like this

msg = EmailMultiAlternatives(subject, text_content, from_email, [to])
msg.attach_alternative(html_content, "text/html")
msg.send()

where text_content is a simple text message and html_content is, well, some html content.

The html message gets sent to Gmail without any problems, and I can see from there (In the "Show Original" thing) that the text version went through ok too.  But when I send it to my other domain email, and check my inbox via Squirrelmail, I don't get the email at all.

I'm just wondering, this probably isn't Django's fault is it?  I'm thinking it has something to do with my mail server not being properly configured (e.g. no SPF yet and some other stuff I overlooked just to get it going), and maybe Gmail is just smart enough to sort it all out, where as my other domain server (i.e. the one using squirrelmail) just rejects the mail outright.  I'm just looking for some feedback.  Thanks.

Andreas Pritschet

unread,
Dec 3, 2012, 3:53:36 PM12/3/12
to django...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Paco,
as the mail makes it to your Gmail account, but not to your
self-hosted server runnig squirrelmail I indeed would assume that the
problem lies with the mail server.
To check this I would take a look at the mail log of the server
running your Django view and the mail log of the server running
squirrelmail.

At least one of the logs should show some clues about the whereabouts
of the mail.

CU andi

Andreas Pritschet
Phone: +49 151 11728439
Homepage: http://www.pritschet.me
GPG Pub Key: http://goo.gl/4mOsM
> -- You received this message because you are subscribed to the
> Google Groups "Django users" group. To view this discussion on the
> web visit
> https://groups.google.com/d/msg/django-users/-/jsd2cjKC1fgJ. To
> post to this group, send email to django...@googlegroups.com. To
> unsubscribe from this group, send email to
> django-users...@googlegroups.com. For more options, visit
> this group at http://groups.google.com/group/django-users?hl=en.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with undefined - http://www.enigmail.net/

iQEcBAEBAgAGBQJQvRFQAAoJEMMdfJo8Sd0M5JMH/RgpuZmrC+z8PbAa85XWkf7o
6lrhP/meUZhNwOqxUzhQgOqDCVoCMXFVO4czROMQSKy/7Qdoiqx3VSIQwgVQVApO
Uo3bo/NDLR8UH7zzPxKJiKDUha6QXISit4S++g3whlPdXvvoRMJ2Jna38VEOJUzU
CvaUn6TWYfqju0OgmN3aQkOdEw972vMSfSmmCJtzDtEDwxee/iP5ZcmOoCdyyLk7
1H7/KCg9BE5hj6HGomHuBCalsEcztQvL1FZ7z8dumO1CuKaFS5+Y7kctnJLRTznt
l6ISN3C3W5/2qSG3HhNMDH+7M7xdWQO0WUA7N0yf4ROaXHWlGftI3WKTABPFXGg=
=2vq6
-----END PGP SIGNATURE-----
Reply all
Reply to author
Forward
0 new messages