svp je configure postfix et amavis et j'ai un message d'erreur lorsque je fait un test pour envoyer un mail:
"warning connect to transport lmtp-amavis A No such file or directory"
Qu'est que cela signifie.
Merci pour votre aide
Version imprimable
svp je configure postfix et amavis et j'ai un message d'erreur lorsque je fait un test pour envoyer un mail:
"warning connect to transport lmtp-amavis A No such file or directory"
Qu'est que cela signifie.
Merci pour votre aide
faudrait voir la conf:
postconf -n
et le master.cf
Merci pour ta reponse mais je voudrais connaitre ou se trouve exactement l'erreur
stp.g le tuto que tu m'a donné mais je ne sais pas ou se trouve l'erreur
En clair : Postfix n'arrive pas a passer les mail a amavis. Dans le master.cf, il doit y avoir une ligne décrivant le service de transport lmtp-amavis.
Donc, vérifier en premier lieu main.cf et master.cf
je vien de constater que amavis n'a pas été démarrer.
Quand je le demarre il affiche un message de la sorte:
Error in config file "/etc/amavisd/amavisd.conf": Can't open file /etc/amavis/de_DE/charset for reading: Aucun fichier ou répertoire de ce type at /usr/sbin/amavisd line 2160.
[ÉCHOUÉ]
comme je te disais faut voir la conf
ok a force de chercher g trouver l'erreur par rapport a amavis.
un paquet qui est utilisé sur la Debian était activé alors que je suis sur fedora core.
amavis demarre mais ce message s'affiche toujours lors du test d'envois de mail:
warning: connect to transport lmtp-amavis: No such file or directory
voici ce que j'ai ajouter dans mon master.cf
smtp-amavis unix - - n - 2 smtp
-o smtp_data_done_timeout=1200
-o smtp_send_xforward_command=yes
-o disable_dns_lookups=yes
localhost:10025 inet n - n - - smtpd
-o content_filter=
-o mynetworks=127.0.0.0/24
-o smtpd_recipient_restrictions=permit_mynetworks,reject
-o receive_override_options=no_address_mappings
la conf complete se serait mieux
ensuite comment as tu installé amavisd ? source ? paquet ?
j'ai installé par paquet.
voici mon fichier master.conf
Code:
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108 # # Postfix master process configuration file. For details on the format # of the file, see the master(5) manual page (command: "man 5 master"). # # ========================================================================== # service type private unpriv chroot wakeup maxproc command + args # (yes) (yes) (yes) (never) (100) # ========================================================================== smtp-amavis unix - - n - 2 smtp -o smtp_data_done_timeout=1200 -o smtp_send_xforward_command=yes -o disable_dns_lookups=yes localhost:10025 inet n - n - - smtpd -o content_filter= -o mynetworks=127.0.0.0/24 -o smtpd_recipient_restrictions=permit_mynetworks,reject -o receive_override_options=no_address_mappings smtp inet n - n - - smtpd #submission inet n - n - - smtpd # -o smtpd_enforce_tls=yes # -o smtpd_sasl_auth_enable=yes # -o smtpd_client_restrictions=permit_sasl_authenticated,reject #smtps inet n - n - - smtpd # -o smtpd_tls_wrappermode=yes # -o smtpd_sasl_auth_enable=yes # -o smtpd_client_restrictions=permit_sasl_authenticated,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 tlsmgr unix - - n 1000? 1 tlsmgr 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 # When relaying mail as backup MX, disable fallback_relay to avoid MX loops relay unix - - n - - smtp -o fallback_relay= # -o smtp_helo_timeout=5 -o smtp_connect_timeout=5 showq unix n - n - - showq error unix - - n - - error retry unix - - n - - error discard unix - - n - - discard local unix - n n - - local virtual unix - n n - - virtual lmtp unix - - n - - lmtp anvil unix - - n - 1 anvil scache unix - - n - 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/local/bin/maildrop -d ${recipient} # # ==================================================================== # # The Cyrus deliver program has changed incompatibly, multiple times. # #old-cyrus unix - n n - - pipe # flags=R user=cyrus argv=/usr/lib/cyrus-imapd/deliver -e -m ${extension} ${user} # # ==================================================================== # # Cyrus 2.1.5 (Amos Gouaux) # Also specify in main.cf: cyrus_destination_recipient_limit=1 # #cyrus unix - n n - - pipe # user=cyrus argv=/usr/lib/cyrus-imapd/deliver -e -r ${sender} -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/local/sbin/bsmtp -f $sender $nexthop $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}
et le postconf -n
le voici:
Code:
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 alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases body_checks = regexp:/etc/postfix/body_checks command_directory = /usr/sbin config_directory = /etc/postfix content_filter = smtp-amavis:[127.0.0.1]:10024 daemon_directory = /usr/libexec/postfix debug_peer_level = 2 default_transport = smtp delay_warning_time = 1 header_checks = regexp:/etc/postfix/header_checks html_directory = no inet_interfaces = all mail_owner = postfix mailq_path = /usr/bin/mailq.postfix manpage_directory = /usr/share/man mydestination = $myhostname, localhost.$mydomain, 41.207.208.6 mydomain = msiad.com myhostname = gfamserver mynetworks = 192.168.0.0/24, 127.0.0.0/24, 192.168.1.0/24 myorigin = $mydomain newaliases_path = /usr/bin/newaliases.postfix proxy_interfaces = 41.207.208.6 queue_directory = /var/spool/postfix readme_directory = /usr/share/doc/postfix-2.4.5/README_FILES sample_directory = /usr/share/doc/postfix-2.4.5/samples sendmail_path = /usr/sbin/sendmail.postfix setgid_group = postdrop unknown_local_recipient_reject_code = 550
fais voir la queue des mails: mailq
puis envoie toi un email et poste les logs
voici se que me donne mailq:
Mail queue is empty
et voici le message dans ma log:
Code:
1
2
3
4
5
6
7
8
9
10
11
12 Jan 23 11:17:18 gfamserver postfix/smtp[12633]: E8CD81FB2F: to=<Admin@msiad.com>, relay=none, delay=0.09, delays=0.05/0.03/0/0, dsn=5.4.6, status=bounced (mail for msiad.com loops back to myself) Jan 23 11:17:18 gfamserver postfix/cleanup[12628]: 0C2761FB2D: message-id=<20080123111718.0C2761FB2D@gfamserver> Jan 23 11:17:18 gfamserver postfix/qmgr[12518]: 0C2761FB2D: from=<>, size=2497, nrcpt=1 (queue active) Jan 23 11:17:18 gfamserver postfix/bounce[12634]: E8CD81FB2F: sender non-delivery notification: 0C2761FB2D Jan 23 11:17:18 gfamserver postfix/qmgr[12518]: E8CD81FB2F: removed Jan 23 11:17:18 gfamserver postfix/smtp[12633]: 0C2761FB2D: to=<root@msiad.com>, relay=none, delay=0.01, delays=0.01/0/0/0, dsn=5.4.6, status=bounced (mail for msiad.com loops back to myself) Jan 23 11:17:18 gfamserver postfix/qmgr[12518]: 0C2761FB2D: removed Jan 23 11:17:52 gfamserver postfix/smtpd[12623]: warning: non-SMTP command from gfamserver[192.168.0.3]: SUBJECT: test Jan 23 11:17:52 gfamserver postfix/smtpd[12623]: disconnect from gfamserver[192.168.0.3] Jan 23 11:19:08 gfamserver postfix/qmgr[12518]: 4FCC11FB1C: from=<root@msiad.com>, size=316, nrcpt=1 (queue active) Jan 23 11:19:08 gfamserver postfix/qmgr[12518]: warning: connect to transport lmtp-amavis: Connection refused Jan 23 11:19:08 gfamserver postfix/error[12640]: 4FCC11FB1C: to=<Admin@msiad.com>, orig_to=<Admin>, relay=none, delay=2759, delays=2759/0.01/0/0.02, dsn=4.3.0, status=deferred (mail transport unavailable)
modifie deja ton main.cf car ici il ne peut pas recevoir de mail pour ton domaine
change les parametres suivant comme indiqué:
mainCode:
1
2
3 mydomain = msiad.com myhostname = gfamserver.msiad.com mydestination = $mydomain, $myhostname, localhost.$mydo
puis postfix reload
et reteste en postant les logs
excuse moi du retard voici la log après modification:
Mais peux tu m'indiquer dans quel dossier voir si le mail est arrivé ou pas
Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 Jan 23 13:05:17 gfamserver postfix/master[13141]: daemon started -- version 2.4.5, configuration /etc/postfix Jan 23 13:08:44 gfamserver postfix/smtpd[13156]: connect from gfamserver[192.168.0.3] Jan 23 13:09:37 gfamserver postfix/smtpd[13156]: B52FD1FB2A: client=gfamserver[192.168.0.3] Jan 23 13:09:46 gfamserver postfix/cleanup[13161]: B52FD1FB2A: message-id=<20080123130937.B52FD1FB2A@gfamserver.msiad.com> Jan 23 13:09:46 gfamserver postfix/qmgr[13143]: B52FD1FB2A: from=<root@msiad.com>, size=334, nrcpt=1 (queue active) Jan 23 13:09:52 gfamserver postfix/smtpd[13165]: connect from localhost[127.0.0.1] Jan 23 13:09:52 gfamserver postfix/smtpd[13165]: 304851FB30: client=localhost[127.0.0.1] Jan 23 13:09:52 gfamserver postfix/cleanup[13161]: 304851FB30: message-id=<20080123130937.B52FD1FB2A@gfamserver.msiad.com> Jan 23 13:09:52 gfamserver postfix/qmgr[13143]: 304851FB30: from=<root@msiad.com>, size=770, nrcpt=1 (queue active) Jan 23 13:09:52 gfamserver amavis[13003]: (13003-01) Passed CLEAN, LOCAL [192.168.0.3] [192.168.0.3] <root@msiad.com> -> <Admin@msiad.com>, Message-ID: <20080123130937.B52FD1FB2A@gfamserver.msiad.com>, mail_id: 3wz2R4HLms4j, Hits: 1.338, queued_as: 304851FB30, 5649 ms Jan 23 13:09:52 gfamserver postfix/smtpd[13165]: disconnect from localhost[127.0.0.1] Jan 23 13:09:52 gfamserver postfix/smtp[13162]: B52FD1FB2A: to=<Admin@msiad.com>, orig_to=<Admin>, relay=127.0.0.1[127.0.0.1]:10024, delay=24, delays=19/0.01/0.01/5.6, dsn=2.6.0, status=sent (250 2.6.0 Ok, id=13003-01, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 304851FB30) Jan 23 13:09:52 gfamserver postfix/qmgr[13143]: B52FD1FB2A: removed Jan 23 13:09:52 gfamserver postfix/smtp[13166]: 304851FB30: to=<Admin@msiad.com>, relay=none, delay=0.09, delays=0.06/0.04/0/0, dsn=5.4.6, status=bounced (mail for msiad.com loops back to myself) Jan 23 13:09:52 gfamserver postfix/cleanup[13161]: 4C3AE1FB2F: message-id=<20080123130952.4C3AE1FB2F@gfamserver.msiad.com> Jan 23 13:09:52 gfamserver postfix/qmgr[13143]: 4C3AE1FB2F: from=<>, size=2613, nrcpt=1 (queue active) Jan 23 13:09:52 gfamserver postfix/bounce[13168]: 304851FB30: sender non-delivery notification: 4C3AE1FB2F Jan 23 13:09:52 gfamserver postfix/qmgr[13143]: 304851FB30: removed Jan 23 13:09:52 gfamserver postfix/smtp[13166]: 4C3AE1FB2F: to=<root@msiad.com>, relay=none, delay=0.01, delays=0.01/0/0/0, dsn=5.4.6, status=bounced (mail for msiad.com loops back to myself) Jan 23 13:09:52 gfamserver postfix/qmgr[13143]: 4C3AE1FB2F: removed
refais un postconf -n
Le voici:
Code:
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62 [root@gfamserver etc]# postconf -n alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases body_checks = regexp:/etc/postfix/body_checks command_directory = /usr/sbin config_directory = /etc/postfix content_filter = smtp-amavis:[127.0.0.1]:10024 daemon_directory = /usr/libexec/postfix debug_peer_level = 2 default_transport = smtp delay_warning_time = 1 header_checks = regexp:/etc/postfix/header_checks html_directory = no inet_interfaces = all mail_owner = postfix mailq_path = /usr/bin/mailq.postfix manpage_directory = /usr/share/man mydestination = $myhostname, localhost.$mydomain, 41.207.208.6 mydomain = msiad.com myhostname = gfamserver.msiad.com mynetworks = 192.168.0.0/24, 127.0.0.0/24, 192.168.1.0/24 myorigin = $mydomain newaliases_path = /usr/bin/newaliases.postfix proxy_interfaces = 41.207.208.6 queue_directory = /var/spool/postfix readme_directory = /usr/share/doc/postfix-2.4.5/README_FILES sample_directory = /usr/share/doc/postfix-2.4.5/samples sendmail_path = /usr/sbin/sendmail.postfix setgid_group = postdrop unknown_local_recipient_reject_code = 550 [root@gfamserver etc]# cd .. [root@gfamserver /]# cd [root@gfamserver ~]# postconf -n alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases body_checks = regexp:/etc/postfix/body_checks command_directory = /usr/sbin config_directory = /etc/postfix content_filter = smtp-amavis:[127.0.0.1]:10024 daemon_directory = /usr/libexec/postfix debug_peer_level = 2 default_transport = smtp delay_warning_time = 1 header_checks = regexp:/etc/postfix/header_checks html_directory = no inet_interfaces = all mail_owner = postfix mailq_path = /usr/bin/mailq.postfix manpage_directory = /usr/share/man mydestination = $myhostname, localhost.$mydomain, 41.207.208.6 mydomain = msiad.com myhostname = gfamserver.msiad.com mynetworks = 192.168.0.0/24, 127.0.0.0/24, 192.168.1.0/24 myorigin = $mydomain newaliases_path = /usr/bin/newaliases.postfix proxy_interfaces = 41.207.208.6 queue_directory = /var/spool/postfix readme_directory = /usr/share/doc/postfix-2.4.5/README_FILES sample_directory = /usr/share/doc/postfix-2.4.5/samples sendmail_path = /usr/sbin/sendmail.postfix setgid_group = postdrop unknown_local_recipient_reject_code = 550
tu n'a pas fait les modifs ou bien tu as oublié le postfix reload
j'espère que c'est cela:
Code:
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 [root@gfamserver ~]# postconf -n alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases body_checks = regexp:/etc/postfix/body_checks command_directory = /usr/sbin config_directory = /etc/postfix content_filter = smtp-amavis:[127.0.0.1]:10024 daemon_directory = /usr/libexec/postfix debug_peer_level = 2 default_transport = smtp delay_warning_time = 1 header_checks = regexp:/etc/postfix/header_checks html_directory = no inet_interfaces = all mail_owner = postfix mailq_path = /usr/bin/mailq.postfix manpage_directory = /usr/share/man mydestination = $myhostname, localhost.$mydomain, $mydomain mydomain = msiad.com myhostname = gfamserver.msiad.com mynetworks = 192.168.0.0/24, 127.0.0.0/24, 192.168.1.0/24 myorigin = $mydomain newaliases_path = /usr/bin/newaliases.postfix proxy_interfaces = 41.207.208.6 queue_directory = /var/spool/postfix readme_directory = /usr/share/doc/postfix-2.4.5/README_FILES sample_directory = /usr/share/doc/postfix-2.4.5/samples sendmail_path = /usr/sbin/sendmail.postfix setgid_group = postdrop unknown_local_recipient_reject_code = 550