cant send email from php using sendmail

Hi!

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 :roll:

PS. I'm using Debian lenny.

1 Reply

I just found the solution in a more deep search in the forum :)

This was my problem: http://www.linode.com/forums/viewtopic. … l+iptables">http://www.linode.com/forums/viewtopic.php?t=3712&highlight=sendmail+iptables

After changed hostname to a FQDN and running sendmailconfig now I can send emails from PHP :D

Thanks!

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct