#132 error when using other smtp programs

closed-fixed
None
5
2006-08-01
2005-11-24
No

currently, i am using nbsmtp to deliver mail. however,
it doesn't support the -i, nor the -t options that
squirrelmail passes to it, and produces an error when
trying to send a message. ("/usr/bin/nbsmtp: invalid
option -- i" .. in /var/log/apache2/error_log).

currently, i have to manually hack
class/deliver/Deliver_SendMail.class.php (line 60ish)..
if (strstr($sendmail_path, "qmail-inject")) {
$stream = popen
(escapeshellcmd("$sendmail_path -f$envelopefrom"), "w");
} else {
$stream = popen
(escapeshellcmd("$sendmail_path -i -t
-f$envelopefrom"), "w");
}

..i currently simply delete the -i and -t options. i'm
not sure what they are, or why squirrelmail expects all
smtp clients (except "qmail-inject" to support them),
but, nbsmtp doesn't support them either.

so, do other smtp programs _need_ to have these
options? .. and, if they do, i suppose we simply have
to add nbsmtp (and any other programs that don't
support it) alongside qmail-inject, as yet another
exception.

Discussion

  • Tomas Kuliavas

    Tomas Kuliavas - 2005-11-26
    • assigned_to: nobody --> tokul
     
  • Tomas Kuliavas

    Tomas Kuliavas - 2005-12-08

    Logged In: YES
    user_id=225877

    Made sendmail -i -t arguments configurable in 1.5.1cvs.

     
  • Tomas Kuliavas

    Tomas Kuliavas - 2006-06-02
    • labels: 102905 -->
     
  • Tomas Kuliavas

    Tomas Kuliavas - 2006-08-01

    Logged In: YES
    user_id=225877

    Added to 1.4.8cvs. Closing tracker.

     
  • Tomas Kuliavas

    Tomas Kuliavas - 2006-08-01
    • status: open --> closed-fixed
     

Log in to post a comment.