URL: https://www.opennet.me/cgi-bin/openforum/vsluhboard.cgi
Форум: vsluhforumID1
Нить номер: 83289
[ Назад ]

Исходное сообщение
"Помогите с проблемой Amavisd. Уже голова закипает... "

Отправлено newbi , 10-Дек-08 13:06 
Началось с того что решил я обновить все почтовую связку. Postfix + ClamAV + SpamAssassin + Amavis-new.
Все прошло удачно за исключением Amavis-new... Проблемма в следующем.

В maillog:

amavis[44064]: starting.  /usr/local/sbin/amavisd  amavisd-new-2.6.1 (20080629), Unicode aware
Dec 10 11:39:38 mx amavis[44064]: Perl version               5.008008
Dec 10 11:39:38 mx postfix/smtpd[918]: connect from unknown[59.96.147.209]
Dec 10 11:39:38 mx postfix/smtpd[1168]: connect from unknown[59.96.147.209]
Dec 10 11:39:39 mx postfix/smtpd[919]: connect from unknown[59.96.147.209]
Dec 10 11:39:39 mx postfix/smtpd[11373]: connect from unknown[59.96.147.209]
Dec 10 11:39:40 mx amavis[44067]: Module Amavis::Conf        2.103
Dec 10 11:39:40 mx amavis[44067]: Module Archive::Zip        1.16
Dec 10 11:39:40 mx amavis[44067]: Module BerkeleyDB          0.30
Dec 10 11:39:40 mx amavis[44067]: Module Compress::Zlib      2.015
Dec 10 11:39:40 mx amavis[44067]: Module Convert::TNEF       0.17
Dec 10 11:39:40 mx amavis[44067]: Module Convert::UUlib      1.12
Dec 10 11:39:40 mx amavis[44067]: Module Crypt::OpenSSL::RSA 0.25
Dec 10 11:39:40 mx amavis[44067]: Module DB_File             1.814
Dec 10 11:39:40 mx amavis[44067]: Module Digest::MD5         2.36
Dec 10 11:39:40 mx amavis[44067]: Module Digest::SHA         5.47
Dec 10 11:39:40 mx amavis[44067]: Module Digest::SHA1        2.11
Dec 10 11:39:40 mx amavis[44067]: Module IO::Socket::INET6   2.51
Dec 10 11:39:40 mx amavis[44067]: Module MIME::Entity        5.420
Dec 10 11:39:40 mx amavis[44067]: Module MIME::Parser        5.420
Dec 10 11:39:40 mx amavis[44067]: Module MIME::Tools         5.420
Dec 10 11:39:40 mx amavis[44067]: Module Mail::DKIM          0.32
Dec 10 11:39:40 mx amavis[44067]: Module Mail::Header        1.74
Dec 10 11:39:40 mx amavis[44067]: Module Mail::Internet      1.74
Dec 10 11:39:40 mx amavis[44067]: Module Mail::SPF           v2.005
Dec 10 11:39:40 mx amavis[44067]: Module Mail::SpamAssassin  3.002005
Dec 10 11:39:40 mx amavis[44067]: Module Net::DNS            0.63
Dec 10 11:39:40 mx amavis[44067]: Module Net::Server         0.94
Dec 10 11:39:40 mx amavis[44067]: Module NetAddr::IP         4.017
Dec 10 11:39:40 mx amavis[44067]: Module Razor2::Client::Version 2.84
Dec 10 11:39:40 mx amavis[44067]: Module Socket6             0.19
Dec 10 11:39:40 mx amavis[44067]: Module Time::HiRes         1.91
Dec 10 11:39:40 mx amavis[44067]: Module URI                 1.35
Dec 10 11:39:40 mx amavis[44067]: Module Unix::Syslog        0.100
Dec 10 11:39:40 mx amavis[44067]: Amavis::DB code      loaded
Dec 10 11:39:40 mx amavis[44067]: Amavis::Cache code   loaded
Dec 10 11:39:40 mx amavis[44067]: SQL base code        NOT loaded
Dec 10 11:39:40 mx amavis[44067]: SQL::Log code        NOT loaded
Dec 10 11:39:40 mx amavis[44067]: SQL::Quarantine      NOT loaded
Dec 10 11:39:40 mx amavis[44067]: Lookup::SQL code     NOT loaded
Dec 10 11:39:40 mx amavis[44067]: Lookup::LDAP code    NOT loaded
Dec 10 11:39:40 mx amavis[44067]: AM.PDP-in proto code loaded
Dec 10 11:39:40 mx amavis[44067]: SMTP-in proto code   loaded
Dec 10 11:39:40 mx amavis[44067]: Courier proto code   NOT loaded
Dec 10 11:39:40 mx amavis[44067]: SMTP-out proto code  loaded
Dec 10 11:39:40 mx amavis[44067]: Pipe-out proto code  NOT loaded
Dec 10 11:39:40 mx amavis[44067]: BSMTP-out proto code NOT loaded
Dec 10 11:39:40 mx amavis[44067]: Local-out proto code loaded
Dec 10 11:39:40 mx amavis[44067]: OS_Fingerprint code  NOT loaded
Dec 10 11:39:40 mx amavis[44067]: ANTI-VIRUS code      loaded
Dec 10 11:39:40 mx amavis[44067]: ANTI-SPAM code       loaded
Dec 10 11:39:40 mx amavis[44067]: ANTI-SPAM-SA code    loaded
Dec 10 11:39:40 mx amavis[44067]: Unpackers code       loaded
Dec 10 11:39:40 mx amavis[44067]: DKIM code            loaded
Dec 10 11:39:40 mx amavis[44067]: Tools code           NOT loaded
Dec 10 11:39:40 mx amavis[44067]: No $file,              not using it
Dec 10 11:39:40 mx amavis[44067]: No $dspam,             not using it
Dec 10 11:39:40 mx amavis[44067]: No $altermime,         not using it
Dec 10 11:39:40 mx amavis[44067]: Internal decoder for .mail
Dec 10 11:39:40 mx amavis[44067]: Internal decoder for .asc
Dec 10 11:39:40 mx amavis[44067]: Internal decoder for .uue
Dec 10 11:39:40 mx amavis[44067]: Internal decoder for .hqx
Dec 10 11:39:40 mx amavis[44067]: Internal decoder for .ync
Dec 10 11:39:40 mx amavis[44067]: No decoder for       .F    tried: unfreeze, freeze -d, melt, fcat
Dec 10 11:39:40 mx amavis[44067]: No decoder for       .Z    tried: uncompress, gzip -d, zcat
Dec 10 11:39:40 mx amavis[44067]: No decoder for       .gz   tried: gzip -d
Dec 10 11:39:40 mx amavis[44067]: Internal decoder for .gz  
Dec 10 11:39:40 mx amavis[44067]: No decoder for       .bz2  tried: bzip2 -d
Dec 10 11:39:40 mx amavis[44067]: No decoder for       .lzo  tried: lzop -d
Dec 10 11:39:40 mx amavis[44067]: No decoder for       .rpm  tried: rpm2cpio.pl, rpm2cpio
Dec 10 11:39:40 mx amavis[44067]: No decoder for       .cpio tried: pax, gcpio, cpio
Dec 10 11:39:40 mx amavis[44067]: No decoder for       .tar  tried: pax, gcpio, cpio
Dec 10 11:39:40 mx amavis[44067]: No decoder for       .deb  tried: ar
Dec 10 11:39:40 mx amavis[44067]: Internal decoder for .zip
Dec 10 11:39:40 mx amavis[44067]: No decoder for       .7z   tried: 7zr, 7za, 7z
Dec 10 11:39:40 mx amavis[44067]: No decoder for       .rar  tried: rar, unrar
Dec 10 11:39:40 mx amavis[44067]: No decoder for       .arj  tried: arj, unarj
Dec 10 11:39:40 mx amavis[44067]: No decoder for       .arc  tried: nomarch, arc
Dec 10 11:39:40 mx amavis[44067]: No decoder for       .zoo  tried: zoo, unzoo
Dec 10 11:39:40 mx amavis[44067]: No decoder for       .lha  tried: lha
Dec 10 11:39:40 mx amavis[44067]: No decoder for       .cab  tried: cabextract
Dec 10 11:39:40 mx amavis[44067]: No decoder for       .tnef tried: tnef
Dec 10 11:39:40 mx amavis[44067]: Internal decoder for .tnef
Dec 10 11:39:40 mx amavis[44067]: No decoder for       .exe  tried: rar, unrar; lha; arj, unarj
Dec 10 11:39:40 mx amavis[44067]: (!!)TROUBLE in pre_loop_hook: No TEMPBASE directory: /var/amavis /var/amavis/tmp at /usr/local/sbin/amavisd line 8745.
Dec 10 11:39:40 mx amavis[44067]: (!)_DIE: No TEMPBASE directory: /var/amavis /var/amavis/tmp at /usr/local/sbin/amavisd line 8745.

