problème smtp avec amavis-new+postfix+spamassassin

bonjour,
je suis entrain d’installer un nouveau serveur mail sous squeeze. paquets installés :

  • postfix
    _ dovecot
    _ amavis-new
    _ spamassassin
  • clamav
  • le chriffrement tls
  • sasl
  • etc

avant d’ajouter amavis-new et la configution y relative tout marchait bien je pouvait envoyer et recevoir les mails sur deux comptes créés localement

mais je compte à protéger maon serveur

mais maintenant qd j’envoi un mail, il fait semblant de partir mais rien dans la boite de reception, j’ai configuré thunderbird pour vérifier l’envoi et la réception de mails.

voila la sortie des commandes suivantes :

root@serveurmail:/etc/default# tail -f /var/log/syslog
Nov 9 19:59:23 serveurmail amavis[14812]: Found decoder for .zoo at /usr/bin/zoo
Nov 9 19:59:23 serveurmail amavis[14812]: No decoder for .lha
Nov 9 19:59:23 serveurmail amavis[14812]: No decoder for .doc tried: ripole
Nov 9 19:59:23 serveurmail amavis[14812]: No decoder for .cab tried: cabextract
Nov 9 19:59:23 serveurmail amavis[14812]: No decoder for .tnef
Nov 9 19:59:23 serveurmail amavis[14812]: Internal decoder for .tnef
Nov 9 19:59:23 serveurmail amavis[14812]: Found decoder for .exe at /usr/bin/arj
Nov 9 19:59:23 serveurmail amavis[14812]: Using primary internal av scanner code for ClamAV-clamd
Nov 9 19:59:23 serveurmail amavis[14812]: Found secondary av scanner ClamAV-clamscan at /usr/bin/clamscan
Nov 9 19:59:23 serveurmail amavis[14812]: Creating db in /var/lib/amavis/db/; BerkeleyDB 0.42, libdb 4.8
Nov 9 19:59:37 serveurmail dhcpd: DHCPREQUEST for 192.168.8.20 from 18:a9:05:dd:fa:78 via eth1
Nov 9 19:59:37 serveurmail dhcpd: DHCPACK on 192.168.8.20 to 18:a9:05:dd:fa:78 via eth1
Nov 9 19:59:40 serveurmail postfix/smtpd[14817]: connect from unknown[192.168.8.20]
Nov 9 19:59:40 serveurmail postfix/smtpd[14817]: 1EDD45000AF: client=unknown[192.168.8.20]
Nov 9 19:59:40 serveurmail postfix/cleanup[14821]: 1EDD45000AF: message-id=4EBAC253.6080802@ifadem.lan
Nov 9 19:59:40 serveurmail postfix/smtpd[14817]: disconnect from unknown[192.168.8.20]
Nov 9 19:59:40 serveurmail postfix/qmgr[14796]: 1EDD45000AF: from=testmail@ifadem.lan, size=562, nrcpt=1 (queue active)
Nov 9 19:59:40 serveurmail postfix/qmgr[14796]: warning: connect to transport private/amavis: Connection refused
Nov 9 19:59:40 serveurmail postfix/error[14822]: 1EDD45000AF: to=testmail@ifadem.lan, relay=none, delay=0.3, delays=0.17/0/0/0.12, dsn=4.3.0, status=deferred (mail transport unavailable)

root@serveurmail:/etc/spamassassin# postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
content_filter = amavis:[127.0.0.1]:10024
home_mailbox = Maildir/
inet_interfaces = all
inet_protocols = all
mailbox_command =
mailbox_size_limit = 0
mydestination = ifadem.lan, serveurmail.ifadem.lan, localhost.ifadem.lan, localhost
myhostname = serveurmail.ifadem.lan
mynetworks = 192.168.8.0/24 127.0.0.0/8
myorigin = /etc/mailname
readme_directory = no
receive_override_options = no_address_mappings
recipient_delimiter = +
relayhost =
smtp_sasl_security_options = noanonymous
smtp_tls_cert_file = $config_directory/ssl/smtpd.pem
smtp_tls_enforce_peername = no
smtp_tls_key_file = $config_directory/ssl/smtpd.pem
smtp_tls_note_starttls_offer = yes
smtp_tls_security_level = may
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
smtpd_client_restrictions = permit_mynetworks , permit_sasl_authenticated , reject_rbl_client bl.spamcop.net , reject_rbl_client dnsbl.njabl.org , reject_rbl_client cbl.abuseat.org , reject_rbl_client sbl -xbl.spamhaus.org , reject_rbl_client list.dsbl.org , permit
smtpd_delay_reject = yes
smtpd_helo_required = yes
smtpd_helo_restrictions = permit_mynetworks , permit_sasl_authenticated , reject_non_fqdn_hostname, reject_invalid_hostname, permit
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_non_fqdn_recipient, reject_unknown_recipient_domain, reject_unauth_destination, permit
smtpd_sasl_auth_enable = yes
smtpd_sasl_path = private/auth
smtpd_sasl_type = dovecot
smtpd_sender_restrictions = permit_mynetworks , permit_sasl_authenticated , reject_non_fqdn_sender , reject_unknown_sender_domain , permit
smtpd_tls_auth_only = yes
smtpd_tls_cert_file = $config_directory/ssl/smtpd.pem
smtpd_tls_key_file = $config_directory/ssl/smtpd.pem
smtpd_tls_security_level = may
strict_rfc821_envelopes = yes
virtual_mailbox_limit = 0

root@serveurmail:/etc/spamassassin# cat /etc/postfix/master.cf

