1

Topic: Whitelist a .US domain when .US is blocked in sender_access.pcre

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release):  0.9.7
- Linux/BSD distribution name and version: CentOS 6.9
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):  LDAP
- Web server (Apache or Nginx): NGINX
- Manage mail accounts with iRedAdmin-Pro? YES
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Hello,

We need to whitelist a single .US domain name. For example : COMPANY.US

In the sender_access.pcre we have the line :

/\.us$/      REJECT Mail from .us not accepted

Is there a line I could add to simply allow COMPANY.US while blocking every other .US domain ?

Thanks !!!

----

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

2

Re: Whitelist a .US domain when .US is blocked in sender_access.pcre

Just whitelist COMPANY.US before the '/\.us$/' line. Better use 'DUNNO' instead of 'OK' for whitelist in this case.

/^COMPANY\.US$/ DUNNO

3 (edited by ensysit 2018-08-15 13:25:26)

Re: Whitelist a .US domain when .US is blocked in sender_access.pcre

Hi Zhang,

It has been brought to my attention that the whitelisting of the .US domain is not working. This is a cut/paste from the sender_access.pcre file in the /etc/postfix directory :

/^company\.us$/ DUNNO
/\.us$/      REJECT Mail from .us not accepted

Even with the line above the .US , the e-mail still gets rejected as seen in the maillog exerpt below with "Sender ddress rejected: Mail from .us not accepted"  (IP's and names have been changed). The server has been rebooted a few times since we made this change.

What can you suggest ?

Thanks !


NOQUEUE: reject: RCPT from smtp1.mailserver.com[102.163.103.10]: 554 5.7.1 <user@company.us>: Sender ddress rejected: Mail from .us not accepted; from=<user@company.us> to=<ensysit@iredmail.org> proto=ESMTP helo=<smtp1.mailserver.com>



ZhangHuangbin wrote:

Just whitelist COMPANY.US before the '/\.us$/' line. Better use 'DUNNO' instead of 'OK' for whitelist in this case.

/^COMPANY\.US$/ DUNNO

4

Re: Whitelist a .US domain when .US is blocked in sender_access.pcre

ensysit wrote:

/^company\.us$/ DUNNO

Try this:

/company\.us$/ DUNNO

It's better paste the original postfix error message.