И гуглил и что только не делал - бесполезно.

вот права на /var/amavis

total 8
1978372 -rw-r-----  1 amavis  amavis    5 Dec 10 12:35 amavisd.pid
1978376 srwxr-x---  1 amavis  amavis    0 Dec 10 12:48 amavisd.sock
1978369 drwxr-xr-x  2 amavis  amavis  512 Dec 10 12:45 db
1978370 drwxr-xr-x  2 amavis  amavis  512 Dec 10 12:42 tmp
1978371 drwxr-xr-x  2 amavis  amavis  512 Dec 10 12:48 var


/etc/master.passwd


vscan:*:110:110::0:0:Scanning Virus Account:/var/amavis:/bin/sh  
amavis:*:113:113::0:0:Amavis-stats Account:/nonexistent:/sbin/nologin

пробывал и vscan и amavis

ну и сам /usr/local/etc/amavis.conf


# COMMONLY ADJUSTED SETTINGS:

# @bypass_virus_checks_maps = (1);  # controls running of anti-virus code
# @bypass_spam_checks_maps  = (1);  # controls running of anti-spam code
# $bypass_decode_parts = 1;         # controls running of decoders&dearchivers

$max_servers = 2;            # num of pre-forked children (2..30 is common), -m
$daemon_user  = 'amavis';     # (no default;  customary: vscan or amavis), -u
$daemon_group = 'amavis';     # (no default;  customary: vscan or amavis), -g

