1

Topic: White List of senders or domains

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version: 0.9.8
- Debian 9
- MySQL
- Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====


Good Afternon!
I would like to make an white list of domains or senders for 100% receive their mail without spam filtering,
I use helo_access.pcre

This is my  /opt/iredmail/custom/postfix/helo_access.pcre file content:

nmbank.ru        OK
relay.nmbank.ru    OK
mail.nmbank.ru    OK

In my /var/log/mail.log i see this warnings:

Nov  7 17:41:38 mail postfix/smtpd[14413]: warning: pcre map /opt/iredmail/custom/postfix/helo_access.pcre, line 1: ignoring unrecognized request
Nov  7 17:41:38 mail postfix/smtpd[14413]: warning: pcre map /opt/iredmail/custom/postfix/helo_access.pcre, line 2: ignoring unrecognized request
Nov  7 17:41:38 mail postfix/smtpd[14413]: warning: pcre map /opt/iredmail/custom/postfix/helo_access.pcre, line 3: ignoring unrecognized request

Nov  7 17:42:51 mail postfix/plain-smtp-1025/smtpd[14497]: warning: pcre map /opt/iredmail/custom/postfix/helo_access.pcre, line 1: ignoring unrecognized request
Nov  7 17:42:51 mail postfix/plain-smtp-1025/smtpd[14497]: warning: pcre map /opt/iredmail/custom/postfix/helo_access.pcre, line 2: ignoring unrecognized request
Nov  7 17:42:51 mail postfix/plain-smtp-1025/smtpd[14497]: warning: pcre map /opt/iredmail/custom/postfix/helo_access.pcre, line 3: ignoring unrecognized request


What i do wrong? Help me please.


There is a part of log file, when I receive a mail

Nov  9 12:14:14 mail postfix/postscreen[32532]: CONNECT from [195.128.90.72]:51132 to [78.47.27.26]:25
Nov  9 12:14:14 mail postfix/postscreen[32532]: PASS OLD [195.128.90.72]:51132
Nov  9 12:14:14 mail postfix/smtpd[32537]: connect from mail.nmbank.ru[195.128.90.72]
Nov  9 12:14:15 mail postfix/smtpd[32537]: Anonymous TLS connection established from mail.nmbank.ru[195.128.90.72]: TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)
Nov  9 12:14:15 mail postfix/smtpd[32537]: NOQUEUE: reject: RCPT from mail.nmbank.ru[195.128.90.72]: 450 4.7.1 <relay.nmbank.ru>: Helo command rejected: Host not found; from=<user@nmbank.ru> to=<usera@mydomain> proto=ESMTP helo=<relay.nmbank.ru>
Nov  9 12:14:15 mail postfix/smtpd[32537]: disconnect from mail.nmbank.ru[195.128.90.72] ehlo=2 starttls=1 mail=1 rcpt=0/1 data=0/1 rset=1 quit=1 commands=6/8
Nov  9 12:14:44 mail postfix/postscreen[32532]: CONNECT from [185.36.81.23]:53303 to [78.47.27.26]:25
Nov  9 12:14:44 mail postfix/postscreen[32532]: PASS OLD [185.36.81.23]:53303
Nov  9 12:14:44 mail postfix/smtpd[32537]: connect from unknown[185.36.81.23]
Nov  9 12:14:44 mail postfix/smtpd[32537]: lost connection after AUTH from unknown[185.36.81.23]
Nov  9 12:14:44 mail postfix/smtpd[32537]: disconnect from unknown[185.36.81.23] ehlo=1 auth=0/1 commands=1/2

I very need to recieve emails from user@nmbank.ru

----

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

2

Re: White List of senders or domains

I think you've used the wrong file or syntax.

I would try moving your entries to "/etc/postfix/helo_whitelist", execute "postmap /etc/postfix/helo_whitelist" and check if "/etc/postfix/main.cf" contains under section "smtpd_helo_restrictions ="
   check_client_access hash:/etc/postfix/helo_whitelist

3

Re: White List of senders or domains

Try whitelisting with iRedAPD:
https://docs.iredmail.org/manage.iredap … acklisting