I have a server in which the user requests to register in a portal and I send an email with the data.
This email always reaches spam, but it is an email with a username and password, nothing more.
How could I configure the server so that it reaches the inbox?
It is an Ubuntu Server 15.10.
I recommend you to use Email Server Test , which is a perfect tool for this kind of cases.
Basically you send an email to
[email protected]
and they reply with a detailed report of what is going on (and it will be easy to solve). What this tool looks at is:Also, as Jordi Castilla indicates , you can check in MXtoolbox if your IP/Domain is on a blacklist (although the BlackList and the GreyList are already checked in the previous section)
There may be several reasons why an email arrives in a SPAM box instead of in the inbox without being included in any blacklist.
mail()
PHP function, use a library like PHPMailer that supports sending by SMTP/S and configure the outgoing server of your mail provider, don't use the MTA of your web server.If you know how to use spamassasin, I would recommend passing a lint to an email message you have sent to find out what anti-spam rules you are complying with in order to try to fix or avoid them.
I'm sorry, but without code or example of the mail content or any other information I can't help you further.
By not giving many details of how you are doing it, it makes me assume that you are sending the emails by
mail()
, if so, a good function to send emails and not get spam, is to usePHPMailer
Github , your emails would be sent with authentication and using SSL, avoiding reaching the SPAM folder.