[GH-ISSUE #1999] Server is bouncing messages #1495

Closed
opened 2026-02-27 11:17:24 +03:00 by kerem · 5 comments
Owner

Originally created by @physiii on GitHub (Jul 31, 2020).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/1999

Using 1.14.0
Webserver: Nginx

Incoming messages are being bounced back and I can not figure out why. The email will show up in my inbox (sometimes) but the sender will received a MAILER-DAEMON response.

If I send a test email from a gmail account. I will get:

MAILER-DAEMON <bounce@domain.com>
Hello ,

The email sent to andy@domain.com cannot be processed. This address is used to collect replies and should not be used to directly contact Domain.

Please contact us instead using sales@domain.com

Regards,

The team.

I restarted various services (postfix dovecot nginx clamav-daemon amavis), went through configuration files and settings through the web interface but can not find anything that would cause this issue or where that message is even being generated.

Here is a mail.log section that captures the event:

 31 13:43:42 mail postfix/postscreen[16709]: CONNECT from [209.85.218.47]:41622 to [192.168.1.42]:25
Jul 31 13:43:42 mail postfix/postscreen[16709]: WHITELISTED [209.85.218.47]:41622
Jul 31 13:43:42 mail postfix/smtpd[16710]: connect from mail-ej1-f47.google.com[209.85.218.47]
Jul 31 13:43:43 mail postfix/smtpd[16710]: Anonymous TLS connection established from mail-ej1-f47.google.com[209.85.218.47]: TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256
Jul 31 13:43:43 mail postfix/smtpd[16710]: NOQUEUE: client=mail-ej1-f47.google.com[209.85.218.47]
Jul 31 13:43:44 mail postfix/smtpd[16733]: connect from localhost[127.0.0.1]
Jul 31 13:43:44 mail postfix/smtpd[16733]: B56EE56006E: client=localhost[127.0.0.1], orig_client=mail-ej1-f47.google.com[209.85.218.47]
Jul 31 13:43:44 mail postfix/cleanup[16734]: B56EE56006E: message-id=<CAPvymChg9aQi85HW+yNQ7Bzx6fUNrSX2-RaEbak+yHFp56pRrQ@mail.gmail.com>
Jul 31 13:43:44 mail opendkim[1421]: B56EE56006E: no signing table match for 'test432@gmail.com'
Jul 31 13:43:44 mail opendkim[1421]: B56EE56006E: signature=BRj684H1 domain=gmail.com selector=20161025 result="no signature error"
Jul 31 13:43:44 mail opendkim[1421]: B56EE56006E: DKIM verification successful
Jul 31 13:43:44 mail opendkim[1421]: B56EE56006E: s=20161025 d=gmail.com SSL 
Jul 31 13:43:44 mail postfix/smtpd[16733]: disconnect from localhost[127.0.0.1] ehlo=1 xforward=1 mail=1 rcpt=1 data=1 quit=1 commands=6
Jul 31 13:43:44 mail postfix/qmgr[15847]: B56EE56006E: from=<test432@gmail.com>, size=3259, nrcpt=1 (queue active)
Jul 31 13:43:44 mail amavis[7151]: (07151-07) Passed CLEAN {RelayedInbound}, [209.85.218.47]:41622 [209.85.218.47] <test432@gmail.com> -> <andy@domain.com>, Message-ID: <CAPvymChg9aQi85HW+yNQ7Bzx6fUNrSX2-RaEbak+yHFp56pRrQ@mail.gmail.com>, mail_id: 0R83uiMgwa1S, Hits: 1.785, size: 2666, queued_as: B56EE56006E, dkim_sd=20161025:gmail.com, 1062 ms
Jul 31 13:43:44 mail postfix/smtpd[16710]: proxy-accept: END-OF-MESSAGE: 250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as B56EE56006E; from=<test432@gmail.com> to=<andy@domain.com> proto=ESMTP helo=<mail-ej1-f47.google.com>
Jul 31 13:43:44 mail dovecot: lmtp(16736): Connect from local
Jul 31 13:43:44 mail dovecot: lmtp(andy@domain.com)<16736><keGgN2BmJF9gQQAApkRxDg>: msgid=<CAPvymChg9aQi85HW+yNQ7Bzx6fUNrSX2-RaEbak+yHFp56pRrQ@mail.gmail.com>: saved mail to INBOX
Jul 31 13:43:44 mail postfix/lmtp[16735]: B56EE56006E: to=<andy@domain.com>, relay=mail.domain.com[private/dovecot-lmtp], delay=0.22, delays=0.18/0.01/0.01/0.02, dsn=2.0.0, status=sent (250 2.0.0 <andy@domain.com> keGgN2BmJF9gQQAApkRxDg Saved)
Jul 31 13:43:44 mail dovecot: lmtp(16736): Disconnect from local: Client has quit the connection (state=READY)
Jul 31 13:43:44 mail postfix/qmgr[15847]: B56EE56006E: removed
Jul 31 13:43:45 mail postfix/smtpd[16710]: disconnect from mail-ej1-f47.google.com[209.85.218.47] ehlo=2 starttls=1 mail=1 rcpt=1 data=1 quit=1 commands=7


Jul 31 13:44:16 mail dovecot: imap-login: Login: user=<andy@domain.com>, method=PLAIN, rip=184.180.181.51, lip=192.168.1.42, mpid=16900, TLS, session=<oIsKLcGrZs+4tLUz>
Jul 31 13:44:17 mail postfix/submission/smtpd[16916]: connect from unknown[184.180.181.51]
Jul 31 13:44:17 mail postfix/submission/smtpd[16916]: Anonymous TLS connection established from unknown[184.180.181.51]: TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256
Jul 31 13:44:18 mail postfix/submission/smtpd[16916]: NOQUEUE: client=unknown[184.180.181.51], sasl_method=PLAIN, sasl_username=andy@domain.com
Jul 31 13:44:18 mail postfix/smtpd[16733]: connect from localhost[127.0.0.1]
Jul 31 13:44:18 mail postfix/smtpd[16733]: CFB7656006E: client=localhost[127.0.0.1], orig_client=unknown[184.180.181.51]
Jul 31 13:44:18 mail postfix/cleanup[16734]: CFB7656006E: message-id=<175316429303770.1596221056.489777326583862-openerp-private@mail.domain.com>
Jul 31 13:44:18 mail opendkim[1421]: CFB7656006E: DKIM-Signature field added (s=modoboa, d=domain.com)
Jul 31 13:44:18 mail postfix/qmgr[15847]: CFB7656006E: from=<bounce+380@domain.com>, size=2648, nrcpt=1 (queue active)
Jul 31 13:44:18 mail postfix/smtpd[16733]: disconnect from localhost[127.0.0.1] ehlo=1 xforward=1 mail=1 rcpt=1 data=1 quit=1 commands=6
Jul 31 13:44:18 mail amavis[7151]: (07151-08) Passed CLEAN {RelayedOpenRelay}, ORIGINATING [184.180.181.51]:51694 [184.180.181.51] <bounce+380@domain.com> -> <test432@gmail.com>, Message-ID: <175316429303770.1596221056.489777326583862-openerp-private@mail.domain.com>, mail_id: 6SuTbeB2Fpqb, Hits: -0.998, size: 2167, queued_as: CFB7656006E, 886 ms
Jul 31 13:44:18 mail postfix/submission/smtpd[16916]: proxy-accept: END-OF-MESSAGE: 250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as CFB7656006E; from=<bounce+380@domain.com> to=<test432@gmail.com> proto=ESMTP helo=<mail.domain.com> sasl_username=<andy@domain.com>
Jul 31 13:44:19 mail postfix/submission/smtpd[16916]: disconnect from unknown[184.180.181.51] ehlo=2 starttls=1 auth=1 mail=1 rcpt=1 data=1 quit=1 commands=8
Jul 31 13:44:19 mail dovecot: imap(andy@domain.com)<16900><oIsKLcGrZs+4tLUz>: Logged out in=158 out=4883 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=1 body_bytes=3648
Jul 31 13:44:19 mail postfix/smtp[16927]: Trusted TLS connection established to gmail-smtp-in.l.google.com[142.250.30.26]:25: TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256
Jul 31 13:44:19 mail postfix/smtp[16927]: CFB7656006E: to=<test432@gmail.com>, relay=gmail-smtp-in.l.google.com[142.250.30.26]:25, delay=0.87, delays=0.1/0.02/0.31/0.44, dsn=2.0.0, status=sent (250 2.0.0 OK  1596221059 e20si3049427otj.37 - gsmtp)
Jul 31 13:44:19 mail postfix/qmgr[15847]: CFB7656006E: removed

Any ideas?

Originally created by @physiii on GitHub (Jul 31, 2020). Original GitHub issue: https://github.com/modoboa/modoboa/issues/1999 Using 1.14.0 Webserver: Nginx Incoming messages are being bounced back and I can not figure out why. The email will show up in my inbox (sometimes) but the sender will received a MAILER-DAEMON response. If I send a test email from a gmail account. I will get: ``` MAILER-DAEMON <bounce@domain.com> Hello , The email sent to andy@domain.com cannot be processed. This address is used to collect replies and should not be used to directly contact Domain. Please contact us instead using sales@domain.com Regards, The team. ``` I restarted various services (postfix dovecot nginx clamav-daemon amavis), went through configuration files and settings through the web interface but can not find anything that would cause this issue or where that message is even being generated. Here is a mail.log section that captures the event: ``` 31 13:43:42 mail postfix/postscreen[16709]: CONNECT from [209.85.218.47]:41622 to [192.168.1.42]:25 Jul 31 13:43:42 mail postfix/postscreen[16709]: WHITELISTED [209.85.218.47]:41622 Jul 31 13:43:42 mail postfix/smtpd[16710]: connect from mail-ej1-f47.google.com[209.85.218.47] Jul 31 13:43:43 mail postfix/smtpd[16710]: Anonymous TLS connection established from mail-ej1-f47.google.com[209.85.218.47]: TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256 Jul 31 13:43:43 mail postfix/smtpd[16710]: NOQUEUE: client=mail-ej1-f47.google.com[209.85.218.47] Jul 31 13:43:44 mail postfix/smtpd[16733]: connect from localhost[127.0.0.1] Jul 31 13:43:44 mail postfix/smtpd[16733]: B56EE56006E: client=localhost[127.0.0.1], orig_client=mail-ej1-f47.google.com[209.85.218.47] Jul 31 13:43:44 mail postfix/cleanup[16734]: B56EE56006E: message-id=<CAPvymChg9aQi85HW+yNQ7Bzx6fUNrSX2-RaEbak+yHFp56pRrQ@mail.gmail.com> Jul 31 13:43:44 mail opendkim[1421]: B56EE56006E: no signing table match for 'test432@gmail.com' Jul 31 13:43:44 mail opendkim[1421]: B56EE56006E: signature=BRj684H1 domain=gmail.com selector=20161025 result="no signature error" Jul 31 13:43:44 mail opendkim[1421]: B56EE56006E: DKIM verification successful Jul 31 13:43:44 mail opendkim[1421]: B56EE56006E: s=20161025 d=gmail.com SSL Jul 31 13:43:44 mail postfix/smtpd[16733]: disconnect from localhost[127.0.0.1] ehlo=1 xforward=1 mail=1 rcpt=1 data=1 quit=1 commands=6 Jul 31 13:43:44 mail postfix/qmgr[15847]: B56EE56006E: from=<test432@gmail.com>, size=3259, nrcpt=1 (queue active) Jul 31 13:43:44 mail amavis[7151]: (07151-07) Passed CLEAN {RelayedInbound}, [209.85.218.47]:41622 [209.85.218.47] <test432@gmail.com> -> <andy@domain.com>, Message-ID: <CAPvymChg9aQi85HW+yNQ7Bzx6fUNrSX2-RaEbak+yHFp56pRrQ@mail.gmail.com>, mail_id: 0R83uiMgwa1S, Hits: 1.785, size: 2666, queued_as: B56EE56006E, dkim_sd=20161025:gmail.com, 1062 ms Jul 31 13:43:44 mail postfix/smtpd[16710]: proxy-accept: END-OF-MESSAGE: 250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as B56EE56006E; from=<test432@gmail.com> to=<andy@domain.com> proto=ESMTP helo=<mail-ej1-f47.google.com> Jul 31 13:43:44 mail dovecot: lmtp(16736): Connect from local Jul 31 13:43:44 mail dovecot: lmtp(andy@domain.com)<16736><keGgN2BmJF9gQQAApkRxDg>: msgid=<CAPvymChg9aQi85HW+yNQ7Bzx6fUNrSX2-RaEbak+yHFp56pRrQ@mail.gmail.com>: saved mail to INBOX Jul 31 13:43:44 mail postfix/lmtp[16735]: B56EE56006E: to=<andy@domain.com>, relay=mail.domain.com[private/dovecot-lmtp], delay=0.22, delays=0.18/0.01/0.01/0.02, dsn=2.0.0, status=sent (250 2.0.0 <andy@domain.com> keGgN2BmJF9gQQAApkRxDg Saved) Jul 31 13:43:44 mail dovecot: lmtp(16736): Disconnect from local: Client has quit the connection (state=READY) Jul 31 13:43:44 mail postfix/qmgr[15847]: B56EE56006E: removed Jul 31 13:43:45 mail postfix/smtpd[16710]: disconnect from mail-ej1-f47.google.com[209.85.218.47] ehlo=2 starttls=1 mail=1 rcpt=1 data=1 quit=1 commands=7 Jul 31 13:44:16 mail dovecot: imap-login: Login: user=<andy@domain.com>, method=PLAIN, rip=184.180.181.51, lip=192.168.1.42, mpid=16900, TLS, session=<oIsKLcGrZs+4tLUz> Jul 31 13:44:17 mail postfix/submission/smtpd[16916]: connect from unknown[184.180.181.51] Jul 31 13:44:17 mail postfix/submission/smtpd[16916]: Anonymous TLS connection established from unknown[184.180.181.51]: TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256 Jul 31 13:44:18 mail postfix/submission/smtpd[16916]: NOQUEUE: client=unknown[184.180.181.51], sasl_method=PLAIN, sasl_username=andy@domain.com Jul 31 13:44:18 mail postfix/smtpd[16733]: connect from localhost[127.0.0.1] Jul 31 13:44:18 mail postfix/smtpd[16733]: CFB7656006E: client=localhost[127.0.0.1], orig_client=unknown[184.180.181.51] Jul 31 13:44:18 mail postfix/cleanup[16734]: CFB7656006E: message-id=<175316429303770.1596221056.489777326583862-openerp-private@mail.domain.com> Jul 31 13:44:18 mail opendkim[1421]: CFB7656006E: DKIM-Signature field added (s=modoboa, d=domain.com) Jul 31 13:44:18 mail postfix/qmgr[15847]: CFB7656006E: from=<bounce+380@domain.com>, size=2648, nrcpt=1 (queue active) Jul 31 13:44:18 mail postfix/smtpd[16733]: disconnect from localhost[127.0.0.1] ehlo=1 xforward=1 mail=1 rcpt=1 data=1 quit=1 commands=6 Jul 31 13:44:18 mail amavis[7151]: (07151-08) Passed CLEAN {RelayedOpenRelay}, ORIGINATING [184.180.181.51]:51694 [184.180.181.51] <bounce+380@domain.com> -> <test432@gmail.com>, Message-ID: <175316429303770.1596221056.489777326583862-openerp-private@mail.domain.com>, mail_id: 6SuTbeB2Fpqb, Hits: -0.998, size: 2167, queued_as: CFB7656006E, 886 ms Jul 31 13:44:18 mail postfix/submission/smtpd[16916]: proxy-accept: END-OF-MESSAGE: 250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as CFB7656006E; from=<bounce+380@domain.com> to=<test432@gmail.com> proto=ESMTP helo=<mail.domain.com> sasl_username=<andy@domain.com> Jul 31 13:44:19 mail postfix/submission/smtpd[16916]: disconnect from unknown[184.180.181.51] ehlo=2 starttls=1 auth=1 mail=1 rcpt=1 data=1 quit=1 commands=8 Jul 31 13:44:19 mail dovecot: imap(andy@domain.com)<16900><oIsKLcGrZs+4tLUz>: Logged out in=158 out=4883 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=1 body_bytes=3648 Jul 31 13:44:19 mail postfix/smtp[16927]: Trusted TLS connection established to gmail-smtp-in.l.google.com[142.250.30.26]:25: TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256 Jul 31 13:44:19 mail postfix/smtp[16927]: CFB7656006E: to=<test432@gmail.com>, relay=gmail-smtp-in.l.google.com[142.250.30.26]:25, delay=0.87, delays=0.1/0.02/0.31/0.44, dsn=2.0.0, status=sent (250 2.0.0 OK 1596221059 e20si3049427otj.37 - gsmtp) Jul 31 13:44:19 mail postfix/qmgr[15847]: CFB7656006E: removed ``` Any ideas?
kerem closed this issue 2026-02-27 11:17:24 +03:00
Author
Owner

@physiii commented on GitHub (Aug 2, 2020):

Removing the user bounce@domain.com "fixes" the issue.

So does just having a bounce@domain.com setup bounce all emails going to that domain?

<!-- gh-comment-id:667676748 --> @physiii commented on GitHub (Aug 2, 2020): Removing the user bounce@domain.com "fixes" the issue. So does just having a bounce@domain.com setup bounce all emails going to that domain?
Author
Owner

@tonioo commented on GitHub (Aug 10, 2020):

@physiii Never heard about this and I don't think postfix is responsible for generating such a bounce message. Do you have a software behind your mail server collecting emails?

<!-- gh-comment-id:671455338 --> @tonioo commented on GitHub (Aug 10, 2020): @physiii Never heard about this and I don't think postfix is responsible for generating such a bounce message. Do you have a software behind your mail server collecting emails?
Author
Owner

@physiii commented on GitHub (Aug 13, 2020):

@physiii Never heard about this and I don't think postfix is responsible for generating such a bounce message. Do you have a software behind your mail server collecting emails?

I do not have any other mail software running besides Modoboa. Strange when I remove the bounce email, it stops bouncing message on my other accounts.

<!-- gh-comment-id:673206624 --> @physiii commented on GitHub (Aug 13, 2020): > @physiii Never heard about this and I don't think postfix is responsible for generating such a bounce message. Do you have a software behind your mail server collecting emails? I do not have any other mail software running besides Modoboa. Strange when I remove the bounce email, it stops bouncing message on my other accounts.
Author
Owner

@tonioo commented on GitHub (Sep 15, 2020):

@physiii Are you running Odoo?

<!-- gh-comment-id:692524366 --> @tonioo commented on GitHub (Sep 15, 2020): @physiii Are you running Odoo?
Author
Owner

@physiii commented on GitHub (Sep 15, 2020):

@physiii Are you running Odoo?

Yes, and just realized it has a mail server built in.

<!-- gh-comment-id:692573640 --> @physiii commented on GitHub (Sep 15, 2020): > @physiii Are you running Odoo? Yes, and just realized it has a mail server built in.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/modoboa-modoboa#1495
No description provided.