Hi,
I am using a combination of Proxmox Mail Gateway (PMG) and MailCow (MC). All incoming emails will go through PMG before being forwarded to MC and all outgoing emails will go through PMG last.
However, I have difficulty whereby incoming emails with attachment is rejected by MC.
Here is a log at the PMG side.:
2024-09-30T10:30:52.874755+07:00 mg postfix/smtpd[411646]: connect from mail-qt1-f169.google.com[209.85.160.169]
2024-09-30T10:30:53.743581+07:00 mg postfix/smtpd[411646]: Anonymous TLS connection established from mail-qt1-f169.google.com[209.85.160.169]: TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256
2024-09-30T10:30:54.178827+07:00 mg postfix/smtpd[411646]: 2B8B5460ACA: client=mail-qt1-f169.google.com[209.85.160.169]
2024-09-30T10:30:54.194407+07:00 mg postfix/cleanup[411649]: 2B8B5460ACA: message-id=<CALPdKcj1moaSeM6xXU_3s4FCvn=BOpbmt_mzH9wngP2YkgsbYA@mail.gmail.com>
2024-09-30T10:30:54.479656+07:00 mg postfix/qmgr[248905]: 2B8B5460ACA: from=SENDER@GMAIL.COM, size=29516, nrcpt=3 (queue active)
2024-09-30T10:30:54.539867+07:00 mg pmg-smtp-filter[411128]: 460AE766FA1B6E7FD2D: new mail message-id=<CALPdKcj1moaSeM6xXU_3s4FCvn=BOpbmt_mzH9wngP2YkgsbYA@mail.gmail.com>#012
2024-09-30T10:30:54.830357+07:00 mg postfix/smtpd[411646]: disconnect from mail-qt1-f169.google.com[209.85.160.169] ehlo=2 starttls=1 mail=1 rcpt=3 bdat=1 quit=1 commands=9
2024-09-30T10:30:55.334409+07:00 mg pmg-smtp-filter[411128]: 460AE766FA1B6E7FD2D: SA score=0/5 time=0.708 bayes=undefined autolearn=no autolearn_force=no hits=AWL(0.293),DKIM_SIGNED(0.1),DKIM_VALID(-0.1),DKIM_VALID_AU(-0.1),DKIM_VALID_EF(-0.1),DMARC_PASS(-0.1),FREEMAIL_ENVFROM_END_DIGIT(0.25),FREEMAIL_FROM(0.001),HTML_MESSAGE(0.001),RCVD_IN_MSPIKE_H3(0.001),RCVD_IN_MSPIKE_WL(0.001),SPF_HELO_NONE(0.001),SPF_PASS(-0.001),SUBJ_ALL_CAPS(0.5),T_FREEMAIL_DOC_PDF(0.01)
2024-09-30T10:30:55.339832+07:00 mg postfix/smtpd[411656]: connect from localhost.localdomain[127.0.0.1]
2024-09-30T10:30:55.340755+07:00 mg postfix/smtpd[411656]: 5327C460AED: client=localhost.localdomain[127.0.0.1], orig_client=mail-qt1-f169.google.com[209.85.160.169]
2024-09-30T10:30:55.342141+07:00 mg postfix/cleanup[411649]: 5327C460AED: message-id=<CALPdKcj1moaSeM6xXU_3s4FCvn=BOpbmt_mzH9wngP2YkgsbYA@mail.gmail.com>
2024-09-30T10:30:55.385013+07:00 mg postfix/qmgr[248905]: 5327C460AED: from=SENDER@GMAIL.COM, size=30825, nrcpt=3 (queue active)
2024-09-30T10:30:55.385401+07:00 mg postfix/smtpd[411656]: disconnect from localhost.localdomain[127.0.0.1] ehlo=1 xforward=1 mail=1 rcpt=3 data=1 commands=7
2024-09-30T10:30:55.385473+07:00 mg pmg-smtp-filter[411128]: 460AE766FA1B6E7FD2D: accept mail to <RECIPIENT@EXAMPLE.COM> (5327C460AED) (rule: default-accept)
2024-09-30T10:30:55.388115+07:00 mg pmg-smtp-filter[411128]: 460AE766FA1B6E7FD2D: processing time: 0.861 seconds (0.708, 0.081, 0)
2024-09-30T10:30:55.388561+07:00 mg postfix/lmtp[411651]: 2B8B5460ACA: to=<RECIPIENT@EXAMPLE.COM>, relay=127.0.0.1[127.0.0.1]:10024, delay=1.2, delays=0.3/0/0.04/0.87, dsn=2.5.0, status=sent (250 2.5.0 OK (460AE766FA1B6E7FD2D))
2024-09-30T10:30:55.408661+07:00 mg postfix/smtp[411657]: Trusted TLS connection established to 207.148.XX.YYY[207.148.XX.YYY]:25: TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)
2024-09-30T10:30:55.429387+07:00 mg postfix/qmgr[248905]: 2B8B5460ACA: removed
2024-09-30T10:30:59.914263+07:00 mg postfix/smtp[411657]: 5327C460AED: to=<RECIPIENT@EXAMPLE.COM>, relay=207.148.XX.YYY[207.148.XX.YYY]:25, delay=4.6, delays=0.04/0/0.06/4.5, dsn=5.7.1, status=bounced (host 207.148.XX.YYY[207.148.XX.YYY] said: 554 5.7.1 This message does not meet our delivery requirements (in reply to end of DATA command))
2024-09-30T10:30:59.917170+07:00 mg postfix/qmgr[248905]: 5327C460AED: removed
While this is the log from MC side:
09/30/2024, 10:30:55 AM info 6FFBC487EC5: message-id=<CALPdKcj1moaSeM6xXU_3s4FCvn=BOpbmt_mzH9wngP2YkgsbYA@mail.gmail.com>
09/30/2024, 10:30:55 AM info 6FFBC487EC5: client=mg.EXAMPLE.com[149.28.XXX.YY]
09/30/2024, 10:30:55 AM info Anonymous TLS connection established from mg.ptuma.com[149.28.XXX.YY]: TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)
09/30/2024, 10:30:55 AM info connect from mg.EXAMPLE.com[149.28.XXX.YY]
09/30/2024, 10:30:55 AM info PASS OLD [149.28.XXX.YY]:48004
09/30/2024, 10:30:55 AM info Look up 149.28.XXX.YY on whitelist, result 200 DUNNO
09/30/2024, 10:30:55 AM info CONNECT from [149.28.XXX.YY]:48004 to [172.22.1.253]:25
Which side is the culprit? If it is MC, how do I solve it?
Thank you
Henry