:..net

Software: dirsearch

Home Page
Domains
Software
Perl Hacker
UNIX C
Matthew B-M
Links

A dirsearch lookup for exim

Important Note
If you downloaded this patch before 8 Nov 2001, there is a potential hole due to incorrect length checking, which can let a shorter domain match where it shouldn't have. (eg. lexical.org would have matched a lexical.org.uk local domain). This is fixed in this version, with this PGP signature.

In order to get Exim to behave like the MTA which shall not be named, and allow for just the existence of a file with an appropriate name to accept mail for a domain. That can then (appropriately configured in exim) be used as an alias file for that domain.

The configuration file fragment, as I used it, is:
local_domains = localhost:dirsearch;/etc/mail/aliases
.
.
.
directory_aliases:
  driver = aliasfile
  forbid_file = true
  forbid_pipe = true
  include_domain = false
  file = /etc/mail/aliases/$domain
  search_type = lsearch*@
  optional

So to add an aliases file for colondot.net, you just add a file called colondot.net in /etc/mail/aliases, and all of the aliases will act only within @colondot.net, and exim will automatically start accepting mail for it.

As a unified diff
  [PATCH] dirsearch.patch

Valid XHTML 1.0!

This page last modified on Monday, 05-Feb-2018 19:43:34 UTC
Contact <webmaster@colondot.net> for more information about this site, or <plunder@colondot.net> if you want not to be able to send any more mail to this machine.