<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									restricting users to sending emails locally or externally - General Info				            </title>
            <link>https://community.zextras.com/forum/general-info/restricting-users-to-sending-emails-locally-or-externally/</link>
            <description>Zextras Community Discussion Board</description>
            <language>en-US</language>
            <lastBuildDate>Mon, 05 Oct 2026 21:19:41 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: restricting users to sending emails locally or externally</title>
                        <link>https://community.zextras.com/forum/general-info/restricting-users-to-sending-emails-locally-or-externally/#post-10106</link>
                        <pubDate>Tue, 11 Mar 2025 05:50:33 +0000</pubDate>
                        <description><![CDATA[Hi Shariful,
After following all the steps the issue is fixed 
Thank you so much for your prompt response]]></description>
                        <content:encoded><![CDATA[<p>Hi Shariful,</p>
<p>After following all the steps the issue is fixed </p>
<p>Thank you so much for your prompt response </p>]]></content:encoded>
						                            <category domain="https://community.zextras.com/forum/general-info/">General Info</category>                        <dc:creator>rahul_1</dc:creator>
                        <guid isPermaLink="true">https://community.zextras.com/forum/general-info/restricting-users-to-sending-emails-locally-or-externally/#post-10106</guid>
                    </item>
				                    <item>
                        <title>RE: restricting users to sending emails locally or externally</title>
                        <link>https://community.zextras.com/forum/general-info/restricting-users-to-sending-emails-locally-or-externally/#post-10104</link>
                        <pubDate>Tue, 11 Mar 2025 05:12:00 +0000</pubDate>
                        <description><![CDATA[@rahul_1 
Hi,
This particular attribute could only have single value (Cardinality - single/multi), so when ever you use any attribute take a look at it&#039;s description which would give you m...]]></description>
                        <content:encoded><![CDATA[<p>@rahul_1 </p>
<p>Hi,</p>
<p>This particular attribute could only have single value (<strong>Cardinality - single/multi</strong>), so when ever you use any attribute take a look at it's description which would give you many insights to avoid errors/issues:</p>
<pre contenteditable="false">root@mail:~# su - zextras -c "carbonio prov desc -a zimbraMtaSmtpdSenderRestrictions"
zimbraMtaSmtpdSenderRestrictions
    Value for postconf smtpd_sender_restrictions

               type : string
              value :
           callback :
          immutable : false
        cardinality : single
         requiredIn :
         optionalIn : globalConfig,server
              flags : serverInherited
           defaults : reject_sender_login_mismatch
                min :
                max :
                 id : 1590
    requiresRestart :
              since : 8.5.0
    deprecatedSince :

root@mail:~#
</pre>
<p>For your convenience, This is the short summary of the entire process, crosscheck each step and, I believe you would be able to find the issue and fix:</p>
<p><strong>Note: Any typo in the configuration file would affect email transaction and flows.</strong></p>
<pre contenteditable="false">cat /opt/zextras/conf/zmconfigd/smtpd_sender_restrictions.cf
##Add this line op top of the file
%%contains VAR:zimbraMtaSmtpdSenderRestrictions check_sender_access lmdb:/opt/zextras/common/conf/restricted_senders%%

#Execute this
su - zextras -c 'carbonio prov ms $(hostname -f) +zimbraMtaSmtpdSenderRestrictions "check_sender_access lmdb:/opt/zextras/common/conf/restricted_senders"'

#Check status
su - zextras -c "carbonio prov gs $(hostname -f) zimbraMtaSmtpdSenderRestrictions"

#This should be the output
zimbraMtaSmtpdSenderRestrictions: check_sender_access lmdb:/opt/zextras/common/conf/restricted_senders

cat /opt/zextras/conf/zmconfigd.cf
#Edit this file to add following lines just before the line of RESTART mta in - SECTION mta DEPENDS amavis

POSTCONF    smtpd_restriction_classes  local_only
POSTCONF    local_only  FILE  postfix_check_recipient_access.cf


cat /opt/zextras/conf/postfix_check_recipient_access.cf
#Add this line
check_recipient_access lmdb:/opt/zextras/common/conf/local_domains, reject

#Create prompt for this
cat /opt/zextras/common/conf/restricted_senders
user1@example.com    local_only
user2@example.com    local_only

#Create prompt for this
cat /opt/zextras/common/conf/local_domains

example.com    OK
internal.com   OK

#Execute this
chown zextras:zextras /opt/zextras/conf/postfix_check_recipient_access.cf
chmod 644 /opt/zextras/conf/postfix_check_recipient_access.cf
chown :zextras /opt/zextras/common/conf/restricted_senders
chmod 775 /opt/zextras/common/conf/restricted_senders
chown :zextras /opt/zextras/common/conf/local_domains
chmod 775 /opt/zextras/common/conf/local_domains

#postmap this
su - zextras -c "postmap /opt/zextras/common/conf/restricted_senders"
su - zextras -c "postmap /opt/zextras/common/conf/local_domains"

#Restart zmmtactl
su - zextras -c "zmmtactl restart"
</pre>
<p>Regards,</p>]]></content:encoded>
						                            <category domain="https://community.zextras.com/forum/general-info/">General Info</category>                        <dc:creator>Sharif</dc:creator>
                        <guid isPermaLink="true">https://community.zextras.com/forum/general-info/restricting-users-to-sending-emails-locally-or-externally/#post-10104</guid>
                    </item>
				                    <item>
                        <title>RE: restricting users to sending emails locally or externally</title>
                        <link>https://community.zextras.com/forum/general-info/restricting-users-to-sending-emails-locally-or-externally/#post-10099</link>
                        <pubDate>Mon, 10 Mar 2025 10:19:20 +0000</pubDate>
                        <description><![CDATA[I have tried this command ____zmprov ms mail.xyz.in zimbraMtaSmtpdSenderRestrictions &quot;check_sender_access lmdb:/opt/zextras/common/conf/restricted_senders&quot;
instead of carbonio prov ms mail....]]></description>
                        <content:encoded><![CDATA[<p>I have tried this command ____zmprov ms mail.xyz.in zimbraMtaSmtpdSenderRestrictions "check_sender_access lmdb:/opt/zextras/common/conf/restricted_senders"</p>
<p>instead of <span style="text-decoration: underline">carbonio prov ms mail.xyz.in +zimbraMtaSmtpdSenderRestrictions "check_sender_access, </span></p>
<p><span style="text-decoration: underline">now sending external emails are blocked to all users allowed and not allowed both </span></p>
<p>how to fix and allow some users to send external emails </p>]]></content:encoded>
						                            <category domain="https://community.zextras.com/forum/general-info/">General Info</category>                        <dc:creator>rahul_1</dc:creator>
                        <guid isPermaLink="true">https://community.zextras.com/forum/general-info/restricting-users-to-sending-emails-locally-or-externally/#post-10099</guid>
                    </item>
				                    <item>
                        <title>RE: restricting users to sending emails locally or externally</title>
                        <link>https://community.zextras.com/forum/general-info/restricting-users-to-sending-emails-locally-or-externally/#post-10097</link>
                        <pubDate>Mon, 10 Mar 2025 09:47:33 +0000</pubDate>
                        <description><![CDATA[Hi,
When I try to run the setup again its shows an error 
zextras@mail:~$ carbonio prov ms mail.xyz.in +zimbraMtaSmtpdSenderRestrictions &quot;check_sender_access lmdb:/opt/zextras/common/conf/...]]></description>
                        <content:encoded><![CDATA[<p><span style="text-decoration: underline">Hi,</span></p>
<p><span style="text-decoration: underline">When I try to run the setup again its shows an error </span></p>
<p>zextras@mail:~$ carbonio prov ms mail.xyz.in +zimbraMtaSmtpdSenderRestrictions "check_sender_access lmdb:/opt/zextras/common/conf/restricted_senders"<br />ERROR: account.INVALID_ATTR_VALUE (invalid attr value: invalid attr value - unable to modify attributes: ldap host=mail.xyz.in:389: attribute 'zimbraMtaSmtpdSenderRestrictions' cannot have multiple values)<br />zextras@mail:~$</p>]]></content:encoded>
						                            <category domain="https://community.zextras.com/forum/general-info/">General Info</category>                        <dc:creator>rahul_1</dc:creator>
                        <guid isPermaLink="true">https://community.zextras.com/forum/general-info/restricting-users-to-sending-emails-locally-or-externally/#post-10097</guid>
                    </item>
				                    <item>
                        <title>RE: restricting users to sending emails locally or externally</title>
                        <link>https://community.zextras.com/forum/general-info/restricting-users-to-sending-emails-locally-or-externally/#post-10096</link>
                        <pubDate>Mon, 10 Mar 2025 09:12:30 +0000</pubDate>
                        <description><![CDATA[@rahul_1 
Hi,
I have modified some configuration. Could you please try again now?
Make sure to check this command output:
carbonio prov gs $(hostname -f)  zimbraMtaSmtpdSenderRestriction...]]></description>
                        <content:encoded><![CDATA[<p>@rahul_1 </p>
<p>Hi,</p>
<p>I have modified some configuration. Could you please try again now?</p>
<p>Make sure to check this command output:</p>
<pre contenteditable="false">carbonio prov gs $(hostname -f)  zimbraMtaSmtpdSenderRestrictions</pre>
<p>regards,</p>]]></content:encoded>
						                            <category domain="https://community.zextras.com/forum/general-info/">General Info</category>                        <dc:creator>Sharif</dc:creator>
                        <guid isPermaLink="true">https://community.zextras.com/forum/general-info/restricting-users-to-sending-emails-locally-or-externally/#post-10096</guid>
                    </item>
				                    <item>
                        <title>RE: restricting users to sending emails locally or externally</title>
                        <link>https://community.zextras.com/forum/general-info/restricting-users-to-sending-emails-locally-or-externally/#post-10092</link>
                        <pubDate>Sat, 08 Mar 2025 07:47:57 +0000</pubDate>
                        <description><![CDATA[@Md. Shariful Islam]]></description>
                        <content:encoded><![CDATA[<p>@<a title="Md. Shariful Islam" href="https://community.zextras.com/participant/sharif/">Md. Shariful Islam</a></p>]]></content:encoded>
						                            <category domain="https://community.zextras.com/forum/general-info/">General Info</category>                        <dc:creator>rahul_1</dc:creator>
                        <guid isPermaLink="true">https://community.zextras.com/forum/general-info/restricting-users-to-sending-emails-locally-or-externally/#post-10092</guid>
                    </item>
				                    <item>
                        <title>restricting users to sending emails locally or externally</title>
                        <link>https://community.zextras.com/forum/general-info/restricting-users-to-sending-emails-locally-or-externally/#post-10088</link>
                        <pubDate>Fri, 07 Mar 2025 11:19:05 +0000</pubDate>
                        <description><![CDATA[Hi Everyone, I am following the same guideto restricting users to sending emails locally or externally but somehow its not working and restricted users and non restricted both are able to se...]]></description>
                        <content:encoded><![CDATA[<p>Hi Everyone, <br />I am following the same guide https://community.zextras.com/restrict-carbonio-community-edition-users-to-send-emails-locally-or-externally-carbonio-ce/ to restricting users to sending emails locally or externally but somehow its not working and restricted users and non restricted both are able to send external email, can someone please help me to fix it out</p>]]></content:encoded>
						                            <category domain="https://community.zextras.com/forum/general-info/">General Info</category>                        <dc:creator>rahul_1</dc:creator>
                        <guid isPermaLink="true">https://community.zextras.com/forum/general-info/restricting-users-to-sending-emails-locally-or-externally/#post-10088</guid>
                    </item>
							        </channel>
        </rss>
		