Results 1 to 5 of 5

Thread: [SOLVED] Internal Distribution List

  1. #1
    vtx624 is offline Intermediate Member
    Join Date
    Jan 2009
    Posts
    24
    Rep Power
    6

    Default [SOLVED] Internal Distribution List

    Hi zimbra,

    Does anyone know if this RestrictPostfixRecipient really works?

    RestrictPostfixRecipients - Zimbra :: Wiki

    I tried implementing it and it doesn't seem to work.

    Anyone help would be appreciated.

  2. #2
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,580
    Rep Power
    57

    Default

    Yes, of course it works. It would help if you post what you're trying to achieve, exactly what you've done and what problems you're seeing plus any errors from the log files.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  3. #3
    vtx624 is offline Intermediate Member
    Join Date
    Jan 2009
    Posts
    24
    Rep Power
    6

    Default

    Thanks for the reply.

    I am trying to create a private distribution list for test_dist@example.com which only our local domain can access. I have followed the guide, but it still seems like mail will come through to that distribution list. I am testing using telnet from another device.

    Here's what I did
    1. Create permitted_senders
    Code:
    example.com     OK
    mail.example.com        OK
    2. Create protected_recipients
    Code:
    test_dist@example.com   permitted_senders_list
    3. Created and ran the scripts update_protected_recipients
    Code:
    #!/bin/bash
    echo "rebuild permitted_senders..."
    /opt/zimbra/postfix/sbin/postmap /opt/zimbra/postfix/conf/permitted_senders
    echo "rebuild protected_recipients..."
    /opt/zimbra/postfix/sbin/postmap /opt/zimbra/postfix/conf/protected_recipients
    4. added this in main.cf
    Code:
    permitted_senders_list = check_sender_access hash:/opt/zimbra/postfix/conf/permitted_senders, reject
    smtpd_restriction_classes = permitted_senders_list
    5. added this in postfix_recipients_restrictions.cf
    Code:
    check_recipient_access hash:/opt/zimbra/postfix/conf/protected_recipients
    6. reloaded postfix

    I have tried to do this under both root and zimbra.

    The logs show that it's coming in

    Code:
    May 15 08:34:07 mail postfix/qmgr[16677]: A72092245F6: from=<test@yahoo.com>, size=958, nrcpt=2 (queue active)
    May 15 08:34:07 mail postfix/smtpd[25798]: disconnect from localhost[127.0.0.1]
    May 15 08:34:07 mail postfix/smtp[25630]: A8A472245F4: to=<test@example.com>, orig_to=<test_dist@example.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=26, d
    elays=12/0.02/0.46/13, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as A72092245F6)



    Here is a output of my permission files
    Code:
    mail:/opt/zimbra/postfix/conf# ls -l
    total 276
    -rw-r--r-- 1 root   postfix 17869 2008-11-18 12:05 access
    -rw-r--r-- 1 root   postfix  8829 2008-11-18 12:05 aliases
    -rw-r--r-- 1 root   postfix  3548 2008-11-18 12:05 bounce.cf.default
    -rw-r--r-- 1 root   postfix 11681 2008-11-18 12:05 canonical
    -rw-r--r-- 1 root   postfix  9904 2008-11-18 12:05 generic
    -rw-r--r-- 1 root   postfix 17439 2008-11-18 12:05 header_checks
    -rw-r--r-- 1 root   postfix 11942 2008-11-18 12:05 LICENSE
    -rw-r--r-- 1 zimbra zimbra   2212 2009-05-15 08:11 main.cf
    -rw-r--r-- 1 root   postfix 18426 2008-11-18 12:05 main.cf.default
    -rw-r--r-- 1 root   postfix  3383 2008-11-18 12:05 makedefs.out
    -r--r----- 1 zimbra zimbra   5269 2009-05-15 08:11 master.cf
    -rw-r--r-- 1 zimbra zimbra   5363 2009-03-03 14:02 master.cf.in
    -rw-r----- 1 root   postfix    37 2009-05-15 06:14 permitted_senders
    -rw-r----- 1 root   postfix 12288 2009-05-15 06:14 permitted_senders.db
    -rw-r--r-- 1 root   postfix 17588 2008-11-18 12:05 postfix-files
    -rw-r----- 1 root   postfix    75 2009-05-15 04:30 postfix_recipient_restriction                                                                         s.cf
    -rwxr-xr-x 1 root   postfix  6647 2008-11-18 12:05 postfix-script
    -rwxr-xr-x 1 root   postfix 22197 2008-11-18 12:05 post-install
    -rw------- 1 root   root     1024 2009-05-15 08:12 prng_exch
    -rw-r----- 1 root   postfix    46 2009-05-15 05:03 protected_recipients
    -rw-r----- 1 root   postfix 12288 2009-05-15 06:14 protected_recipients.db
    -rw-r--r-- 1 root   postfix  6816 2008-11-18 12:05 relocated
    -rw-r--r-- 1 root   postfix  1629 2008-11-18 12:05 TLS_LICENSE
    -rw-r--r-- 1 root   postfix 12357 2008-11-18 12:05 transport
    -rwxr-xr-x 1 root   postfix   243 2009-05-15 04:19 update_protected_recipients
    -rw-r--r-- 1 root   postfix 12494 2008-11-18 12:05 virtual
    Thanks for helping

  4. #4
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,580
    Rep Power
    57

    Default

    Quote Originally Posted by vtx624 View Post
    I have followed the guide, but it still seems like mail will come through to that distribution list. I am testing using telnet from another device.
    Where is this other 'device', is it on the same subnet as the rest of your LAN? Have you actually tried sending an email from an external mail account not on your system?

    Do you have any catch all email address on your Zimbra server?
    Last edited by phoenix; 05-16-2009 at 12:00 AM.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  5. #5
    vtx624 is offline Intermediate Member
    Join Date
    Jan 2009
    Posts
    24
    Rep Power
    6

    Default

    Phoenix,

    Thanks for your help, i tried this in the production environment and it worked.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Sudden problem synching with gmail
    By bouchardpie in forum Error Reports
    Replies: 8
    Last Post: 09-09-2010, 09:50 AM
  2. Problem syncing all folders
    By mark_the_chain in forum Error Reports
    Replies: 0
    Last Post: 11-23-2008, 04:59 PM
  3. Replies: 4
    Last Post: 01-29-2008, 08:43 PM
  4. [SOLVED] internal only distribution list?
    By fisch09 in forum Administrators
    Replies: 1
    Last Post: 08-20-2007, 10:17 PM
  5. 3.0 to 4.5.3 Upgrade failed (mysql error)
    By dealt in forum Installation
    Replies: 35
    Last Post: 03-19-2007, 10:30 PM

Posting Permissions

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