Postfix master process configuration file. For details on the format

of the file, see the master(5) manual page (command: “man 5 master”).

Do not forget to execute “postfix reload” after editing this file.

==========================================================================

service type private unpriv chroot wakeup maxproc command + args

(yes) (yes) (yes) (never) (100)

==========================================================================

smtp inet n - - - - smtpd
#submission inet n - - - - smtpd

-o smtpd_tls_security_level=encrypt

-o smtpd_sasl_auth_enable=yes

-o smtpd_client_restrictions=permit_sasl_authenticated,reject

-o milter_macro_daemon_name=ORIGINATING

smtps inet n - - - - smtpd
-o smtpd_tls_wrappermode=yes
-o smtpd_sasl_auth_enable=yes
-o smtpd_client_restrictions=permit_sasl_authenticated,reject

-o milter_macro_daemon_name=ORIGINATING

#628 inet n - - - - qmqpd
pickup fifo n - - 60 1 pickup
cleanup unix n - - - 0 cleanup
qmgr fifo n - n 300 1 qmgr
#qmgr fifo n - - 300 1 oqmgr
tlsmgr unix - - - 1000? 1 tlsmgr
rewrite unix - - - - - trivial-rewrite
bounce unix - - - - 0 bounce
defer unix - - - - 0 bounce
trace unix - - - - 0 bounce
verify unix - - - - 1 verify
flush unix n - - 1000? 0 flush
proxymap unix - - n - - proxymap
proxywrite unix - - n - 1 proxymap
smtp unix - - - - - smtp

When relaying mail as backup MX, disable fallback_relay to avoid MX loops

relay unix - - - - - smtp
-o smtp_fallback_relay=

-o smtp_helo_timeout=5 -o smtp_connect_timeout=5

showq unix n - - - - showq
error unix - - - - - error
retry unix - - - - - error
discard unix - - - - - discard
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - - - - lmtp
anvil unix - - - - 1 anvil
scache unix - - - - 1 scache

====================================================================

Interfaces to non-Postfix software. Be sure to examine the manual

pages of the non-Postfix software to find out what options it wants.

Many of the following services use the Postfix pipe(8) delivery

agent. See the pipe(8) man page for information about ${recipient}

and other message envelope options.

====================================================================

maildrop. See the Postfix MAILDROP_README file for details.

Also specify in main.cf: maildrop_destination_recipient_limit=1

maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}

====================================================================

Recent Cyrus versions can use the existing “lmtp” master.cf entry.

Specify in cyrus.conf:

lmtp cmd=“lmtpd -a” listen=“localhost:lmtp” proto=tcp4

Specify in main.cf one or more of the following:

mailbox_transport = lmtp:inet:localhost

virtual_transport = lmtp:inet:localhost

====================================================================

Cyrus 2.1.5 (Amos Gouaux)

Also specify in main.cf: cyrus_destination_recipient_limit=1

#cyrus unix - n n - - pipe

user=cyrus argv=/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user}

====================================================================

Old example of delivery via Cyrus.

#old-cyrus unix - n n - - pipe

flags=R user=cyrus argv=/cyrus/bin/deliver -e -m ${extension} ${user}

====================================================================

See the Postfix UUCP_README file for configuration details.

uucp unix - n n - - pipe
flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)

Other external delivery methods.

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 -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}
mailman unix - n n - - pipe
flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
${nexthop} ${user}

smtp-amavis unix - - - - 2 smtp
-o smtp_data_done_timeout=1200
-o smtp_send_xforward_command=yes
127.0.0.1:10025 inet 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 smtpd_recipient_restrictions=permit_mynetworks,reject
-o mynetworks=127.0.0.0/8
-o strict_rfc821_envelopes=yes
-o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
-o smtpd_bind_address=127.0.0.1

root@serveurmail:/etc/amavis/conf.d# cat 15-content_filter_mode
use strict;

You can modify this file to re-enable SPAM checking through spamassassin

and to re-enable antivirus checking.

Default antivirus checking mode

Please note, that anti-virus checking is DISABLED by

default.

If You wish to enable it, please uncomment the following lines:

@bypass_virus_checks_maps = (
%bypass_virus_checks, @bypass_virus_checks_acl, $bypass_virus_checks_re);

Default SPAM checking mode

Please note, that anti-spam checking is DISABLED by

default.

If You wish to enable it, please uncomment the following lines:

@bypass_spam_checks_maps = (
%bypass_spam_checks, @bypass_spam_checks_acl, $bypass_spam_checks_re);

1; # ensure a defined return

root@serveurmail:~# telnet ifadem.lan 25
Trying 192.168.8.1…
Connected to ifadem.lan.
Escape character is ‘^]’.
220 serveurmail.ifadem.lan ESMTP Postfix (Debian/GNU)
ehlo serveurmail.ifadem.lan
250-serveurmail.ifadem.lan
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN

qui montre que le port 25 est bien ouvert sur mon serveur

root@serveurmail:~# telnet ifadem.lan 10024
Trying 192.168.8.1…
telnet: Unable to connect to remote host: Connection refused

mais si je le fais sur le serveur en localhost, j’ai :

root@serveurmail:/etc/default# telnet localhost 10024
Trying 127.0.0.1…
Connected to localhost.
Escape character is ‘^]’.
220 [127.0.0.1] ESMTP amavisd-new service ready

donc, je vois qu’il est impossible de communiquer sur le port 10024 en utilisant le nom du domaine ou l’adresse du serveurmail en question.

Je viens de passer une journée en cherchant la solution à ce problème sans solution
SVP: aide