$mydomain = 'askunion.ru';   # a convenient default for other settings

$MYHOME = '/var/amavis';   # a convenient default for other settings, -H
$TEMPBASE = "$MYHOME/tmp";   # working directory, needs to exist, -T
$ENV{TMPDIR} = "$TEMPBASE";    # environment variable TMPDIR, used by SA, etc.
$QUARANTINEDIR = '/var/virusmails';  # -Q
# $quarantine_subdir_levels = 1;  # add level of subdirs to disperse quarantine
# $release_format = 'resend';     # 'attach', 'plain', 'resend'
# $report_format  = 'arf';        # 'attach', 'plain', 'resend', 'arf'

$daemon_chroot_dir = $MYHOME;   # chroot directory or undef, -R

$db_home   = "$MYHOME/db";      # dir for bdb nanny/cache/snmp databases, -D
$helpers_home = "$MYHOME/var";  # working directory for SpamAssassin, -S
$lock_file = "$MYHOME/var/amavisd.lock";  # -L
$pid_file  = "$MYHOME/var/amavisd.pid";   # -P
#NOTE: create directories $MYHOME/tmp, $MYHOME/var, $MYHOME/db manually



Содержание

Сообщения в этом обсуждении
"Помогите с проблемой Amavisd. Уже голова закипает... "
Отправлено newbi , 11-Дек-08 15:44 
Решил. /var/amavis была в chroot.
Рашил путем закоментирования в amavisd.conf

"Помогите с проблемой Amavisd. Уже голова закипает... "
Отправлено PavelR , 11-Дек-08 19:07 
>Решил. /var/amavis была в chroot.
>Рашил путем закоментирования в amavisd.conf

отличное решение, повышающее безопасность %)