Results 1 to 8 of 8

Thread: How to Restrict User to send mails to outside MTA...

  1. #1
    p-root is offline Member
    Join Date
    Aug 2009
    Posts
    10
    Rep Power
    6

    Question How to Restrict User to send mails to outside MTA...

    Hi,

    I use this url to restrict user to send only internal address. Restrict users to certain domain - Zimbra :: Wiki

    Restrict users to certain domain - Zimbra :: Wiki

    But when I try to email on same domain (internal email) even with own internal address. Zimbra webmail get this error.

    ==============================================
    method: SendMsgRequest
    msg: SMTP server reported: Invalid Addresses
    code: mail.SEND_FAILURE
    detail: soap:Sender
    trace: btpool0-6:1277146599796:9ada8eca246a3dd5
    request:

    Body: {
    SendMsgRequest: {
    _jsns: "urn:zimbraMail",
    m: {
    e: [
    0: {
    a: "punit@example.com",
    p: "punit",
    t: "t"
    },
    1: {
    a: "local@example.com",
    p: "mail",
    t: "f"
    }
    ],
    idnt: "6d31671b-c3f9-42d8-8944-ba33d4a4ef30",
    mp: [
    0: {
    content: {
    _content: "test"
    },
    ct: "text/plain"
    }
    ],
    su: {
    _content: "mails"
    }
    },
    suid: 1277166386077
    }
    },
    Header: {
    context: {
    _jsns: "urn:zimbra",
    account: {
    _content: "local@example.com",
    by: "name"
    },
    authToken: "(removed)",
    format: {
    type: "js"
    },
    sessionId: {
    _content: 158,
    id: 158
    },
    userAgent: {
    name: "ZimbraWebClient - FF3.0 (Linux)",
    version: "5.0.22_GA_3210.RHEL5"
    }
    }
    }
    ======================================

    And in /var/log/zimbra.log i received the following :-

    ++++++++++++++++++++++++++++++++++++++++++++++++++
    Jun 22 00:26:39 bmail postfix/smtpd[8179]: connect from bmail.hostdns.com[208.43.232.38]
    Jun 22 00:26:39 bmail postfix/smtpd[8179]: warning: unknown smtpd restriction: "local_only"
    Jun 22 00:26:39 bmail postfix/smtpd[8179]: NOQUEUE: reject: RCPT from bmail.hostdns.com[208.43.232.38]: 451 4.3.5 Server configuration error; from=<local@exapmle.com> to=<punit@example.com> proto=ESMTP helo=<bmail.hostdns.com>
    ++++++++++++++++++++++++++++++++++++++++++++++++++ ++

    So please can anyone help me for the same.

    Thanks
    p-root

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

    Default

    Please update your forum profile with the output of the following command (do not post the output in this thread):

    Code:
    zmcontrol -v
    I'd suggest you go through that article again and check that all the changes are correct or you could also post the changes you've made here for verification.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  3. #3
    p-root is offline Member
    Join Date
    Aug 2009
    Posts
    10
    Rep Power
    6

    Question

    Hi,

    [zimbra@bmail root]$ zmcontrol -v

    Release 5.0.22_GA_3210.RHEL5_20100125190233 RHEL5 FOSS edition

    [zimbra@bmail root]$

    Also please check my configuration with the following details :-

    =================================================
    [zimbra@bmail root]$ cat /opt/zimbra/conf/postfix_recipient_restrictions.cf
    check_sender_access hash:/opt/zimbra/postfix/conf/restricted_senders
    reject_non_fqdn_recipient
    permit_sasl_authenticated
    permit_mynetworks
    reject_unauth_destination
    reject_unlisted_recipient
    %%contains VAR:zimbraMtaRestriction reject_invalid_hostname%%
    %%contains VAR:zimbraMtaRestriction reject_non_fqdn_hostname%%
    %%contains VAR:zimbraMtaRestriction reject_non_fqdn_sender%%
    %%contains VAR:zimbraMtaRestriction reject_unknown_client%%
    %%contains VAR:zimbraMtaRestriction reject_unknown_hostname%%
    %%contains VAR:zimbraMtaRestriction reject_unknown_sender_domain%%
    %%explode reject_rbl_client VAR:zimbraMtaRestrictionRBLs%%
    %%contains VAR:zimbraMtaRestriction check_policy_service unixrivate/policy%%
    permit

    [zimbra@bmail root]$ vi /opt/zimbra/conf/zmmta.cf
    POSTCONF smtpd_restriction_classes local_only
    POSTCONF local_only FILE postfix_check_recipient_access.cf

    [zimbra@bmail root]$ cat /opt/zimbra/conf/postfix_check_recipient_access.cf
    check_recipient_access hash:/opt/zimbra/postfix/conf/local_domains

    [zimbra@bmail root]$ cat /opt/zimbra/postfix/conf/restricted_senders
    local@example.com local_only

    [zimbra@bmail root]$ cat /opt/zimbra/postfix/conf/local_domains
    example.com OK
    ============================================

    Thanks.

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

    Default

    Quote Originally Posted by p-root View Post
    [zimbra@bmail root]$ zmcontrol -v

    Release 5.0.22_GA_3210.RHEL5_20100125190233 RHEL5 FOSS edition
    To save having to ask you which version you're using each time you post I asked you to put that in your forum profile, please do that.

    Quote Originally Posted by p-root View Post
    [zimbra@bmail root]$ cat /opt/zimbra/conf/postfix_check_recipient_access.cf
    check_recipient_access hash:/opt/zimbra/postfix/conf/local_domains
    This setting is incorrect, compare it to the wiki article.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  5. #5
    p-root is offline Member
    Join Date
    Aug 2009
    Posts
    10
    Rep Power
    6

    Question

    Hi,

    I have changed in that file but still i am not able to send mails :-

    ================================================== ===
    [zimbra@bmail root]$ vi /opt/zimbra/conf/postfix_check_recipient_access.cf
    check_recipient_access hash:/opt/zimbra/postfix/conf/local_domains, reject
    ================================================== ===

    Please check and do the need ful.

  6. #6
    louisedp is offline Member
    Join Date
    Oct 2009
    Posts
    12
    Rep Power
    5

    Smile Hi...

    Hi Frnd...

    Just now I crossed ur thread....

    Let me know where did u entered the below two lines...

    vi /opt/zimbra/conf/zmmta.cf
    POSTCONF smtpd_restriction_classes local_only
    POSTCONF local_only FILE postfix_check_recipient_access.cf

    Becoz Me tooo had d same problem..........After some changes in this zmmta.cf file I got it worked..

    Regards,
    AK Louis

  7. #7
    wezmaster is offline Starter Member
    Join Date
    Jul 2010
    Posts
    2
    Rep Power
    5

    Default

    Hi,

    Can you please let me know where exactly i need to add these lines?

  8. #8
    shashikant is offline Junior Member
    Join Date
    Jun 2012
    Posts
    9
    Rep Power
    3

    Default

    Dear Friend,
    plz follow this setp

    vi /opt/zimbra/conf/zmmta.cf
    SETION mta
    POSTCONF smtpd_restriction_classes local_only
    POSTCONF local_only FILE postfix_check_recipient_access.cf
    This two line must be under SECTION mta
    It will work

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Restrict some users to send outer domain mails
    By jayarajmohan in forum Administrators
    Replies: 8
    Last Post: 07-16-2013, 06:37 AM
  2. Daily mail report always reports "No messages found"
    By McPringle in forum Installation
    Replies: 42
    Last Post: 06-13-2011, 08:57 AM
  3. Zimbra Install Problem - getDirectContext
    By bsimzer in forum Installation
    Replies: 27
    Last Post: 07-19-2007, 10:12 AM
  4. Fedora Core 3, Clean Install - Not working!
    By pcjackson in forum Installation
    Replies: 17
    Last Post: 03-05-2006, 07:38 PM
  5. Network edition - strange behavior
    By goetzi in forum Installation
    Replies: 6
    Last Post: 11-16-2005, 03:08 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
  •