Pages : 1
#1 Le 04/02/2013, à 19:21
- 28marc28
Probleme amavis-spamassin
Bonsoir à tous,
Je reviens vers vous pour la suite de la configuration de mon serveur...
Alors j'ai fini par tout craquer et tout réinstaller.
Tout est en place apache2, mysql, php5, postfix, dovcot, amavis, postgrey, spamassassin, roundcube, etc...
J'ai tout configuré en suivant les doc et tuto, les sites sous joomla fonctionnent aussi.
Concernant les mail j'ai fini par amavis et spamassassin.
Jusqu'à amavis et spam assassin je pouvais envoyer et recevoir des courriels, c'est maintenant que cela bloque.
Quand je relance amavis en console pas de soucis.
En revanche dans le mail.log c'est une autre histoire.
Mes courriel au niveau de thurnerbird passent sans aucun problème .
Ils ont l'air d'être bloqués au niveau du filtre, je n'arrive pas à interpréter le log, je ne sais pas ou chercher.
visiblement le group et l'utilisateur ne sont pas définis, ou ????
Avez vous une idée ou déjà rencontré ce soucis ????
mail.log :
Feb 4 19:00:06 sweb1 amavis[32377]: starting. /usr/sbin/amavisd-new at mondomaine.com amavisd-new-2.7.1 (20120429), Unicode aware, LANG="fr_FR.UTF-8"
Feb 4 19:00:07 sweb1 amavis[32384]: Net::Server: Group Not Defined. Defaulting to EGID '132 132'
Feb 4 19:00:07 sweb1 amavis[32384]: Net::Server: User Not Defined. Defaulting to EUID '122'
Feb 4 19:00:07 sweb1 amavis[32384]: Module Amavis::Conf 2.303
Feb 4 19:00:07 sweb1 amavis[32384]: Module Archive::Zip 1.30
Feb 4 19:00:07 sweb1 amavis[32384]: Module BerkeleyDB 0.51
Feb 4 19:00:07 sweb1 amavis[32384]: Module Compress::Zlib 2.033
Feb 4 19:00:07 sweb1 amavis[32384]: Module Convert::TNEF 0.17
Feb 4 19:00:07 sweb1 amavis[32384]: Module Convert::UUlib 1.4
Feb 4 19:00:07 sweb1 amavis[32384]: Module Crypt::OpenSSL::RSA 0.28
Feb 4 19:00:07 sweb1 amavis[32384]: Module DB_File 1.821
Feb 4 19:00:07 sweb1 amavis[32384]: Module Digest::MD5 2.51
Feb 4 19:00:07 sweb1 amavis[32384]: Module Digest::SHA 5.61
Feb 4 19:00:07 sweb1 amavis[32384]: Module File::Temp 0.22
Feb 4 19:00:07 sweb1 amavis[32384]: Module IO::Socket::INET6 2.69
Feb 4 19:00:07 sweb1 amavis[32384]: Module MIME::Entity 5.503
Feb 4 19:00:07 sweb1 amavis[32384]: Module MIME::Parser 5.503
Feb 4 19:00:07 sweb1 amavis[32384]: Module MIME::Tools 5.503
Feb 4 19:00:07 sweb1 amavis[32384]: Module Mail::DKIM::Signer 0.39
Feb 4 19:00:07 sweb1 amavis[32384]: Module Mail::DKIM::Verifier 0.39
Feb 4 19:00:07 sweb1 amavis[32384]: Module Mail::Header 2.09
Feb 4 19:00:07 sweb1 amavis[32384]: Module Mail::Internet 2.09
Feb 4 19:00:07 sweb1 amavis[32384]: Module Mail::SPF v2.008
Feb 4 19:00:07 sweb1 amavis[32384]: Module Mail::SpamAssassin 3.003002
Feb 4 19:00:07 sweb1 amavis[32384]: Module Net::DNS 0.68
Feb 4 19:00:07 sweb1 amavis[32384]: Module Net::Server 2.006
Feb 4 19:00:07 sweb1 amavis[32384]: Module NetAddr::IP 4.062
Feb 4 19:00:07 sweb1 amavis[32384]: Module Socket6 0.23
Feb 4 19:00:07 sweb1 amavis[32384]: Module Time::HiRes 1.972101
Feb 4 19:00:07 sweb1 amavis[32384]: Module URI 1.60
Feb 4 19:00:07 sweb1 amavis[32384]: Module Unix::Syslog 1.1
Feb 4 19:00:07 sweb1 amavis[32384]: Amavis::DB code loaded
Feb 4 19:00:07 sweb1 amavis[32384]: SQL base code NOT loaded
Feb 4 19:00:07 sweb1 amavis[32384]: SQL::Log code NOT loaded
Feb 4 19:00:07 sweb1 amavis[32384]: SQL::Quarantine NOT loaded
Feb 4 19:00:07 sweb1 amavis[32384]: Lookup::SQL code NOT loaded
Feb 4 19:00:07 sweb1 amavis[32384]: Lookup::LDAP code NOT loaded
Feb 4 19:00:07 sweb1 amavis[32384]: AM.PDP-in proto code loaded
Feb 4 19:00:07 sweb1 amavis[32384]: SMTP-in proto code loaded
Feb 4 19:00:07 sweb1 amavis[32384]: Courier proto code NOT loaded
Feb 4 19:00:07 sweb1 amavis[32384]: SMTP-out proto code loaded
Feb 4 19:00:07 sweb1 amavis[32384]: Pipe-out proto code NOT loaded
Feb 4 19:00:07 sweb1 amavis[32384]: BSMTP-out proto code NOT loaded
Feb 4 19:00:07 sweb1 amavis[32384]: Local-out proto code loaded
Feb 4 19:00:07 sweb1 amavis[32384]: OS_Fingerprint code NOT loaded
Feb 4 19:00:07 sweb1 amavis[32384]: ANTI-VIRUS code loaded
Feb 4 19:00:07 sweb1 amavis[32384]: ANTI-SPAM code loaded
Feb 4 19:00:07 sweb1 amavis[32384]: ANTI-SPAM-EXT code NOT loaded
Feb 4 19:00:07 sweb1 amavis[32384]: ANTI-SPAM-C code NOT loaded
Feb 4 19:00:07 sweb1 amavis[32384]: ANTI-SPAM-SA code loaded
Feb 4 19:00:07 sweb1 amavis[32384]: Unpackers code loaded
Feb 4 19:00:07 sweb1 amavis[32384]: DKIM code loaded
Feb 4 19:00:07 sweb1 amavis[32384]: Tools code NOT loaded
Feb 4 19:00:07 sweb1 amavis[32384]: Found $file at /usr/bin/file
Feb 4 19:00:07 sweb1 amavis[32384]: No $altermime, not using it
Feb 4 19:00:07 sweb1 amavis[32384]: Internal decoder for .mail
Feb 4 19:00:07 sweb1 amavis[32384]: No decoder for .F
Feb 4 19:00:07 sweb1 amavis[32384]: Found decoder for .Z at /bin/uncompress
Feb 4 19:00:07 sweb1 amavis[32384]: Internal decoder for .gz
Feb 4 19:00:07 sweb1 amavis[32384]: Found decoder for .bz2 at /bin/bzip2 -d
Feb 4 19:00:07 sweb1 amavis[32384]: Found decoder for .xz at /usr/bin/xz -dc
Feb 4 19:00:07 sweb1 amavis[32384]: Found decoder for .lzma at /usr/bin/xz -dc --format=lzma
Feb 4 19:00:07 sweb1 amavis[32384]: No decoder for .lzo tried: lzop -d
Feb 4 19:00:07 sweb1 amavis[32384]: No decoder for .rpm tried: rpm2cpio.pl, rpm2cpio
Feb 4 19:00:07 sweb1 amavis[32384]: Found decoder for .cpio at /bin/pax
Feb 4 19:00:07 sweb1 amavis[32384]: Found decoder for .tar at /bin/pax
Feb 4 19:00:07 sweb1 amavis[32384]: Found decoder for .deb at /usr/bin/ar
Feb 4 19:00:07 sweb1 amavis[32384]: Internal decoder for .zip
Feb 4 19:00:07 sweb1 amavis[32384]: Internal decoder for .kmz
Feb 4 19:00:07 sweb1 amavis[32384]: No decoder for .7z tried: 7zr, 7za, 7z
Feb 4 19:00:07 sweb1 amavis[32384]: No decoder for .rar tried: unrar-free
Feb 4 19:00:07 sweb1 amavis[32384]: No decoder for .arj tried: arj, unarj
Feb 4 19:00:07 sweb1 amavis[32384]: No decoder for .arc tried: nomarch, arc
Feb 4 19:00:07 sweb1 amavis[32384]: No decoder for .zoo tried: zoo
Feb 4 19:00:07 sweb1 amavis[32384]: No decoder for .doc tried: ripole
Feb 4 19:00:07 sweb1 amavis[32384]: No decoder for .cab tried: cabextract
Feb 4 19:00:07 sweb1 amavis[32384]: No decoder for .tnef
Feb 4 19:00:07 sweb1 amavis[32384]: Internal decoder for .tnef
Feb 4 19:00:07 sweb1 amavis[32384]: No decoder for .exe tried: unrar-free; arj, unarj
Feb 4 19:00:07 sweb1 amavis[32384]: Using primary internal av scanner code for ClamAV-clamd
Feb 4 19:00:07 sweb1 amavis[32384]: Found secondary av scanner ClamAV-clamscan at /usr/bin/clamscan
Feb 4 19:00:07 sweb1 amavis[32384]: Deleting db files __db.004,__db.002,nanny.db,__db.003,__db.001,snmp.db in /var/lib/amavis/db
Feb 4 19:00:07 sweb1 amavis[32384]: Creating db in /var/lib/amavis/db/; BerkeleyDB 0.51, libdb 5.1
Hors ligne
#2 Le 04/02/2013, à 19:25
- 28marc28
Re : Probleme amavis-spamassin
a la suite :
Feb 4 19:04:09 sweb1 postfix/qmgr[30877]: 73C93424A32: from=<contact@mondomaine.com>, size=2712, nrcpt=1 (queue active)
Feb 4 19:04:09 sweb1 postfix/qmgr[30877]: warning: connect to transport private/smtp-amavis: No such file or directory
Feb 4 19:04:09 sweb1 postfix/error[32414]: 73C93424A32: to=<contact@mondomaine.com>, relay=none, delay=383, delays=383/0.02/0/0.04, dsn=4.3.0, status=deferred (mail transport unavailable)
Feb 4 19:14:09 sweb1 postfix/qmgr[30877]: 73C93424A32: from=<contact@mondomaine.com>, size=2712, nrcpt=1 (queue active)
Feb 4 19:14:09 sweb1 postfix/qmgr[30877]: warning: connect to transport private/smtp-amavis: No such file or directory
Feb 4 19:14:09 sweb1 postfix/error[32518]: 73C93424A32: to=<contact@mondomaine.com>, relay=none, delay=983, delays=983/0.01/0/0.02, dsn=4.3.0, status=deferred (mail transport unavailable)
Hors ligne
#3 Le 04/02/2013, à 19:29
- 28marc28
Re : Probleme amavis-spamassin
Précision utile :
Quand je fais un telnet localhost 10024 (port smtp ecoute amavis)
j'obtiens bien une réponse du style bla bla ESMTP amavisd-new service ready
En revanche, mail.log ,pas de réponse du style:
X-Spam-Level:
X-Virus-Scanned: Debian amavisd-new at example.com
X-Spam-Status: No, hits=-2.3 tagged_above=-1000.0 required=5.0 tests=AWL, BAYES_00
X-Spam-Level:
Hors ligne
#4 Le 05/02/2013, à 17:21
- 28marc28
Re : Probleme amavis-spamassin
Alors suites des événements: Après bien des recherches et nouvelles choses apprisent.
Je reste bloqué.
En effet, j'ai un warning qu'en j'envoi un mail : connect to transport private/amavis : connection refused.
Le mail reste bloqué en file d'attente, je le débloque avec postsuper -r ALL
visiblement le mail ne passe pas par amavis, je ne sais pas ou chercher l'erreur.
Avez-vous une idée ???
Pour info voici le postconf -n:
root@sweb1:/home/sweb1# postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
bounce_queue_lifetime = 5d
config_directory = /etc/postfix
content_filter = smtp-amavis:[127.0.0.1]:10024
default_transport = smtp
delay_warning_time = 4h
home_mailbox = Maildir/
maximal_queue_lifetime = 5d
mydomain = mondomaine.com
myhostname = sweb1
myorigin = $mydomain
relay_domains = mysql:/etc/postfix/mysql_relay_domains.cf
relayhost = smtp.free.fr
smtpd_client_restrictions = permit_mynetworks, permit_sasl_authenticated, sleep 1, reject_unauth_pipelining
smtpd_data_restrictions = reject_unauth_pipelining, reject_multi_recipient_bounce, permit
smtpd_helo_restrictions = reject_invalid_helo_hostname
smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated,reject_non_fqdn_hostname,reject_non_fqdn_sender,reject_non_fqdn_recipient,reject_unauth_destination,reject_unauth_pipelining,reject_invalid_hostname,reject_rbl_client sbl-xbl.spamhaus.org,reject_rbl_client dnsbl.ahbl.org,reject_rbl_client cbl.abuseat.org,reject_rbl_client zen.spamhaus.org,reject_rbl_client bl.spamcop.net,reject_rbl_client cbl.abuseat.org,reject_rbl_client dnsbl.njabl.org,reject_rbl_client dnsbl.sorbs.net,reject_rhsbl_sender dsn.rfc-ignorant.org,check_policy_service inet:127.0.0.1:60000, permit
smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = yes
smtpd_sasl_path = private/auth
smtpd_sasl_type = dovecot
smtpd_sender_restrictions = reject_unlisted_sender, reject_unknown_sender_domain, permit_mynetworks, permit_sasl_authenticated, reject_non_fqdn_sender
transport_maps = hash:/etc/postfix/transport
virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf
virtual_gid_maps = static:5000
virtual_mailbox_base = /home/vmail
virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_mailbox_domains.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
virtual_uid_maps = static:5000
Hors ligne
Pages : 1