Re: [exim] Problems with NDR messages to external recipients

Top Page
Delete this message
Reply to this message
Author: Lena
Date:  
To: exim-users
Subject: Re: [exim] Problems with NDR messages to external recipients
> I expirience strange Exim 4.68 error - it incorrectly sends NDR messages.
> The problem is that Exim doesn't specify any domain in HELO/EHLO while
> sending NDR to extenral users.
> However, messages submitted by daemon (httpd forms and so on) are sent
> without any errors, as well as user-submitted messages are.


> Debug on sending server shows the following:
> 22:06:32 30964 SMTP>> EHLO
> 22:06:32 30964 waiting for data on socket
> 22:06:32 30964 read response data: size=44
> 22:06:32 30964 SMTP<< 501 Syntactically invalid EHLO argument(s)


> primary_hostname and qualify_domain are specified and point to mydomain.com
> Also, the server's FQDN is mydomain.com.


I just tested (Exim 4.69 under FreeBSD), the NDR redacted with **:

| Return-path: <>
| Envelope-to: le**@???
| Delivery-date: Sat, 01 Aug 2009 19:53:58 +0300
| Received: from mx52.mail.ru ([94.100.176.66])
|     by lena.kiev.ua with esmtp (Exim 4.69 (FreeBSD))
|     id 1MXHqI-000Lg7-L9
|     for le**@???; Sat, 01 Aug 2009 19:53:58 +0300
| Received: from mail by mx52.mail.ru with local 
|     id 1MXHqF-000JHg-00
|     for le**@???; Sat, 01 Aug 2009 20:53:55 +0400
| X-ResentFrom: <lena_ki**@???>
| X-MailRu-Forward: 1
| Received: from [82.146.52.81] (port=52374 helo=lena.kiev.ua)


I.e. my server specified the hostname in EHLO. I wrote neither
primary_hostname nor qualify_domain in the config.
I wrote "message_id_header_domain = lena.kiev" (deliberately
incomplete name) in order to avoid spam to Message-IDs.
/etc/rc.conf contains: hostname="lena.kiev.ua"

|     by mx52.mail.ru with esmtp 
|     id 1MXHqF-000JH3-00
|     for lena_ki**@???; Sat, 01 Aug 2009 20:53:55 +0400
| Received-SPF: pass (mx52.mail.ru: domain of lena.kiev.ua designates 82.146.52.81 as permitted sender) client-ip=82.146.52.81; envelope-from=postmast**@???; helo=lena.kiev.ua;
| X-Mru-PTR: off
| X-Mru-NR: 1
| X-Mru-OF: FreeBSD (ethernet/modem)
| X-Mru-RC: RU
| Received: from mailnull by lena.kiev.ua with local (Exim 4.69 (FreeBSD))
|     id 1MXHqD-000Lfj-S1
|     for lena_ki**@???; Sat, 01 Aug 2009 19:53:53 +0300
| X-Failed-Recipients: lena-test-nonexi@chari**.de
| Auto-Submitted: auto-replied
| From: Mail Delivery System <Mailer-Daemon@???>
| To: lena_ki**@???
| Subject: Mail delivery failed: returning message to sender
| Message-Id: <E1MXHqD-000Lfj-S1@???>
| Date: Sat, 01 Aug 2009 19:53:53 +0300
| X-Spam: Not detected
| X-Mras: Ok
| 
| This message was created automatically by mail delivery software.
| 
| A message that you sent could not be delivered to one or more of its
| recipients. This is a permanent error. The following address(es) failed:
| 
|   lena-test-nonexi@chari**.de
|     SMTP error from remote mail server after RCPT TO:<lena-test-nonexi@chari**.de>:
|     host mail.chari**.de [1**.42.4.200]: 550 5.1.1 <lena-test-nonexi@chari**.de>:
|     Recipient address rejected: User unknown


> Anyone having any ideas?


1. Do `hostname` and `uname -n` commands say the hostname?

2. Try to recompile Exim (using source of the last release version 4.69).