Linode Forum
https://forum.linode.com/

cant send email from php using sendmail
https://forum.linode.com/viewtopic.php?f=11&t=4480
Page 1 of 1

Author:  sacom [ Wed Aug 05, 2009 8:15 am ]
Post subject:  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
Code:
/etc/mail/local-host-names
and put all my domains here.

And edited
Code:
/etc/mail/relay-domains
to put the same domains.

And finally edited
Code:
/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
Code:
iptables -F
to leave the firewall blank... I cant get this working.

Please, I need some help :roll:

PS. I'm using Debian lenny.

Author:  sacom [ Wed Aug 05, 2009 8:40 am ]
Post subject: 

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

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


Thanks!

Page 1 of 1 All times are UTC-04:00
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/