Couldn’t send mail() via php on Debian, Exim mailserver

I came to this problem, after testing mail function and exim, everything worked perfectly without error, but I didn’t receive e-mail. Then I tried to test exim, type exim -bt [email protected], if you receive the message – “Sendmail/Exim error “Mailing to remote domains not supported”, you need to reconfigure Exim to send the e-mail to remote domains.

Please, type – dpkg-reconfigure exim4-config,  under root account select – “internet site; mail is sent and received directly using SMTP”  and that’s all.

Leave a Reply

Your email address will not be published. Required fields are marked *