[EXIM] To relay or not to relay, that is the question...

Top Page
Delete this message
Reply to this message
Author: Steve Lamb
Date:  
To: Exim-users
Subject: [EXIM] To relay or not to relay, that is the question...
OK, I've been RTFMing and I cannot understand why this is not working.
This is with Exim 1.92. From the way that I read the documentation Exim
should, by default, block relaying. However, when I set the following to let
my local network through anyone from anywhere can relay to anyone else.
sender_net_accept_relay = 192.168.0.0/0

    However, when I set the following it refuses everything from everyone. 
What gives?


sender_net_accept_relay = 192.168.0.0/0
sender_net_reject_relay = 0.0.0.0/0
sender_net_reject_except = 192.168.0.0/0

root@teleute:/etc# exim -bh 192.168.0.2

**** SMTP testing session as if from host 192.168.0.2
**** Not for real!

>>> looking up host name for 192.168.0.2
>>> host lookup yielded morpheus

220 teleute.dyn.ml.org ESMTP Exim 1.92 #1 Fri, 31 Jul 1998 02:38:20 -0700
helo morpheus
250 teleute.dyn.ml.org Hello morpheus [192.168.0.2]
mail from: morpheus@???
250 <morpheus@???> is syntactically correct
rcpt to: morpheus@???
>>> matched sender_{host,net}_reject_relay

550 relaying to <morpheus@???> prohibited by administrator
LOG: refused relay (host reject) to <morpheus@???> from
<morpheus@teleute
.dyn.ml.org> H=morpheus [192.168.0.2]

-- 
             Steve C. Lamb             | Opinions expressed by me are not my
    http://www.calweb.com/~morpheus    | employer's.  They hired me for my
             ICQ: 5107343              | skills and labor, not my opinions!
---------------------------------------+-------------------------------------




--
*** Exim information can be found at http://www.exim.org/ ***