User Tools

Site Tools


Spam Filter Rules: GetUserGroup

Statement GetUserGroup
Version 2.4.5+
Purpose Checks if the specified user is assigned to a VPOP3 group, and returns the group name

The GetUserGroup statement requires a username and variable name, in the format

GetUserGroup <username> <variable name>

If the user is not assigned to a group, an empty value will be returned.


The following example will return the group which the user 'postmaster' is a member of and store it in the ${pmGroup} variable.

GetUserGroup "postmaster" pmGroup
reference/spamrules_statement_getusergroup.txt · Last modified: 2018/11/14 10:45 (external edit)