Docker version of Mayan 2.7.3: sending email via gmail

145 views
Skip to first unread message

Phiroz

unread,
Oct 17, 2017, 3:38:45 AM10/17/17
to Mayan EDMS
hi All,

so i've been searching forums to figure this out. i'm wondering if anyone else has encountered this.

this is my current setup.

clean ubuntu 16.04 VM
docker image of mayan 2.7.3
using mysql

in mysql
table mailer_usermailer is holding the smtp information.
backend_path: mailer.mailers.DjangoSMTP
backend_data: {"use_tls": true, "host": "smtp.gmail.com", "user": "x...@gmail.com", "use_ssl": false, "password": "xxxxxx", "port": 587}

table mailer_usermailerlogentry is showing me 
(530, '5.5.1 Authentication Required. Learn more at\n5.5.1  https://support.google.com/mail/?p=WantAuthError u8sm14597323pgp.17 - gsmtp', u'webmaster@localhost')

table mailer_logentry is empty

in Gmail 
i have enable the 'Allow less secure apps:'

What happens:
under system ->settings -> mailing profiles. i create the profile and try the test email. it doesnt display anything and jumps back to the mailing profiles.
i click on log to see if anything was logged and it is empty.

i've also preview a document and action -> email link
a msgbox indicating the msg has been sent to the q popup. 

i've tried using 
docker exec -i -t mayan-edms /bin/bash
to get a shell into the container, and 
/usr/local/lib/python2.7/dist-packages/mayan/error.log
doesnt hold any recent errors.

i have other services using that email to send out without issues.
so i'm not sure where to check next.
 how do i check what information it's using? 
i want to try this via command line https://docs.djangoproject.com/en/dev/topics/email/
if i'm not wrong by default its in settings.py, but since the information is on the database i become lost.

thanks in advance for any replies.




Reply all
Reply to author
Forward
0 new messages