lost connection with 127.0.0.1

gedir.goncalves at bndes.gov.br gedir.goncalves at bndes.gov.br
Wed Oct 19 17:21:45 CEST 2011


Gentlemen,

I'm having a problem with certain messages being "locked in the queue"

2011-10-19T12:01:18.127587-02:00 vrt0377 amavis[8066]: (08066-01) lookup 
[score_recip<gedir.goncalves em bndes.gov.br>,score_sender], 1 matches for 
"gedir.goncalves em bndes.gov.br", results: 
"."=>[Amavis::Lookup::RE=ARRAY(0x1d535df0),HASH(0x1d535e80)]
2011-10-19T12:01:18.127890-02:00 vrt0377 amavis[8066]: (08066-01) 
lookup_re("root em bndes.gov.br"), no matches
2011-10-19T12:01:18.128127-02:00 vrt0377 amavis[8066]: (08066-01) 
query_keys: root em bndes.gov.br, root@, bndes.gov.br, .bndes.gov.br, 
.gov.br, .br, .
2011-10-19T12:01:18.128275-02:00 vrt0377 amavis[8066]: (08066-01) 
lookup_hash(root em bndes.gov.br), no matches
2011-10-19T12:01:18.128429-02:00 vrt0377 amavis[8066]: (08066-01) lookup 
[score_sender<root em bndes.gov.br>] => undef, "root em bndes.gov.br" does not 
match
2011-10-19T12:01:18.128891-02:00 vrt0377 amavis[8066]: (08066-01) 
SpamControl: calling spam scanner SpamAssassin
2011-10-19T12:01:18.129779-02:00 vrt0377 amavis[8066]: (08066-01) timer 
set to 320 s for SA (was 480 s)
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
2011-10-19T12:01:18.149251-02:00 vrt0377 amavis[8066]: (08066-01) CALLING 
SA check
1-10-19T12:01:20.056892-02:00 vrt0377 amavis[8063]: Net::Server: Starting 
"1" children
2011-10-19T12:01:20.075060-02:00 vrt0377 postfix/smtp[8092]: 86CEC43C0F7: 
to=<gedir.goncalves em 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)


I have the following environment:
PostFix 2.3.
Amavisd 2.5.1-1
SpamAssassin 3.2.5.
SqlGrey 1.7.5-1
ClamAV 0.97
Sanitizer 1.76
Pyzor  noarch  0.5.0-2.el5  epel
Perl-Razor-Agent-2.85-1.el5.x86_64
Re2c  0.13.5-1.el5.rf 
Make  1:3.81-3.el5 
Gcc  4.1.2-51.el5 
Policyd-Weight 0.1.15 
samba.x86_64 
PERL 5.8.8

I've tried:
1) Disabled in Amavisd.conf
 # ['asc',  \&do_ascii],
 # ['uue',  \&do_ascii],
 # ['hqx',  \&do_ascii],
 # ['ync',  \&do_ascii],

2) Run in  PERL 5.14.2

3) Run in Amavis 2.6.6-1

4) Changed LANG=en_US to LANG=en_US.URF-8

Currently the variable LANG is defined as en_US, but Amavis start it shows 
as en_US.UTF-8
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"
2011-10-19T12:07:22.442615-02:00 vrt0377 amavis[8154]: user=101, EUID: 101 
(101);  group=, EGID: 102 102 (102 102)
2011-10-19T12:07:22.442693-02:00 vrt0377 amavis[8154]: Perl version  
5.008008
2011-10-19T12:07:22.529907-02:00 vrt0377 amavis[8154]: SpamControl: 
attempting to load scanner SpamAssassin, module 
Amavis::SpamControl::SpamAssassin

5) Disabled enable_db

The configuration of Amavisd.conf is:
use strict;
use lib '/etc/anomy/bin'; # Para o Sanitizer
%subject_tag_maps_by_ccat = (

    CC_UNCHECKED,   sub { [ c('undecipherable_subject_tag') ] }, # not 
by-recip
    CC_SPAM,        undef,
    CC_SPAMMY.',1', sub { ca('spam_subject_tag3_maps') },
    CC_SPAMMY,      sub { ca('spam_subject_tag2_maps') },
    CC_CLEAN.',1',  sub { ca('spam_subject_tag_maps') },
  );
