Link to home
Start Free TrialLog in
Avatar of mshaikh22
mshaikh22

asked on

Urgent help EXIM relay error: rejected after DATA: Message is missing headers required by RFC 2822 /etc/mail

Dear Experts,

We have 2 exim MTA 4.72 running on Centos 5.3 running spamassasin. We have inherited these systems from our sister company and we are in the process of closing their data center and have started to having some problems regarding this.

We migrated the network connection for the external data provider from the old data center that uses the exim to relay emails to the sister company to the new one.
As the result the external data provider server ip address has been changed from 172.20.x to 10.67.x.x.
Just to let you know that the exim servers are not configured in the usual way meaning i cannot run your usual command to get my way around i.e. service exim restart to restart the services after making conf change and nano.


I have to reboot the servers
I have added the new server ip to the following configs via vi

relay_from_hosts
no_verify_hosts

After rebooting the servers, I am getting the following message in the reject logs.

2013-07-08 10:17:06 1Uw7Z8-00012c-4U H=(test) [10.67.x.x] F=<f-confirmations@x.com> rejected after DATA: Message is missing headers required by RFC 2822
Envelope-from: <f-confirmations@x.com>
Envelope-to: <j@f.com>
P Received: from [10.67.2.110] (helo=test)
        by h.x.com with smtp (Exim 4.72)
        (envelope-from <f-confirmations@x.com>)
        id 1Uw7Z8-00012c-4U
        for j@f.com; Mon, 08 Jul 2013 10:17:06 +0100

 Would really appreciate your help on this. I need to find out, where else I need to include the new ip in order for it stop rejecting the emails

Thank you,

M
SOLUTION
Avatar of gheist
gheist
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mshaikh22
mshaikh22

ASKER

Thank you gheist.



I am getting the following error if I run a test smtp session
Its was working before the ip address of the server was changed. I am not sure where else i need to go to add the ip exclusion. I would prefer not to make any changes to the config as it might break other things.


exim -bh 10.67.x.x

mail from: f@x.com
=>>> using ACL "acl_check_mail"
>>> processing "warn"
>>> check condition = ${if eq {${lookup ldap {user="CN=LDAP,CN=Users,DC=x,DC=com" pass="x" ldap:///${quote_ldap:DC=x,DC=com}?mail?sub?(&(|(objectClass=user)(objectClass=publicFolder)(objectClass=group))(proxyAddresses=SMTP:${quote_ldap:${sender_address}}))}}} {}}
>>>                 =
>>> warn: condition test failed
>>> processing "accept"
>>> check senders = :
>>> x.com in ""? no (end of list)
>>> f@x.com in ":"? no (end of list)
>>> accept: condition test failed
>>> processing "accept"
>>> accept: condition test succeeded
250 OK
rcpt to: jon@f.com
>>> using ACL "acl_check_rcpt"
>>> processing "accept"
>>> check hosts = :
>>> host in ":"? no (end of list)
>>> accept: condition test failed
>>> processing "deny"
>>> check domains = +local_domains
>>> fidessa.com in ""? no (end of list)
>>> fidessa.com in "+local_domains"? no (end of list)
>>> deny: condition test failed
>>> processing "deny"
>>> check domains = !+local_domains
>>> fidessa.com in "!+local_domains"? yes (end of list)
>>> check local_parts = ^[./|] : ^.*[@%!] : ^.*/\\.\\./
>>> jon in "^[./|] : ^.*[@%!] : ^.*/\.\./"? no (end of list)
>>> deny: condition test failed
>>> processing "accept"
>>> check local_parts = postmaster
>>> jon.stacey in "postmaster"? no (end of list)
>>> accept: condition test failed
>>> processing "accept"
>>> check hosts = +no_verify_hosts
>>> host in "/u01/etc/exim/no_verify_hosts"? yes (matched "10.67.x.x" in /u01/etc/exim/no_verify_hosts)
>>> host in "+no_verify_hosts"? yes (matched "+no_verify_hosts")
>>> check control = queue_only
>>> accept: condition test succeeded
250 Accepted
Data
354 Enter message, ending with "." on a line by itself
This is a test
.
>>> host in ignore_fromline_hosts? no (option unset)
>>> using ACL "acl_check_data"
>>> processing "deny"
>>> check condition = ${if or{{!def:h_Date:}{!def:h_From:}}}
>>>                 = true
>>> deny: condition test succeeded
550 Message is missing headers required by RFC 2822
LOG: 1UwU2l-0002w1-Rv H=[10.67.x.x] F=<f@x.com> rejected after DATA: Message is missing headers required by RFC 2822
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Issue was never resolved. Had to switch a different MTA to get mail flowing.