X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=greylist.h;h=f9640d1d77620934d57be460507ab349040f1aa2;hb=c2a3b7df6de7e023639789864940b0c997869954;hp=7086fd6fcfa00aaa098c61aea52a341f0771a295;hpb=cf48fad99532b7590b8bfea416532a7a84910bdf;p=apps%2Fpfixtools.git diff --git a/greylist.h b/greylist.h index 7086fd6..f9640d1 100644 --- a/greylist.h +++ b/greylist.h @@ -33,5 +33,21 @@ * Copyright © 2007 Pierre Habouzit */ +#ifndef PFIXTOOLS_GREYLIST_H +#define PFIXTOOLS_GREYLIST_H + +struct greylist_cfg { + unsigned lookup_by_host : 1; + int delay; + int retry_window; + int client_awl; +}; + +extern struct greylist_cfg greylist_cfg; + +int greylist_initialize(const char *directory, const char *prefix); + bool try_greylist(const char *sender, const char *c_addr, const char *c_name, const char *rcpt); + +#endif