#$max_servers = 2;            # num of pre-forked children (2..15 is 
common), -m
$max_servers = 10;            # num of pre-forked children (2..15 is 
common), -m
$daemon_user  = "amavis";     # (no default;  customary: vscan or amavis), 
-u
$daemon_group = "amavis";     # (no default;  customary: vscan or amavis), 
-g
$mydomain = 'bndes.gov.br';
$TEMPBASE = "$MYHOME/tmp";   # working directory, needs to exist, -T
$ENV{TMPDIR} = $TEMPBASE;    # environment variable TMPDIR, used by SA, 
etc.
$db_home   = "$MYHOME/db";      # dir for bdb nanny/cache/snmp databases, 
-D
$log_level = 5 ;              # verbosity 0..5, -d
$log_recip_templ = undef;    # disable by-recipient level-0 log entries
$DO_SYSLOG = 1;              # log via syslogd (preferred)
$syslog_facility = 'mail';   # Syslog facility as a string
           # e.g.: mail, daemon, user, local0, ... local7
$syslog_priority = 'debug';  # Syslog base (minimal) priority as a string,
           # choose from: emerg, alert, crit, err, warning, notice, info, 
debug

$enable_db = 0;              # enable use of BerkeleyDB/libdb (SNMP and 
nanny)
$enable_global_cache = 1;    # enable use of libdb-based cache if 
$enable_db=1
$nanny_details_level = 2;    # nanny verbosity: 1: traditional, 2: 
detailed

@local_domains_maps = ( [".$mydomain"] );  # list of all local domains

@mynetworks = qw( 127.0.0.0/8 [::1] [FE80::]/10 [FEC0::]/10
                  10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 );



$unix_socketname = "$MYHOME/amavisd.sock";  # amavisd-release or 
amavis-milter
               # option(s) -p overrides $inet_socket_port and 
$unix_socketname

$inet_socket_port = 10024;   # listen on this local TCP port(s)

$policy_bank{'MYNETS'} = {   # mail originating from @mynetworks
  originating => 1,  # is true in MYNETS by default, but let's make it 
explicit
  os_fingerprint_method => undef,  # don't query p0f for internal clients
};

$interface_policy{'10026'} = 'ORIGINATING';

$policy_bank{'ORIGINATING'} = {  # mail supposedly originating from our 
users
  originating => 1,  # declare that mail was submitted by our smtp client
  allow_disclaimers => 1,  # enables disclaimer insertion if available
  spam_admin_maps  => ["virusalert\@$mydomain"],
  warnbadhsender   => 1,
  forward_method => 'smtp:[127.0.0.1]:10027',
  smtpd_discard_ehlo_keywords => ['8BITMIME'],
  bypass_banned_checks_maps => [1],  # allow sending any file names and 
types
  terminate_dsn_on_notify_success => 0,  # don't remove NOTIFY=SUCCESS 
option
};

$interface_policy{'SOCK'} = 'AM.PDP-SOCK'; # only applies with 
$unix_socketname

$policy_bank{'AM.PDP-SOCK'} = {
  protocol => 'AM.PDP',
  auth_required_release => 0,  # do not require secret_id for 
amavisd-release
};

$sa_tag_level_deflt  = undef;  # add spam info headers if at, or above 
that level
$sa_tag2_level_deflt = 5.0; # add 'spam detected' headers at that level
$sa_kill_level_deflt = 200.0; # triggers spam evasive actions - utilizado 
em conjunto com $final_spam_destiny
$sa_dsn_cutoff_level = 10;   # spam level beyond which a DSN is not sent


@addr_extension_virus_maps      = ('virus');
@addr_extension_banned_maps     = ('banned');
@addr_extension_spam_maps       = ('spam');
@addr_extension_bad_header_maps = ('badh');

$path = '/usr/local/sbin:/usr/local/bin:/usr/sbin:/sbin:/usr/bin:/bin';

$MAXLEVELS = 14;
$MAXFILES = 1500;
$MIN_EXPANSION_QUOTA =      100*1024;  # bytes  (default undef, not 
enforced)
$MAX_EXPANSION_QUOTA = 300*1024*1024;  # bytes  (default undef, not 
enforced)

$sa_spam_subject_tag = ' ';

