1 (edited by cre8r 2016-08-18 07:52:00)

Topic: Error on bounces

====- iRedMail version (check /etc/iredmail-release): 0.9.0
- Linux/BSD distribution name and version: Ubuntu 12.04.5 LTS
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx):Apache
- Manage mail accounts with iRedAdmin-Pro? Yes
- Related log if you're reporting an issue:

I have a separate postfix SMTP server setup for bulk mail (bulk.server) as my primary iRedAdmin (ired.server) has a limit of lets say 50 emails per user every 24 hours.
This separate bulk SMTP server allows any outbound mail only from specific IP addresses.

If a user sends out a mail from bulk.server using user@domain.com as their sender/from address (domain.com is hosted on ired.server, which is also where domain.com MX record points), and the recpients mailbox is full or doesn't exist (or any other rejection reason) the recpient server will establish a connection with ired.server to give error but my server rejects their bounce message, I am assuming it is because it is coming from an unknown source or the face the SMTP was another server.

Apparently rfc822 and rfc1123 state I can't have reject_null_sender? Which is enabled in iredapd

Some clarification would be good on if there is a way around this........
Thanks, I'll buy you a coffee for your troubles.


Example:

bulk.server
Aug 16 10:34:57 bulk.server postfix/smtpd[837]: 2AAFE18F9CC8: client=unknown[client.ip]
Aug 16 10:35:30 bulk.server postfix/cleanup[462]: 2AAFE18F9CC8: message-id=<003301d1f745$697897d0$3c69c770$@domain.com>
Aug 16 10:35:36 bulk.server postfix/qmgr[1872]: 2AAFE18F9CC8: from=<info@domain.com>, size=10756082, nrcpt=33 (queue active)
Aug 16 10:35:44 bulk.server postfix/smtp[659]: 2AAFE18F9CC8: to=<info@recipient.com>, relay=recipient.server[recipient.ip]:25, delay=47, delays=39/0/6.6/1.7, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 90D37A0A47)
Aug 16 10:37:01 bulk.server postfix/bounce[2122]: 2AAFE18F9CC8: sender non-delivery notification: C1E8518F9CCB
Aug 16 10:37:01 bulk.server postfix/cleanup[2319]: C1E8518F9CCB: message-id=<20160815223701.C1E8518F9CCB@bulk.server. >
Aug 16 10:37:01 bulk.server postfix/qmgr[1872]: C1E8518F9CCB: from=<>, size=3073, nrcpt=1 (queue active)
Aug 16 10:37:01 bulk.server postfix/bounce[2122]: 2AAFE18F9CC8: sender non-delivery notification: C1E8518F9CCB
Aug 16 10:37:01 bulk.server postfix/smtp[659]: C1E8518F9CCB: to=<info@domain.com>, relay=smtp.ired.server[ired.server]:25, delay=0.06, delays=0/0/0.05/0, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as BB05636005B)
Aug 16 10:37:01 bulk.server postfix/qmgr[1872]: C1E8518F9CCB: removed

ired.server
Aug 16 10:34:52 ired.server postfix/smtpd[25335]: CAB3F36005D: client=localhost[127.0.0.1]
Aug 16 10:34:52 ired.server postfix/cleanup[1900]: CAB3F36005D: message-id=<20160815223701.C1E8518F9CCB@bulk.server. >
Aug 16 10:34:52 ired.server postfix/qmgr[31808]: CAB3F36005D: from=<>, size=3736, nrcpt=1 (queue active)
Aug 16 10:34:52 ired.server amavis[25394]: (25394-19) Passed CLEAN, LOCAL [bulk.server] [bulk.server] <> -> <info@domain.com>, Message-ID: <20160815223701.C1E8518F9CCB@bulk.server. >, mail_id: rps9nXeg13Dr, Hits: -1.9, size: 3275, queued_as: CAB3F36005D, 1066 ms
Aug 16 10:34:52 ired.server postfix/smtp[25295]: BB05636005B: to=<info@domain.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=1.1, delays=0.01/0/0/1.1, dsn=2.0.0, status=sent (250 2.0.0 from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as CAB3F36005D)
Aug 16 10:34:52 ired.server postfix/pipe[656]: CAB3F36005D: to=<info@domain.com>, relay=dovecot, delay=0.03, delays=0/0/0/0.02, dsn=2.0.0, status=sent (delivered via dovecot service)
Aug 16 10:34:52 ired.server postfix/qmgr[31808]: CAB3F36005D: removed

