Originally Posted by linuxuser1
How can i set up my debian servers - one with postfix and 1 with sendmail to allow a php script to use the mail() function to send e-mail. Both servers have ISPConfig installed.
What i have in my php.ini =
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
sendmail_path = /usr/sbin/sendmail
The php.ini is located at /etc/php4/apache2/php.ini
Sendmail is legacy MTA of Unix(Its location is hardcoded in many previous apps). So, while postfix installation, we need to first forcibly uninstall sendmail Then postfix installs its own binary named sendmail in /usr/bin/sendmail.
So, I mean to say that sendmail binary exists in both. Your app will work in either cases.