ayelis31
Messages postés2Date d'inscriptionmercredi 16 mars 2016StatutMembreDernière intervention16 mars 2016
-
16 mars 2016 à 13:40
ayelis31
Messages postés2Date d'inscriptionmercredi 16 mars 2016StatutMembreDernière intervention16 mars 2016
-
16 mars 2016 à 14:47
Je suis novice avec Postfix, que j'ai mis en place sur une centos 5.11.
Mon but étant de recevoir des notifications de FAN/nagios/centreon, seulement
je ne parviens pas à transmettre de mail car j'ai le message d'erreur suivant : Must issue a STARTTLS command first
J'ai trouvé des solutions sur plusieurs sites et forums mais aucun n'a fonctionné sur mon serveur.
Pouvez vous m'aider à comprendre le problème et à le solutionner svp.
Mes logs :
==> /var/log/maillog <==
Mar 16 12:45:16 myserver postfix/cleanup[24666]: 38E4E26ECAB: message-id=<20160316114516.38E4E26ECAB@myserver.localdomain> Mar 16 12:45:16 myserver postfix/qmgr[24052]: 38E4E26ECAB: from=<nagios@myserver.localdomain>, size=602, nrcpt=1 (queue active) Mar 16 12:45:16 myserver postfix/smtpd[24317]: connect from myserver[127.0.0.1] Mar 16 12:45:16 myserver postfix/smtpd[24317]: 3DF4926ECA9: client=myserver[127.0.0.1] Mar 16 12:45:16 myserver postfix/cleanup[24319]: 3DF4926ECA9: message-id=<20160316114516.3DF4926ECA9@myserver.localdomain> Mar 16 12:45:16 myserver postfix/qmgr[24052]: 3DF4926ECA9: from=<nagios@localhost.localdomain>, size=1355, nrcpt=1 (queue active) Mar 16 12:45:16 myserver postfix/smtpd[24317]: disconnect from myserver[127.0.0.1] Mar 16 12:45:16 myserver postfix/pickup[24051]: 4BA7026ECAD: uid=100 from=<nagios> Mar 16 12:45:16 myserver postfix/cleanup[24186]: 4BA7026ECAD: message-id=<20160316114516.4BA7026ECAD@myserver.localdomain> Mar 16 12:45:16 myserver postfix/qmgr[24052]: 4BA7026ECAD: from=<nagios@myserver.localdomain>, size=528, nrcpt=1 (queue active) Mar 16 12:45:16 myserver postfix/smtp[24335]: F237226ECA3: to=<my.email@outlook.com>, relay=smtp-mail.outlook.com[65.55.176.126]:587, delay=0.54, delays=0.02/0/0.39/0.13, dsn=5.7.0, status=bounced (host smtp-mail.outlook.com[65.55.176.126] said: 530 5.7.0 Must issue a STARTTLS command first (in reply to MAIL FROM command)) Mar 16 12:45:16 myserver postfix/smtp[24662]: D5B4226EC9F: to=<my.email@outlook.com>, relay=smtp-mail.outlook.com[65.55.176.126]:587, delay=0.65, delays=0.07/0/0.45/0.13, dsn=5.7.0, status=bounced (host smtp-mail.outlook.com[65.55.176.126] said: 530 5.7.0 Must issue a STARTTLS command first (in reply to MAIL FROM command)) Mar 16 12:45:16 myserver postfix/smtp[24399]: 0377526ECA1: to=<my.email@outlook.com>, relay=smtp-mail.outlook.com[65.55.176.126]:587, delay=0.57, delays=0.04/0/0.39/0.13, dsn=5.7.0, status=bounced (host smtp-mail.outlook.com[65.55.176.126] said: 530 5.7.0 Must issue a STARTTLS command first (in reply to MAIL FROM command)) Mar 16 12:45:16 myserver postfix/cleanup[24666]: AC06326ECB0: message-id=<20160316114516.AC06326ECB0@myserver.localdomain> Mar 16 12:45:16 myserver postfix/cleanup[24186]: AC18526ECB1: message-id=<20160316114516.AC18526ECB1@myserver.localdomain>
# newaliases_path: The full pathname of the Postfix newaliases command.
newaliases_path = /usr/bin/newaliases.postfix
# mailq_path: The full pathname of the Postfix mailq command. This # is the Sendmail-compatible mail queue listing command. # mailq_path = /usr/bin/mailq.postfix
setgid_group = postdrop
html_directory = no
manpage_directory = /usr/share/man
# sample_directory: The location of the Postfix sample configuration files. # This parameter is obsolete as of Postfix 2.1. # sample_directory = /usr/share/doc/postfix-2.3.3/samples
# readme_directory: The location of the Postfix README files. # readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES data_directory = /var/lib/postfix
# # 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 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 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=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient
Mes certificates :
[root@myserver outlook_relay]# pwd /etc/pki/tls/outlook_relay [root@myserver outlook_relay]# ll total 12 -rw-r--r-- 1 root root 769 mars 16 12:11 server.csr -rw-r--r-- 1 root root 887 mars 16 12:10 server.key -rw-r--r-- 1 root root 3269 mars 16 12:12 server.pm