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

MessageId is required in order to avoid spam #52

Open
impronta48 opened this issue May 2, 2023 · 0 comments
Open

MessageId is required in order to avoid spam #52

impronta48 opened this issue May 2, 2023 · 0 comments

Comments

@impronta48
Copy link

impronta48 commented May 2, 2023

I've just discovered that exchange will consider as spam an email without a messageId.

Is there a reason why you set it to false in SenderShell.php?
Line 122
my proposal is to set it to true (or not set at all to use the default)

                $sent = $email
                    ->setTo($e->email)
                    ->setSubject($e->subject)
                    ->setEmailFormat($e->format)
                    ->addHeaders($headers)
                    ->setViewVars($viewVars)
                    ->setMessageId(true)
                    ->setReturnPath($email->getFrom());

See the results of the recipt

                              X-Spam-Flag: NO
                              
                              X-Spam-Score: -2.512
                              
                              X-Spam-Level:
                              
                              X-Spam-Status: No, score=-2.512 tagged_above=-9999 required=5

               tests=[ALL_TRUSTED=-1, BAYES_00=-1.9, DKIM_SIGNED=0.1,

               DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,

               HTML_MESSAGE=0.001, MIME_HTML_ONLY=0.1, **MISSING_MID=0.497**,

               SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001]

               autolearn=ham autolearn_force=no
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