Wednesday, March 22, 2006

dspam: Sendmail + Quaranteen

I had this nagging problem with dspam + Web UI where I couldnt send the quaranteened emails to the recipient if dspam caught as a False Positive email.

maillog gives this error: ======

Feb 13 16:55:04 rslinux27 postfix/sendmail[14503]: fatal: usage:
sendmail [options]
Feb 13 16:55:05 rslinux27 dspam[14495]: Delivery agent returned exit
code 64: /usr/sbin/sendmail -d

The Web UI gives this error: =====

An Error Has Occured
The following error occured while trying to process your request:

sendmail: invalid option -- d
sendmail: fatal: usage: sendmail [options]
14269: [02/13/2006 16:46:08] Delivery agent returned exit code 64:
/usr/sbin/sendmail -d

This was described in my post to the newsgroup. Unfortunately for me no one answered this cry for help, until another user found the same problem. I emailed him, and he found a solution:

postfix sendmail implementation doesnt know the "-d" parameter. It is
defined in the script of the cgi.

replace the -d with a -- and it should work :)

In detail:

In the directory where the cgi scripts for the WebUI for dspam are held:
e.g. /var/www/html/dspam/

edit the line which has
$CONFIG{'DSPAM_ARGS'} = "--deliver=innocent --class=innocent " .
"--source=error --user %CURRENT_USER% -d %u";


"--source=error --user %CURRENT_USER% -- %u";

The reason why its obscure is because there is no mention of 'sendmail' nor any indication that these params will flow to sendmail.

Anyway, now it works, so False Positive emails in Quaranteen can be released
and forwarded to individual users as per advertised.


5 lewsers:

Anonymous said...

Hi yk!

thank you verry much for posting this - I'm having the same problem and I'm going to try out this fix.

I hope it works.

Greetings from Germany

Yoon Kit said...

I hope it worked for you.


azza-bazoo said...

Thanks for this! You just saved me quite a headache.

There is a similar fix at the bottom of the instructions here:
but it doesn't warn you that without the change, re-delivery will break :-)

Anonymous said...

Another thanks from me! I was having the same problems and this fixed it for me too.

ngodson said...

Thankyou for this, I was trying to work out why dspam wasn't resending the email.