<font size=2 face="sans-serif">Gentlemen,</font>
<br>
<br><font size=2 face="sans-serif">I'm having a problem with certain messages
being "locked in the queue"</font>
<br>
<br><font size=2 face="Courier New">2011-10-19T12:01:18.127587-02:00 vrt0377
amavis[8066]: (08066-01) lookup [score_recip<gedir.goncalves@bndes.gov.br>,score_sender],
1 matches for "gedir.goncalves@bndes.gov.br", results: "."=>[Amavis::Lookup::RE=ARRAY(0x1d535df0),HASH(0x1d535e80)]</font>
<br><font size=2 face="Courier New">2011-10-19T12:01:18.127890-02:00 vrt0377
amavis[8066]: (08066-01) lookup_re("root@bndes.gov.br"), no matches</font>
<br><font size=2 face="Courier New">2011-10-19T12:01:18.128127-02:00 vrt0377
amavis[8066]: (08066-01) query_keys: root@bndes.gov.br, root@, bndes.gov.br,
.bndes.gov.br, .gov.br, .br, .</font>
<br><font size=2 face="Courier New">2011-10-19T12:01:18.128275-02:00 vrt0377
amavis[8066]: (08066-01) lookup_hash(root@bndes.gov.br), no matches</font>
<br><font size=2 face="Courier New">2011-10-19T12:01:18.128429-02:00 vrt0377
amavis[8066]: (08066-01) lookup [score_sender<root@bndes.gov.br>]
=> undef, "root@bndes.gov.br" does not match</font>
<br><font size=2 face="Courier New">2011-10-19T12:01:18.128891-02:00 vrt0377
amavis[8066]: (08066-01) SpamControl: calling spam scanner SpamAssassin</font>
<br><font size=2 face="Courier New">2011-10-19T12:01:18.129779-02:00 vrt0377
amavis[8066]: (08066-01) timer set to 320 s for SA (was 480 s)</font>
<br><font size=2 face="Courier New">2011-10-19T12:01:18.131053-02:00 vrt0377
amavis[8066]: (08066-01) calling SA parse, SA version 3.2.5, 3.002005,
data as GLOB</font>
<br><font size=2 face="Courier New">2011-10-19T12:01:18.149251-02:00 vrt0377
amavis[8066]: (08066-01) CALLING SA check</font>
<br><font size=2 face="Courier New">1-10-19T12:01:20.056892-02:00 vrt0377
amavis[8063]: Net::Server: Starting "1" children</font>
<br><font size=2 face="Courier New">2011-10-19T12:01:20.075060-02:00 vrt0377
postfix/smtp[8092]: 86CEC43C0F7: to=<gedir.goncalves@bndes.gov.br>,
relay=127.0.0.1[127.0.0.1]:10024, delay=1747, delays=1744/0.03/0.02/2.1,
dsn=4.4.2, status=deferred (lost connection with 127.0.0.1[127.0.0.1] while
sending end of data -- message may be sent more than once)</font>
<br>
<br>
<br><font size=2 face="sans-serif">I have the following environment:</font>
<br><font size=2 face="sans-serif">PostFix 2.3.</font>
<br><font size=2 face="sans-serif">Amavisd 2.5.1-1</font>
<br><font size=2 face="sans-serif">SpamAssassin 3.2.5.</font>
<br><font size=2 face="sans-serif">SqlGrey 1.7.5-1</font>
<br><font size=2 face="sans-serif">ClamAV 0.97</font>
<br><font size=2 face="sans-serif">Sanitizer 1.76</font>
<br><font size=2 face="sans-serif">Pyzor noarch 0.5.0-2.el5
epel</font>
<br><font size=2 face="sans-serif">Perl-Razor-Agent-2.85-1.el5.x86_64</font>
<br><font size=2 face="sans-serif">Re2c 0.13.5-1.el5.rf
</font>
<br><font size=2 face="sans-serif">Make 1:3.81-3.el5
</font>
<br><font size=2 face="sans-serif">Gcc 4.1.2-51.el5
</font>
<br><font size=2 face="sans-serif">Policyd-Weight 0.1.15 </font>
<br><font size=2 face="sans-serif">samba.x86_64
</font>
<br><font size=2 face="sans-serif">PERL 5.8.8</font>
<br>
<br><font size=2 face="sans-serif">I've tried:</font>
<br><font size=2 face="sans-serif">1) Disabled in Amavisd.conf</font>
<br><font size=2 face="sans-serif"> </font><font size=2 face="Courier New">#
['asc', \&do_ascii],</font>
<br><font size=2 face="Courier New"> # ['uue', \&do_ascii],</font>
<br><font size=2 face="Courier New"> # ['hqx', \&do_ascii],</font>
<br><font size=2 face="Courier New"> # ['ync', \&do_ascii],</font>
<br>
<br><font size=2 face="sans-serif">2) Run in PERL 5.14.2</font>
<br>
<br><font size=2 face="sans-serif">3) Run in Amavis 2.6.6-1</font>
<br>
<br><font size=2 face="sans-serif">4) Changed</font><font size=2 face="Courier New">
LANG=en_US</font><font size=2 face="sans-serif"> to </font><font size=2 face="Courier New">LANG=en_US.URF-8</font>
<br>
<br><font size=2 face="sans-serif">Currently the variable LANG is defined
as en_US, but Amavis start it shows as en_US.UTF-8</font>
<br><font size=2 face="Courier New">2011-10-19T12:07:22.442560-02:00 vrt0377
amavis[8154]: starting. /usr/sbin/amavisd at vrt0377.externo.net
amavisd-new-2.6.6 (20110518), Unicode aware, LANG="en_US.UTF-8"</font>
<br><font size=2 face="Courier New">2011-10-19T12:07:22.442615-02:00 vrt0377
amavis[8154]: user=101, EUID: 101 (101); group=, EGID: 102 102 (102
102)</font>
<br><font size=2 face="Courier New">2011-10-19T12:07:22.442693-02:00 vrt0377
amavis[8154]: Perl version
5.008008</font>
<br><font size=2 face="Courier New">2011-10-19T12:07:22.529907-02:00 vrt0377
amavis[8154]: SpamControl: attempting to load scanner SpamAssassin, module
Amavis::SpamControl::SpamAssassin</font>
<br>
<br><font size=2 face="sans-serif">5) Disabled </font><font size=2 face="Courier New">enable_db</font>
<br>
<br><font size=2 face="sans-serif">The configuration of Amavisd.conf is:</font>
<br><font size=2 face="Courier New">use strict;</font>
<br><font size=2 face="Courier New">use lib '/etc/anomy/bin'; # Para o
Sanitizer</font>
<br><font size=2 face="Courier New">%subject_tag_maps_by_ccat = (</font>
<br>
<br><font size=2 face="Courier New"> CC_UNCHECKED,
sub { [ c('undecipherable_subject_tag') ] }, # not by-recip</font>
<br><font size=2 face="Courier New"> CC_SPAM,
undef,</font>
<br><font size=2 face="Courier New"> CC_SPAMMY.',1', sub {
ca('spam_subject_tag3_maps') },</font>
<br><font size=2 face="Courier New"> CC_SPAMMY,
sub { ca('spam_subject_tag2_maps') },</font>
<br><font size=2 face="Courier New"> CC_CLEAN.',1', sub
{ ca('spam_subject_tag_maps') },</font>
<br><font size=2 face="Courier New"> );</font>
<br><font size=2 face="Courier New">#$max_servers = 2;
# num of pre-forked children (2..15 is common), -m</font>
<br><font size=2 face="Courier New">$max_servers = 10;
# num of pre-forked children (2..15 is common), -m</font>
<br><font size=2 face="Courier New">$daemon_user = "amavis";
# (no default; customary: vscan or amavis), -u</font>
<br><font size=2 face="Courier New">$daemon_group = "amavis";
# (no default; customary: vscan or amavis), -g</font>
<br><font size=2 face="Courier New">$mydomain = 'bndes.gov.br';</font>
<br><font size=2 face="Courier New">$TEMPBASE = "$MYHOME/tmp";
# working directory, needs to exist, -T</font>
<br><font size=2 face="Courier New">$ENV{TMPDIR} = $TEMPBASE; #
environment variable TMPDIR, used by SA, etc.</font>
<br><font size=2 face="Courier New">$db_home = "$MYHOME/db";
# dir for bdb nanny/cache/snmp databases, -D</font>
<br><font size=2 face="Courier New">$log_level = 5 ;
# verbosity 0..5, -d</font>
<br><font size=2 face="Courier New">$log_recip_templ = undef; #
disable by-recipient level-0 log entries</font>
<br><font size=2 face="Courier New">$DO_SYSLOG = 1;
# log via syslogd (preferred)</font>
<br><font size=2 face="Courier New">$syslog_facility = 'mail'; #
Syslog facility as a string</font>
<br><font size=2 face="Courier New">
# e.g.: mail, daemon, user, local0, ... local7</font>
<br><font size=2 face="Courier New">$syslog_priority = 'debug'; #
Syslog base (minimal) priority as a string,</font>
<br><font size=2 face="Courier New">
# choose from: emerg, alert, crit, err, warning, notice, info, debug</font>
<br>
<br><font size=2 face="Courier New">$enable_db = 0;
# enable use of BerkeleyDB/libdb (SNMP and nanny)</font>
<br><font size=2 face="Courier New">$enable_global_cache = 1; #
enable use of libdb-based cache if $enable_db=1</font>
<br><font size=2 face="Courier New">$nanny_details_level = 2; #
nanny verbosity: 1: traditional, 2: detailed</font>
<br>
<br><font size=2 face="Courier New">@local_domains_maps = ( [".$mydomain"]
); # list of all local domains</font>
<br>
<br><font size=2 face="Courier New">@mynetworks = qw( 127.0.0.0/8 [::1]
[FE80::]/10 [FEC0::]/10</font>
<br><font size=2 face="Courier New">
10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 );</font>
<br>
<br>
<br>
<br><font size=2 face="Courier New">$unix_socketname = "$MYHOME/amavisd.sock";
# amavisd-release or amavis-milter</font>
<br><font size=2 face="Courier New">
# option(s) -p overrides $inet_socket_port and $unix_socketname</font>
<br>
<br><font size=2 face="Courier New">$inet_socket_port = 10024; #
listen on this local TCP port(s)</font>
<br>
<br><font size=2 face="Courier New">$policy_bank{'MYNETS'} = { #
mail originating from @mynetworks</font>
<br><font size=2 face="Courier New"> originating => 1, #
is true in MYNETS by default, but let's make it explicit</font>
<br><font size=2 face="Courier New"> os_fingerprint_method =>
undef, # don't query p0f for internal clients</font>
<br><font size=2 face="Courier New">};</font>
<br>
<br><font size=2 face="Courier New">$interface_policy{'10026'} = 'ORIGINATING';</font>
<br>
<br><font size=2 face="Courier New">$policy_bank{'ORIGINATING'} = { #
mail supposedly originating from our users</font>
<br><font size=2 face="Courier New"> originating => 1, #
declare that mail was submitted by our smtp client</font>
<br><font size=2 face="Courier New"> allow_disclaimers => 1, #
enables disclaimer insertion if available</font>
<br><font size=2 face="Courier New"> spam_admin_maps =>
["virusalert\@$mydomain"],</font>
<br><font size=2 face="Courier New"> warnbadhsender =>
1,</font>
<br><font size=2 face="Courier New"> forward_method => 'smtp:[127.0.0.1]:10027',</font>
<br><font size=2 face="Courier New"> smtpd_discard_ehlo_keywords
=> ['8BITMIME'],</font>
<br><font size=2 face="Courier New"> bypass_banned_checks_maps =>
[1], # allow sending any file names and types</font>
<br><font size=2 face="Courier New"> terminate_dsn_on_notify_success
=> 0, # don't remove NOTIFY=SUCCESS option</font>
<br><font size=2 face="Courier New">};</font>
<br>
<br><font size=2 face="Courier New">$interface_policy{'SOCK'} = 'AM.PDP-SOCK';
# only applies with $unix_socketname</font>
<br>
<br><font size=2 face="Courier New">$policy_bank{'AM.PDP-SOCK'} = {</font>
<br><font size=2 face="Courier New"> protocol => 'AM.PDP',</font>
<br><font size=2 face="Courier New"> auth_required_release =>
0, # do not require secret_id for amavisd-release</font>
<br><font size=2 face="Courier New">};</font>
<br>
<br><font size=2 face="Courier New">$sa_tag_level_deflt = undef;
# add spam info headers if at, or above that level</font>
<br><font size=2 face="Courier New">$sa_tag2_level_deflt = 5.0; # add 'spam
detected' headers at that level</font>
<br><font size=2 face="Courier New">$sa_kill_level_deflt = 200.0; # triggers
spam evasive actions - utilizado em conjunto com $final_spam_destiny</font>
<br><font size=2 face="Courier New">$sa_dsn_cutoff_level = 10; #
spam level beyond which a DSN is not sent</font>
<br>
<br>
<br><font size=2 face="Courier New">@addr_extension_virus_maps
= ('virus');</font>
<br><font size=2 face="Courier New">@addr_extension_banned_maps
= ('banned');</font>
<br><font size=2 face="Courier New">@addr_extension_spam_maps
= ('spam');</font>
<br><font size=2 face="Courier New">@addr_extension_bad_header_maps = ('badh');</font>
<br>
<br><font size=2 face="Courier New">$path = '/usr/local/sbin:/usr/local/bin:/usr/sbin:/sbin:/usr/bin:/bin';</font>
<br>
<br><font size=2 face="Courier New">$MAXLEVELS = 14;</font>
<br><font size=2 face="Courier New">$MAXFILES = 1500;</font>
<br><font size=2 face="Courier New">$MIN_EXPANSION_QUOTA =
100*1024; # bytes (default undef, not enforced)</font>
<br><font size=2 face="Courier New">$MAX_EXPANSION_QUOTA = 300*1024*1024;
# bytes (default undef, not enforced)</font>
<br>
<br><font size=2 face="Courier New">$sa_spam_subject_tag = ' ';</font>
<br>
<br><font size=2 face="Courier New">$defang_banned = 1; # MIME-wrap
passed mail containing banned name</font>
<br><font size=2 face="Courier New">$defang_by_ccat{+CC_BADH.",3"}
= 1; # NUL or CR character in header</font>
<br><font size=2 face="Courier New">$defang_by_ccat{+CC_BADH.",5"}
= 1; # header line longer than 998 characters</font>
<br><font size=2 face="Courier New">$defang_by_ccat{+CC_BADH.",6"}
= 1; # header field syntax error</font>
<br>
<br><font size=2 face="Courier New">$final_banned_destiny = D_PASS;
# Permitiu passar a mensagem e remover o anexo proibido</font>
<br>
<br><font size=2 face="Courier New">@keep_decoded_original_maps = (new_RE(</font>
<br><font size=2 face="Courier New"> qr'^MAIL-UNDECIPHERABLE$', #
recheck full mail if it contains undecipherables</font>
<br><font size=2 face="Courier New"> qr'^(ASCII(?! cpio)|text|uuencoded|xxencoded|binhex)'i,</font>
<br><font size=2 face="Courier New">));</font>
<br>
<br><font size=2 face="Courier New">$enable_anomy_sanitizer = 1;</font>
<br><font size=2 face="Courier New">@anomy_sanitizer_args = qw(/etc/sanitizer.cfg);</font>
<br><font size=2 face="Courier New">$defang_maps_by_ccat{+CC_BANNED} =
[</font>
<br><font size=2 face="Courier New"> 'anomy' # use altermime
for everybody (a 'constant' lookup table)</font>
<br><font size=2 face="Courier New"> ];</font>
<br>
<br><font size=2 face="Courier New">$banned_filename_re = new_RE(</font>
<br>
<br><font size=2 face="Courier New"> qr'\.[^./]*[A-Za-z][^./]*\.\s*(exe|vbs|pif|scr|bat|cmd|com|cpl|dll)[.\s]*$'i,</font>
<br>
<br><font size=2 face="Courier New"> qr'.\.(.*)$'i,
# Para encaminhar todos os arquivos para o
Sanitizer</font>
<br>
<br><font size=2 face="Courier New">);</font>
<br>
<br><font size=2 face="Courier New">@decoders = (</font>
<br><font size=2 face="Courier New"> ['mail', \&do_mime_decode],</font>
<br><font size=2 face="Courier New"> ['F', \&do_uncompress,
['unfreeze','freeze -d','melt','fcat'] ],</font>
<br><font size=2 face="Courier New"> ['Z', \&do_uncompress,
['uncompress','gzip -d','zcat'] ],</font>
<br><font size=2 face="Courier New"> ['gz', \&do_uncompress,
'gzip -d'],</font>
<br><font size=2 face="Courier New"> ['gz', \&do_gunzip],</font>
<br><font size=2 face="Courier New"> ['bz2', \&do_uncompress,
'bzip2 -d'],</font>
<br><font size=2 face="Courier New"> ['lzo', \&do_uncompress,
'lzop -d'],</font>
<br><font size=2 face="Courier New"> ['rpm', \&do_uncompress,
['rpm2cpio.pl','rpm2cpio'] ],</font>
<br><font size=2 face="Courier New"> ['cpio', \&do_pax_cpio,
['pax','gcpio','cpio'] ],</font>
<br><font size=2 face="Courier New"> ['tar', \&do_pax_cpio,
['pax','gcpio','cpio'] ],</font>
<br><font size=2 face="Courier New"> ['deb', \&do_ar,
'ar'],</font>
<br><font size=2 face="Courier New"># ['a', \&do_ar,
'ar'], # unpacking .a seems an overkill</font>
<br><font size=2 face="Courier New"> ['zip', \&do_unzip],</font>
<br><font size=2 face="Courier New"> ['7z', \&do_7zip,
['7zr','7za','7z'] ],</font>
<br><font size=2 face="Courier New"> ['rar', \&do_unrar,
['rar','unrar'] ],</font>
<br><font size=2 face="Courier New"> ['arj', \&do_unarj,
['arj','unarj'] ],</font>
<br><font size=2 face="Courier New"> ['arc', \&do_arc,
['nomarch','arc'] ],</font>
<br><font size=2 face="Courier New"> ['zoo', \&do_zoo,
['zoo','unzoo'] ],</font>
<br><font size=2 face="Courier New"> ['lha', \&do_lha,
'lha'],</font>
<br><font size=2 face="Courier New"># ['doc', \&do_ole,
'ripole'],</font>
<br><font size=2 face="Courier New"> ['cab', \&do_cabextract,
'cabextract'],</font>
<br><font size=2 face="Courier New"> ['tnef', \&do_tnef_ext,
'tnef'],</font>
<br><font size=2 face="Courier New"> ['tnef', \&do_tnef],</font>
<br><font size=2 face="Courier New"># ['sit', \&do_unstuff,
'unstuff'], # broken/unsafe decoder</font>
<br><font size=2 face="Courier New"> ['exe', \&do_executable,
['rar','unrar'], 'lha', ['arj','unarj'] ],</font>
<br><font size=2 face="Courier New">);</font>
<br>
<br><font size=2 face="Courier New">1; # insure a defined return</font>
<br><font size=2 face="sans-serif">
</font>
<br>
<br><font size=2 face="sans-serif">Does anyone have any suggestions?</font>
<br>
<br><font size=2 face="sans-serif">Tks.</font>
<br>
<br>
<br>
<br><font size=2 face="sans-serif">Atenciosamente,</font>
<br>
<div>
<br><font size=2 face="sans-serif"><b>Gedir Gonçalves</b></font>
<br><font size=2 face="sans-serif">ATI/DEIMP/GPROJ - Gerência de Projetos
de Infraestrutura de TI </font>
<br><font size=2 face="sans-serif">E-mail: gedir.goncalves@bndes.gov.br
Tel: +55 21 2172-7429</font>
<br><img src=cid:_1_08E0270808E0247400545FED8325792E>
<br><font size=5 color=#008000 face="Webdings"><b>P</b></font><font size=1 color=#000080 face="Verdana"><b>
</b></font><font size=1 color=#008000 face="Verdana"><b>Evite imprimir,
colabore responsavelmente com o Meio Ambiente</b></font>
<p><font size=1 face="Courier New">AVISO </font>
<div>
<br><font size=1 face="Verdana">O remetente desta mensagem é responsável
por seu endereçamento, seu conteúdo e seus anexos. Cabe a seus destinatários,
inclusive aqueles copiados na mensagem, tratá-la adequadamente, com observância
da legislação em vigor e dos normativos internos do BNDES, quando cabível.
São proibidas, sem a devida autorização, a sua divulgação, reprodução e
distribuição. A inobservância das proibições será passível de aplicação
de sanções cíveis, criminais e disciplinares, quando cabíveis. Se você
recebeu esta mensagem indevidamente, antes de removê-la de sua caixa postal,
solicita-se o reenvio ao remetente, informando o ocorrido.</font>
<br><font size=2 face="Courier New">---------------------------------------------------------------------------------------------------------------------</font>
<br><font size=1 face="Courier New">DISCLAIMER</font><font size=2 face="Courier New">
</font>
<br><font size=1 face="Verdana">The sender of this message is responsible
for its addressing, contents and attachments. The receiver, including those
copied in the message, is obliged to use it properly, in compliance with
the law in effect and the BNDES' internal rules, if applicable. It is prohibited
to disclose, reproduce and distribute e-mail messages without due consent.
Failure to obey these instructions may give rise to civil, criminal or
disciplinary measures, if applicable. If you have improperly received this
e-mail, we kindly request you to forward the message to the sender stating
the error prior to deleting it from your inbox.</font>
<br><font size=2 face="Courier New">---------------------------------------------------------------------------------------------------------------------</font><font size=2 face="sans-serif"><br>
<br>
<br>
<br>
<br>
<br>
</font>
<br><font size=2 face="sans-serif"><br>
</font>
<div>
<p><font size=1 face="Verdana">"O remetente desta mensagem é responsável
por seu endereçamento, seu conteúdo e seus anexos. Cabe a seus destinatários,
inclusive aqueles copiados na mensagem, tratá-la adequadamente, com observância
da legislação em vigor e dos normativos internos do BNDES, quando cabível.
São proibidas, sem a devida autorização, a sua divulgação, reprodução e
distribuição. A inobservância das proibições será passível de aplicação
de sanções cíveis, criminais e disciplinares, quando cabíveis. Se você
recebeu esta mensagem indevidamente, antes de removê-la de sua caixa postal,
solicita-se o reenvio ao remetente, informando o ocorrido."</font>
<p>
<div>
<br><font size=1 face="Verdana">"The sender of this message is responsible
for its addressing, contents and attachments. The receiver, including those
copied in the message, is obliged to use it properly, in compliance with
the law in effect and the BNDES' internal rules, if applicable. It is prohibited
to disclose, reproduce and distribute e-mail messages without due consent.
Failure to obey these instructions may give rise to civil, criminal or
disciplinary measures, if applicable. If you have improperly received this
e-mail, we kindly request you to forward the message to the sender stating
the error prior to deleting it from your inbox."</font>
<p><font size=2 face="sans-serif"><br>
</font>
<br>
<br></div></div></div></div>