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

Alert emails not setting From header correctly #11

Open
remjx opened this issue Apr 3, 2020 · 0 comments
Open

Alert emails not setting From header correctly #11

remjx opened this issue Apr 3, 2020 · 0 comments

Comments

@remjx
Copy link
Contributor

remjx commented Apr 3, 2020

In the outbound SMTP email request, should the From header field be set to the Monit server domain, or the domain of the username? I am getting this error and after contacting my host they said that the From header is incorrect.

In my example, instead of F=<[email protected]> should it be F=<[email protected]>?

Error returned to monit:

Mail: Mailserver response error -- 550-"Your IP: 18.215.185.21 : Your domain ip-172-26-4-180.ec2.internal is not allowed in header From"

More detailed logs from the host server (Namecheap SMTP server):

2020-04-03 16:35:30 H=ec2-xx-xxx-xxx-xx.compute-1.amazonaws.com (ip-yyy-yy-y-yyy) [xx.xxx.xxx.xx]:57152 F=<[email protected]> A=dovecot_plain:[email protected] rejected RCPT <[email protected]>: "Your IP: xx.xxx.xxx.xx : Your domain ip-yyy-yy-y-yyy.ec2.internal is not allowed in header From"

I also tried Amazon SES SMTP server and get this error:

Mail: Mailserver response error -- 530 Must issue a STARTTLS command first

In my .monitrc file I am just setting Username, Password, Host, and Port. I am able to send e-mail fine through my local Thunderbird client through the SMTP server with these credentials so it seems to be an issue with this plugin.

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

1 participant