Labels

Linux (46) network (13) troubleshoot (13) command (10) virtualization (10) ubuntu (9) Windows (8) cisco (7) security (7) router (6) Tools (5) software (5) vmware (5) ospf (3) eigrp (1) zimbra (1)

2012年10月26日

Zimbra - Distribution list control by Milter server


Enable Milter server

from web admin console:
Configure - Global Settings - MTA
check Enable milter server

by command:
[root@mail ~]$ su - zimbra
[zimbra@mail ~]$ zmprov ms `zmhostname` zimbraMilterServerEnabled TRUE
[zimbra@mail ~]$ zmmailboxdctl restart
Stopping mailboxd...done.
Starting mailboxd...done.

[zimbra@mail ~]$ zmmtactl restart
Rewriting configuration files...done.
postfix/postfix-script: refreshing the Postfix mail system Stopping saslauthd...done.
Starting saslauthd...done.
Stopping opendkim... done.
Started opendkim: pid 12355

[zimbra@mail ~]$ zmmilterctl start Starting milter server...done.
[zimbra@mail ~]$ zmmilterctl status Milter server is running.


Specific senders for a distribution list
zmprov grr dl distributionlist@yourdomain.dom usr user@yourdomain.dom SendToDistList

Allow specific domain to send to a distribution list 
zmprov grr dl distributionlist@yourdomain.dom dom thedomain.dom SendToDistList

Deny specific domain to send to a distribution list 
zmprov grr dl distributionlist@yourdomain.dom dom thedomain.dom -SendToDistList

Verify permission for specific user
[zimbra@mail ~]$ zmprov ckr dl distributionlist@yourdomain.dom thedomain.com sendToDistList
ALLOWED
Via:
    target type  : dl
    target       : distributionlist@yourdomain.dom
    grantee type : dom
    grantee      : thedomain.com
    right        : sendToDistList
[zimbra@mail ~]$ zmprov ckr dl distributionlist@yourdomain.dom foo@thedomain.com sendToDistList
ALLOWED
[zimbra@mail ~]$ zmprov ckr dl distributionlist@yourdomain.dom  raycheang@gmail.com sendToDistList
DENIED



沒有留言:

張貼留言