amavisd-new 2.0.6 bug?

Christian Pock chpock at IOS.dhs.org
Tue Oct 4 11:48:22 CEST 2011


amavisd-new version 2.6.0

in amavisd.conf:
@debug_sender_maps = ( ["myemail at domain.tld"] );

causes amavis to stop working and producing mail error log:
postfix/error[pid]: 9ED854271E: to=<bounced_email_adress at domina.tld>, 
relay=none, delay=83937, delays=83935/1.8/0/0.06, dsn=4.4.2, 
status=deferred (delivery temporarily suspended: lost connection with 
127.0.0.1[127.0.0.1] while sending RCPT TO)

code snip from amavisd:

do_log(4,"TempDir::prepare_file: creating file %s", $fname);
# $^F == 2 or do_log(-1,"prepare_file: SYSTEM_FD_MAX not 2: %d", $^F);
my($newfh) = IO::File->new;
$newfh->open($fname, O_CREAT|O_EXCL|O_RDWR, 0640)
or die "Can't create file $fname: $!";


amavis log:
...
amavis[1815]: (01815-02-12) TempDir::prepare: creating directory 
/dev/shm/amavis_tmp/amavis-20111004T102523-01815
amavis[1815]: (01815-02-12) TempDir::prepare_file: creating file 
/dev/shm/amavis_tmp/amavis-20111004T102523-01815/email.txt
amavis[1815]: (01815-02-12) TempDir::prepare_file: layers: unix,perlio
...
amavis[1815]: (01815-02-12) DEBUG_ONESHOT CAUSES EVIDENCE TO BE PRESERVED
amavis[1815]: (01815-02-12) Amavis::Custom DESTROY called, EXIT
amavis[1815]: (01815-02-12) Amavis::Out::SQL::Connection DESTROY called
...
amavis[1815]: (01815-02-13) check_mail_begin_task: task_count=14
amavis[1815]: (01815-02-13) TempDir::prepare_file: creating file 
/dev/shm/amavis_tmp/amavi
s-20111004T102523-01815/email.txt
Oct  4 10:25:23 ios amavis[1815]: (01815-02-13) (!!)TROUBLE in 
process_request: Can't create file 
/dev/shm/amavis_tmp/amavis-20111004T102523-01815/email.txt: File exists at 
/usr/local/amavisd/sbin/amavisd (see code snip)
amavis[1815]: (01815-02-13) (!)Requesting process rundown after fatal 
error
amavis[1815]: (01815-02-13) ESMTP> 421 4.3.2 Service shutting down, 
closing channel
amavis[1815]: (01815-02-13) switch_to_client_time 120 s, smtp response 
sent
amavis[1815]: (01815-02-13) Amavis::TempDir DESTROY called
amavis[1815]: (01815-02-13) TempDir removal: empty tempdir is being 
removed: /dev/shm/amavis_tmp/amavis-20111004T102523-01815, nothing to 
preserve
amavis[1815]: (01815-02-13) rmdir_recursively: 
/dev/shm/amavis_tmp/amavis-20111004T102523-01815, excl=
....
after there all other emails bounced from me will be stopped/deferred by 
postifx 

tryed to rensend queue after reinstalling file::temp in perl failed as 
described.

if i comment out #@debug_sender_maps = ( ["myemail at domain.tld"] );
and say postfix he should resend the queued/deferred mails all work as 
expected
i never had this error before and the amavis config directive is there 
since 2 years.

probably other versions and new are also affectet by this.


QOTD: Eifersucht ist eine Leidenschaft, die mit Eifer sucht, was Leiden
      schafft...

-- 
---------- God does not play dice with the universe ----------
Reality is only a simulation - and it is still in beta testing
______________________________________________________________
                              Welcome to IOS-PROJECT 2000-2011
 Christian Pock, alias chpock at ios.dhs.org
 http://www.ios.dhs.org/chpock


More information about the amavis-users mailing list