[Maia-users] disabled user still gets email stored

Robert LeBlanc rjl at renaissoft.com
Thu Apr 12 23:28:52 PDT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Sergio P. Cesar wrote:

> How do I disable the mail collection into mailguard for those users that
> disable everything but virus checks?
> 
> Their email still gets stored in the mailguard database. Those users will
> not login to mailguard to take care of them.
> I have try to delete the user from the database but since I have it set to
> auto create they get recreated with the defaults for that domain and mail
> gets quarantined. Those users do not want to have their email held or
> stored anywhere.
> This is running on a virtual server with many domains and several users in
> several domains have turned off all but virus check.

While it would be best not to use the user autocreation feature in this
case, there's an ugly little hack that may be of use to you.  I can't
guarantee that it still works, but at one time I added support for a
setting in the amavisd.conf file called "no_autocreate_domains".  The
purpose of this setting was to let the administrator specify a list of
domain names that should not be autocreated, but it also worked for
specific email addresses, so if you added "joe at example.com" to this list
it would prevent that address from being auto-created.

The setting should be available in a number of different forms:

As an array:

  @no_autocreate_domains_acl = qw( joe at example.com );
  @no_autocreate_domains_acl = qw( joe at example.com joe at example.net );

As a hash lookup, read from a text file, with one entry per line:

  read_hash(\%no_autocreate_domains, '/var/amavisd/no_autocreate_list');

As a regular expression:

  $no_autocreate_domains_re = new_RE( qr'[Jj]oe at example.com$'i );

I should stress that this is a very old and obscure feature that hasn't
been regression-tested in recent versions of amavisd-maia, so it may no
longer work.  I still see the code for it in the latest version, though,
so it may be a solution for you.

- --
Robert LeBlanc <rjl at renaissoft.com>
Renaissoft, Inc.
Maia Mailguard <http://www.maiamailguard.com/>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGHyMkGmqOER2NHewRAm1cAJ4k0eWR/KHGsy+EofSG/xzYaxffYgCeJ2K2
myPVGlzq1h9e1lYNy5ydwgA=
=Y+V3
-----END PGP SIGNATURE-----


More information about the Maia-users mailing list