On 02/08/2014 02:40 PM, Sam Clippinger wrote: > I'm a little unclear here -- what scanning are you doing and when does > it take place?
I'm not crystal clear either about exactly how everything's happening. Simscan is invoking clamav and spamassassin. Simscan is implemented via QMAILQUEUE="/var/qmail/bin/simscan". > How can spamdyke tell the difference between a delay > caused by something on your server versus a delay from the remote sender? I've no idea. I'm guessing that simscan isn't given control until the message is completely received. It's at that point, when the message has been completely received but not yet queued, that I think the idle timeout should be disabled. The problem appears to be that when when spamdyke does idle timeout, the qmail-queue process can still successfully deliver a message (when it's past the point described above). spamdyke should only initiate a timeout when it can (still) keep a message from being delivered. Here's a sample from the log which might make things a little clearer: 02-07 14:15:14 tcpserver: status: 1/100 02-07 14:15:14 tcpserver: pid 19001 from 70.58.xxx169 02-07 14:15:14 tcpserver: ok 19001 tacs-mail.datamatters.us:192.168.73.7:25 :70.58.xxx.169::44872 02-07 14:15:23 CHKUSER accepted sender: from <x...@xxxxx.com::> remote <xxxx.xxxx.com:unknown:70.58.xxx.169> rcpt <> : sender accepted 02-07 14:15:23 CHKUSER accepted any rcpt: from <x...@xxxx.com::> remote <xxxx.xxxx.com:unknown:70.58.xxx.169> rcpt <x...@xxxx.com> : accepted any recipient for this domain 02-07 14:15:23 policy_check: remote x...@xxxx.com -> local x...@xxxx.com (UNAUTHENTICATED SENDER) 02-07 14:15:23 policy_check: policy allows transmission 02-07 14:16:25 spamdyke[19001]: TIMEOUT from: x...@xxxx.com to: x...@xxxx.com origin_ip: 70.58.xxx.169 origin_rdns: xxxx.com auth: (unknown) encryption: TLS reason: TIMEOUT 02-07 14:17:58 simscan:[19002]:CLEAN (5.50/12.00):154.6404s:***SPAM*** Fwd_ xxxx 70.58.xxx.169:x...@xxxx.com:x...@xxxx.com 02-07 14:17:58 tcpserver: end 19001 status 0 Usually, the simscan message comes before spamdyke. BL is that the message is delivered, and the sender is notified of a failure, causing duplicates in the inbox. Thanks Sam. Gotta run. > -- Sam Clippinger > > > > > On Feb 7, 2014, at 4:37 PM, Eric Shubert > <e...@shubes.net > <mailto:e...@shubes.net>> wrote: > >> With spamdyke 4.3.1, I've come across an email which takes an inordinate >> amount of time to scan, for whatever reason. I had idle-timeout=60, so >> spamdyke would timeout the session, and a minute or so later the scan >> completes, and the message is delivered. This causes duplicates though, >> as the sender isn't aware of the successful delivery. >> >> I've bumped up the idle-timeout to 180, which I expect will remedy the >> situation. >> >> I wonder, though, if this setting could or should be suspended during >> the time which spamdyke is waiting for delivery to happen. Perhaps there >> should be 2 settings - one for the incoming side and one for the >> delivery side? I like keeping this setting on the low side to keep >> senders from tying up incoming processes, yet the setting doesn't seem >> to make any sense when waiting for scanning/delivery, especially when >> spamdyke can't cancel that part of things. >> >> Thanks Sam. >> >> -- >> -Eric 'shubes' >> >> _______________________________________________ >> spamdyke-users mailing list >> spamdyke-users@spamdyke.org >> <mailto:spamdyke-users@spamdyke.org> >> http://www.spamdyke.org/mailman/listinfo/spamdyke-users > > > > _______________________________________________ > spamdyke-users mailing list > spamdyke-users@spamdyke.org > http://www.spamdyke.org/mailman/listinfo/spamdyke-users > -- -Eric 'shubes' _______________________________________________ spamdyke-users mailing list spamdyke-users@spamdyke.org http://www.spamdyke.org/mailman/listinfo/spamdyke-users