Re: [Exim] Keeping aliases in a DBM hash...

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Jeffrey Goldberg
Date:  
À: Trevor Sky Garside
CC: exim-users
Sujet: Re: [Exim] Keeping aliases in a DBM hash...
On Sat, 23 Sep 2000, Trevor Sky Garside wrote:

> > > [...] if I have just added a new domain to the system, I have to
> > > define at least one alias or Exim will freeze incoming mail
> > > complaining about inability to lookup aliases.


> > > [...] I am wondering is how can I make it so Exim knows that the DB
> > > is blank and refuses all incoming mail for that domain?


> > I would like to remind you that any domain accepting SMTP on port 25, must
> > have a valid postmaster@??? address.


> It's funny that you should mention that, because that is my current
> solution [...] But in the odd case (I don't see it happening, but you
> never know) where the domain doesn't want any mail accepted (even to
> postmaster) I'd like to know how to make it work.


You can use

require_file = /path/to/aliases/file

in the directory. But that tests existence of the file, not whether it is
empty.

I don't know if you can test whether a file is empty using a

condition

in the directory. But the section on string expansion ought to do that.

Cheers,

-j

--
Jeffrey Goldberg
I have recently moved, see http://www.goldmark.org/jeff/contact.html
Relativism is the triumph of authority over truth, convention over justice