recipient.server
Aug 16 10:36:21 recipient.serverpostfix/qmgr[2076]: 6B0D5A0A49: from=<info@domain.com>, size=10756695, nrcpt=1 (queue active)
Aug 16 10:36:21 recipient.serverpostfix/lmtp[29941]: 6B0D5A0A49: to=<info@recipient.com>, relay=recipient.server[private/dovecot-lmtp], delay=0.5, delays=0.39/0/0/0.12, dsn=5.2.2, status=bounced (host recipient.server[private/dovecot-lmtp] said: 552 5.2.2 <info@recipient.com> Quota exceeded (mailbox for user is full) (in reply to end of DATA command))
Aug 16 10:36:21 recipient.serverpostfix/cleanup[4481]: BB648A0A4A: message-id=<20160815223621.BB648A0A4A@recipient.server>
Aug 16 10:36:21 recipient.serverpostfix/bounce[6216]: 6B0D5A0A49: sender non-delivery notification: BB648A0A4A
Aug 16 10:36:21 recipient.serverpostfix/qmgr[2076]: 6B0D5A0A49: removed
Aug 16 10:36:21 recipient.serverpostfix/smtp[2860]: BB648A0A4A: to=<info@domain.com>, relay=smtp.ired.server[ired.server]:25, delay=0.1, delays=0.02/0/0.04/0.03, dsn=5.7.1, status=bounced (host smtp.ired.server[ired.server] said: 554 5.7.1 <info@domain.com>: Recipient address rejected: Policy rejection (in reply to RCPT TO command))

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Error on bounces

cre8r wrote:

Aug 16 10:36:21 recipient.serverpostfix/smtp[2860]: BB648A0A4A: to=<info@domain.com>, relay=smtp.ired.server[ired.server]:25, delay=0.1, delays=0.02/0/0.04/0.03, dsn=5.7.1, status=bounced (host smtp.ired.server[ired.server] said: 554 5.7.1 <info@domain.com>: Recipient address rejected: Policy rejection (in reply to RCPT TO command))

Could you please turn on debug mode in iRedAPD, then reproduce this issue again? show us full log related to this error in /var/log/iredapd/iredapd.log.

Reference: http://www.iredmail.org/docs/debug.iredapd.html

3 (edited by cre8r 2016-08-18 08:03:44)

Re: Error on bounces

Could you please turn on debug mode in iRedAPD, then reproduce this issue again? show us full log related to this error in /var/log/iredapd/iredapd.log.

Thanks Zhang,
This is the error from debug log.
Same scenario as above.

FYI: When disabling "reject_null_sender" plugin I can receive bounce backs like this.
There was a reason I enabled reject_null_sender so am wondering what implications this might have if I leave it disabled.

2016-08-18 11:47:10 DEBUG smtp session: request=smtpd_access_policy
2016-08-18 11:47:10 DEBUG smtp session: protocol_state=RCPT
2016-08-18 11:47:10 DEBUG smtp session: protocol_name=ESMTP
2016-08-18 11:47:10 DEBUG smtp session: client_address=recipient.ip
2016-08-18 11:47:10 DEBUG smtp session: client_name=smtp.recipient.com
2016-08-18 11:47:10 DEBUG smtp session: reverse_client_name=smtp.recipient.com
2016-08-18 11:47:10 DEBUG smtp session: helo_name=smtp.recipient.com
2016-08-18 11:47:10 DEBUG smtp session: sender=
2016-08-18 11:47:10 DEBUG smtp session: recipient=info@domain.com
2016-08-18 11:47:10 DEBUG smtp session: recipient_count=0
2016-08-18 11:47:10 DEBUG smtp session: queue_id=
2016-08-18 11:47:10 DEBUG smtp session: instance=487f.57b4f77e.ef49e.0
2016-08-18 11:47:10 DEBUG smtp session: size=2763
2016-08-18 11:47:10 DEBUG smtp session: etrn_domain=
2016-08-18 11:47:10 DEBUG smtp session: stress=
2016-08-18 11:47:10 DEBUG smtp session: sasl_method=
2016-08-18 11:47:10 DEBUG smtp session: sasl_username=
2016-08-18 11:47:10 DEBUG smtp session: sasl_sender=
2016-08-18 11:47:10 DEBUG smtp session: ccert_subject=
2016-08-18 11:47:10 DEBUG smtp session: ccert_issuer=
2016-08-18 11:47:10 DEBUG smtp session: ccert_fingerprint=
2016-08-18 11:47:10 DEBUG smtp session: ccert_pubkey_fingerprint=
2016-08-18 11:47:10 DEBUG smtp session: encryption_protocol=
2016-08-18 11:47:10 DEBUG smtp session: encryption_cipher=
2016-08-18 11:47:10 DEBUG smtp session: encryption_keysize=0
2016-08-18 11:47:10 DEBUG --> Apply plugin: reject_null_sender
2016-08-18 11:47:10 DEBUG Spam (no sender address or sasl_username).
2016-08-18 11:47:10 DEBUG <-- Result: REJECT Policy rejection
2016-08-18 11:47:10 INFO [recipient.ip] RCPT,  -> info@domain.com, REJECT Policy rejection
2016-08-18 11:47:10 DEBUG Session ended

4

Re: Error on bounces

cre8r wrote:

2016-08-18 11:47:10 DEBUG Spam (no sender address or sasl_username).

This was fixed in the latest iRedAPD release, please upgrade it.
http://www.iredmail.org/docs/upgrade.iredapd.html