Bonjour à tous,
j'essai d'installer un serveur de messagerie sur mon dédié avec Postfix. J'ai déjà configurer l'IMAP et ça marche correctement, je reçois et envoi des mails sans problèmes. Maintenant j'essai d'installer amavis pour pouvoir utiliser clamav et spamassassin, mais mon serveur ne marche plus : lorsque je reçois des mails j'ai l'erreur suivante :
Voici ma configuration de postfix :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2 Nov 20 13:57:15 ks352777 postfix/smtpd[5563]: connect from unknown[127.0.0.1] Nov 20 12:57:15 ks352777 postfix/smtpd[5563]: warning: connect to mysql server localhost: Can't connect to local MySQL server through socket '/var/run/mysqld.sock
A priori tous les scripts SQL doivent fonctionner car ils marchaient très bien avant. Et lorsque je commente la ligne :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36 ks352777 postfix # postconf -n biff = no command_directory = /usr/sbin config_directory = /etc/postfix content_filter = smtp-amavis:[127.0.0.1]:10025 daemon_directory = /usr/lib/postfix debug_peer_level = 2 disable_vrfy_command = yes home_mailbox = .maildir/ html_directory = /usr/share/doc/postfix-2.2.10/html inet_interfaces = all mail_owner = postfix mailq_path = /usr/bin/mailq manpage_directory = /usr/share/man message_size_limit = 25000000 mydestination = $myhostname, localhost mydomain = $myhostname myhostname = ks352777.kimsufi.com mynetworks_style = host newaliases_path = /usr/bin/newaliases queue_directory = /var/spool/postfix readme_directory = /usr/share/doc/postfix-2.2.10/readme relay_domains = $mydestination sample_directory = /etc/postfix sendmail_path = /usr/sbin/sendmail setgid_group = postdrop smtpd_helo_required = yes unknown_local_recipient_reject_code = 550 virtual_alias_maps = hash:/etc/postfix/virtual_aliases, mysql:/etc/postfix/mysql-forwards.cf virtual_gid_maps = static:2004 virtual_mailbox_base = /home/vmail virtual_mailbox_domains = mysql:/etc/postfix/mysql-domains.cf virtual_mailbox_limit = 51200000 virtual_mailbox_maps = mysql:/etc/postfix/mysql-mailboxes.cf virtual_minimum_uid = 2003 virtual_uid_maps = static:2003
content_filter = smtp-amavis:[127.0.0.1]:10025
Tout remarche correctement .... Voila donc je suis vraiment perdu. Voici le reste de ma config :
/etc/amavisd.conf
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2 $mydomain = 'example.com'; #fdqn of this server $myhostame = 'example.com'; #fqdn of this server
/etc/postfix/master.cf
Et je reçois ce mail d'erreur à chaque fois sur mon compte root :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 maildrop unix - n n - - pipe flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient} smtp-amavis unix - - y - 2 smtp -o smtp_data_done_timeout=1200 -o disable_dns_lookups=yes 127.0.0.1:10025 inet n - y - - smtpd -o content_filter= -o local_recipient_maps= -o relay_recipient_maps= -o smtpd_restriction_classes= -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
J'espere que quelqu'un pourra m'aider
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 Out: 220 ks352777.kimsufi.com ESMTP Postfix In: EHLO ks352777.kimsufi.com Out: 250-ks352777.kimsufi.com Out: 250-PIPELINING Out: 250-SIZE 25000000 Out: 250-ETRN Out: 250-ENHANCEDSTATUSCODES Out: 250-8BITMIME Out: 250 DSN In: MAIL FROM:<kernings@gmail.com> SIZE=2009 Out: 250 2.1.0 Ok In: RCPT TO:<thommas@conseil-juridique.net> ORCPT=rfc822;thommas@conseil-juridique.net Out: 451 4.3.0 <thommas@conseil-juridique.net>: Temporary lookup failure In: DATA Out: 554 5.5.1 Error: no valid recipients In: RSET Out: 250 2.0.0 Ok In: QUIT Out: 221 2.0.0 Bye
Partager