mail-in-a-box / mailinabox

Mail-in-a-Box helps individuals take back control of their email by defining a one-click, easy-to-deploy SMTP+everything else server: a mail server in a box.
https://mailinabox.email/
Creative Commons Zero v1.0 Universal
13.98k stars 1.44k forks source link

my mails are going to gmail spam folder #1726

Open vamshivk12 opened 4 years ago

vamshivk12 commented 4 years ago

i have installed mail in a box in aws ec2 instance. i have sent a mail to gmail it is going to spam folder but sent to other mails it is going to inbox.why mails are going to spam folder in gmail only.any one can help me.

jvolkenant commented 4 years ago

A lot of reasons.

vamshivk12 commented 4 years ago

IP is not in blacklist and how to solve this problem

nomandera commented 4 years ago

Consider changing IP.

Anecdotal comparison but I had a similar problem with Microsoft and no amount of form filling would solve it. (also IP not on any black list and passing all tests)

I changed IP and the fix was instant.

vamshivk12 commented 4 years ago

but mails are going to inbox of company mails but problem with gmail yahoo

badsyntax commented 4 years ago

Are you certain the DNS settings are all correct? In Gmail, you can use the "show original" option of the received email. From there Gmail will show the status of various checks it does with status pass or fail. Use that to debug.

0pis commented 4 years ago

A reputation has to be built for Gmail, Yahoo, etc. In some cases you need to reach out and tell them to add your IP to a whitelist.

IE. https://answers.microsoft.com/en-us/outlook_com/forum/all/how-to-request-to-whitelist-a-domain-on-microsoft/3b6e2b4c-32e9-4e76-af38-dd0982e526b6

I had cases where the email will arrive OK to a different domain not hosted under any of the above but will go to spam once sent there. Hope this sheds some light.

0pis commented 4 years ago

https://github.com/mail-in-a-box/mailinabox/blob/03bff5292b5cf3b0947d04ac7b3f93e132bc0c31/README.md#L91

Close issue?

JustasBelevicius commented 4 years ago

I had a similar issue the first time I set up MIAB. Apparently my DNS records weren't fully setup. I think adding DKIM, DMARC and SPF entries helped, also I think you should verify your email/domain on google postmaster https://gmail.com/postmaster/. I would also recommend using https://dkimvalidator.com/ to check what needs to be fixed.

jvolkenant commented 4 years ago

When you go through the entire setup https://mailinabox.email/guide.html, those records are created for you automatically. For those that use an external DNS server, all the records need to be setup at that DNS provider in order for DKIM/DMARC/SPF etc to be available to be queried properly.