From: p d. t. <pdo...@an...> - 2003-09-06 00:00:37
|
> In the install instructions for the tmda plugin, it talks about modifying > the smtp.php file. I have searched through the directory that squirrelmail > is installed in I cannot find this file. Here is an excerpt from the Version 1.4.x, here is what you need to change starting at around line 28 of the file /class/deliver/Deliver_SendMail.class.php Change this: ------------------------------------------------------------------------ ------- if (strstr($sendmail_path, "qmail-inject")) { $stream = popen (escapeshellcmd("$sendmail_path -i -f$envelopefrom"), "w"); } else { $stream = popen (escapeshellcmd("$sendmail_path -i -t -f$envelopefrom"), "w"); } ------------------------------------------------------------------------ ------- to look like this: ------------------------------------------------------------------------ ------- if (strstr($sendmail_path, "qmail-inject")) { $stream = popen (escapeshellcmd("username=$username $sendmail_path -i -f$envelopefrom"), "w"); } else { $stream = popen (escapeshellcmd("username=$username $sendmail_path -i -t -f$envelopefrom"), "w"); } ------------------------------------------------------------------------ ------- by inserting "username=$username " just before the $sendmail_path variable. Sorry I didn't provide a "patch" file, but the change is extremely simple. |