[prev in list] [next in list] [prev in thread] [next in thread]
List: amavis-user
Subject: [AMaViS-user] BUG in v2.6.1: Wrong in variable substitution
From: Jonas Jacobsson <jonas+amavis () cytech ! nu>
Date: 2008-08-07 21:40:43
Message-ID: DBE033A4-3BD7-40ED-9CA1-7E3E85AFB5FA () cytech ! nu
[Download message RAW]
SYSTEM
Just upgraded to version 2.6.1 on my debian system:
moria:/etc/amavis/conf.d# dpkg -l | grep amavis
ii amavisd-new 1:2.6.1.dfsg-1
Interface between MTA and virus scanner/cont
Also verified with the latest code on the amavis homepage:
http://www.ijs.si/software/amavisd/amavisd-new-2.6.1.tar.gz
DESCRIPTION
Got this when a message is about to be sent to postmaster when a virus
is detected:
Aug 7 22:16:37 moria postfix/smtpd[30625]: warning: Illegal address
syntax from localhost[127.0.0.1] in MAIL command: <postmaster@$
{myhostname}>
Aug 7 22:16:37 moria amavis[22344]: (22344-09) Negative SMTP resp. to
DATA: 403 4.5.1 Error: need RCPT command
Aug 7 22:16:37 moria postfix/smtpd[30625]: disconnect from
localhost[127.0.0.1]
Aug 7 22:16:37 moria amavis[22344]: (22344-09) (!)SEND via SMTP:
<postmaster@${myhostname}> -> <postmaster@cytech.nu>,ENVID=AM..20080807T201637Z@moria.cytech.nu
401 4.1.7 TempFailed, id=22344-09, from MTA([127.0.0.1]:10025): 401
4.1.7 Bad sender address syntax
Aug 7 22:16:37 moria amavis[22344]: (22344-09) (!!)TROUBLE in
check_mail: quar+notif FAILED: temporarily unable to notify admin: 401
4.1.7 TempFailed, id=22344-09, from MTA([127.0.0.1]:10025): 401 4.1.7
Bad sender address syntax at /usr/sbin/amavisd-new line 11971.
Aug 7 22:16:37 moria amavis[22344]: (22344-09) (!)PRESERVING EVIDENCE
in /var/lib/amavis/tmp/amavis-20080807T221637-22344
Aug 7 22:16:37 moria postfix/smtp[30579]: E82618AC034: to=<jonas@bla.bla
>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.39,
delays=0.06/0/0.01/0.32, dsn=4.5.0, status=deferred (host
127.0.0.1[127.0.0.1] said: 451 4.5.0 Error in processing, id=22344-09,
quar+notif FAILED: temporarily unable to notify admin: 401 4.1.7
TempFailed, id=22344-09, from MTA([127.0.0.1]:10025): 401 4.1.7 Bad
sender address syntax at /usr/sbin/amavisd-new line 11971. (in reply
to end of DATA command))
SOLUION
Removed the backslash in front of the myhostname variable in the
following section. Now it works.
Before:
# substring ${myhostname} will be expanded later, just before use
my($pname) = '"Content-filter at ${myhostname}"';
$hdrfrom_notify_sender = "$pname <postmaster\@\${myhostname}>"
if !defined $hdrfrom_notify_sender;
After:
# substring ${myhostname} will be expanded later, just before use
my($pname) = '"Content-filter at ${myhostname}"';
$hdrfrom_notify_sender = "$pname <postmaster\@${myhostname}>"
if !defined $hdrfrom_notify_sender;
/jonas
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic