Ola Pessoal
Estou configurando o postfix + Courier + Postfixadmin + Squirrelmail +
Amavis-new + SpamAssassin + Clamav, o postfix, Courier, Postfixadmin,
Squirrelmail já estão funcionando corretamente, mas na hora que foi colocar o
amavis-new e o spamassasin para rodarem em conjunto com o postfix aparece o
seguinte erro no log do e-mail:
### /var/log/mail.log ###
Mar 9 00:38:35 localhost postfix/qmgr[1898]: warning: connect to transport
spamd: Connection refused
O que pode estar acontecendo para dar o erro acima?
Distribuição: Debian 3.1
Desde já agradeço.
Ricardo Bittencourt
Segue abaixo os arquivos de configuração e demais informações
### /etc/postfix/master.cf ###
# ==========================================================================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ==========================================================================
smtp inet n - n - - smtpd
#submission inet n - n - - smtpd
# -o smtpd_etrn_restrictions=reject
#628 inet n - n - - qmqpd
pickup fifo n - n 60 1 pickup
cleanup unix n - n - 0 cleanup
qmgr fifo n - n 300 1 qmgr
#qmgr fifo n - n 300 1 oqmgr
rewrite unix - - n - - trivial-rewrite
bounce unix - - n - 0 bounce
defer unix - - n - 0 bounce
trace unix - - n - 0 bounce
verify unix - - n - 1 verify
flush unix n - n 1000? 0 flush
proxymap unix - - n - - proxymap
smtp unix - - n - - smtp
relay unix - - n - - smtp
# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq unix n - n - - showq
error unix - - n - - error
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - n - - lmtp
anvil unix - - n - 1 anvil
#
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
#
# maildrop. See the Postfix MAILDROP_README file for details.
#
maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
uucp unix - n n - - pipe
flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
ifmail unix - n n - - pipe
flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp unix - n n - - pipe
flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -d -t$nexthop -f$sender
$recipient
scalemail-backend unix - n n - 2 pipe
flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop}
${user} ${extension}
# AMAVIS + SPAMASSASSIN
smtp-amavis unix - - n - 2 smtp
-o smtp_data_done_timeout=1200
-o smtp_send_xforward_command=yes
-o disable_dns_lookups=yes
127.0.0.1:10025 inet n - n - - smtpd
-o content_filter=
-o local_recipient_maps=
-o relay_recipient_maps=
-o smtpd_restriction_classes=
-o smtpd_client_restrictions=
-o smtpd_helo_restrictions=
-o smtpd_sender_restrictions=
-o strict_rfc821_envelopes=yes
-o smtpd_error_sleep_time=0
# only used by postfix-tls
#tlsmgr fifo - - n 300 1 tlsmgr
#smtps inet n - n - - smtpd -o
smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
#587 inet n - n - - smtpd -o
smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes
#########################################################################################################################
### /etc/postfix/main.cf
# See /usr/share/postfix/main.cf.dist for a commented, more complete version
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no
# appending .domain is the MUA's job.
append_dot_mydomain = no
# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h
# Configuração Basica
myhostname = debian.casa.com.br
mydomain = casa.com.br
myorigin = $mydomain
mydestination = $myhostname localhost.$mydomain localhost
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
relayhost =
mynetworks = 127.0.0.0/8, 10.10.2.0/24
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
# Configuração para trabalhar com o mysql (dominios virtuais)
virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf
virtual_mailbox_base = /var/virtualmail
virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domains_maps.cf
virtual_mailbox_limit = 51200000
virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
virtual_uid_maps = static:105
virtual_gid_maps = static:106
# Aqui entra a configuração para o amavis_new
content_filter = smtp-amavis:[127.0.0.1]:10024
#########################################################################################################################
### /etc/spamassassin/local.cf
required_hits 8.0
r10write_subject 1
subject_tag ***** SPAM*****
report_safe 1
use_terse_report 1
use_bayes 1
auto_learn 1
bayes_min_ham_num 50
bayes_min_spam_num 80
skip_rbl_checks 0
use_razor2 1
use_dcc 1
use_pyzor 1
ok_languages all
ok_locales all
#########################################################################################################################
### /etc/amavis/amavisd.conf
$MYHOME = '/var/lib/amavis';
$mydomain = 'casa.com.br';
$myhostname = 'debian.casa.com.br';
$daemon_user = 'amavis';
$daemon_group = 'amavis';
$TEMPBASE = $MYHOME;
$forward_method = 'smtp:127.0.0.1:10025';
$notify_method = $forward_method;
$final_virus_destiny = D_DISCARD; # (defaults to D_BOUNCE)
$final_banned_destiny = D_DISCARD; # (defaults to D_BOUNCE)
$final_spam_destiny = D_DISCARD; # (defaults to D_REJECT)
$final_bad_header_destiny = D_PASS; # (defaults to D_PASS), D_BOUNCE suggested
$warnvirusrecip = 1;
$virus_admin = "[EMAIL PROTECTED]";
$mailfrom_notify_admin = "[EMAIL PROTECTED]";
$mailfrom_notify_recip = "[EMAIL PROTECTED]";
$mailfrom_notify_spamadmin = "[EMAIL PROTECTED]";
$hdrfrom_notify_sender = "[EMAIL PROTECTED]";
$LOGFILE = "/var/log/amavis.log";
$QUARENTINEDIR = '/var/lib/amavis/virusmails';
$banned_filename_re = new_RE (
qr'.\.(exe|vbs|pif|scr|bat|cmd|com)$'i,
qr'^application/x-msdos-program$'i,
);
#########################################################################################################################
### Log da Inicialização do AMAVIS-NEW
Mar 9 00:00:57 debian.casa.com.br amavisd-new[1617]: starting. amavisd-new at
debian.casa.com.br amavisd-new-20030616-p10, Unicode aware, LANG=pt_BR
Mar 9 00:00:57 debian.casa.com.br amavisd-new[1617]: Perl version
5.008004
Mar 9 00:00:57 debian.casa.com.br amavisd-new[1617]: Module Amavis::Conf
1.15
Mar 9 00:00:57 debian.casa.com.br amavisd-new[1617]: Module Archive::Tar
1.23
Mar 9 00:00:57 debian.casa.com.br amavisd-new[1617]: Module Archive::Zip
1.14
Mar 9 00:00:57 debian.casa.com.br amavisd-new[1617]: Module Compress::Zlib
1.34
Mar 9 00:00:57 debian.casa.com.br amavisd-new[1617]: Module Convert::TNEF
0.17
Mar 9 00:00:57 debian.casa.com.br amavisd-new[1617]: Module Convert::UUlib
1.051
Mar 9 00:00:57 debian.casa.com.br amavisd-new[1617]: Module DB_File
1.808
#########################################################################################################################
### Comando ps axf
PID TTY STAT TIME COMMAND
1 ? S 0:00 init [2]
2 ? S 0:00 [keventd]
3 ? SN 0:00 [ksoftirqd_CPU0]
4 ? S 0:00 [kswapd]
5 ? S 0:00 [bdflush]
6 ? S 0:00 [kupdated]
99 ? S 0:00 [kjournald]
225 ? S 0:00 [kapmd]
471 ? S 0:00 [khubd]
1099 ? Ss 0:00 dhclient -e -pf /var/run/dhclient.eth0.pid -lf
/var/run/dhclient.eth0.leases eth0
1266 ? Ss 0:00 /sbin/syslogd
1269 ? Ss 0:00 /sbin/klogd
1277 ? Ss 0:00 /usr/sbin/named -u bind
1278 ? S 0:00 \_ /usr/sbin/named -u bind
1279 ? S 0:00 \_ /usr/sbin/named -u bind
1280 ? S 0:00 \_ /usr/sbin/named -u bind
1281 ? S 0:00 \_ /usr/sbin/named -u bind
1299 ? S 0:00 /usr/sbin/courierlogger
-pid=/var/run/courier/authdaemon/pid -start
/usr/lib/courier/authlib/authdaemond.mysql
1300 ? S 0:00 \_ /usr/lib/courier/authlib/authdaemond.mysql
1308 ? S 0:00 \_ /usr/lib/courier/authlib/authdaemond.mysql
1309 ? S 0:00 \_ /usr/lib/courier/authlib/authdaemond.mysql
1310 ? S 0:00 \_ /usr/lib/courier/authlib/authdaemond.mysql
1311 ? S 0:00 \_ /usr/lib/courier/authlib/authdaemond.mysql
1312 ? S 0:00 \_ /usr/lib/courier/authlib/authdaemond.mysql
1306 ? S 0:00 /usr/sbin/couriertcpd -address=0
-stderrlogger=/usr/sbin/courierlogger -maxprocs=40 -maxperip=20
-pid=/var/run/courier/imapd.pid -nodnslookup -noidentlookup 143
/usr/lib/courier/courier/imaplogin /usr/lib/courier/authlib/authdaemon
/usr/bin/imapd Maildir
1314 ? S 0:00 /usr/sbin/courierlogger imaplogin
1320 ? S 0:00 /usr/sbin/couriertcpd -pid=/var/run/courier/pop3d.pid
-stderrlogger=/usr/sbin/courierlogger -maxprocs=40 -maxperip=4 -nodnslookup
-noidentlookup -address=0 110 /usr/lib/courier/courier/courierpop3login
/usr/lib/courier/authlib/authdaemon /usr/lib/courier/courier/courierpop3d
Maildir
1324 ? S 0:00 /usr/sbin/courierlogger courierpop3login
1326 ? Ss 0:00 /usr/sbin/dhcpd3 -q eth1
1339 ? Ss 0:00 /usr/sbin/inetd
1354 ? S 0:00 /bin/sh /usr/bin/mysqld_safe
1390 ? S 0:00 \_ /bin/sh /usr/bin/mysqld_safe
1391 ? S 0:00 \_ /usr/sbin/mysqld --basedir=/usr
--datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysqld/mysqld.pid
--skip-locking --port=3306 --socket=/var/run/mysqld/mysqld.sock
1393 ? S 0:00 | \_ /usr/sbin/mysqld --basedir=/usr
--datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysqld/mysqld.pid
--skip-locking --port=3306 --socket=/var/run/mysqld/mysqld.sock
1394 ? S 0:00 | \_ /usr/sbin/mysqld --basedir=/usr
--datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysqld/mysqld.pid
--skip-locking --port=3306 --socket=/var/run/mysqld/mysqld.sock
1395 ? S 0:00 | \_ /usr/sbin/mysqld --basedir=/usr
--datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysqld/mysqld.pid
--skip-locking --port=3306 --socket=/var/run/mysqld/mysqld.sock
1396 ? S 0:00 | \_ /usr/sbin/mysqld --basedir=/usr
--datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysqld/mysqld.pid
--skip-locking --port=3306 --socket=/var/run/mysqld/mysqld.sock
1397 ? S 0:00 | \_ /usr/sbin/mysqld --basedir=/usr
--datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysqld/mysqld.pid
--skip-locking --port=3306 --socket=/var/run/mysqld/mysqld.sock
1398 ? S 0:00 | \_ /usr/sbin/mysqld --basedir=/usr
--datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysqld/mysqld.pid
--skip-locking --port=3306 --socket=/var/run/mysqld/mysqld.sock
1399 ? S 0:00 | \_ /usr/sbin/mysqld --basedir=/usr
--datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysqld/mysqld.pid
--skip-locking --port=3306 --socket=/var/run/mysqld/mysqld.sock
1400 ? S 0:00 | \_ /usr/sbin/mysqld --basedir=/usr
--datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysqld/mysqld.pid
--skip-locking --port=3306 --socket=/var/run/mysqld/mysqld.sock
1401 ? S 0:00 | \_ /usr/sbin/mysqld --basedir=/usr
--datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysqld/mysqld.pid
--skip-locking --port=3306 --socket=/var/run/mysqld/mysqld.sock
1555 ? S 0:00 | \_ /usr/sbin/mysqld --basedir=/usr
--datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysqld/mysqld.pid
--skip-locking --port=3306 --socket=/var/run/mysqld/mysqld.sock
1392 ? S 0:00 \_ logger -p daemon.err -t mysqld_safe -i -t
mysqld
1511 ? Ss 0:00 /usr/sbin/sshd
1558 ? Ss 0:01 \_ sshd: [EMAIL PROTECTED]/0
1560 ? S 0:00 | \_ sshd: [EMAIL PROTECTED]/0
1562 pts/0 Ss 0:00 | \_ -bash
1969 pts/0 R+ 0:00 | \_ ps axf
1566 ? Ss 0:00 \_ sshd: [EMAIL PROTECTED]/1
1568 ? S 0:00 \_ sshd: [EMAIL PROTECTED]/1
1570 pts/1 Ss 0:00 \_ -bash
1802 pts/1 S+ 0:00 \_ tail -f /var/log/amavis.log
/var/log/auth.log /var/log/base-config.log /var/log/base-config.timings
/var/log/daemon.log /var/log/kern.log /var/log/localization-config.log
/var/log/lpr.log /var/log/mail.err /var/log/mail.info /var/log/mail.log
/var/log/mail.warn /var/log/mysql.err /var/log/mysql.log /var/log/user.log
/var/log/uucp.log
1519 ? Ss 0:00 proftpd: (accepting connections)
1957 ? S 0:00 \_ proftpd: ricardo - 10.10.2.30: IDLE
1527 ? Ss 0:00 /usr/sbin/atd
1530 ? Ss 0:00 /usr/sbin/cron
1536 ? Ss 0:00 /usr/sbin/apache2 -k start -DSSL
1548 ? S 0:00 \_ /usr/sbin/apache2 -k start -DSSL
1549 ? S 0:00 \_ /usr/sbin/apache2 -k start -DSSL
1550 ? S 0:00 \_ /usr/sbin/apache2 -k start -DSSL
1551 ? S 0:00 \_ /usr/sbin/apache2 -k start -DSSL
1552 ? S 0:00 \_ /usr/sbin/apache2 -k start -DSSL
1542 tty1 Ss+ 0:00 /sbin/getty 38400 tty1
1543 tty2 Ss+ 0:00 /sbin/getty 38400 tty2
1544 tty3 Ss+ 0:00 /sbin/getty 38400 tty3
1545 tty4 Ss+ 0:00 /sbin/getty 38400 tty4
1546 tty5 Ss+ 0:00 /sbin/getty 38400 tty5
1547 tty6 Ss+ 0:00 /sbin/getty 38400 tty6
1606 ? Ss 0:00 amavisd (master)
1607 ? S 0:00 \_ amavisd (virgin child)
1608 ? S 0:00 \_ amavisd (virgin child)
1894 ? Ss 0:00 /usr/lib/postfix/master
1897 ? S 0:00 \_ pickup -l -t fifo -u
1898 ? S 0:00 \_ qmgr -l -t fifo -u
1929 ? Ss 0:00 /usr/sbin/spamd --create-prefs --max-children 5
--helper-home-dir -d --pidfile=/var/run/spamd.pid
1930 ? S 0:00 \_ spamd child
1931 ? S 0:00 \_ spamd child
1932 ? S 0:00 \_ spamd child
1933 ? S 0:00 \_ spamd child
1934 ? S 0:00 \_ spamd child
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]