1

Topic: 450 4.7.1 Client host rejected: cannot find your hostname, [xxx.xxx.xx

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.6
- Linux/BSD distribution name and version: centos 7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? win2012R2
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Hi Team,

I have a proxmox hypervisor (192.168.30.11) installed that runs iredmail (192.168.30.22)and win20r2 (192.168.30.21). On proxmox, i do the backups and its supposed to send an email notification to the users that the backup is completed. It uses postfix. Under mail relay, I have added iredmail ip address.

Here is the postfix config of proxmox:

# See /usr/share/postfix/main.cf.dist for a commented, more complete version

#myhostname=server.domain.local

myhostname=server.domain.com
myorigin = $mydomain


smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mydestination = $myhostname, localhost.$mydomain, localhost
relayhost = 192.168.30.22 (ip address of iremail server)
mynetworks = 127.0.0.0/8
inet_interfaces = loopback-only
recipient_delimiter = +

Now when it sends the email to be replayed via proxmox, I can see the following errors in iredmail:

Oct 12 01:00:05 cyclops clamd[945]: SelfCheck: Database status OK.
Oct 12 01:07:57 cyclops postfix/postscreen[3806]: CONNECT from [192.168.30.11]:34408 to [192.168.30.22]:25
Oct 12 01:08:03 cyclops postfix/postscreen[3806]: PASS NEW [192.168.30.11]:34408
Oct 12 01:08:03 cyclops postfix/smtpd[3817]: connect from unknown[192.168.30.11]
Oct 12 01:08:06 cyclops postfix/smtpd[3817]: NOQUEUE: reject: RCPT from unknown[192.168.30.11]: 450 4.7.1 <server.domain.com>: Helo command rejected: Host not found; from=<root@domain.com> to=<support@mydomain.com> proto=ESMTP helo=<server.domain.com>
Oct 12 01:08:06 cyclops postfix/smtpd[3817]: NOQUEUE: reject: RCPT from unknown[192.168.30.11]: 450 4.7.1 <server.domain.com>: Helo command rejected: Host not found; from=<root@domain.com> to=<user1@domain.com> proto=ESMTP helo=<server.domain.com>
Oct 12 01:08:06 cyclops postfix/smtpd[3817]: NOQUEUE: reject: RCPT from unknown[192.168.30.11]: 450 4.7.1 <server.domain.com>: Helo command rejected: Host not found; from=<root@domain.com> to=<user2@domain.com> proto=ESMTP helo=<server.domain.com>
Oct 12 01:08:06 cyclops postfix/smtpd[3817]: disconnect from unknown[192.168.30.11]
Oct 12 01:10:05 cyclops clamd[945]: SelfCheck: Database status OK.

Can someone advise please.

Rajbps

----

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

2

Re: 450 4.7.1 Client host rejected: cannot find your hostname, [xxx.xxx.xx

Try to add this into your hostfile:

192.168.30.11 hostnameofyourproxmoxmachine

The error is be cause the server does not have a reverserecord.

3

Re: 450 4.7.1 Client host rejected: cannot find your hostname, [xxx.xxx.xx

Hiya,

Added that in /etc/hosts in the iredmail server.

192.168.30.11   prooxmoxserver.domain.com

Rebooted iredmail but still no joy :-(

Any other ideas please

4

Re: 450 4.7.1 Client host rejected: cannot find your hostname, [xxx.xxx.xx

In iRedMail server, add IP 192.168.30.11 in Postfix parameter "mynetworks =" in /etc/postfix/main.cf, also add it in iRedAPD config file /opt/iredapd/settings.py, parameter "MYNETWORKS =".

Postfix main.cf:

mynetworks = 127.0.0.1 192.168.30.11

iRedAPD:

MYNETWORKS = ['192.168.30.11']

Restarting both services is required.

5

Re: 450 4.7.1 Client host rejected: cannot find your hostname, [xxx.xxx.xx

yes that done the trick. I just added teh ip in the main.cf file as I dont use iRedAPD but thanks again Zhang and everyone one else :-)

rajbps