1

Topic: Helo command rejected: Host not found

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

I know this was discussed already but non of the fixes I could find work.

So the problem is I receive messages from my bank but they are blocked. This is the log example:

Jun  6 08:00:56 mail postfix/smtpd[12828]: NOQUEUE: reject: RCPT from mail14.bbva.net[89.107.181.156]: 450 4.7.1 <lpmta188.igrupobbva>: Helo command rejected: Host not found; from=<infobbvaresponde@bbva.com> to=<kornel@core45.com> proto=ESMTP helo=<lpmta188.igrupobbva>

Jun  6 07:27:19 mail postfix/smtpd[12589]: NOQUEUE: reject: RCPT from mail22.bbva.net[89.107.181.58]: 450 4.7.1 <lpmta095.igrupobbva>: Helo command rejected: Host not found; from=<BBVA_banca_online@bbva.com> to=<GESTION@CLICATOUR.COM> proto=ESMTP helo=<lpmta095.igrupobbva>

As you can see the host change (one time is mail14.bbva.net then mail22.bbva.net and there is more of course)
Also change the false host in helo: lpmta188.igrupobbva or lpmta095.igrupobbva or whatever else....

As suggested here (https://docs.iredmail.org/errors.html#h … -not-found) I've put at the very beginning of the /etc/postfix/helo_access.pcre file as follow:

/^bbva\.com$/ OK
/^bbva\.net$/ OK
/^igrupobbva$/ OK
/^\.igrupobbva$/ OK

I have also added to whitelist this:
@.bbva.com
@.bbva.net
@.igrupobbva
using the command:
python wblist_admin.py --add --whitelist @.igrupobbva

I've checked my /etc/postfix/main.cf and it looks OK:

# HELO restriction
smtpd_helo_required = yes
smtpd_helo_restrictions =
    permit_mynetworks
    permit_sasl_authenticated
    check_helo_access pcre:/etc/postfix/helo_access.pcre
    reject_non_fqdn_helo_hostname
    reject_unknown_helo_hostname


Of course I restarted Postfix.
I even restarted the whole the whole server just in case.
Nothing works I still have those messages rejected. Please help.

----

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

2

Re: Helo command rejected: Host not found

I just figured out the errors I have done.
This was regular expression which I think should look like this:

/^[0-9A-Za-z]*.igrupobbva$/ OK

And it works now.