[Pkg-exim4-users] Using Debian's macros for hosts_lists
Marc Haber
mh+pkg-exim4-users at zugschlus.de
Mon Feb 4 14:54:22 UTC 2008
On Mon, Feb 04, 2008 at 04:17:53PM +0200, Johann Spies wrote:
> How would you do the following using Debian's macros:
>
> deny hosts = \
> !146.232.48.3 : !146.232.48.2 : !146.232.49.2 :\
> !146.232.49.9 : 146.232.48.0/23 : 146.232.212.0/23:\
> !146.232.196.2 : !146.232.196.10 : !146.232.197.238 :\
> !146.232.197.237 : !146.232.197.10 : !146.232.196.52: \
> 146.232.196.0/23 :
>
>
> As I understand it one cannot use negation in
> /etc/exim4/acl_whitelist_deny and /etc/exim4/acl_blacklist_deny or
> similar files.
local_host_blacklist should support ! constructs, so
!146.232.48.3
!146.232.48.2
!146.232.49.2
<convenience snip>
!146.232.197.237
146.232.196.0/23
Should just work.
If not, a possible hook would be via CHECK_RCPT_LOCAL_ACL_FILE.
> In the process of setting up new Debian mail servers I was hoping to
> make full use of Debian's setup, but found the usage of macros
> confusing despite the Debian-exim documentation about the usage of
> macros.
>
> The many 'ifdef's make the configuration very difficult to read.
It takes some practice and experience, yes. But the learning curve is
not that steep.
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
More information about the Pkg-exim4-users
mailing list