php mail() issue

Red Squirrel

No Lifer
May 24, 2003
70,418
13,721
126
www.anyf.ca
This is an issue I often get. my php mail() function refuses to work. It just ingores completely, no mail errors in the log no nothing, mail is simply not sent at all. php.ini does not really have much settings for that, just setting the path to sendmail. This is what I have:

sendmail_path = /usr/sbin/sendmail -F Iceteks-LAN-Mailler -r webmaster@iceteks.com -f webmaster@iceteks.com


I think this is where I get wrong, -r and -f arguments. My interpretation according to the manual is that they do the same thing, so I just set both, but maybe they're actually different, I don't know, so maybe someone can shed some light on that.

Also, this is postfix's sendmail, and not the "real" one, but I did have it working with postfix version before. I just forgot about backing up that config file, unfurtunatly. On my old server it was in /usr and I never backed up that folder.