1 (edited by selea 2018-05-15 16:58:57)

Topic: "Sender address rejected: Domain not found" - Disable it for one user?

==== Required information ====
- iRedMail version:  0.9.7
- Linux/BSD distribution: Ubuntu 14.04
- Store mail accounts in which backend: mySQL
- Web server (Apache or Nginx): Apache2
====

Hi!

By default, iRedmail does deny all emails that is send from a host where the A-record is missing - I like that!
But, is it possible to disable that particular feature for a specific user? For example postmaster or admin?

Thanks!

----

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

2

Re: "Sender address rejected: Domain not found" - Disable it for one user?

What's the purpose of allowing this user?

3

Re: "Sender address rejected: Domain not found" - Disable it for one user?

ZhangHuangbin wrote:

What's the purpose of allowing this user?

An admin-user. I want to receive emails email from alot of servers that does not have a reverserecord or a public domain.

Is this doable in the current version?

4

Re: "Sender address rejected: Domain not found" - Disable it for one user?

You can find settings like below in /etc/postfix/main.cf:

smtpd_sender_restrictions =
    reject_unknown_sender_domain
    ...

Add a new rule BEFORE the "reject_unknown_sender_domain" like below:

smtpd_sender_restrictions =
    check_sender_access pcre:/etc/postfix/no_a_record.pcre
    reject_unknown_sender_domain
    ...

*) Add line in /etc/postfix/no_a_record.pcre like below:

domain.com DUNNO

If "DUNNO" doesn't work for you after testing, try replacing it by "OK".
*) Reload postfix service.

5

Re: "Sender address rejected: Domain not found" - Disable it for one user?

ZhangHuangbin wrote:

You can find settings like below in /etc/postfix/main.cf:

smtpd_sender_restrictions =
    reject_unknown_sender_domain
    ...

Add a new rule BEFORE the "reject_unknown_sender_domain" like below:

smtpd_sender_restrictions =
    check_sender_access pcre:/etc/postfix/no_a_record.pcre
    reject_unknown_sender_domain
    ...

*) Add line in /etc/postfix/no_a_record.pcre like below:

domain.com DUNNO

If "DUNNO" doesn't work for you after testing, try replacing it by "OK".
*) Reload postfix service.

Thanks, but this does not really answer the specific question I had regarding disable it for a specific user only and only for specific sender domains?

If it not possible in the current versions - just say it smile

6

Re: "Sender address rejected: Domain not found" - Disable it for one user?

You can replace the domain.com by the email address, or other supported format.
FYI: http://www.postfix.org/access.5.html