> 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: [email protected]
| 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 [email protected]; Sat, 01 Aug 2009 19:53:58 +0300
| Received: from mail by mx52.mail.ru with local 
|       id 1MXHqF-000JHg-00
|       for [email protected]; Sat, 01 Aug 2009 20:53:55 +0400
| X-ResentFrom: <[email protected]>
| 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 [email protected]; 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; 
[email protected]; 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 [email protected]; Sat, 01 Aug 2009 19:53:53 +0300
| X-Failed-Recipients: lena-test-non...@chari**.de
| Auto-Submitted: auto-replied
| From: Mail Delivery System <[email protected]>
| To: [email protected]
| Subject: Mail delivery failed: returning message to sender
| Message-Id: <[email protected]>
| 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-non...@chari**.de
|     SMTP error from remote mail server after RCPT 
TO:<lena-test-non...@chari**.de>:
|     host mail.chari**.de [1**.42.4.200]: 550 5.1.1 
<lena-test-non...@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).

-- 
## List details at http://lists.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to