Hello everyone,
YIKES!!
I found the error - I simply left the DeliveryHost,
DeliveryPort etc options added in the course of previous
experiments turned on! The config was supposed to use
TrustedDeliveryAgent only, but with Delivery* options turned
on apparently... I turned them off and quarantine works now.
Yes, I'm ready to wear the dunce cap, esp. that now there
another problem reared its buggly head: while Deliver
Checked in webui Quarantine works instantly, the quarantined
mail gets delivered TWICE.
The debug output (below) shows mail delivered only once.
But I get two mails, and each contains different Exim mail
ID in the body.
WTF?! Err, I mean, what's going on here?
Don't laugh (loud) please, I have mere 3 months experience
with Exim and barely a week with DSPAM..
orchidea (192.168.1.1) /usr/local/var/dspam/data/mark % cat test3-spam.mbox |
/usr/local/bin/dspam --deliver=innocent --debug --class=innocent --source=error
--user mark -d %u
Exim version 4.63 uid=0 gid=0 pid=12979 D=fbb95cfd
Berkeley DB: Sleepycat Software: Berkeley DB 4.3.29: (September 12, 2006)
Support for: crypteq iconv() IPv6 PAM Perl TCPwrappers OpenSSL Content_Scanning
Old_Demime
Lookups: lsearch wildlsearch nwildlsearch iplsearch cdb dbm dbmnz dnsdb dsearch
ldap ldapdn ldapm mysql nis nis0 nisplus passwd pgsql sqlite
Authenticators: cram_md5 cyrus_sasl plaintext spa
Routers: accept dnslookup ipliteral manualroute queryprogram redirect
Transports: appendfile/maildir/mailstore/mbx autoreply lmtp pipe smtp
Fixed never_users: 0
Size of off_t: 4
changed uid/gid: forcing real = effective
uid=0 gid=0 pid=12979
auxiliary group list: <none>
seeking password data for user "root": cache not available
getpwnam() succeeded uid=0 gid=0
configuration file is /etc/exim/exim.conf
log selectors = 00000ffc 00089001
cwd=/usr/local/var/dspam/data/mark 5 args: /usr/sbin/exim -oMr spam-scanned -d
mark
trusted user
admin user
changed uid/gid: privilege not needed
uid=93 gid=93 pid=12979
auxiliary group list: 12 93 100
seeking password data for user "mail": cache not available
getpwnam() succeeded uid=8 gid=12
originator: uid=0 gid=0 login=root name=root
sender address = [EMAIL PROTECTED]
set_process_info: 12979 accepting a local non-SMTP message from <[EMAIL
PROTECTED]>
Sender: [EMAIL PROTECTED]
Recipients:
mark
search_tidyup called
>>Headers received:
Received: from cqy215.neoplus.adsl.tpnet.pl ([83.26.230.215] helo=friend)
by inet.btw2.pl with esmtp (Exim 4.63)
(envelope-from <[EMAIL PROTECTED]>)
id 1H9nxH-0002Hb-DY
for [EMAIL PROTECTED]; Wed, 24 Jan 2007 20:38:50 +0100
Message-ID: <[EMAIL PROTECTED]>
From: "Alexander" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Subject: All love enhancers on one portal!
Date: Wed, 24 Jan 2007 20:43:24 +0100
MIME-Version: 1.0
Content-Type: multipart/related;
type="multipart/alternative";
boundary="------------ms080002060503030401080105"
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-FILTER-DSPAM: by inet.btw2.pl on Wed, 24 Jan 2007 21:15:24 +0100
X-DSPAM-Result: Spam
X-DSPAM-Processed: Wed Jan 24 21:15:25 2007
X-DSPAM-Confidence: 0.8591
X-DSPAM-Probability: 1.0000
X-DSPAM-Signature: 45b7be5d102331222944467
X-DSPAM-Factors: 15,
X-MimeOLE*By, 0.99000,
X-MimeOLE*Produced, 0.99000,
X-MimeOLE*Microsoft+MimeOLE, 0.99000,
X-MimeOLE*V6.00.2900.2180, 0.99000,
X-Mailer*Microsoft, 0.99000,
Content-Type*type="multipart/alternative", 0.99000,
X-MimeOLE*MimeOLE, 0.99000,
X-MimeOLE*Produced+By, 0.99000,
X-MSMail-Priority*Normal, 0.99000,
X-Mailer*Express, 0.99000,
X-MimeOLE*Microsoft, 0.99000,
X-Mailer*Express+6.00.2900.2180, 0.99000,
X-Mailer*6.00.2900.2180, 0.99000,
X-Mailer*Outlook, 0.99000,
X-Mailer*Outlook+Express, 0.99000
X-DSPAM-Reclassified: Innocent
rewrite_one_header: type=F:
From: "Alexander" <[EMAIL PROTECTED]>
rewrite_one_header: type=T:
To: <[EMAIL PROTECTED]>
search_tidyup called
>>Headers after rewriting and local additions:
P Received: from cqy215.neoplus.adsl.tpnet.pl ([83.26.230.215] helo=friend)
by inet.btw2.pl with esmtp (Exim 4.63)
(envelope-from <[EMAIL PROTECTED]>)
id 1H9nxH-0002Hb-DY
for [EMAIL PROTECTED]; Wed, 24 Jan 2007 20:38:50 +0100
I Message-ID: <[EMAIL PROTECTED]>
F From: "Alexander" <[EMAIL PROTECTED]>
T To: <[EMAIL PROTECTED]>
Subject: All love enhancers on one portal!
Date: Wed, 24 Jan 2007 20:43:24 +0100
MIME-Version: 1.0
Content-Type: multipart/related;
type="multipart/alternative";
boundary="------------ms080002060503030401080105"
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-FILTER-DSPAM: by inet.btw2.pl on Wed, 24 Jan 2007 21:15:24 +0100
X-DSPAM-Result: Spam
X-DSPAM-Processed: Wed Jan 24 21:15:25 2007
X-DSPAM-Confidence: 0.8591
X-DSPAM-Probability: 1.0000
X-DSPAM-Signature: 45b7be5d102331222944467
X-DSPAM-Factors: 15,
X-MimeOLE*By, 0.99000,
X-MimeOLE*Produced, 0.99000,
X-MimeOLE*Microsoft+MimeOLE, 0.99000,
X-MimeOLE*V6.00.2900.2180, 0.99000,
X-Mailer*Microsoft, 0.99000,
Content-Type*type="multipart/alternative", 0.99000,
X-MimeOLE*MimeOLE, 0.99000,
X-MimeOLE*Produced+By, 0.99000,
X-MSMail-Priority*Normal, 0.99000,
X-Mailer*Express, 0.99000,
X-MimeOLE*Microsoft, 0.99000,
X-Mailer*Express+6.00.2900.2180, 0.99000,
X-Mailer*6.00.2900.2180, 0.99000,
X-Mailer*Outlook, 0.99000,
X-Mailer*Outlook+Express, 0.99000
X-DSPAM-Reclassified: Innocent
Data file written for message 1H9pw6-0003NL-VE
>>Generated Received: header line
P Received: from root by inet.btw2.pl with spam-scanned (Exim 4.63)
(envelope-from <[EMAIL PROTECTED]>)
id 1H9pw6-0003NL-VE
for [EMAIL PROTECTED]; Wed, 24 Jan 2007 22:45:43 +0100
calling local_scan(); timeout=300
local_scan() returned 0 NULL
Writing spool header file
Size of headers = 1654
LOG: MAIN
<= [EMAIL PROTECTED] U=root P=spam-scanned S=27035 [EMAIL PROTECTED]
search_tidyup called
exec /usr/sbin/exim -d=0xfbb95cfd -Mc 1H9pw6-0003NL-VE
Exim version 4.63 uid=93 gid=93 pid=12980 D=fbb95cfd
Berkeley DB: Sleepycat Software: Berkeley DB 4.3.29: (September 12, 2006)
Support for: crypteq iconv() IPv6 PAM Perl TCPwrappers OpenSSL Content_Scanning
Old_Demime
Lookups: lsearch wildlsearch nwildlsearch iplsearch cdb dbm dbmnz dnsdb dsearch
ldap ldapdn ldapm mysql nis nis0 nisplus passwd pgsql sqlite
Authenticators: cram_md5 cyrus_sasl plaintext spa
Routers:search_tidyup called
>>>>>>>>>>>>>>>> Exim pid=12979 terminating with rc=0 >>>>>>>>>>>>>>>>
orchidea (192.168.1.1) /usr/local/var/dspam/data/mark % accept dnslookup
ipliteral manualroute queryprogram redirect
Transports: appendfile/maildir/mailstore/mbx autoreply lmtp pipe smtp
Fixed never_users: 0
Size of off_t: 4
changed uid/gid: forcing real = effective
uid=0 gid=93 pid=12980
auxiliary group list: <none>
seeking password data for user "root": cache not available
getpwnam() succeeded uid=0 gid=0
configuration file is /etc/exim/exim.conf
log selectors = 00000ffc 00089001
cwd=/var/spool/exim 4 args: /usr/sbin/exim -d=0xfbb95cfd -Mc 1H9pw6-0003NL-VE
trusted user
admin user
skipping ACL configuration - not needed
seeking password data for user "mail": cache not available
getpwnam() succeeded uid=8 gid=12
set_process_info: 12980 delivering specified messages
set_process_info: 12980 delivering 1H9pw6-0003NL-VE
reading spool file 1H9pw6-0003NL-VE-H
user=root uid=0 gid=0 [EMAIL PROTECTED]
sender_local=1 ident=root
Non-recipients:
Empty Tree
---- End of tree ----
recipients_count=1
body_linecount=344 message_linecount=45
Delivery address list:
[EMAIL PROTECTED]
locking /var/spool/exim/db/retry.lockfile
locked /var/spool/exim/db/retry.lockfile
EXIM_DBOPEN(/var/spool/exim/db/retry)
returned from EXIM_DBOPEN
opened hints database /var/spool/exim/db/retry: flags=O_RDONLY
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Considering: [EMAIL PROTECTED]
unique = [EMAIL PROTECTED]
dbfn_read: key=R:btw2.pl
dbfn_read: key=R:[EMAIL PROTECTED]
no domain retry record
no address retry record
[EMAIL PROTECTED]: queued for routing
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
routing [EMAIL PROTECTED]
--------> dnslookup router <--------
local_part=mark domain=btw2.pl
checking domains
btw2.pl in "btw2.pl : btw2.eu : localhost : localhost.localdomain"? yes
(matched "btw2.pl")
btw2.pl in "! +local_domains"? no (matched "! +local_domains")
dnslookup router skipped: domains mismatch
--------> spamscan router <--------
local_part=mark domain=btw2.pl
checking "condition"
spamscan router skipped: condition failure
--------> system_aliases router <--------
local_part=mark domain=btw2.pl
calling system_aliases router
rda_interpret (string): ${lookup{$local_part}lsearch{/etc/aliases}}
search_open: lsearch "/etc/aliases"
search_find: file="/etc/aliases"
key="mark" partial=-1 affix=NULL starflags=0
LRU list:
:/etc/aliases
End
internal_search_find: file="/etc/aliases"
type=lsearch key="mark"
file lookup required for mark
in /etc/aliases
lookup failed
expanded:
file is not a filter file
parse_forward_list:
system_aliases router declined for [EMAIL PROTECTED]
--------> userforward router <--------
local_part=mark domain=btw2.pl
checking for local user
seeking password data for user "mark": cache not available
getpwnam() succeeded uid=514 gid=100
calling userforward router
rda_interpret (file): $home/.forward
expanded: /home/mark/.forward
stat(/home/mark/.)=0
/home/mark/.forward does not exist
userforward router declined for [EMAIL PROTECTED]
--------> procmail router <--------
local_part=mark domain=btw2.pl
checking for local user
seeking password data for user "mark": using cached result
getpwnam() succeeded uid=514 gid=100
checking require_files
seeking password data for user "mark": using cached result
getpwnam() succeeded uid=514 gid=100
check subsequent files for access by mark
file check: +${home}/.procmailrc
expanded file: /home/mark/.procmailrc
stat() yielded -1
errno = 2
procmail router skipped: file check
--------> localuser router <--------
local_part=mark domain=btw2.pl
checking for local user
seeking password data for user "mark": using cached result
getpwnam() succeeded uid=514 gid=100
calling localuser router
localuser router called for [EMAIL PROTECTED]
domain = btw2.pl
set transport maildir_local_delivery
queued for maildir_local_delivery transport: local_part = mark
domain = btw2.pl
errors_to=NULL
domain_data=NULL localpart_data=NULL
routed by localuser router
envelope to: [EMAIL PROTECTED]
transport: maildir_local_delivery
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
After routing:
Local deliveries:
[EMAIL PROTECTED]
Remote deliveries:
Failed addresses:
Deferred addresses:
search_tidyup called
>>>>>>>>>>>>>>>> Local deliveries >>>>>>>>>>>>>>>>
--------> [EMAIL PROTECTED] <--------
locking /var/spool/exim/db/retry.lockfile
locked /var/spool/exim/db/retry.lockfile
EXIM_DBOPEN(/var/spool/exim/db/retry)
returned from EXIM_DBOPEN
opened hints database /var/spool/exim/db/retry: flags=O_RDONLY
dbfn_read: key=T:[EMAIL PROTECTED]
no retry record exists
search_tidyup called
changed uid/gid: local delivery to mark <[EMAIL PROTECTED]>
transport=maildir_local_delivery
uid=514 gid=12 pid=12981
auxiliary group list: <none>
home=/home/mark current=/home/mark
set_process_info: 12981 delivering 1H9pw6-0003NL-VE to mark using
maildir_local_delivery
appendfile transport entered
appendfile: mode=660 notify_comsat=0 quota=0 warning=0
directory=/home/mark/Maildir/ format=maildir
message_prefix=null
message_suffix=null
maildir_use_size_file=no
ensuring maildir directories exist in /home/mark/Maildir/
delivering in maildir format in /home/mark/Maildir/
writing to file tmp/1169675143.H237158P12981.inet.btw2.pl
writing data block fd=6 size=8191 timeout=0
writing data block fd=6 size=8191 timeout=0
writing data block fd=6 size=8191 timeout=0
writing data block fd=6 size=2563 timeout=0
renaming temporary file
renamed tmp/1169675143.H237158P12981.inet.btw2.pl as
new/1169675143.H237158P12981.inet.btw2.pl
appendfile yields 0 with errno=0 more_errno=0
journalling [EMAIL PROTECTED]
search_tidyup called
maildir_local_delivery transport returned OK for [EMAIL PROTECTED]
post-process [EMAIL PROTECTED] (0)
[EMAIL PROTECTED] delivered
LOG: MAIN
=> mark <[EMAIL PROTECTED]> R=localuser T=maildir_local_delivery
>>>>>>>>>>>>>>>> deliveries are done >>>>>>>>>>>>>>>>
changed uid/gid: post-delivery tidying
uid=93 gid=93 pid=12980
auxiliary group list: <none>
set_process_info: 12980 tidying up after delivering 1H9pw6-0003NL-VE
Processing retry items
Succeeded addresses:
[EMAIL PROTECTED]: no retry items
Failed addresses:
Deferred addresses:
end of retry processing
LOG: MAIN
Completed
end delivery of 1H9pw6-0003NL-VE
search_tidyup called
search_tidyup called
>>>>>>>>>>>>>>>> Exim pid=12980 terminating with rc=0 >>>>>>>>>>>>>>>>
--
Marcin Krol
Dzial Techniczny
www.Domeny.pl
tel.: (012)296-36-63 wew.20, fax: (012)296-36-64
e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------
DOMENY.PL sp. z o.o., ul.Wielicka 50, 30-552 Kraków, Poland
--------------------------------------------------------------