From: mouss (no email)
Date: Sat May 03 2008 - 09:49:15 EDT
Anant S Athavale wrote:
> Dear List:Following is one line from the postfix logs. --------------------------------------------------------------------------------- May 2 10:05:44 dnserns.isac.gov.in: postfix/smtpd[1536248]: NOQUEUE: reject: RCPT from unknown[72.3.227.162]: 502 5.7.1 : Helo command rejected: Host not found; from= to= proto=SMTP helo= ------------------------------------------------------------------------------As per the above example, as we have used the policy of reject_unknown_hostname and the mails where introducing host is not resolvable are getting rejected.Now, when the users complain that, some mails are not getting delivered to them, we go through logs and find the reason like one above and inform that this is due to this and tell the sender also to look into their configuration and resolve the issue. And most of the times, they solve the issue.But, when they solve, I want to know what their system is now introducing itself as. How can I make it part of log? Can it also become part of Mail headers?
helo is in the Received headers just after "from". for example, your
message to this list has
Received: from dnserns.isac.gov.in (dnserns8.isac.gov.in [218.248.39.236])
which means that your server helo'ed as "dnserns.isac.gov.in".
you need to find the Received header added by your server (which will have a "by foo.isac.gov.in...")
Google for how to parse Received headers.
Alternatively, use WARN as suggested by MrC. you can do this for a few IPs only using restriction classes.
|
|
|