$defang_banned = 1;  # MIME-wrap passed mail containing banned name
$defang_by_ccat{+CC_BADH.",3"} = 1;  # NUL or CR character in header
$defang_by_ccat{+CC_BADH.",5"} = 1;  # header line longer than 998 
characters
$defang_by_ccat{+CC_BADH.",6"} = 1;  # header field syntax error

$final_banned_destiny   = D_PASS; # Permitiu passar a mensagem e remover o 
anexo proibido

@keep_decoded_original_maps = (new_RE(
  qr'^MAIL-UNDECIPHERABLE$', # recheck full mail if it contains 
undecipherables
  qr'^(ASCII(?! cpio)|text|uuencoded|xxencoded|binhex)'i,
));

$enable_anomy_sanitizer = 1;
@anomy_sanitizer_args = qw(/etc/sanitizer.cfg);
$defang_maps_by_ccat{+CC_BANNED} = [
    'anomy' # use altermime for everybody (a 'constant' lookup table)
  ];

$banned_filename_re = new_RE(

 
qr'\.[^./]*[A-Za-z][^./]*\.\s*(exe|vbs|pif|scr|bat|cmd|com|cpl|dll)[.\s]*$'i,

  qr'.\.(.*)$'i,             # Para encaminhar todos os arquivos para o 
Sanitizer

);

@decoders = (
  ['mail', \&do_mime_decode],
  ['F',    \&do_uncompress, ['unfreeze','freeze -d','melt','fcat'] ],
  ['Z',    \&do_uncompress, ['uncompress','gzip -d','zcat'] ],
  ['gz',   \&do_uncompress,  'gzip -d'],
  ['gz',   \&do_gunzip],
  ['bz2',  \&do_uncompress,  'bzip2 -d'],
  ['lzo',  \&do_uncompress,  'lzop -d'],
  ['rpm',  \&do_uncompress, ['rpm2cpio.pl','rpm2cpio'] ],
  ['cpio', \&do_pax_cpio,   ['pax','gcpio','cpio'] ],
  ['tar',  \&do_pax_cpio,   ['pax','gcpio','cpio'] ],
  ['deb',  \&do_ar,          'ar'],
# ['a',    \&do_ar,          'ar'],  # unpacking .a seems an overkill
  ['zip',  \&do_unzip],
  ['7z',   \&do_7zip,       ['7zr','7za','7z'] ],
  ['rar',  \&do_unrar,      ['rar','unrar'] ],
  ['arj',  \&do_unarj,      ['arj','unarj'] ],
  ['arc',  \&do_arc,        ['nomarch','arc'] ],
  ['zoo',  \&do_zoo,        ['zoo','unzoo'] ],
  ['lha',  \&do_lha,         'lha'],
# ['doc',  \&do_ole,         'ripole'],
  ['cab',  \&do_cabextract,  'cabextract'],
  ['tnef', \&do_tnef_ext,    'tnef'],
  ['tnef', \&do_tnef],
# ['sit',  \&do_unstuff,     'unstuff'],  # broken/unsafe decoder
  ['exe',  \&do_executable, ['rar','unrar'], 'lha', ['arj','unarj'] ],
);

1;  # insure a defined return
 

Does anyone have any suggestions?

Tks.



Atenciosamente,

Gedir Gonçalves
ATI/DEIMP/GPROJ - Gerência de Projetos de Infraestrutura de TI 
E-mail: gedir.goncalves em bndes.gov.br Tel: +55 21 2172-7429

P Evite imprimir, colabore responsavelmente com o Meio Ambiente
AVISO 
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.
---------------------------------------------------------------------------------------------------------------------
DISCLAIMER 
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.
---------------------------------------------------------------------------------------------------------------------









"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."

"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."



-------------- Pr?xima Parte ----------
Um anexo em HTML foi limpo...
URL: <http://lists.amavis.org/pipermail/amavis-users/attachments/20111019/2b7a2567/attachment.html>
-------------- Pr?xima Parte ----------
Um anexo n?o-texto foi limpo...
Nome: n?o dispon?vel
Tipo: image/gif
Tamanho: 2886 bytes
Descri??o: n?o dispon?vel
URL: <http://lists.amavis.org/pipermail/amavis-users/attachments/20111019/2b7a2567/attachment.gif>


More information about the amavis-users mailing list