-
postfix and php mail woes
I banged my head against the wall for a while trying to figure out why my php mail() functionality was broken.
It turned out, because I was using postfix, that I had to modify the php.ini file as it comes with ArchLinux.
The change was subtle, but important. The php mail() uses system sendmail program to send mail. duh.
Postfix sendmail was not picking up the to address from the header information like it should have been. After the change, everything is working swimmingly.
Before:
sendmail_path = /usr/sbin/sendmailAfter:
sendmail_path = /usr/sbin/sendmail -t -i
note: this post was migrated from my old site