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.

Example

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