Skip to content

[BUG] Postfix trys to send emails localy to dovecot (lmtp) for gmail.com and ingoring relaymap #2673

@iamkhalidbashir

Description

@iamkhalidbashir

Miscellaneous first checks

  • I checked that all ports are open and not blocked by my ISP / hosting provider.
  • I know that SSL errors are likely the result of a wrong setup on the user side and not caused by DMS itself. I'm confident my setup is correct.

Affected Component(s)

Relaymap is ignored for gmail.com

What happened and when does this occur?

The is no @gmail.com entry in postfix-relaymap.cf

just 2 private domain entries:-

@domain1.com		[email-smtp.us-east-1.amazonaws.com]:587
@domain2.com            [smtp.sparkpostmail.com]:587

And yet Whenever I try to send an email to a gmail.com receipt I get

Reporting-MTA: dns; mail.mydomain.com
X-Postfix-Queue-ID: 99D2F102E63
X-Postfix-Sender: rfc822; [email protected]
Arrival-Date: Mon,  4 Jul 2022 16:32:26 -0500 (US)

Final-Recipient: rfc822; [email protected]
Original-Recipient: rfc822;[email protected]
Action: failed
Status: 5.1.1
Remote-MTA: dns; mail.mydomain.com
Diagnostic-Code: smtp; 550 5.1.1 <[email protected]> User doesn't
    exist: [email protected]

But when I send an email to any other domain of a GSuite account like @anydomain.com the emails does gets relayed

What did you expect to happen?

Email should be relayed for any Recipient when the sender has @domain1.com as there is an entry preset in postfix-relaymap.cf for domain1.com

How do we replicate the issue?

1. DEFAULT_RELAY_HOST= should be empty
2. RELAY_HOST, RELAY_PORT, RELAY_USER, RELAY_PASSWORD must be filled
3. postfix-relaymap.cf should have a domain entry to relay
4. postfix-sasl-password.cf should have auth for the relay domain
5. Send an email to gmail.com
...

DMS version

11.0.0

What operating system is DMS running on?

Linux

What instruction set architecture is DMS running on?

x86_64 / AMD64

What container orchestration tool are you using?

Docker Compose

docker-compose.yml

version: "3.8"
services:
  mailserver:
    restart: always
    image: mailserver/docker-mailserver:11.0.0
    hostname: ${IMAP_SUBDOMAIN}
    domainname: ${OS_DOMAIN}
    env_file: .env.secret
    # To avoid conflicts with yaml base-60 float, DO NOT remove the quotation marks.
    # More information about the mailserver ports:
    # https://docker-mailserver.github.io/docker-mailserver/edge/config/security/understanding-the-ports/
    ports:
      - "25:25" # SMTP  (explicit TLS => STARTTLS)
      - "143:143" # IMAP4 (explicit TLS => STARTTLS)
      - "465:465" # ESMTP (implicit TLS)
      - "587:587" # ESMTP (explicit TLS => STARTTLS)
      - "993:993" # IMAP4 (implicit TLS)
    volumes:
      - ../storage/mailserver/mail-data:/var/mail
      - ../storage/mailserver/mail-state:/var/mail-state
      - ../volumes/mailserver/mail-logs:/var/log/mail
      - ./config:/tmp/docker-mailserver/
      - /etc/localtime:/etc/localtime:ro
      - ../certs:/var/mail-certs:ro
    environment:
     - LDAP_SERVER_HOST
     - SASLAUTHD_LDAP_SERVER=${LDAP_SERVER_HOST}
     - LDAP_BIND_PW
     - SASLAUTHD_LDAP_PASSWORD=${LDAP_BIND_PW}
     - RELAY_USER
     - RELAY_PASSWORD
    cap_add:
      - NET_ADMIN
      - SYS_PTRACE
    stop_grace_period: 1m

Relevant log output

