1

Topic: How can I solve this error: REJECT Policy rejection due to null sender

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.3
- Deployed with iRedMail Easy or the downloadable installer?
- Linux/BSD distribution name and version: Ubuntu 18.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Hi, Using iredmail 1.3 Iredmail on a Nginx/Ubuntu server... I am trying to schedule emails on another server/IP but ired server rejects them.

I get these errors in the mail.log file.

2021-06-26 12:20:03 INFO Possible spam (authenticated as mail@mydomain.com but sender address is null).
2021-06-26 12:20:03 INFO [21.21.34.55] RCPT, mail@mydomain.com =>  -> mail@mydomain.com, REJECT Policy rejection due to null sender [sasl_username=mail@mydomain.com, sender=, client_name=245.ip-55-34-21.eu, reverse_client_name=245.ip-55-34-21.eu, helo=myotherdomain.com, encryption_protocol=TLSv1.3, process_time=0.0012s]

I tried changing the lines below in the setting.py file:
# Enabled plugins.
#plugins = ["reject_null_sender", "wblist_rdns", "reject_sender_login_mismatch",  "throttle", "amavisd_wblist", "sql_alias_access_policy"]
plugins = ["wblist_rdns", "reject_sender_login_mismatch",  "throttle", "amavisd_wblist", "sql_alias_access_policy"]

But that made no diffference. (I will re-add the reject_null_sender plugin)

Also:
ALLOWED_LOGIN_MISMATCH_SENDERS = ['mail@mydomain.com']
#server where the emails are sent from NOT the iredmail server side.
MYNETWORKS = ['21.21.34.55']

Im not sure if I need to add the actual Iredmail server IP here or now.

Any help appreciated. Many thanks

----

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

2

Re: How can I solve this error: REJECT Policy rejection due to null sender

4eLife wrote:

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.3
- Deployed with iRedMail Easy or the downloadable installer?
- Linux/BSD distribution name and version: Ubuntu 18.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Hi, Using iredmail 1.3 Iredmail on a Nginx/Ubuntu server... I am trying to schedule emails on another server/IP but ired server rejects them.

I get these errors in the mail.log file.

2021-06-26 12:20:03 INFO Possible spam (authenticated as mail@mydomain.com but sender address is null).
2021-06-26 12:20:03 INFO [21.21.34.55] RCPT, mail@mydomain.com =>  -> mail@mydomain.com, REJECT Policy rejection due to null sender [sasl_username=mail@mydomain.com, sender=, client_name=245.ip-55-34-21.eu, reverse_client_name=245.ip-55-34-21.eu, helo=myotherdomain.com, encryption_protocol=TLSv1.3, process_time=0.0012s]

I tried changing the lines below in the setting.py file:
# Enabled plugins.
#plugins = ["reject_null_sender", "wblist_rdns", "reject_sender_login_mismatch",  "throttle", "amavisd_wblist", "sql_alias_access_policy"]
plugins = ["wblist_rdns", "reject_sender_login_mismatch",  "throttle", "amavisd_wblist", "sql_alias_access_policy"]

But that made no diffference. (I will re-add the reject_null_sender plugin)

Also:
ALLOWED_LOGIN_MISMATCH_SENDERS = ['mail@mydomain.com']
#server where the emails are sent from NOT the iredmail server side.
MYNETWORKS = ['21.21.34.55']

Im not sure if I need to add the actual Iredmail server IP here or now.

Any help appreciated. Many thanks

I sollowed instructions in this post ant it fixed the issue. But are there any dangers n this. The post indicates not but would appreciate confirmation. Thanks

https://forum.iredmail.org/topic9719-ir … ction.html

3

Re: How can I solve this error: REJECT Policy rejection due to null sender

4eLife wrote:

2021-06-26 12:20:03 INFO [21.21.34.55] RCPT, mail@mydomain.com =>  -> mail@mydomain.com, REJECT Policy rejection due to null sender [sasl_username=mail@mydomain.com, sender=, client_name=245.ip-55-34-21.eu, reverse_client_name=245.ip-55-34-21.eu, helo=myotherdomain.com, encryption_protocol=TLSv1.3, process_time=0.0012s]

The problem is why a user authenticated by sent as null sender?