On 02/15/2012 09:56 PM, Angus McIntyre wrote:
> I have Spamdyke running as part of a qmailtoaster install. One of the
> domains handled by the toaster accepts incoming mail, processes it using a
> Perl script based on Mail::Audit, and then resends the message to local or
> remote addresses.
>
> Most of the time, it works fine. However, for a small number of incoming
> messages I get an error from smtpd:
>
>      qmail-smtpd: qq hard reject (qmail-dk: Cannot sign message
>      due to invalid message syntax
>
> which is followed by a rejection from Spamdyke:
>
>      spamdyke[22008]: DENIED_OTHER from: ... to: ... origin_ip:
>      127.0.0.1 origin_rdns: localhost.0.0.127.in-addr.arpa auth:
>      (unknown) encryption: (none) reason: 554_qmail-dk:_
>      Cannot_sign_message_due_to_invalid_message_syntax._(#5.3.0)
>
> causing the mail message to be dropped on the floor.
>
> Obviously, the long term fix is to figure out why some messages coming out
> of the script are malformed and change the script so that it doesn't
> generate bad output.
>
> However, in the short term, is there any way that I can tell Spamdyke not
> to refuse the message when smtpd says that it can't sign it?
>
> Angus

This is an intermittent and somewhat rare bug in the qmail-dk program. 
The simplest fix is to simply disable dk entirely:
# cd /var/qmail/bin
# ln -sf qmail-queue.orig qmail-queue

If you want to disable signing only for messages that originate on the 
QMT host, you can remove the DKSIGN= environment variable from the 127. 
line in your /etc/tcprules.d/tcp.smtp file, then run
# service qmail cdb
to make the change effective.

I go for the former option, as I've seen the rejection happen 
occasionally with "normal" emails submitted by users as well.

-- 
-Eric 'shubes'

_______________________________________________
spamdyke-users mailing list
[email protected]
http://www.spamdyke.org/mailman/listinfo/spamdyke-users

Reply via email to