Source

iredapd / libs / __init__.py

Full commit
Zhang Huangbin e85694f 
Zhang Huangbin 922bc7b 
Zhang Huangbin e85694f 
Zhang Huangbin 6a6022a 




Zhang Huangbin 3cd5f78 
Zhang Huangbin fe6d0df 
Zhang Huangbin 8a60712 



Zhang Huangbin 56e4d63 
Zhang Huangbin 8a60712 

Zhang Huangbin fe6d0df 
Zhang Huangbin 8a60712 






Zhang Huangbin 3cd5f78 
__author__ = 'Zhang Huangbin <zhb@iredmail.org>'
__version__ = '1.4.1'

SMTP_ACTIONS = {
    'default': 'DUNNO',
    'accept': 'OK',
    'reject': 'REJECT Not authorized',
}

# Mail list access policies.
MAILLIST_POLICY_PUBLIC = 'public'
MAILLIST_POLICY_DOMAIN = 'domain'
MAILLIST_POLICY_SUBDOMAIN = 'subdomain'
MAILLIST_POLICY_MEMBERSONLY = 'membersonly'
MAILLIST_POLICY_ALLOWEDONLY = 'allowedonly'
MAILLIST_POLICY_MEMBERSANDMODERATORSONLY = 'membersandmoderatorsonly'

# Comments of mail list access policies.
MAILLIST_ACCESS_POLICIES = {
    MAILLIST_POLICY_PUBLIC: 'Unrestricted',
    MAILLIST_POLICY_DOMAIN: 'Only users under same domain are allowed',
    MAILLIST_POLICY_SUBDOMAIN: 'Only users under same domain and sub domains are allowed',
    MAILLIST_POLICY_MEMBERSONLY: 'Only members are allowed',
    MAILLIST_POLICY_ALLOWEDONLY: 'Only moderators/allowed are allowed',
    MAILLIST_POLICY_MEMBERSANDMODERATORSONLY: 'Only members and moderators are allowed',
}