I have some problems with amavisd-release, if I use the settings from the
documentation I get an error. I need to modify the source of amavisd-new
to get it working. Do I something wrong or is there something else going
on?
I changed the configuration for Amavisd-new according to the documentation:
$interface_policy{'9998'} = 'AM.PDP';
$policy_bank{'AM.PDP'} = {
log_level => 4,
protocol => 'AM.PDP',
};
$inet_socket_port = [10024, 10124, 9998]; # listen on this local TCP
port(s) (see $protocol)
The script amavisd-release can access Amavisd-new on the desired port.
However amavisd-new is unable to release the message it gives the
following error:
Command:
/opt/csw/sbin/amavisd-release banned/banned-20060320-185619-15517-01
450 4.5.0 ERROR: Stored quarantine ID 'M027OheURyGy' does not match
requested ID '619-15517-01' at /opt/csw/sbin/amavisd-new line 5967, <GEN8>
line 7.
In Debug the following lines are written:
Mar 21 16:50:18 mx1.xxxxx.xx /opt/csw/sbin/amavisd-new[16355]: loaded base
policy bank
Mar 21 16:50:18 mx1.xxxxx.xx /opt/csw/sbin/amavisd-new[16355]: loaded
policy bank "AM.PDP"
Mar 21 16:50:18 mx1.xxxxx.xx /opt/csw/sbin/amavisd-new[16355]:
lookup_ip_acl (inet_acl): key="127.0.0.1" matches "127.0.0.0/8", result=1
Mar 21 16:50:18 mx1.xxxxx.xx /opt/csw/sbin/amavisd-new[16355]:
prolong_timer after new request - timer reset: remaining time = 480 s
Mar 21 16:50:18 mx1.xxxxx.xx /opt/csw/sbin/amavisd-new[16355]:
process_request: suggested_protocol="AM.PDP" on TCP
Mar 21 16:50:18 mx1.xxxxx.xx /opt/csw/sbin/amavisd-new[16355]:
process_policy_request: 0, amavisd (ch1-P-idle)
Mar 21 16:50:18 mx1.xxxxx.xx /opt/csw/sbin/amavisd-new[16355]: policy
protocol: request=release
Mar 21 16:50:18 mx1.xxxxx.xx /opt/csw/sbin/amavisd-new[16355]: policy
protocol: quar_type=F
Mar 21 16:50:18 mx1.xxxxx.xx /opt/csw/sbin/amavisd-new[16355]: policy
protocol: mail_id=619-15517-01
Mar 21 16:50:18 mx1.xxxxx.xx /opt/csw/sbin/amavisd-new[16355]: policy
protocol: mail_file=banned/banned-20060320-185619-15517-01
Mar 21 16:50:18 mx1.xxxxx.xx /opt/csw/sbin/amavisd-new[16355]:
(rel-619-15517-01) preprocess_policy_query: opening mail
'/opt/csw/var/amavisn-quarantine/bann
ed/banned-20060320-185619-15517-01'
Use of uninitialized value in sprintf at (eval 37) line 304, <GEN7> line 5.
Mar 21 16:50:18 mx1.xxxxx.xx /opt/csw/sbin/amavisd-new[16355]:
(rel-619-15517-01) release 619-15517-01 /opt/csw/var/amavisn/tmp: <> ->
Mar 21 16:50:18 mx1.xxxxx.xx /opt/csw/sbin/amavisd-new[16355]:
(rel-619-15517-01) msg_from_quarantine: releasing 619-15517-01
Use of uninitialized value in scalar chomp at /opt/csw/sbin/amavisd-new
line 5896, <GEN8> line 1.
Use of uninitialized value in substitution (s///) at
/opt/csw/sbin/amavisd-new line 5896, <GEN8> line 1.
Mar 21 16:50:18 mx1.xxxxx.xx /opt/csw/sbin/amavisd-new[16355]:
(rel-619-15517-01) Quarantined message: M027OheURyGy
<[EMAIL PROTECTED]> -> <[EMAIL PROTECTED]
.mindef.nl>
Use of uninitialized value in string eq at /opt/csw/sbin/amavisd-new line
2077, <GEN8> line 7.
Use of uninitialized value in pattern match (m//) at
/opt/csw/sbin/amavisd-new line 2084, <GEN8> line 7.
Mar 21 16:50:18 mx1.xxxxx.xx /opt/csw/sbin/amavisd-new[16355]:
(rel-619-15517-01) header: Received: from unknown ([127.0.0.1])\n by
localhost (mx1.xxxxx.xx
[127.0.0.1]) (amavisd-new, port 9998)\n id rel-619-15517-01 for
<[EMAIL PROTECTED]>;\n Tue, 21 Mar 2006 16:50:18 +0100 (MET)\n
Mar 21 16:50:18 mx1.xxxxx.xx /opt/csw/sbin/amavisd-new[16355]:
(rel-619-15517-01) header: Resent-Message-ID:
<[EMAIL PROTECTED]>\n
Mar 21 16:50:18 mx1.xxxxx.xx /opt/csw/sbin/amavisd-new[16355]:
(rel-619-15517-01) header: Resent-Date: Tue, 21 Mar 2006 16:50:18 +0100
(MET)\n
Mar 21 16:50:18 mx1.xxxxx.xx /opt/csw/sbin/amavisd-new[16355]:
(rel-619-15517-01) header: Resent-To: <[EMAIL PROTECTED]>\n
Use of uninitialized value in string eq at /opt/csw/sbin/amavisd-new line
5958, <GEN8> line 7.
Mar 21 16:50:18 mx1.xxxxx.xx /opt/csw/sbin/amavisd-new[16355]:
(rel-619-15517-01) header: Resent-From: "Content-filter at mx1.xxxxx.xx"
<[EMAIL PROTECTED]
l>\n
Mar 21 16:50:18 mx1.xxxxx.xx /opt/csw/sbin/amavisd-new[16355]:
(rel-619-15517-01) WARN: dispatch_from_quarantine failed: Stored
quarantine ID 'M027OheURyGy'
does not match requested ID '619-15517-01' at /opt/csw/sbin/amavisd-new
line 5967, <GEN8> line 7.
M
There seems to be a check of a mail-id with a quarantine ID in amavisd-new.
If I remove this check release works
The following lines are commented out:
Changed line 5966, 5967, 5968
# if ($qid ne $quarantine_id)
# { die "Stored quarantine ID '$qid' does not match ".
# "requested ID '$quarantine_id'" }
After the removal of the check:
Mar 21 17:05:11 u261 amavis[16796]: [ID 702911 mail.info] loaded policy
bank "AM.PDP"
Mar 21 17:05:11 u261 amavis[16796]: [ID 702911 mail.info] policy protocol:
request=release
Mar 21 17:05:11 u261 amavis[16796]: [ID 702911 mail.info] policy protocol:
quar_type=F
Mar 21 17:05:11 u261 amavis[16796]: [ID 702911 mail.info] policy protocol:
mail_id=316-14609-01
Mar 21 17:05:11 u261 amavis[16796]: [ID 702911 mail.info] policy protocol:
mail_file=banned/banned-20060320-182316-14609-01
Mar 21 17:05:11 u261 amavis[16796]: [ID 702911 mail.info]
(rel-316-14609-01) release 316-14609-01 /opt/csw/var/amavisn/tmp: <> ->
Mar 21 17:05:11 u261 amavis[16796]: [ID 702911 mail.info]
(rel-316-14609-01) Quarantined message: hlJTyuLT7lGx <[EMAIL PROTECTED]> ->
<[EMAIL PROTECTED]>
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/