Pages : 1
#1 Le 22/06/2023, à 13:41
- jmt1012
Adez moi à debugger Postfix et SendGrid
bonjour, sur un nouveau serveur mes mails ne partent pas
Jun 22 12:26:00 ubuntu-s-2vcpu-4gb-intel-sfo3-01 rsyslogd: action 'action-5-builtin:omfile' resumed (module 'builtin:omfile') [v8.2208.0 try https://www.rsyslog.com/e/2359 ]
Jun 22 12:26:00 ubuntu-s-2vcpu-4gb-intel-sfo3-01 rsyslogd: action 'action-5-builtin:omfile' suspended (module 'builtin:omfile'), retry 0. There should be messages before this one giving the reason for suspension. [v8.2208.0 try https://www.rsyslog.com/e/2007 ]
Jun 22 12:26:00 ubuntu-s-2vcpu-4gb-intel-sfo3-01 rsyslogd: action 'action-5-builtin:omfile' suspended (module 'builtin:omfile'), next retry is Thu Jun 22 12:26:30 2023, retry nbr 0. There should be messages before this one giving the reason for suspension. [v8.2208.0 try https://www.rsyslog.com/e/2007 ]
Jun 22 12:26:00 ubuntu-s-2vcpu-4gb-intel-sfo3-01 postfix/master[40162]: terminating on signal 15
Jun 22 12:26:00 ubuntu-s-2vcpu-4gb-intel-sfo3-01 systemd[1]: postfix@-.service: Deactivated successfully.
Jun 22 12:26:00 ubuntu-s-2vcpu-4gb-intel-sfo3-01 systemd[1]: Stopped Postfix Mail Transport Agent (instance -).
Jun 22 12:26:00 ubuntu-s-2vcpu-4gb-intel-sfo3-01 systemd[1]: postfix@-.service: Consumed 1.996s CPU time.
Jun 22 12:26:01 ubuntu-s-2vcpu-4gb-intel-sfo3-01 systemd[1]: Starting Postfix Mail Transport Agent (instance -)...
Jun 22 12:26:03 ubuntu-s-2vcpu-4gb-intel-sfo3-01 postfix/postfix-script[40767]: starting the Postfix mail system
Jun 22 12:26:03 ubuntu-s-2vcpu-4gb-intel-sfo3-01 postfix/master[40769]: daemon started -- version 3.6.4, configuration /etc/postfix
Jun 22 12:26:03 ubuntu-s-2vcpu-4gb-intel-sfo3-01 systemd[1]: Started Postfix Mail Transport Agent (instance -).
Jun 22 12:26:03 ubuntu-s-2vcpu-4gb-intel-sfo3-01 systemd[1]: Starting Postfix Mail Transport Agent...
Jun 22 12:26:03 ubuntu-s-2vcpu-4gb-intel-sfo3-01 systemd[1]: Finished Postfix Mail Transport Agent.
Jun 22 12:26:03 ubuntu-s-2vcpu-4gb-intel-sfo3-01 postfix/qmgr[40771]: 784DF136EA2: from=<noreply@ubuntu-s-2vcpu-4gb-intel-sfo3-01>, size=409, nrcpt=1 (queue active)
Jun 22 12:26:03 ubuntu-s-2vcpu-4gb-intel-sfo3-01 postfix/smtp[40774]: 784DF136EA2: SASL authentication failed; server smtp.sendgrid.net[52.89.19.245] said: 535 Authentication failed: Bad username / password
Jun 22 12:26:03 ubuntu-s-2vcpu-4gb-intel-sfo3-01 postfix/smtp[40774]: 784DF136EA2: SASL authentication failed; server smtp.sendgrid.net[167.89.118.51] said: 535 Authentication failed: Bad username / password
Jun 22 12:26:03 ubuntu-s-2vcpu-4gb-intel-sfo3-01 postfix/smtp[40774]: 784DF136EA2: SASL authentication failed; server smtp.sendgrid.net[44.239.172.8] said: 535 Authentication failed: Bad username / password
Jun 22 12:26:04 ubuntu-s-2vcpu-4gb-intel-sfo3-01 postfix/smtp[40774]: 784DF136EA2: SASL authentication failed; server smtp.sendgrid.net[167.89.118.105] said: 535 Authentication failed: Bad username / password
Jun 22 12:26:04 ubuntu-s-2vcpu-4gb-intel-sfo3-01 postfix/smtp[40774]: 784DF136EA2: to=<mutetejoel@gmail.com>, relay=smtp.sendgrid.net[167.89.118.58]:587, delay=1286, delays=1285/0.05/1.1/0, dsn=4.0.0, status=deferred (SASL authentication failed; server smtp.sendgrid.net[167.89.118.58] said: 535 Authentication failed: Bad username / password)
Jun 22 12:26:12 ubuntu-s-2vcpu-4gb-intel-sfo3-01 postfix/pickup[40770]: 73575136EA7: uid=1000 from=<noreply@siic-cpvs.com>
Jun 22 12:26:12 ubuntu-s-2vcpu-4gb-intel-sfo3-01 postfix/cleanup[40781]: 73575136EA7: message-id=<20230622122612.w1k1V%noreply@siic-cpvs.com>
Jun 22 12:26:12 ubuntu-s-2vcpu-4gb-intel-sfo3-01 postfix/qmgr[40771]: 73575136EA7: from=<noreply@siic-cpvs.com>, size=400, nrcpt=1 (queue active)
Jun 22 12:26:12 ubuntu-s-2vcpu-4gb-intel-sfo3-01 postfix/smtp[40774]: 73575136EA7: SASL authentication failed; server smtp.sendgrid.net[44.239.172.8] said: 535 Authentication failed: Bad username / password
Jun 22 12:26:12 ubuntu-s-2vcpu-4gb-intel-sfo3-01 postfix/smtp[40774]: 73575136EA7: SASL authentication failed; server smtp.sendgrid.net[167.89.118.51] said: 535 Authentication failed: Bad username / password
Jun 22 12:26:13 ubuntu-s-2vcpu-4gb-intel-sfo3-01 postfix/smtp[40774]: 73575136EA7: SASL authentication failed; server smtp.sendgrid.net[167.89.118.58] said: 535 Authentication failed: Bad username / password
Jun 22 12:26:13 ubuntu-s-2vcpu-4gb-intel-sfo3-01 postfix/smtp[40774]: 73575136EA7: SASL authentication failed; server smtp.sendgrid.net[52.89.19.245] said: 535 Authentication failed: Bad username / password
Jun 22 12:26:13 ubuntu-s-2vcpu-4gb-intel-sfo3-01 postfix/smtp[40774]: 73575136EA7: to=<mutetejoel@gmail.com>, relay=smtp.sendgrid.net[167.89.118.105]:587, delay=1.1, delays=0.01/0/1.1/0, dsn=4.0.0, status=deferred (SASL authentication failed; server smtp.sendgrid.net[167.89.118.105] said: 535 Authentication failed: Bad username / password)
mon fichier : /etc/postfix/sasl_passwd est:
[smtp.sendgrid.net]:587 apikey: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
et mon fichier main.cf est:
# See /usr/share/postfix/main.cf.dist for a commented, more complete version
# Debian specific: Specifying a file name will cause the first
# line of that file to be used as the name. The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no
# appending .domain is the MUA's job.
append_dot_mydomain = no
# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h
readme_directory = no
# See http://www.postfix.org/COMPATIBILITY_README.html -- default to 3.6 on
# fresh installs.
compatibility_level = 3.6
# TLS parameters
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
#smtpd_tls_security_level=may
smtp_tls_CApath=/etc/ssl/certs
#smtp_tls_security_level=may
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
myhostname = ubuntu-s-2vcpu-4gb-intel-sfo3-01
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = $myhostname, siic-cpvs.com, mail.siic-cpvs.com, localhost.siic-cpvs.com, localhost
#relayhost =
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = all
home_mailbox = Maildir/
virtual_alias_maps = hash:/etc/postfix/virtual
#configuration SendGrid
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
smtp_sasl_tls_security_options = noanonymous
smtp_tls_security_level = encrypt
header_size_limit = 4096000
relayhost = [smtp.sendgrid.net]:587
Hors ligne
#2 Le 23/06/2023, à 08:26
- bruno
Re : Adez moi à debugger Postfix et SendGrid
Bonjour,
L'erreur est explicite :
Jun 22 12:26:03 ubuntu-s-2vcpu-4gb-intel-sfo3-01 postfix/smtp[40774]: 784DF136EA2: SASL authentication failed; server smtp.sendgrid.net[52.89.19.245] said: 535 Authentication failed: Bad username / password
Ce qui en français donne : le serveur smtp.sengrid.net indique que l’authentification a échoué : nom d'utilisateur / mot de passe erronés.
Pages : 1