1

Topic: Temporary lookup failure (in reply to RCPT TO command)

==== Required information ====
- iRedMail version (0.9.2):
- Linux/BSD distribution name and version:  UBUNTU 14.0 LTS
- Store mail accounts in which backend: LDAP
- Web server: Apache
- Related log if you're reporting an issue:

error trying to send mail to a remote computer:

My settings with postfix in relay mode is on the local server
My iRedMail this configuration on the remote server

mail.log extract:
October 27 14:47:08 Viper2 postfix / smtp [9588]: CC226619E2: to = <username @ domainremote>, relay = hostremote [ip]: 25, delay = 17265, delays = 17265 / 0.03 / 0.1 / 0.02, dsn = 4.3.0, status = deferred (hostremote host [ip] said: 451 4.3.0 <localhost>: Temporary lookup failure (in reply to RCPT tO command))

----

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

2

Re: Temporary lookup failure (in reply to RCPT TO command)

Which Postfix parameters on your server are set to 'localhost'? You can check it with command 'postconf -n | grep -i localhost'.

3

Re: Temporary lookup failure (in reply to RCPT TO command)

mydestination = viper2.lab.tepuy.top, localhost.lab.tepuy.top, localhost

4

Re: Temporary lookup failure (in reply to RCPT TO command)

Did you run the command on your Postfix relay server or iRedMail server? Please show us both.

5

Re: Temporary lookup failure (in reply to RCPT TO command)

Server Postfix:
root@viper2:/etc/postfix# postconf -n | grep -i localhost
mydestination = viper2.lab.tepuy.top, localhost.lab.tepuy.top, localhost

Server iRedMail:
root@viper1:/etc/postfix# postconf -n | grep -i localhost
mydestination = viper1.lab.tepuy.top, localhost.lab.tepuy.top, localhost

regards

6

Re: Temporary lookup failure (in reply to RCPT TO command)

djgnoriega2 wrote:

October 27 14:47:08 Viper2 postfix / smtp [9588]: CC226619E2: to = <username @ domainremote>, relay = hostremote [ip]: 25, delay = 17265, delays = 17265 / 0.03 / 0.1 / 0.02, dsn = 4.3.0, status = deferred (hostremote host [ip] said: 451 4.3.0 <localhost>: Temporary lookup failure (in reply to RCPT tO command))

Could you please paste FULL, ORIGINAL log? Especially the context.

7

Re: Temporary lookup failure (in reply to RCPT TO command)

root@viper2:~# mail dgarcia@labtepuy.top
Cc:
Subject: mailing to viper1
to test the sending of email for postfix
root@viper2:~#

/var/log/mail.log:
Oct 28 13:21:15 viper2 postfix/pickup[1779]: E3D98619DE: uid=0 from=<root@viper2.lab.tepuy.top>
Oct 28 13:21:15 viper2 postfix/cleanup[1788]: E3D98619DE: message-id=<20151028132115.E3D98619DE@viper2.lab.tepuy.top>
Oct 28 13:21:15 viper2 postfix/qmgr[1141]: E3D98619DE: from=<root@viper2.lab.tepuy.top>, size=402, nrcpt=1 (queue active)
Oct 28 13:21:15 viper2 postfix/smtp[1782]: E3D98619DE: to=<dgarcia@labtepuy.top>, relay=viper1.lab.tepuy.top[54.225.95.18]:25, delay=0.05, delays=0.03/0/0.01/0.01, dsn=4.3.0, status=deferred (host viper1.lab.tepuy.top[54.225.95.18] said: 451 4.3.0 <viper2.lab.tepuy.top>: Temporary lookup failure (in reply to RCPT TO command))

8

Re: Temporary lookup failure (in reply to RCPT TO command)

djgnoriega2 wrote:

Oct 28 13:21:15 viper2 postfix/smtp[1782]: E3D98619DE: to=<dgarcia@labtepuy.top>, relay=viper1.lab.tepuy.top[54.225.95.18]:25, delay=0.05, delays=0.03/0/0.01/0.01, dsn=4.3.0, status=deferred (host viper1.lab.tepuy.top[54.225.95.18] said: 451 4.3.0 <viper2.lab.tepuy.top>: Temporary lookup failure (in reply to RCPT TO command))

You made me confused by replacing the hostname in red by 'localhost'... You can replace it by 'my_hostname' or other sample hostname, but not 'localhost'. "localhost" means localhost.

Can you resolve domain name 'viper2.lab.tepuy.top' and 'labtepuy.top' on server 'viper1'? for example, login to viper1, then query the domain name with 'dig' or 'nslookup':

dig -t a viper2.lab.tepuy.top

9

Re: Temporary lookup failure (in reply to RCPT TO command)

root@viper1:~# dig -t a viper2.lab.tepuy.top

; <<>> DiG 9.9.5-3ubuntu0.2-Ubuntu <<>> -t a viper2.lab.tepuy.top
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 50345
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;viper2.lab.tepuy.top.          IN      A

;; ANSWER SECTION:
viper2.lab.tepuy.top.   60      IN      A       107.20.213.237

;; Query time: 423 msec
;; SERVER: 172.16.0.23#53(172.16.0.23)
;; WHEN: Wed Oct 28 19:12:26 UTC 2015
;; MSG SIZE  rcvd: 65

root@viper1:~#

10

Re: Temporary lookup failure (in reply to RCPT TO command)

And 'labtepuy.top'?