Jul  4 18:39:03 imap dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=10.47.0.2, lip=172.21.0.3, mpid=7294, TLS, session=<DdPw2/ridLkKLwAC>
Jul  4 18:39:03 imap dovecot: imap([email protected])<7294><DdPw2/ridLkKLwAC>: Logged out in=92 out=1041 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Jul  4 18:39:05 imap postfix/smtps/smtpd[5912]: warning: hostname ip247.tervelnet.com does not resolve to address 87.246.7.247
Jul  4 18:39:05 imap postfix/smtps/smtpd[5912]: connect from unknown[87.246.7.247]
Jul  4 18:39:06 imap postfix/smtpd[7283]: disconnect from maile-db.linkedin.com[108.174.6.202] ehlo=2 starttls=1 mail=1 rcpt=1 data=1 quit=1 commands=7
Jul  4 18:39:16 imap postfix/smtps/smtpd[5912]: Anonymous TLS connection established from unknown[87.246.7.247]: TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)
Jul  4 18:39:29 imap dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=10.47.0.2, lip=172.21.0.3, mpid=7308, TLS, session=<a9V83frifLkKLwAC>
Jul  4 18:39:29 imap dovecot: imap([email protected])<7308><a9V83frifLkKLwAC>: Logged out in=92 out=1041 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Jul  4 18:39:44 imap dovecot: auth: ldap([email protected],127.0.0.1,<5Kln3vri/rB/AAAB>): unknown user (SHA1 of given password: e696b5)
Jul  4 18:39:46 imap postfix/smtps/smtpd[5912]: warning: unknown[87.246.7.247]: SASL LOGIN authentication failed: authentication failure
Jul  4 18:39:46 imap dovecot: imap-login: Aborted login (auth failed, 1 attempts in 2 secs): user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured, session=<5Kln3vri/rB/AAAB>
Jul  4 18:39:51 imap postfix/smtps/smtpd[5912]: lost connection after AUTH from unknown[87.246.7.247]
Jul  4 18:39:51 imap postfix/smtps/smtpd[5912]: disconnect from unknown[87.246.7.247] ehlo=1 auth=0/1 rset=1 commands=2/3
Jul  4 18:40:03 imap dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=10.47.0.2, lip=172.21.0.3, mpid=7323, TLS, session=<BnOE3/rigrkKLwAC>
Jul  4 18:40:03 imap dovecot: imap([email protected])<7323><BnOE3/rigrkKLwAC>: Logged out in=92 out=1041 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Jul  4 18:40:28 imap dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=10.47.0.2, lip=172.21.0.3, mpid=7335, TLS, session=<sEUK4frihrkKLwAC>
Jul  4 18:40:28 imap dovecot: imap([email protected])<7335><sEUK4frihrkKLwAC>: Logged out in=92 out=1041 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Jul  4 18:40:46 imap postfix/smtps/smtpd[5912]: warning: hostname ip247.tervelnet.com does not resolve to address 87.246.7.247
Jul  4 18:40:46 imap postfix/smtps/smtpd[5912]: connect from unknown[87.246.7.247]
Jul  4 18:40:56 imap postfix/smtps/smtpd[5912]: Anonymous TLS connection established from unknown[87.246.7.247]: TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)
Jul  4 18:41:03 imap dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=10.47.0.2, lip=172.21.0.3, mpid=7351, TLS, session=<TdAX4/rijrkKLwAC>
Jul  4 18:41:03 imap dovecot: imap([email protected])<7351><TdAX4/rijrkKLwAC>: Logged out in=92 out=1041 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Jul  4 18:41:07 imap postfix/smtps/smtpd[5912]: lost connection after RSET from unknown[87.246.7.247]
Jul  4 18:41:07 imap postfix/smtps/smtpd[5912]: disconnect from unknown[87.246.7.247] ehlo=1 rset=1 commands=2
Jul  4 18:41:28 imap dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=10.47.0.2, lip=172.21.0.3, mpid=7363, TLS, session=<tb6d5PrikrkKLwAC>
Jul  4 18:41:28 imap dovecot: imap([email protected])<7363><tb6d5PrikrkKLwAC>: Logged out in=92 out=1041 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Jul  4 18:42:03 imap dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=10.47.0.2, lip=172.21.0.3, mpid=7379, TLS, session=<NHSr5vrilrkKLwAC>
Jul  4 18:42:03 imap dovecot: imap([email protected])<7379><NHSr5vrilrkKLwAC>: Logged out in=92 out=1041 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Jul  4 18:42:26 imap postfix/smtps/smtpd[5912]: warning: hostname ip247.tervelnet.com does not resolve to address 87.246.7.247
Jul  4 18:42:26 imap postfix/smtps/smtpd[5912]: connect from unknown[87.246.7.247]
Jul  4 18:42:28 imap dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=10.47.0.2, lip=172.21.0.3, mpid=7391, TLS, session=<1C0x6PrimrkKLwAC>
Jul  4 18:42:28 imap dovecot: imap([email protected])<7391><1C0x6PrimrkKLwAC>: Logged out in=92 out=1041 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Jul  4 18:42:37 imap postfix/smtps/smtpd[5912]: Anonymous TLS connection established from unknown[87.246.7.247]: TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)
Jul  4 18:43:03 imap dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=10.47.0.2, lip=172.21.0.3, mpid=7407, TLS, session=<zHE/6vriorkKLwAC>
Jul  4 18:43:03 imap dovecot: imap([email protected])<7407><zHE/6vriorkKLwAC>: Logged out in=92 out=1041 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Jul  4 18:43:05 imap dovecot: auth: ldap([email protected],127.0.0.1,<lOVe6vriJLF/AAAB>): unknown user (SHA1 of given password: da79dd)
Jul  4 18:43:07 imap postfix/smtps/smtpd[5912]: warning: unknown[87.246.7.247]: SASL LOGIN authentication failed: authentication failure
Jul  4 18:43:07 imap dovecot: imap-login: Aborted login (auth failed, 1 attempts in 2 secs): user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured, session=<lOVe6vriJLF/AAAB>
Jul  4 18:43:13 imap postfix/smtps/smtpd[5912]: lost connection after AUTH from unknown[87.246.7.247]
Jul  4 18:43:13 imap postfix/smtps/smtpd[5912]: disconnect from unknown[87.246.7.247] ehlo=1 auth=0/1 rset=1 commands=2/3
Jul  4 18:43:28 imap dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=10.47.0.2, lip=172.21.0.3, mpid=7420, TLS, session=<VODE6/riqLkKLwAC>
Jul  4 18:43:28 imap dovecot: imap([email protected])<7420><VODE6/riqLkKLwAC>: Logged out in=92 out=1041 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Jul  4 18:43:35 imap postfix/submission/smtpd[7425]: warning: hostname good-server.outreachratio.com does not resolve to address 141.98.10.70: Temporary failure in name resolution
Jul  4 18:43:35 imap postfix/submission/smtpd[7425]: connect from unknown[141.98.10.70]
Jul  4 18:43:36 imap postfix/submission/smtpd[7425]: Anonymous TLS connection established from unknown[141.98.10.70]: TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)
Jul  4 18:43:37 imap postfix/submission/smtpd[7427]: warning: hostname command-combo.halffail.com does not resolve to address 141.98.11.75: Name or service not known
Jul  4 18:43:37 imap postfix/submission/smtpd[7427]: connect from unknown[141.98.11.75]
Jul  4 18:43:37 imap dovecot: auth: ldap([email protected],127.0.0.1,<JOBD7PriMrF/AAAB>): unknown user (SHA1 of given password: 21bd12)
Jul  4 18:43:39 imap postfix/submission/smtpd[7425]: warning: unknown[141.98.10.70]: SASL LOGIN authentication failed: authentication failure
Jul  4 18:43:39 imap dovecot: imap-login: Aborted login (auth failed, 1 attempts in 2 secs): user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured, session=<JOBD7PriMrF/AAAB>
Jul  4 18:43:39 imap postfix/submission/smtpd[7425]: disconnect from unknown[141.98.10.70] ehlo=2 starttls=1 auth=0/1 quit=1 commands=4/5
Jul  4 18:43:40 imap postfix/submission/smtpd[7427]: Anonymous TLS connection established from unknown[141.98.11.75]: TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)
Jul  4 18:43:45 imap dovecot: auth: ldap([email protected],127.0.0.1,<OCeH7PriNLF/AAAB>): unknown user (SHA1 of given password: 67ecf6)
Jul  4 18:43:47 imap postfix/submission/smtpd[7427]: warning: unknown[141.98.11.75]: SASL LOGIN authentication failed: authentication failure
Jul  4 18:43:47 imap dovecot: imap-login: Aborted login (auth failed, 1 attempts in 6 secs): user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured, session=<OCeH7PriNLF/AAAB>
Jul  4 18:43:47 imap postfix/submission/smtpd[7427]: disconnect from unknown[141.98.11.75] ehlo=2 starttls=1 auth=0/1 quit=1 commands=4/5
Jul  4 18:43:51 imap postfix/submission/smtpd[7425]: warning: hostname 7usituation.org.uk does not resolve to address 45.125.66.55
Jul  4 18:43:51 imap postfix/submission/smtpd[7425]: connect from unknown[45.125.66.55]
Jul  4 18:43:55 imap dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=10.47.0.2, lip=172.21.0.3, mpid=7439, TLS, session=<HklZ7frivrkKLwAC>
Jul  4 18:43:55 imap dovecot: imap([email protected])<7439><HklZ7frivrkKLwAC>: Logged out in=92 out=1041 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Jul  4 18:43:55 imap postfix/submission/smtpd[7425]: Anonymous TLS connection established from unknown[45.125.66.55]: TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)
Jul  4 18:44:04 imap dovecot: auth: ldap([email protected],127.0.0.1,<RIlr7friQLF/AAAB>): unknown user (SHA1 of given password: 8cb223)
Jul  4 18:44:06 imap postfix/submission/smtpd[7425]: warning: unknown[45.125.66.55]: SASL LOGIN authentication failed: authentication failure
Jul  4 18:44:06 imap dovecot: imap-login: Aborted login (auth failed, 1 attempts in 10 secs): user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured, session=<RIlr7friQLF/AAAB>
Jul  4 18:44:06 imap postfix/submission/smtpd[7425]: disconnect from unknown[45.125.66.55] ehlo=2 starttls=1 auth=0/1 quit=1 commands=4/5
Jul  4 18:44:06 imap postfix/smtps/smtpd[5912]: warning: hostname ip247.tervelnet.com does not resolve to address 87.246.7.247
Jul  4 18:44:06 imap postfix/smtps/smtpd[5912]: connect from unknown[87.246.7.247]
Jul  4 18:44:15 imap dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=10.47.0.2, lip=172.21.0.3, mpid=7450, TLS, session=<oEuN7vrixLkKLwAC>
Jul  4 18:44:15 imap dovecot: imap([email protected])<7450><oEuN7vrixLkKLwAC>: Logged out in=32 out=552 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Jul  4 18:44:15 imap dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=10.47.0.2, lip=172.21.0.3, mpid=7452, TLS, session=<OZCQ7vriyLkKLwAC>
Jul  4 18:44:15 imap dovecot: imap([email protected])<7452><OZCQ7vriyLkKLwAC>: Logged out in=44 out=654 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Jul  4 18:44:16 imap postfix/submission/smtpd[7427]: connect from unknown[141.98.10.203]
Jul  4 18:44:17 imap postfix/smtps/smtpd[5912]: Anonymous TLS connection established from unknown[87.246.7.247]: TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)
Jul  4 18:44:20 imap postfix/submission/smtpd[7427]: Anonymous TLS connection established from unknown[141.98.10.203]: TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)
Jul  4 18:44:21 imap dovecot: auth: ldap([email protected],127.0.0.1,<Rv3n7vriVrF/AAAB>): unknown user (SHA1 of given password: 85f437)
Jul  4 18:44:23 imap postfix/submission/smtpd[7427]: warning: unknown[141.98.10.203]: SASL LOGIN authentication failed: authentication failure
Jul  4 18:44:23 imap dovecot: imap-login: Aborted login (auth failed, 1 attempts in 2 secs): user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured, session=<Rv3n7vriVrF/AAAB>
Jul  4 18:44:23 imap postfix/submission/smtpd[7427]: disconnect from unknown[141.98.10.203] ehlo=2 starttls=1 auth=0/1 quit=1 commands=4/5
Jul  4 18:44:24 imap postfix/submission/smtpd[7425]: connect from unknown[10.47.0.2]
Jul  4 18:44:24 imap postfix/submission/smtpd[7425]: Anonymous TLS connection established from unknown[10.47.0.2]: TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
Jul  4 18:44:28 imap dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=7459, secured, session=<s94R7/riYLF/AAAB>
Jul  4 18:44:28 imap dovecot: imap([email protected])<7459><s94R7/riYLF/AAAB>: Logged out in=16 out=488 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Jul  4 18:44:28 imap postfix/submission/smtpd[7425]: 390F1102E71: client=unknown[10.47.0.2], sasl_method=LOGIN, [email protected]
Jul  4 18:44:28 imap postfix/sender-cleanup/cleanup[7461]: 390F1102E71: replace: header MIME-Version: 1.0 from unknown[10.47.0.2]; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<mail.os.domain1.com>: Mime-Version: 1.0
Jul  4 18:44:28 imap postfix/sender-cleanup/cleanup[7461]: 390F1102E71: message-id=<[email protected]>
Jul  4 18:44:28 imap opendkim[2025]: 390F1102E71: DKIM-Signature field added (s=mail, d=domain1.com)
Jul  4 18:44:28 imap postfix/qmgr[3239]: 390F1102E71: from=<[email protected]>, size=257, nrcpt=1 (queue active)
Jul  4 18:44:28 imap postfix/submission/smtpd[7425]: disconnect from unknown[10.47.0.2] ehlo=2 starttls=1 auth=1 mail=1 rcpt=1 data=1 quit=1 commands=8
Jul  4 18:44:28 imap dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=10.47.0.2, lip=172.21.0.3, mpid=7464, TLS, session=<xstR7/ri6LkKLwAC>
Jul  4 18:44:28 imap dovecot: imap([email protected])<7464><xstR7/ri6LkKLwAC>: Logged out in=311 out=730 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Jul  4 18:44:28 imap dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=10.47.0.2, lip=172.21.0.3, mpid=7466, TLS, session=<5BxY7/ri7rkKLwAC>
Jul  4 18:44:28 imap dovecot: imap([email protected])<7466><5BxY7/ri7rkKLwAC>: Logged out in=92 out=1041 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Jul  4 18:44:29 imap dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=10.47.0.2, lip=172.21.0.3, mpid=7468, TLS, session=<Bxdd7/ri8rkKLwAC>
Jul  4 18:44:29 imap dovecot: imap([email protected])<7468><Bxdd7/ri8rkKLwAC>: Logged out in=44 out=654 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Jul  4 18:44:29 imap dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=10.47.0.2, lip=172.21.0.3, mpid=7473, TLS, session=<20di7/ri+LkKLwAC>
Jul  4 18:44:29 imap dovecot: imap([email protected])<7473><20di7/ri+LkKLwAC>: Logged out in=233 out=1100 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Jul  4 18:44:29 imap dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=10.47.0.2, lip=172.21.0.3, mpid=7474, TLS, session=<K5di7/ri+rkKLwAC>
Jul  4 18:44:29 imap dovecot: imap([email protected])<7474><K5di7/ri+rkKLwAC>: Logged out in=298 out=26649 deleted=0 expunged=0 trashed=0 hdr_count=50 hdr_bytes=13800 body_count=0 body_bytes=0
Jul  4 18:44:29 imap postfix/smtp[7462]: Trusted TLS connection established to email-smtp.us-east-1.amazonaws.com[34.225.134.101]:587: TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)
Jul  4 18:44:31 imap postfix/smtp[7462]: 390F1102E71: to=<[email protected]>, relay=email-smtp.us-east-1.amazonaws.com[34.225.134.101]:587, delay=3.1, delays=0.12/0.05/1.8/1.1, dsn=2.0.0, status=sent (250 Ok 01000181c9749a32-20ddfc2b-df37-4cd0-879c-1e5b89e9bdd6-000000)
Jul  4 18:44:31 imap postfix/qmgr[3239]: 390F1102E71: removed
Jul  4 18:44:43 imap dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=10.47.0.2, lip=172.21.0.3, mpid=7480, TLS, session=<hws58Pri/rkKLwAC>
Jul  4 18:44:43 imap dovecot: imap([email protected])<7480><hws58Pri/rkKLwAC>: Logged out in=32 out=552 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Jul  4 18:44:43 imap dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=10.47.0.2, lip=172.21.0.3, mpid=7482, TLS, session=<3Bs88PriAroKLwAC>
Jul  4 18:44:43 imap dovecot: imap([email protected])<7482><3Bs88PriAroKLwAC>: Logged out in=44 out=654 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Jul  4 18:44:45 imap dovecot: auth: ldap([email protected],127.0.0.1,<8KdP8PrihLF/AAAB>): unknown user (SHA1 of given password: c6e491)
Jul  4 18:44:47 imap postfix/smtps/smtpd[5912]: warning: unknown[87.246.7.247]: SASL LOGIN authentication failed: authentication failure
Jul  4 18:44:47 imap dovecot: imap-login: Aborted login (auth failed, 1 attempts in 2 secs): user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured, session=<8KdP8PrihLF/AAAB>
Jul  4 18:44:52 imap postfix/smtps/smtpd[5912]: lost connection after AUTH from unknown[87.246.7.247]
Jul  4 18:44:52 imap postfix/smtps/smtpd[5912]: disconnect from unknown[87.246.7.247] ehlo=1 auth=0/1 rset=1 commands=2/3
Jul  4 18:45:02 imap postfix/submission/smtpd[7427]: connect from unknown[10.47.0.2]
Jul  4 18:45:02 imap postfix/submission/smtpd[7427]: Anonymous TLS connection established from unknown[10.47.0.2]: TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
Jul  4 18:45:02 imap dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=7493, secured, session=<pdhc8friprF/AAAB>
Jul  4 18:45:02 imap dovecot: imap([email protected])<7493><pdhc8friprF/AAAB>: Logged out in=16 out=488 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Jul  4 18:45:02 imap postfix/submission/smtpd[7427]: A3E47102E69: client=unknown[10.47.0.2], sasl_method=LOGIN, [email protected]
Jul  4 18:45:02 imap postfix/sender-cleanup/cleanup[7461]: A3E47102E69: replace: header MIME-Version: 1.0 from unknown[10.47.0.2]; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<mail.os.domain1.com>: Mime-Version: 1.0
Jul  4 18:45:02 imap postfix/sender-cleanup/cleanup[7461]: A3E47102E69: message-id=<[email protected]>
Jul  4 18:45:02 imap opendkim[2025]: A3E47102E69: DKIM-Signature field added (s=mail, d=domain1.com)
Jul  4 18:45:02 imap postfix/qmgr[3239]: A3E47102E69: from=<[email protected]>, size=256, nrcpt=1 (queue active)
Jul  4 18:45:02 imap postfix/submission/smtpd[7427]: disconnect from unknown[10.47.0.2] ehlo=2 starttls=1 auth=1 mail=1 rcpt=1 data=1 quit=1 commands=8
Jul  4 18:45:02 imap dovecot: lmtp(7496): Connect from local
Jul  4 18:45:02 imap dovecot: auth: ldap([email protected]): unknown user 
Jul  4 18:45:02 imap dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=10.47.0.2, lip=172.21.0.3, mpid=7497, TLS, session=<rDZf8friKroKLwAC>
Jul  4 18:45:02 imap postfix/lmtp[7494]: A3E47102E69: to=<[email protected]>, relay=imap.os.domain1.com[/var/run/dovecot/lmtp], delay=0.17, delays=0.11/0.02/0.02/0.02, dsn=5.1.1, status=bounced (host imap.os.domain1.com[/var/run/dovecot/lmtp] said: 550 5.1.1 <[email protected]> User doesn't exist: [email protected] (in reply to RCPT TO command))
Jul  4 18:45:02 imap dovecot: lmtp(7496): Disconnect from local: Client has quit the connection (state=READY)
Jul  4 18:45:02 imap dovecot: imap([email protected])<7497><rDZf8friKroKLwAC>: Logged out in=310 out=722 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Jul  4 18:45:02 imap postfix/cleanup[7500]: D0F98102E77: message-id=<[email protected]>
Jul  4 18:45:02 imap postfix/qmgr[3239]: D0F98102E77: from=<>, size=3202, nrcpt=1 (queue active)
Jul  4 18:45:02 imap postfix/bounce[7498]: A3E47102E69: sender non-delivery notification: D0F98102E77
Jul  4 18:45:02 imap postfix/qmgr[3239]: A3E47102E69: removed
Jul  4 18:45:02 imap dovecot: lmtp(7496): Connect from local
Jul  4 18:45:02 imap dovecot: lmtp([email protected])<7496><GEnKM97uwmJIHQAAGQQzgA>: sieve: msgid=<[email protected]>: stored mail into mailbox 'INBOX'
Jul  4 18:45:02 imap postfix/lmtp[7494]: D0F98102E77: to=<[email protected]>, relay=imap.os.domain1.com[/var/run/dovecot/lmtp], delay=0.04, delays=0.03/0/0/0.01, dsn=2.0.0, status=sent (250 2.0.0 <[email protected]> GEnKM97uwmJIHQAAGQQzgA Saved)
Jul  4 18:45:02 imap postfix/qmgr[3239]: D0F98102E77: removed
Jul  4 18:45:02 imap dovecot: lmtp(7496): Disconnect from local: Client has quit the connection (state=READY)
Jul  4 18:45:03 imap dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=10.47.0.2, lip=172.21.0.3, mpid=7502, TLS, session=<Z1dq8friMLoKLwAC>
Jul  4 18:45:03 imap dovecot: imap([email protected])<7502><Z1dq8friMLoKLwAC>: Logged out in=44 out=654 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Jul  4 18:45:03 imap dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=10.47.0.2, lip=172.21.0.3, mpid=7505, TLS, session=<2JFv8friNroKLwAC>
Jul  4 18:45:03 imap dovecot: imap([email protected])<7505><2JFv8friNroKLwAC>: Logged out in=233 out=1100 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Jul  4 18:45:03 imap dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=10.47.0.2, lip=172.21.0.3, mpid=7506, TLS, session=<xtFv8friOLoKLwAC>
Jul  4 18:45:03 imap dovecot: imap([email protected])<7506><xtFv8friOLoKLwAC>: Logged out in=298 out=26736 deleted=0 expunged=0 trashed=0 hdr_count=50 hdr_bytes=13874 body_count=0 body_bytes=0
Jul  4 18:45:05 imap dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=10.47.0.2, lip=172.21.0.3, mpid=7510, TLS, session=<pheJ8friPLoKLwAC>
Jul  4 18:45:05 imap dovecot: imap([email protected])<7510><pheJ8friPLoKLwAC>: Logged out in=629 out=5398 deleted=0 expunged=0 trashed=0 hdr_count=1 hdr_bytes=370 body_count=5 body_bytes=2363
Jul  4 18:45:28 imap dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=10.47.0.2, lip=172.21.0.3, mpid=7520, TLS, session=<w9zr8vriQLoKLwAC>
Jul  4 18:45:28 imap dovecot: imap([email protected])<7520><w9zr8vriQLoKLwAC>: Logged out in=144 out=1131 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Jul  4 18:45:43 imap postfix/submission/smtpd[7425]: warning: hostname yell.woinsta.com does not resolve to address 141.98.11.19
Jul  4 18:45:43 imap postfix/submission/smtpd[7425]: connect from unknown[141.98.11.19]
Jul  4 18:45:46 imap postfix/smtps/smtpd[5912]: warning: hostname ip247.tervelnet.com does not resolve to address 87.246.7.247
Jul  4 18:45:46 imap postfix/smtps/smtpd[5912]: connect from unknown[87.246.7.247]
Jul  4 18:45:46 imap postfix/submission/smtpd[7425]: Anonymous TLS connection established from unknown[141.98.11.19]: TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)
Jul  4 18:45:47 imap dovecot: auth: ldap([email protected],127.0.0.1,<72kM9PrixrF/AAAB>): unknown user (SHA1 of given password: 7c222f)
Jul  4 18:45:49 imap postfix/submission/smtpd[7425]: warning: unknown[141.98.11.19]: SASL LOGIN authentication failed: authentication failure
Jul  4 18:45:49 imap dovecot: imap-login: Aborted login (auth failed, 1 attempts in 2 secs): user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured, session=<72kM9PrixrF/AAAB>
Jul  4 18:45:49 imap postfix/submission/smtpd[7425]: disconnect from unknown[141.98.11.19] ehlo=2 starttls=1 auth=0/1 quit=1 commands=4/5
Jul  4 18:45:57 imap postfix/smtps/smtpd[5912]: Anonymous TLS connection established from unknown[87.246.7.247]: TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)
Jul  4 18:46:03 imap dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=10.47.0.2, lip=172.21.0.3, mpid=7537, TLS, session=<cQ8D9friTroKLwAC>
Jul  4 18:46:03 imap dovecot: imap([email protected])<7537><cQ8D9friTroKLwAC>: Logged out in=92 out=1041 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0

Other relevant information

In the log output
Till like 100 I have a successful email sent on a different domain other than gmail.com

but after 100 line I have unsuccessful email logs for gmail.com Recipient

What level of experience do you have with Docker and mail servers?

  • I am inexperienced with docker
  • I am inexperienced with mail servers
  • I am uncomfortable with the CLI

Code of conduct

Improvements to this form?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions