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

No Message-ID header #51

Open
rojer opened this issue Aug 9, 2022 · 4 comments
Open

No Message-ID header #51

rojer opened this issue Aug 9, 2022 · 4 comments

Comments

@rojer
Copy link

rojer commented Aug 9, 2022

mailsend-go (and mailsend, for that matter) does not generate the Message-ID header, which is mandatory.
GMail recently began rejecting messages without it[1], so when sending to Gmail wither directly to mx or via a relay that is not kind enough to add it[2], the message bounces.

[1] 550-5.7.1 [...] Messages missing a valid messageId header are not 550 5.7.1 accepted
[2] e.g. Postfix does not, by default, but can be made to by setting always_add_missing_headers = yes

@rojer
Copy link
Author

rojer commented Aug 9, 2022

@muquit
Copy link
Owner

muquit commented Aug 10, 2022

I did not add it, because there is no guarantee that SMTP server will accept it. It's the job of SMTP server to add that header and a lot of server will over-write it if specified by mail user agent like mailsend. I will think about adding an option. In the meantime you can use header command to add a customer Message-ID. Example:

 header -name "Message-ID" -value "<1234@local.machine.example>"

Thanks.

@rojer
Copy link
Author

rojer commented Aug 10, 2022

as long as it follows the format specified in the RFC, it should. i think mailsend should at least try.
in my case i was dropping things on the floor because of this (i had mailsend submit directly to gmail, then changed to my own relay only to find that postfix won't add it by default either).

@SirHumphreyAppleby
Copy link

You may get different results in Postix using port 587 vs 25. A submission server may add a message-id (bad client), but a relay is prohibited from doing so. RFC5321.

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

3 participants