[Mimedefang] Greylisting

Lucas Albers admin at cs.montana.edu
Tue Sep 9 19:44:01 EDT 2003


>Dave the wooha master:
> Hi,
>
> Many of you may have heard about greylisting:
>
> 	http://projects.puremagic.com/greylisting/
>

Dave,

I needed to define LOCK_UN and LOCK_EX with the \& in front because you
have strict subs enabled, otherwise it complains.

example:
sub lock_db () {
    open(LOCKFILE, ">>$DBFilename.lock") or return 0;
    flock(LOCKFILE,\&LOCK_EX);
    return 1;
}

sub unlock_db () {
    flock(LOCKFILE,\&LOCK_UN);
    close(LOCKFILE);
    unlink("$DBFilename.lock");
    return 1;
}

I've been getting some good ideas for using db_file with mimedefang.
Will post anything I code.
Am planning to define internal/external users in db_file.
External users cannot be mailed from an external or unauthenticated address.

--Luke








More information about the MIMEDefang mailing list