1

Topic: 554 5.7.1 Recipient address rejected Policy rejection

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.1
- Linux/BSD distribution name and version: FreeBSD 10
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): NginX
- Manage mail accounts with iRedAdmin-Pro? no
- Related log if you're reporting an issue:
====

I have a problem sending messages to a domain (or hoster). Any other works fine exept that server.
Whout should it be done to make it work?

The log:

Aug 21 14:04:15 mx postfix/qmgr[1805]: BCBBD3F9491: from=<testuser@mydomain.org>, size=1738, nrcpt=1 (queue active)
Aug 21 14:04:15 mx postfix/smtp[3769]: 5F6803F9493: to=<info@somedomain.net>, relay=192.168.0.2[192.168.0.2]:10024, delay=0.43, delays=0.13/0/0/0.29, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[192.168.0.2]:10025): 250 2.0.0 Ok: queued as BCBBD3F9491)
Aug 21 14:04:15 mx postfix/qmgr[1805]: 5F6803F9493: removed
Aug 21 14:04:15 mx postfix/smtpd[3774]: disconnect from unknown[192.168.0.2]
Aug 21 14:04:17 mx postfix/smtpd[3745]: connect from mail4.somedomain.net[219.6.47.201]
Aug 21 14:04:17 mx postfix/smtpd[3745]: NOQUEUE: reject: RCPT from mail4.somedomain.net[219.6.47.201]: 554 5.7.1 <testuser@mydomain.org>: Recipient address rejected: Policy rejection; from=<> to=<testuser@mydomain.org> proto=SMTP helo=<mail4.somedomain.net>
Aug 21 14:04:17 mx postfix/smtpd[3745]: disconnect from mail4.somedomain.net[219.6.47.201]
Aug 21 14:04:17 mx postfix/smtp[3778]: BCBBD3F9491: to=<info@somedomain.net>, relay=mail.somedomain.net[219.6.47.201]:25, delay=1.7, delays=0/0.02/0.51/1.2, dsn=5.0.0, status=bounced (host mail.somedomain.net[219.6.47.201] said: 550-Verification failed for <testuser@mydomain.org> 550-Called:   12.56.12.5 550-Sent:     RCPT TO:<testuser@mydomain.org> 550-Response: 554 5.7.1 <testuser@mydomain.org>: Recipient address rejected: Policy rejection 550 Sender verify failed (in reply to RCPT TO command))
Aug 21 14:04:17 mx postfix/cleanup[3768]: 771273F9493: message-id=<20150821110417.771273F9493@mx.mydomain.org>
Aug 21 14:04:17 mx postfix/bounce[3784]: BCBBD3F9491: sender non-delivery notification: 771273F9493
Aug 21 14:04:17 mx postfix/qmgr[1805]: 771273F9493: from=<>, size=4094, nrcpt=1 (queue active)
Aug 21 14:04:17 mx postfix/qmgr[1805]: BCBBD3F9491: removed
Aug 21 14:04:17 mx postfix/pipe[3772]: 771273F9493: to=<testuser@mydomain.org>, relay=dovecot, delay=0.03, delays=0/0/0/0.02, dsn=2.0.0, status=sent (delivered via dovecot service)

----

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

2

Re: 554 5.7.1 Recipient address rejected Policy rejection

iRedAPD plugin 'reject_null_sender' rejects email which has null sender (empty From: address), this is why it rejected this email.

You can disable this plugin in /opt/iredapd/settings.py, or comment out below lines in file /opt/iredapd/plugins/reject_null_sender.py:

    #if not (sender or sasl_username):
    #    logging.debug('Spam (no sender address or sasl_username).')
    #    return SMTP_ACTIONS['reject']

3 (edited by enderr 2015-08-21 22:01:08)

Re: 554 5.7.1 Recipient address rejected Policy rejection

ZhangHuangbin wrote:

iRedAPD plugin 'reject_null_sender' rejects email which has null sender (empty From: address), this is why it rejected this email.

You can disable this plugin in /opt/iredapd/settings.py, or comment out below lines in file /opt/iredapd/plugins/reject_null_sender.py:

    #if not (sender or sasl_username):
    #    logging.debug('Spam (no sender address or sasl_username).')
    #    return SMTP_ACTIONS['reject']

Let me understand. Who rejects the message "mydomain.org" or "somedomain.net" ?
If it is "somedomain.net" who rejects the mail, should I disable that option from "mydomain.org" ?

4

Re: 554 5.7.1 Recipient address rejected Policy rejection

enderr wrote:

OQUEUE: reject: RCPT from mail4.somedomain.net[219.6.47.201]: 554 5.7.1 <testuser@mydomain.org>: Recipient address rejected: Policy rejection; from=<> to=<testuser@mydomain.org> proto=SMTP helo=<mail4.somedomain.net>

From that fragment I gues it is the "somedomain.net" who rejects the messages, is it true?

5

Re: 554 5.7.1 Recipient address rejected Policy rejection

It's easy to forge sender address, helo hostname, and more, so it's hard to say whether it's sent by the real 'somedomain.net'. But if this is not the forged message, then yes, it's sent by 'somedomain.net'.

6

Re: 554 5.7.1 Recipient address rejected Policy rejection

ZhangHuangbin wrote:

iRedAPD plugin 'reject_null_sender' rejects email which has null sender (empty From: address), this is why it rejected this email.

You can disable this plugin in /opt/iredapd/settings.py, or comment out below lines in file /opt/iredapd/plugins/reject_null_sender.py:

    #if not (sender or sasl_username):
    #    logging.debug('Spam (no sender address or sasl_username).')
    #    return SMTP_ACTIONS['reject']

So what problems to expect after disabling that lines?

7

Re: 554 5.7.1 Recipient address rejected Policy rejection

No problem. It will bypass MTA notification messages like bounce, non-deliver notification, etc.