Johann Spies
2008-Feb-04 14:17 UTC
[Pkg-exim4-users] Using Debian''s macros for hosts_lists
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.
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.
Regards
Johann
--
Johann Spies Telefoon: 021-808 4036
Informasietegnologie, Universiteit van Stellenbosch
"That at the name of Jesus every knee should bow, of
things in heaven, and things in earth, and things
under the earth; And that every tongue should confess
that Jesus Christ is Lord, to the glory of God the
Father." Philippians 2:10,11
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
Johann Spies
2008-Feb-05 09:53 UTC
[Pkg-exim4-users] Using Debian''s macros for hosts_lists
On Mon, Feb 04, 2008 at 03:54:22PM +0100, Marc Haber wrote:> > local_host_blacklist should support ! constructs, soThanks. Johann -- Johann Spies Telefoon: 021-808 4036 Informasietegnologie, Universiteit van Stellenbosch "That at the name of Jesus every knee should bow, of things in heaven, and things in earth, and things under the earth; And that every tongue should confess that Jesus Christ is Lord, to the glory of God the Father." Philippians 2:10,11