Results 1 to 7 of 7

Thread: zimbraMtaRestriction and check_policy_service

  1. #1
    behanw is offline New Member
    Join Date
    May 2006
    Posts
    4
    Rep Power
    8

    Default zimbraMtaRestriction and check_policy_service

    We've found that using postfix-policyd (http://policyd.sourceforge.net/) on our postfix servers stops a lot of spam and viruses from even being accepted. It has all sorts of features that are well worth having on any mail server (whitelists, blacklists, grey listing, spam traps, etc).

    I've got it installed (using the zimbra mysql server) but I can't add the restriction to smtpd_recipient_restrictions in postfix. Normally I'd just add it to main.cf, but it seems that line is rewritten when zimbra starts up. I've added it to the zimbraMtaRestriction configuration parameter, but it doesn't seem to be making it into main.cf when zcontrol starts postfix.

    zimbra:~$ zmprov gcf zimbraMtaRestriction
    zimbraMtaRestriction: reject_invalid_hostname
    zimbraMtaRestriction: reject_non-fqdn_hostname
    zimbraMtaRestriction: reject_non_fqdn_sender
    zimbraMtaRestriction: check_policy_service inet:127.0.0.1:10031

    zimbra:~$ grep smtpd_recipient_restrictions /opt/zimbra/postfix/conf/main.cf
    smtpd_recipient_restrictions = reject_non_fqdn_recipient, permit_sasl_authenticated, permit_mynetworks, reject_invalid_hostname, reject_non_fqdn_sender, reject_unauth_destination, permit
    zimbra:~$

    I take it that zimbraMtaRestrictions aren't copied verbatim into main.cf?

    Behan

  2. #2
    KevinH's Avatar
    KevinH is offline Expert Member
    Join Date
    Aug 2005
    Location
    San Mateo, CA
    Posts
    4,789
    Rep Power
    18

    Default

    Did you restart postfix after this change?
    Looking for new beta users -> Co-Founder of Acompli. Previously worked at Zimbra (and Yahoo! & VMware) since 2005.

  3. #3
    behanw is offline New Member
    Join Date
    May 2006
    Posts
    4
    Rep Power
    8

    Default

    Quote Originally Posted by KevinH
    Did you restart postfix after this change?
    Many times.

    Incidentally, if it helps, I'm using zcs-3.1.0_GA_332.DEBIAN3.1.tgz.

  4. #4
    behanw is offline New Member
    Join Date
    May 2006
    Posts
    4
    Rep Power
    8

    Default

    Quote Originally Posted by behanw
    We've found that using postfix-policyd (http://policyd.sourceforge.net/) on our postfix servers stops a lot of spam and viruses from even being accepted.

    <snip>

    I take it that zimbraMtaRestrictions aren't copied verbatim into main.cf?
    Does anyone have any suggestions? I'd really like to use postfix-policyd with Zimbra.

    Thanks

    Behan

  5. #5
    behanw is offline New Member
    Join Date
    May 2006
    Posts
    4
    Rep Power
    8

    Default

    Quote Originally Posted by behanw
    Does anyone have any suggestions? I'd really like to use postfix-policyd with Zimbra.
    Just in case anyone is interested, I've documented how to install and use postfix-policyd with zimbra:

    http://wiki.zimbra.com/index.php?title=Postfix_Policyd

    Enjoy.

    Behan

  6. #6
    Join Date
    Jun 2008
    Posts
    12
    Rep Power
    6

    Default regarding policyd and zimbra

    hi
    i have configured policyd in my zimbra mail server its running and i am getting debug msg also .i am adding following data in throttle table

    INSERT INTO throttle \
    (_from,_count_max,_quota_max,_time_limit,_mail_siz e,_date,_priority)
    VALUES ('temp@.xxxx.com',
    1,
    1,
    300,
    1,
    UNIX_TIMESTAMP(),
    10);

    but its not working please can u let me know how we can configure throttle and any other table .please advise me.

    thnx in advance

    prasenjit

  7. #7
    mshanley's Avatar
    mshanley is offline Loyal Member
    Join Date
    Aug 2009
    Location
    Denver Colorado
    Posts
    82
    Rep Power
    5

    Default install policyd

    How come everyone that posts info on the net cannot put complete information? You say you documented the install.. you missed a bunch of questions that the install asks.. what are we supposed to answer if your document doesn't tell us?
    specifically it was asking about database.. now it's stuck at an error.. no way to abort / uninstall or fix..? Guides should have complete info so mistakes are not made.

    Quote Originally Posted by behanw View Post
    Just in case anyone is interested, I've documented how to install and use postfix-policyd with zimbra:

    Postfix Policyd - Zimbra :: Wiki

    Enjoy.

    Behan

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •