Lorenzo Perone writes:

Hello,

I apologize if I am asking a question already answered, but I searched
the archives and the docs and couldn't find it.
Is there any safe way to determine, within a perl filter script, whether
the sender is authenticated (via SMTP AUTH - local user) or not? And if
yes, is there a way also to get the user ID? The authlib should already
have determined this when the filter is invoked.

The authenticated ID can be found in the control file, in the 'i' record. For an example, see perlfilter-ratelimit.pl in the most recent build.

Attachment: pgpwT_kkVspCl.pgp
Description: PGP signature

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to