Advanced Functions in Filter


The following functions can be used in Global/Domain/User filter to detect some speical conditions.

{$fn_from_autheduser:true}

If the email was sent by an authenticated user, then this condition is true.

{$fn_from_autheduser:false}

If the email was sent by anonymous/remote user, then this condition is true.

{$fn_from_autheduser:[user]}

If the email was sent by authenticated user whose email address is [user], then this condition is true.

{$fn_from_message_size_greater:[size]}

If email size is greater than [size], then this condition is true.

{$fn_from_message_size_less:[size]}

If email size is less than [size], then this condition is true.

{$fn_to_localuser:true}

If the email is sending to an existed local user, then this condition is true.

{$fn_to_localuser:false}

If the email is sending to non-existed local user, then this condition is true.

{$fn_to_self:true}

If sender and recipient are the same local user and sender is authenticated user, then this condition is true.

{$fn_to_self:false}

If sender and recipient are different, then this condition is true.

{$fn_to_alias:true}

If the email is sending to an alias, then this condition is true.

{$fn_to_alias:false}

If the email is not sending to an alias, then this condition is true.

{$fn_to_alias_count_greater:[count]}

If this email is sending to an alias which contains more than [count] email addresses, then this condition is true.

{$fn_to_alias_count_less:[count]}

If this email is sending to an alias which contains less than [count] email addresses, then this condition is true.

{$fn_readfile:[file]}

This function can be used in any condition. It reads the keywords from a text file. Each line in text file represents a keyword.
e.g.
If ...
    Body Text contains: {$fn_readfile:c:\badword.txt}
Then ...
    Delete message

Remarks

In user filter, the following functions are not available:
{$fn_to_localuser:true}, {$fn_to_localuser:false}, {$fn_to_self:true}, {$fn_to_self:false}, {$fn_to_alias:true}, {$fn_to_alias:false}, {$fn_to_alias_count_greater:[count]}, {$fn_to_alias_count_less:[count]} {$fn_readfile:[file]}

See Also

Quick Tutorial  User Permissions  Domain Administration  User Administration  Services Administration  SMTP Service  POP3 Service  IMAP4 Service  Remote Object Call Service  Webmail Service  SSL Configuration  Realtime Black List  Anti-Spam  Anti-Virus  List Administration  Traffic Control  DBConnector  Mail Archive  DomainKeys and DKIM signature  Storage and User Mailbox   Incoming/outgoing Filters  Advanced Functions in Filter  Templates  

EmailArchitect Server Website
EmailArchitect Server Community