cant send email from php using sendmail
I have sendmail installed on my linode with the only purpose to use it for sending emails from PHP (i.e. wordpress comments to moderate).
But I cant receive anything
I have edited
/etc/mail/local-host-names
and put all my domains here.
And edited
/etc/mail/relay-domains
to put the same domains.
And finally edited
/etc/mail/access
and added a line with my linode ip address to allow RELAY.
But none of this makes the thing working
I also tried to look for a iptables issue, but even after doing an
iptables -F
to leave the firewall blank… I cant get this working.
Please, I need some help
PS. I'm using Debian lenny.
1 Reply
This was my problem:
After changed hostname to a FQDN and running
sendmailconfig
now I can send emails from PHP
Thanks!