Rob Feldman
2009-Dec-12 21:52 UTC
[Pkg-exim4-users] Can''t accept IP range for relay hosts
In update-exim4.conf.conf, the entry: dc_relay_nets=''192.168.254.103'' works fine. Sending message from workstation with that IP results in: 2009-12-11 16:15:10 1NJCpS-0000FR-Iw <= trailriders at wherever.com H=(RCTRConcession) [192.168.254.103] P=smtp S=824 id=4465AB9F44964717906A4F8B553545F7 at RCTRConcession Change update-exim4.conf.conf to: dc_relay_nets=''192.168.254.101/200'' results in failure: 2009-12-11 16:01:35 H=(RCTRConcession) [192.168.254.103] F=<trailriders at wherever.com> rejected RCPT <rob at wherever.com>: relay not permitted How on earth is xxx.xxx.xxx.103 not in the range xxx.xxx.xxx.101/200? Where do I go from here to get exim4 to relay from all my DHCP hosts?
Hi, On Sat, Dec 12, 2009 at 04:52:08PM -0500, Rob Feldman wrote:> Change update-exim4.conf.conf to: > dc_relay_nets=''192.168.254.101/200''You need to read up on netmasks and prefixes (http://en.wikipedia.org/wiki/CIDR). 101/200 does _not_ mean 101-200, it''s illegal syntax, since there are no 200 bits in a 32 bit address. Closest and easiest thing you''ll probably need is 192.168.254.0/24, meaning 192.168.254.0 to 192.168.254.255. If you really want to allow only addresses from 101 to 200, you''ll need something more complex: $ ipcalc 192.168.254.101-192.168.254.200 deaggregate 192.168.254.101 - 192.168.254.200 192.168.254.101/32 192.168.254.102/31 192.168.254.104/29 192.168.254.112/28 192.168.254.128/26 192.168.254.192/29 192.168.254.200/32 $ Greetings Marc -- ----------------------------------------------------------------------------- Marc Haber | "I don''t trust Computers. They | Mailadresse im Header Mannheim, Germany | lose things." Winona Ryder | Fon: *49 621 72739834 Nordisch by Nature | How to make an American Quilt | Fax: *49 3221 2323190