juanluisbaptiste/docker-postfix

Please Help -Error - host smtp.gmail.com [173.194.220.108] refused to talk to me: 521 connection rejected.

michaelAdewunmi opened this issue · 1 comments

I was able to get the docker-image and set it up and running using gmail smtp. However, the email isn't sending. Please what do I do. I am thinking It probably has to do with IP but I have tried 3 different ISPs and had the same response. Please I need some help.
Here is my docker-compose.yml

services:
  postfix:
    image: juanluisbaptiste/postfix:alpine
    expose:
    - "25"
    env_file:
      - .env
    restart: always
    volumes:
      - "/etc/localtime:/etc/localtime:ro"
    networks:
      postfix:
networks:
  postfix:
    name: postfix

The reply below is what I got from the inspect log on my docker desktop.


Aug 24 10:35:31 3237f1bfd0cc postfix/smtpd[103]: 95A0C4A4C: client=case-tracker_wordpress_1.postfix[172.21.0.3]

Aug 24 10:35:31 3237f1bfd0cc postfix/cleanup[106]: 95A0C4A4C: message-id=<84ffd4b1229b84b48b483a146cdc5f47@casetracker.local>

Aug 24 10:35:31 3237f1bfd0cc postfix/smtpd[103]: disconnect from case-tracker_wordpress_1.postfix[172.21.0.3] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5

Aug 24 10:35:31 3237f1bfd0cc postfix/qmgr[93]: 95A0C4A4C: from=<ddevplace@gmail.com>, size=3586, nrcpt=1 (queue active)

Aug 24 10:35:32 3237f1bfd0cc postfix/smtp[107]: 95A0C4A4C: to=<demmy.young.writes@gmail.com>, relay=smtp.gmail.com[173.194.220.108]:587, delay=0.97, delays=0.06/0.01/0.77/0.13, dsn=5.5.0, status=bounced (host smtp.gmail.com[173.194.220.108] said: 550 5.5.0 Invalid EHLO/HELO domain. (in reply to MAIL FROM command))

Aug 24 10:35:32 3237f1bfd0cc postfix/cleanup[106]: B5F594A50: message-id=<20200824103532.B5F594A50@admin.casetracker.local>

Aug 24 10:35:32 3237f1bfd0cc postfix/bounce[108]: 95A0C4A4C: sender non-delivery notification: B5F594A50

Aug 24 10:35:32 3237f1bfd0cc postfix/qmgr[93]: B5F594A50: from=<>, size=5596, nrcpt=1 (queue active)

Aug 24 10:35:32 3237f1bfd0cc postfix/qmgr[93]: 95A0C4A4C: removed

Aug 24 10:35:33 3237f1bfd0cc postfix/smtp[107]: B5F594A50: to=<ddevplace@gmail.com>, relay=smtp.gmail.com[173.194.220.108]:587, delay=0.9, delays=0.01/0/0.86/0.03, dsn=5.5.0, status=bounced (host smtp.gmail.com[173.194.220.108] said: 550 5.5.0 Invalid EHLO/HELO domain. (in reply to MAIL FROM command))

Aug 24 10:35:33 3237f1bfd0cc postfix/qmgr[93]: B5F594A50: removed

Aug 24 10:36:32 3237f1bfd0cc postfix/qmgr[93]: C03264A3D: from=<ddevplace@gmail.com>, size=3586, nrcpt=1 (queue active)

Aug 24 10:36:33 3237f1bfd0cc postfix/smtp[107]: C03264A3D: to=<demmy.young.writes@gmail.com>, relay=smtp.gmail.com[173.194.220.108]:587, delay=572, delays=571/0/0.45/0, dsn=4.0.0, status=deferred (host smtp.gmail.com[173.194.220.108] refused to talk to me: 521 connection rejected)

Aug 24 10:46:32 3237f1bfd0cc postfix/qmgr[93]: C03264A3D: from=<ddevplace@gmail.com>, size=3586, nrcpt=1 (queue active)

Aug 24 10:46:34 3237f1bfd0cc postfix/smtp[111]: C03264A3D: to=<demmy.young.writes@gmail.com>, relay=smtp.gmail.com[173.194.220.108]:587, delay=1173, delays=1171/0.02/1.8/0, dsn=4.0.0, status=deferred (host smtp.gmail.com[173.194.220.108] refused to talk to me: 521 connection rejected)

Please any help or pointers as to what might be happening?

Hi,

This issue is not related to this container configuration and this is not a support forum, better luck asking on stackoverflow and similar sites.