Since 2 weeks I have many files staying in mqueue-rx (dual sendmail)
am 04.11.2007 21:07:57 von Arnold
Again I am using dual sendmail with amavis and
spamassassin and DCC, Pyzor, Razor.
Since two weeks I get many files in sendmail-
receiving spool area (Files: d* and q*).
When this happens for the first time (mostly
on a weekend) then mail processing will be stopped
and not continued. There are about 300 files
in mqueue-rx (d* and q*).
Afterwards many files (about 70) will be
created in transmiting "mqueue" for the
second sendmail-process.
The machine has 512 MB Ram and 170 MB free
of main (not swapped) space at this time.
Error message:
[BEGIN]
MDeferred: 421 4.3.2 Connection rate limit exceeded.
Frs
$_localhost
$r
$slocalhost
${daemon_flags}
${if_addr}
SMAILER-DAEMON
MDeferred: 421 4.3.2 Connection rate limit exceeded.
rRFC822; beny@talk21.com
RPF:
H?P?Return-Path: <�g>
H??Received: from localhost (localhost)
by (8.14.0/8.13.4) id lA1IAcne006746;
Thu, 1 Nov 2007 19:10:38 +0100
H?D?Date: Thu, 1 Nov 2007 19:10:38 +0100
H?F?From: Mail Delivery Subsystem
H?x?Full-Name: Mail Delivery Subsystem
H?M?Message-Id: <200711011810.lA1IAcne006746@>
H??To:
H??MIME-Version: 1.0
[END]
What can be the Reasons ? What to analyse ? What more
information do you need to help me ? What can I do ?
Thanks Harald
Re: Since 2 weeks I have many files staying in mqueue-rx (dual sendmail)
am 04.11.2007 21:10:57 von Arnold
Another error message that often occures in "q*"-Files:
[BEGIN]
MDeferred: 451 4.5.0 Error in processing, id=08281-01,
quar+notif FAILED: temporarily unable to quarantine:
450 4.4.1 Can't connect to 127.0.0.1 port 10025, Net
::SMTP: connect: Connection refused (Connection refused)
at (eval 51) line 145, line 179., MTA([127.0.0.1]:
10025), id=08281-01 at /usr/sbin/amavisd line 9101,
line 179.
Fbs
[END]
Re: Since 2 weeks I have many files staying in mqueue-rx (dual sendmail)
am 04.11.2007 21:18:24 von Arnold
sendmail-config: port 25 (maybe interesting for you):
[BEGIN]
divert(-1)
include(`/usr/share/sendmail/m4/cf.m4')
divert(0)dnl
VERSIONID(`@(#)Setup for SuSE Linux 8.10.2-0.3 (SuSE Linux) 08/05/2000')
OSTYPE(`linux')dnl
define(`confCON_EXPENSIVE', `False')dnl
define(`ESMTP_MAILER_ARGS', `TCP $h 10024')dnl
define(`SMTP_MAILER_MAXMSGS', `20')dnl
define(`confPID_FILE', `/var/run/sendmail-rx.pid')dnl
define(`STATUS_FILE', `/etc/mail/stat-rx')dnl
define(`QUEUE_DIR', `/var/spool/mqueue-rx')dnl
define(`confQUEUE_SORT_ORDER', `Modification')dnl
define(`confTO_DATAFINAL', `20m')dnl
QUEUE_GROUP(`mqueue', `P=/var/spool/mqueue-rx, R=8, F=f')dnl
FEATURE(stickyhost)dnl
define(`MAIL_HUB', `esmtp:[10.0.0.140]')dnl
define(`SMART_HOST', `esmtp:[10.0.0.140]')dnl
define(`MAX_DAEMON_CHILDREN', `25')dnl
DAEMON_OPTIONS(`Name=MTA-RX')dnl
define(`confSMTP_LOGIN_MSG', `$w.rx.$m Sendmail $v/$Z; $b')dnl
FEATURE(`accept_unresolvable_domains')dnl
FEATURE(`nocanonify')dnl
FEATURE(`access_db')dnl
FEATURE(`genericstable')dnl
FEATURE(`mailertable')dnl
FEATURE(`virtusertable')dnl
MASQUERADE_AS(`arnold.at')dnl
define(`confTO_IDENT', `0')dnl
FEATURE(`masquerade_envelope')dnl
undefine(`ALIAS_FILE')dnl
define(`confFORWARD_PATH')dnl
undefine(`UUCP_RELAY')dnl
undefine(`BITNET_RELAY')dnl
undefine(`DECNET_RELAY')dnl
DOMAIN(`generic')dnl
LOCAL_CONFIG
Cw localhost saruman.arnold.at gandalf.arnold.at galadriel.arnold.at
laptop.arnold.at haribo.arnold.at arnold.at frodo.arnold.at arwen.arnold.at
sauron.arnold.at
MAILER(`smtp')dnl
[END]
--------------------------------------------------------
sendmail-config: port 10025 (maybe interesting for you):
[BEGIN]
divert(-1)
include(`/usr/local/src/sendmail/cf/m4/cf.m4')
divert(0)dnl
VERSIONID(`@(#)Setup for SuSE Linux 8.10.2-0.3 (SuSE Linux) 08/05/2000')
OSTYPE(`linux')dnl
define(`PROCMAIL_MAILER_PATH', `/usr/bin/procmail')dnl
define(`confCON_EXPENSIVE', `False')dnl
dnl define(`LOCAL_RELAY', `smtp.arnold.at')dnl
dnl define(`MAIL_HUB', `smtp.arnold.at')dnl
define(`SMTP_MAILER_MAXMSGS', `20')dnl
define(`confPID_FILE', `/var/run/sendmail-tx.pid')dnl
FEATURE(`accept_unresolvable_domains')dnl
FEATURE(`nocanonify')dnl
FEATURE(`access_db')dnl
FEATURE(`genericstable')dnl
FEATURE(`mailertable')dnl
FEATURE(`virtusertable')dnl
define(`confDELIVERY_MODE', `background')dnl
define(`MAX_DAEMON_CHILDREN', `30')dnl
MASQUERADE_AS(`arnold.at')dnl
FEATURE(`masquerade_envelope')dnl
DOMAIN(`generic')dnl
FEATURE(`no_default_msa')dnl
DAEMON_OPTIONS(`Addr=smtp.arnold.at, Port=10025, Name=MTA-TX')dnl
define(`confSMTP_LOGIN_MSG', `$w.tx.$m Sendmail $v/$Z; $b')dnl
define(`confTO_IDENT', `0')dnl
define(`confLOG_LEVEL', `9')
LOCAL_CONFIG
Cw localhost saruman.arnold.at gandalf.arnold.at galadriel.arnold.at
laptop.arnold.at haribo.arnold.at arnold.at frodo.arnold.at arwen.arnold.at
sauron.arnold.at bilbo.arnold.at pippin.arnold.at
MAILER(`local')dnl
MAILER(`smtp')dnl
MAILER(`procmail')dnl
MAILER(`uucp')dnl
[END]
------------------------------------------------------------ --
amavis-new-config: port 10024, using clamav 0.91.1:
[BEGIN]
use strict;
$myhostname='sauron.arnold.at';
$MYHOME = '/var/spool/amavis';
$mydomain = 'arnold.at';
$daemon_user = 'vscan';
$daemon_group = 'vscan';
$TEMPBASE = $MYHOME;
$helpers_home = $MYHOME;
$pid_file = "$MYHOME/amavisd.pid";
$lock_file = "$MYHOME/amavisd.lock";
$ENV{TMPDIR} = $TEMPBASE;
$forward_method = 'smtp:smtp.arnold.at:10025';
$notify_method = $forward_method;
$max_servers = 15;
$max_requests = 10;
$child_timeout=10*60;
@local_domains_acl = ( ".$mydomain", '[127.0.0.1]', '[10.0.0.140]' );
$unix_socketname = "$MYHOME/amavisd.sock";
$inet_socket_port = 10024;
$inet_socket_bind = '10.0.0.140';
@inet_acl = qw( 127.0.0.1 192.168.0.10 10.0.0.140 );
$DO_SYSLOG = 1;
$SYSLOG_LEVEL = 'mail.info';
$LOGFILE = "$MYHOME/amavis.log";
$log_level = 0;
$log_templ = '[? %
<%o> -> [<%R>|,][? %i ||, quarantine %i], Message-ID: %m, Hits: %c';
$final_virus_destiny = D_BOUNCE;
$final_banned_destiny = D_BOUNCE;
$final_spam_destiny = D_PASS;
$final_bad_header_destiny = D_BOUNCE;
$warnvirussender = 0;
$warnspamsender = 0;
$warnbannedsender = 0;
$warnbadhsender = 0;
$warnvirusrecip = 0;
$warnbannedrecip = 0;
$viruses_that_fake_sender_re = new_RE(
qr'nimda|hybris|klez|bugbear|yaha|braid|sobig|fizzer|palyh|p eido|holar'i,
qr'tanatos|lentin|bridex|mimail|trojan\.dropper'i,
);
$virus_admin = undef;
$spam_admin = undef;
$mailfrom_notify_admin = "root\@$mydomain";
$mailfrom_notify_recip = "root\@$mydomain";
$mailfrom_notify_spamadmin = "root\@$mydomain";
$mailfrom_to_quarantine = undef;
$QUARANTINEDIR = '/var/spool/amavis/virusmails';
$virus_quarantine_to = undef;
$spam_quarantine_to = undef;
$X_HEADER_TAG = 'X-Virus-Scanned';
$X_HEADER_LINE = "by amavisd-new at $mydomain";
$remove_existing_x_scanned_headers = 0;
$remove_existing_spam_headers = 0;
$bypass_decode_parts = 1;
$keep_decoded_original_re = new_RE(
qr'^(ASCII|text|uuencoded|xxencoded|binhex)'i,
);
$sql_select_white_black_list = undef;
$recipient_delimiter = '-';
$replace_existing_extension = 1;
$localpart_is_case_sensitive = 0;
$blacklist_sender_re = new_RE(
qr'^(bulkmail|offers|cheapbenefits|earnmoney|foryou|greatcas ino)@'i,
qr'^(investments|lose_weight_today|market.alert|money2you
MyGreenCard)@'i,
qr'^(new\.tld\.registry|opt-out|opt-in|optin|saveonlsmoking2 002k)@'i,
qr'^(specialoffer|specialoffers|stockalert|stopsnoring|wants ome)@'i,
qr'^(workathome|yesitsfree|your_friend|greatoffers)@'i,
qr'^(inkjetplanet|marketopt|MakeMoney)\d*@'i,
);
read_hash(\%whitelist_sender, '/var/spool/amavis/whitelist_sender');
read_hash(\%blacklist_sender, '/var/spool/amavis/blacklist_sender');
read_hash(\%spam_lovers , '/var/spool/amavis/spam_lovers');
read_hash(\%bad_header_lovers, '/var/spool/amavis/badheader_lovers');
$MAXLEVELS = 14;
$MAXFILES = 1500;
$MIN_EXPANSION_QUOTA = 100*1024;
$MAX_EXPANSION_QUOTA = 300*1024*1024;
$MIN_EXPANSION_FACTOR = 5;
$MAX_EXPANSION_FACTOR = 500;
$path = '/usr/local/sbin:/usr/local/bin:/usr/sbin:/sbin:/usr/bin:/bi n';
$file = 'file';
$gzip = 'gzip';
$bzip2 = 'bzip2';
$lzop = 'lzop';
$uncompress = ['uncompress', 'gzip -d', 'zcat'];
$unfreeze = ['unfreeze', 'freeze -d', 'melt', 'fcat'];
$arc = ['nomarch', 'arc'];
$unarj = ['arj', 'unarj'];
$unrar = ['rar', 'unrar'];
$zoo = 'zoo';
$lha = 'lha';
$cpio = 'cpio';
$sa_local_tests_only = 0;
$sa_auto_whitelist = 1;
$sa_mail_body_size_limit = 64*1024;
$sa_tag_level_deflt = -999.0;
$sa_tag2_level_deflt = 3.3;
$sa_kill_level_deflt = $sa_tag2_level_deflt;
$sa_spam_subject_tag = '***SPAM*** ';
$sa_spam_modifies_subj = 1;
$sa_timeout = 60;
@av_scanners = (
....
);
$sa_debug = 0;
1;
[END]
Re: Since 2 weeks I have many files staying in mqueue-rx (dual sendmail)
am 04.11.2007 21:30:50 von Arnold
My configuration of versions:
I am using SuSE V10.2, dual-sendmail (sendmail-8.14.0),
amavis (amavisd-new-2.4.3 (20060930), clamav (0.91.2/4659/Thu),
spamassassin (3.1.8), dcc (dcc-dccd-1.3.42),
razor (2.82, prot V3), pyzor (pyzor-0.4.0), perl (5.8.7).
sendmail (rx, mqueue-rx) will receive any mail on port 25
sendmail will send the mail to amavis
amavis will do on port 10024:
- clamav should scan each mail or viruses
- spamassassin should scan for spam
- DCC, RAZOR, PYZOR
There are three file lists (/var/spool/amavis):
- spam_lovers
- whitelist_sender
- blacklist_sender
- spam will be marked as spam and should go through
- sendmail (tx, mqueue) will receive message on port 10025
and should send mail by virtusertable to sender
Thanks Harald