Avatar of drazen_nikolic
drazen_nikolic
Flag for Serbia

asked on 

Postfix emails deferred

We have Web server with Java web application running on OS: Centos 5, Kernel: 2.6.18-8.1.10.el5PAE. On the same server Postfix is running as well. We sent emails from Java application to Postfix (on the localhost:25).

The problem we experience is delayed delivery of sent emails (e.g. emails are received with 10-60 minutes delay). But, some mails are sent immediatelly.

In the mailog, for the mail which had a delayed delivery, we have found next:
Jul 21 06:54:42 web-system postfix/smtpd[5607]: connect from localhost.localdomain[127.0.0.1]
Jul 21 06:54:42 web-system postfix/smtpd[5607]: C168B93808C: client=localhost.localdomain[127.0.0.1]
Jul 21 06:54:42 web-system postfix/cleanup[5610]: C168B93808C: message-id=<5840482.421216637682746.JavaMail.tomcat@web-system.local>
Jul 21 06:54:42 web-system postfix/qmgr[31232]: C168B93808C: from=<support@site.com>, size=990, nrcpt=2 (queue active)
Jul 21 06:54:42 web-system postfix/smtpd[5607]: disconnect from localhost.localdomain[127.0.0.1]
Jul 21 06:55:02 web-system postfix/smtp[5611]: C168B93808C: to=<user@bluewin.ch>, relay=none, delay=20, delays=0.04/0.07/20/0, dsn=4.4.3, status=deferred (Host or domain name not found. Name service error for name=bluewin.ch type=MX: Host not found, try again)

...
Jul 21 07:12:19 web-system postfix/qmgr[31232]: 9F28E938094: from=<support@site.com>, size=7337, nrcpt=2 (queue active)
Jul 21 07:12:19 web-system postfix/qmgr[31232]: C168B93808C: from=<support@site.com>, size=990, nrcpt=2 (queue active)
Jul 21 07:12:29 web-system postfix/smtp[5654]: C168B93808C: to=<isystem@site.com>, relay=mx1.barracuda.cubed3.net[66.165.181.230]:25, delay=1067, delays=1057/0.08/10/0.11, dsn=2.0.0, status=sent (250 Ok: queued as 8E996E05CB)
Jul 21 07:12:30 web-system postfix/smtp[5652]: 9F28E938094: to=<user@kabelmail.de>, relay=relay.kabelmail.de[194.25.41.11]:25, delay=88669, delays=88659/0.08/11/0.15, dsn=4.7.1, status=deferred (host relay.kabelmail.de[194.25.41.11] said: 450 4.7.1 Access denied. IP name possibly forged [66.165.xx.xx] (in reply to MAIL FROM command))
Jul 21 07:12:30 web-system postfix/smtp[5653]: C168B93808C: to=<user@bluewin.ch>, relay=mxbw.bluewin.ch[195.186.19.144]:25, delay=1068, delays=1057/0.05/11/0.63, dsn=2.0.0, status=sent (250 <23/A0-24955-61F64884@mx14.bluewin.ch> Mail accepted)


Why the mails were deferred and why the hosts were not found? Also do you have an idea why from relay.kabelmail.de we got "Access denied"? How to make mail to be sent immediatelly?

You can find the config files of Postfix attached to this question.

Any help is very much appreciated.
postfix-config.zip
Email ServersWeb ServersNetwork Security

Avatar of undefined
Last Comment
drazen_nikolic

8/22/2022 - Mon