Re: exim and spam relay
Sorry for the duplicate message. This one has a useful Subject.
Thanks for your response. I checked my exim.conf again and did not find
anything wrong in it. I have included a few of the values below.
my true IP address: 126.96.36.199
my true machine name: badhost.corp.com
qualify_domain = badhost.corp.com
local_domains_include_host = true
local_domains_include_host_literals = true
#relay_domains_include_local_mx = true
You commented that you were running exim 3, so I downloaded the source,
compiled and installed it. That did not resolve my problem.
Below is a sample session that shows my problem. For this session, I was
on xxx.dialup.erols.com telnetting into badhost.corp.com and attempting
to relay mail to remote.com. If you attempt to duplicate these results
be sure to replace 188.8.131.52 with the actual IP address of the machine
you are attempting to relay through.
telnet badhost.corp.com 25
Connected to badhost.corp.com.
Escape character is '^]'.
220 badhost.corp.com ESMTP Exim 3.12 #1 Thu, 09 Mar 2000 14:45:18 -0500
250 <firstname.lastname@example.org> is syntactically correct
250 <"email@example.com"@[184.108.40.206]> is syntactically correct
I expect the following result here instead of 250:
550 relaying to <"firstname.lastname@example.org"@[220.127.116.11]> prohibited by administrator
If this test is run to localhost (telnet localhost 25, 18.104.22.168->127.0.0.1)
I do get the results that I expect - 550 relaying prohibited.
As I mentioned in my first message, even if you complete this SMTP
session with DATA, exim will not relay the message. Exim will accept
and queue the message
250 OK id=12RaPH-0003Zq-00
Then will discover email@example.com is not a valid local user. It
will then send an error message to "spamtest" which is not valid
either. It will then freeze the error message.
My concern is that exim does not return a 5xx error status at any
point in the session.