Jason R. Mastaler <[EMAIL PROTECTED]> wrote: > > USERNAME = os.environ.get("RECIPIENT")
"Morten Trab" <[EMAIL PROTECTED]> writes: > Okay, now I might have a working solution for user-based whitelist and > confirmed list in a Postfix/Cyrus environment with TMDA as a filter... > Will be testing the next few days, and if it works I'll send a description > of my solution to the list :) Just an additional caveat.... RECIPIENT will only be set by Postfix during delivery, which means that USERNAME will be correct when tmda-filter runs, but if you run tmda-pending from the command-line or if you use tmda-sendmail to send messages with tagged addresses, RECIPIENT won't be in the environment, so USERNAME will be None and paths that use it will include the string 'None' instead of the recipient's name. If you only plan to use tmda-filter to filter incoming mail, this won't be a problem. I mention this so you aren't surprised should you try to use other tmda- programs outside of the context of a delivery. Tim _____________________________________________ tmda-users mailing list ([EMAIL PROTECTED]) http://tmda.net/lists/listinfo/tmda-users