Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make members outgoing mail work #4

Open
wvengen opened this issue Mar 19, 2019 · 5 comments
Open

Make members outgoing mail work #4

wvengen opened this issue Mar 19, 2019 · 5 comments

Comments

@wvengen
Copy link
Member

wvengen commented Mar 19, 2019

The mailserver (smtp) and Foodsoft (foodsoft) use a mail relay specified by the environment variables SMTP_ADDRESS, SMTP_PORT, SMTP_USER_NAME, SMTP_PASSWORD. The members app (members) also needs to honour these for outgoing mail to work.

@wvengen
Copy link
Member Author

wvengen commented Mar 20, 2019

The better way would be to start using something like pyramid_mailer, but as we're currently calling sendmail, we may just as well replace that with a basic program to deliver to a smarthost.

@wvengen
Copy link
Member Author

wvengen commented Mar 20, 2019

I've added ssmtp to relay mail to the smtp instance.
Now when I try to send payment reminders from Foodsoft, I get the following error:

Vokomokum request failed: <type 'exceptions.AssertionError'>: 

and the mail server mentions:

postfix/smtpd[75]: connect from vkmkm-deploy_members_1.vkmkm-deploy_default[172.21.0.8]
postfix/smtpd[75]: lost connection after MAIL from vkmkm-deploy_members_1.vkmkm-deploy_default[172.21.0.8]
postfix/smtpd[75]: disconnect from vkmkm-deploy_members_1.vkmkm-deploy_default[172.21.0.8] helo=1 mail=1 commands=2

I can see in captured network traffic that the smtp connection is closed after MAIL FROM:<finance@...> and 2.1.0 Ok server response.

@wvengen
Copy link
Member Author

wvengen commented Mar 20, 2019

@nhoening any idea what this could be?
And earlier I saw the following error:

WARNI [members.utils.mail][waitress] Could not send mail to , subject "Payment request / Verzoek tot betaling"(mail filename is MemberNo2): 

@nhoening
Copy link

Hm, difficult for me to judge right now. Maybe we can setup a call sometime to talk this through?

@nhoening
Copy link

Thanks for the work here btw!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants