Yahoo Groups archive

Milter-greylist

Index last updated: 2026-04-28 23:32 UTC

Message

Re: [milter-greylist] patch for user-controlled opt-out

2005-08-22 by Matthias Scheler

On Mon, Aug 22, 2005 at 11:18:50AM -0400, Dawn Keenan wrote:
> The attached patch and new source file for milter-greylist 2.0 checks
> for the existence of a file named .nogreylist in the recipient's home
> directory and whitelists mail to the associated address if the file
> exists.
[...]
> This works well for mail addressed directly to users
> (including addresses of the form user+detail@host) without mailer
> tables or aliases, in the case where user home directories are
> available on the mail server.

The problem with your code is that it blindly assumes that this is the
case. It should really check if the recipient is locale before accessing
the home directory. It also doesn't honor things like aliases or
".forward" files.

Another problem is the overhead which might be caused by accessing the
user's home directory which might e.g. be on a NFS server. The university
I visited e.g. had reconfigured their mail server to check for
"/var/mail/forward/user" instead of "~user/.forward" to avoid just that.

	Kind regards

-- 
Matthias Scheler                                  http://scheler.de/~matthias/

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.