Bonjour à tous,
j'utilise Nagios en docker. Pour envoyer les mails, il passe par un docker postfix ( https://hub.docker.com/r/mwader/postfix-relay/) et ça marche très bien.
A chaque alerte, je reçois un mail, et dans les logs j'ai
postfix/smtpd[178]: connect from seedbox-docker_nagios_1.seedbox-docker_default[172.18.0.9]
postfix/smtpd[178]: E5701A16CA: client=seedbox-docker_nagios_1.seedbox-docker_default[172.18.0.9]
postfix/cleanup[180]: E5701A16CA: message-id=<20181120082543.CB2F6A16C8@7a0621a134e7>
postfix/smtpd[178]: disconnect from seedbox-docker_nagios_1.seedbox-docker_default[172.18.0.9] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
postfix/qmgr[159]: E5701A16CA: from=<xxxx@xxxx.net>, size=871, nrcpt=1 (queue active)
postfix/smtp[176]: E5701A16CA: to=<xxxx@gmail.com>, relay=gmail-smtp-in.l.google.com[64.233.166.26]:25, delay=0.8, delays=0.13/0/0.25/0.42, dsn=2.0.0, status=sent
(250 2.0.0 OK 1542702344 h4si9059932wmc.200 - gsmtp)
postfix/qmgr[159]: E5701A16CA: removed
j'ai voulu tester Zabbix, donc je suis passé par docker aussi. J'ai paramétré Zabbix pour utiliser le même docker d'envoi de mail, avec le même expéditeur et le même destinataire. Quand une alerte part de Zabbix, j'ai cette erreur dans postfix :
postfix/smtpd[169]: connect from zabbixserver.seedbox-docker_default[172.18.0.4]
postfix/smtpd[169]: 383E4A16BE: client=zabbixserver.seedbox-docker_default[172.18.0.4]
postfix/cleanup[172]: 383E4A16BE: message-id=<>
postfix/qmgr[159]: 383E4A16BE: from=<xxxx@sdewitte.net>, size=750, nrcpt=1 (queue active)
postfix/smtpd[169]: disconnect from zabbixserver.seedbox-docker_default[172.18.0.4] helo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
postfix/smtp[173]: 383E4A16BE: host aspmx.l.google.com[108.177.15.27] said: 421-4.7.0 [5.9.62.140 15] Our system has detected that this message is 421-4.7.0 suspicious du
e to the very low reputation of the sending IP address. 421-4.7.0 To protect our users from spam, mail sent from your IP address has 421-4.7.0 been temporarily rate limited. P
lease visit 421 4.7.0 https://support.google.com/mail/answer/188131 for more information. l186si11556440wmf.75 - gsmtp (in reply to end of DATA command)
postfix/smtp[173]: connect to aspmx.l.google.com[2a00:1450:400c:c0b::1a]:25: Cannot assign requested address
postfix/smtp[173]: 383E4A16BE: to=<xxxx@gmail.com>, relay=alt1.aspmx.l.google.com[64.233.164.26]:25, delay=1.2, delays=0.2/0.01/0.7/0.27, dsn=4.7.0, status=deferred (ho
st alt1.aspmx.l.google.com[64.233.164.26] said: 421-4.7.0 [5.9.62.140 15] Our system has detected that this message is 421-4.7.0 suspicious due to the very low reputation
of the sending IP address. 421-4.7.0 To protect our users from spam, mail sent from your IP address has 421-4.7.0 been temporarily rate limited. Please visit 421 4.7.0 https
://support.google.com/mail/answer/188131 for more information. t27si34075426lfi.77 - gsmtp (in reply to end of DATA command))
Je ne comprends pas le souci, car pour Google, ça arrive depuis la même ip publique ? Quelqu'un a une idée ?