<?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>
									Carbonio CE Related Scripts - Install &amp; Setup				            </title>
            <link>https://community.zextras.com/forum/carbonio-setup/carbonio-ce-related-scripts/</link>
            <description>Zextras Community Discussion Board</description>
            <language>en-US</language>
            <lastBuildDate>Mon, 09 Mar 2026 06:17:02 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: Carbonio CE Related Scripts</title>
                        <link>https://community.zextras.com/forum/carbonio-setup/carbonio-ce-related-scripts/paged/3/#post-11360</link>
                        <pubDate>Tue, 14 Oct 2025 10:15:22 +0000</pubDate>
                        <description><![CDATA[@all
Considering all the changes after the first creation of FAN Made script, it is very difficult to update it regularly. To avoid any issue, I have marked it as deprecated. 
Though, it h...]]></description>
                        <content:encoded><![CDATA[<p>@all</p>
<p>Considering all the changes after the first creation of FAN Made script, it is very difficult to update it regularly. To avoid any issue, I have marked it as deprecated. </p>
<p>Though, it had it's own way of installing components. Using some of them and incorporating the official script, another custom script has been drafted.  please feel free to try it and drop your feedbacks:</p>
<p>What this script does: summary</p>
<ol>
<li>Sets hostname</li>
<li>Sets /etc/hosts</li>
<li>Disable IPv6</li>
<li>Configure Zextras Repo from the Official documentation</li>
<li>Download official script from the Official documentation</li>
<li>Execute the script</li>
<li>Make sure you read/collect all the passwords at the end (service-discover, postgresql,admin login)</li>
<li>Reboot the server and check post install checks gradually.</li>
</ol>
<p>&#x1f64f;</p>
<pre contenteditable="false">#!/bin/bash
# ---------------------------------------------
# Wrapper Script: Carbonio CE Installation (Interactive)
# Purpose: Runs official script in interactive login shell,
#          sets random admin password safely, disables open relay, and provides post-install checks
# Supported OS: Ubuntu 22.04LTS, Ubuntu 24.04LTS
# ---------------------------------------------

# -----------------------------
# Functions
# -----------------------------

detect_os() {
    if []; then
        . /etc/os-release
        if []; then
            CODENAME=${VERSION_CODENAME:-unknown}
            echo "&#x2705; Detected supported OS: $NAME $VERSION_ID LTS ($CODENAME)"
        else
            echo "&#x274c; Unsupported OS: $PRETTY_NAME"
            exit 1
        fi
    else
        echo "&#x274c; Unable to detect OS. /etc/os-release missing."
        exit 1
    fi
}

set_hostname() {
    read -rp "&#x1f449; Enter the desired hostname: " NEW_HOSTNAME
    if []; then
        echo "&#x274c; Hostname cannot be empty. Exiting."
        exit 1
    fi
    sudo hostnamectl set-hostname "$NEW_HOSTNAME"
    echo "&#x2705; Hostname set to: $(hostname)"
}

disable_ipv6() {
    echo "&#x1f6ab; Disabling IPv6..."
    sudo bash -c 'echo -e "\n# Disable IPv6\nnet.ipv6.conf.all.disable_ipv6 = 1\nnet.ipv6.conf.default.disable_ipv6 = 1\nnet.ipv6.conf.lo.disable_ipv6 = 1" &gt;&gt; /etc/sysctl.conf'
    sudo sysctl -p
    echo "&#x2705; IPv6 disabled."
}

update_hosts() {
    HOST_IP=$(hostname -I | awk '{print $1}')
    sudo bash -c "cat &lt;&lt;EOF &gt; /etc/hosts
127.0.0.1   localhost
$HOST_IP   $(hostname -f) $(hostname -s)
EOF"
    echo "&#x2705; /etc/hosts updated:"
    cat /etc/hosts
}

set_timezone() {
    read -rp "&#x1f30d; Enter your timezone (e.g., Asia/Dhaka, Europe/Rome) : " TIMEZONE
    if []; then
        sudo timedatectl set-timezone "$TIMEZONE"
        echo "&#x2705; Timezone set to: $(timedatectl show -p Timezone --value)"
    else
        echo "&#x26a0;&#xfe0f; No timezone entered. Skipping timezone configuration."
    fi
}

add_zextras_repo() {
    echo "&#x1f4e6; Adding Zextras repository..."
    wget -O- "https://keyserver.ubuntu.com/pks/lookup?op=get&amp;search=0x5dc7680bc4378c471a7fa80f52fd40243e584a21" | gpg --dearmor | sudo tee /usr/share/keyrings/zextras.gpg &gt; /dev/null
    sudo chmod 644 /usr/share/keyrings/zextras.gpg
    sudo bash -c "cat &lt;&lt;EOF &gt; /etc/apt/sources.list.d/zextras.list
deb  https://repo.zextras.io/release/ubuntu $CODENAME main
EOF"
    sudo apt clean
    sudo apt update -y
    sudo apt upgrade -y
    echo "&#x2705; Zextras repository setup complete."
}

run_official_script() {
    TMP_SCRIPT="/tmp/install_carbonio_ce_singleserver.sh"
    SCRIPT_URL="https://docs.zextras.com/carbonio-ce/html/_downloads/bed211d6fc1b9ca35f15be01eb9aa3fc/install_carbonio_ce_singleserver_ubuntu.sh"
    wget -O "$TMP_SCRIPT" "$SCRIPT_URL"
    sudo chmod +x "$TMP_SCRIPT"
    echo "&#x25b6;&#xfe0f; Executing official Carbonio CE installation script in interactive login shell..."
    sudo -i bash "$TMP_SCRIPT"
    echo "&#x1f389; Official Carbonio CE script completed!"
}

wait_for_cluster_credentials() {
    echo "&#x23f3; Waiting for service-discover cluster credentials to be created..."
    TIMEOUT=60
    SLEEP_INTERVAL=5
    ELAPSED=0

    while [] &amp;&amp; []; do
        echo "Waiting for /etc/zextras/service-discover/cluster-credentials.tar.gpg ..."
        sleep $SLEEP_INTERVAL
        ELAPSED=$((ELAPSED + SLEEP_INTERVAL))
    done

    if []; then
        echo "&#x274c; Cluster credentials not found after $TIMEOUT seconds."
        echo "Please check service-discover-server status manually."
        return 1
    fi
    echo "&#x2705; Cluster credentials file detected."
}

set_admin_password() {
    echo "&#x1f511; Generating random 12-character admin password..."
    ADMIN_PWD=$(openssl rand -base64 18 | tr -dc 'A-Za-z0-9' | head -c12)
    # Pass as a single argument to avoid setPassword errors
    sudo su - zextras -c "carbonio prov sp zextras '$ADMIN_PWD'"
    echo "&#x2705; Admin password has been set successfully!"
    echo ""
    echo -e "&#x1f4a1; Your Carbonio admin password is:\n\e[1;32m$ADMIN_PWD\e[0m"
    echo "Please store it safely. You will need it for the first login."
}

disable_open_relay() {
    echo "&#x1f6ab; Configuring MTA to disable open relay..."
    TRUSTED_IPS=$(hostname -I | awk '{for(i=1;i&lt;=NF;i++) printf "%s/32 ", $i}')
    PUB_IP=$(curl -s https://ipinfo.io/ip)
    [] &amp;&amp; TRUSTED_IPS+="$PUB_IP/32"
    sudo su - zextras -c "carbonio prov ms $(hostname -f) zimbraMtaMyNetworks '127.0.0.0/8 $TRUSTED_IPS'"
    echo "&#x2705; Open relay disabled."
}

post_install_check() {
    read -rp "Do you want to see the post-reboot checks now? (y/N): " CHECK_STATUS
    if [[ "$CHECK_STATUS" =~ ^$ ]]; then
        echo "&#x1f539; Checking Carbonio version and status..."
        echo 'sudo su - zextras -c "zmcontrol -v &amp;&amp; zmcontrol status"'
        echo "&#x1f539; Checking Consul members..."
        echo "consul members"
        echo "&#x1f539; Checking Carbonio systemd units..."
        echo "systemctl list-units 'carbonio*'"
        echo "&#x1f539; Checking HTTP health endpoint..."
        echo "curl -s -v http://127.78.0.4:10000/health | jq"
    fi
}

janus_advisory() {
    echo -e "\n&#x1f4a1; After installation, verify your interface IP in Janus NAT mapping:\n"
    echo "    cat /etc/janus/janus.jcfg | grep -i mapping"
    echo -e "\nExample:\n    nat_1_1_mapping = \"&lt;your_interface_ip&gt;\"\n"
    echo "&#x26a0;&#xfe0f; If you modify the mapping, restart the VideoServer:"
    echo "    sudo systemctl restart carbonio-videoserver"
    echo -e "\n&#x2705; Ensures the new mapping configuration is active."
}

# -----------------------------
# Main Script Execution
# -----------------------------
detect_os
set_hostname
disable_ipv6
update_hosts
set_timezone
add_zextras_repo
run_official_script

# Wait for service-discover cluster credentials before continuing
if wait_for_cluster_credentials; then
    set_admin_password
    disable_open_relay

    echo ""
    echo "&#x1f389; Carbonio CE installation and initial setup completed successfully!"
    echo "&#x26a0;&#xfe0f; Please reboot your server to apply all changes."

    post_install_check
    janus_advisory
else
    echo "&#x274c; Skipping post-install configuration due to missing cluster credentials."
fi

echo ""
echo "&#x2705; Wrapper script finished."
</pre>]]></content:encoded>
						                            <category domain="https://community.zextras.com/forum/carbonio-setup/">Install &amp; Setup</category>                        <dc:creator>Sharif</dc:creator>
                        <guid isPermaLink="true">https://community.zextras.com/forum/carbonio-setup/carbonio-ce-related-scripts/paged/3/#post-11360</guid>
                    </item>
				                    <item>
                        <title>RE: Carbonio CE Related Scripts</title>
                        <link>https://community.zextras.com/forum/carbonio-setup/carbonio-ce-related-scripts/paged/3/#post-11315</link>
                        <pubDate>Thu, 09 Oct 2025 14:58:23 +0000</pubDate>
                        <description><![CDATA[Is there a script or detailed instructions on setting up multi-server? have successfully setup the basics but am having issues getting the chats/video severs to run using the 5 server scenar...]]></description>
                        <content:encoded><![CDATA[<p>Is there a script or detailed instructions on setting up multi-server? have successfully setup the basics but am having issues getting the chats/video severs to run using the 5 server scenario. The docs are not detailed and I have yet to find any posts about setting up a working multi-server environment that has the chat/docs servers included.</p>]]></content:encoded>
						                            <category domain="https://community.zextras.com/forum/carbonio-setup/">Install &amp; Setup</category>                        <dc:creator>RomanI</dc:creator>
                        <guid isPermaLink="true">https://community.zextras.com/forum/carbonio-setup/carbonio-ce-related-scripts/paged/3/#post-11315</guid>
                    </item>
				                    <item>
                        <title>RE: Carbonio CE Related Scripts</title>
                        <link>https://community.zextras.com/forum/carbonio-setup/carbonio-ce-related-scripts/paged/3/#post-10713</link>
                        <pubDate>Thu, 26 Jun 2025 07:02:54 +0000</pubDate>
                        <description><![CDATA[Hi,A small update as I did a little deeper reserach.When I run the LetsEncrypt Certificate Request and Apply on CLI based on the steps described by Anahuac it works.The certificates are crea...]]></description>
                        <content:encoded><![CDATA[<p>Hi,<br />A small update as I did a little deeper reserach.<br /><br />When I run the LetsEncrypt Certificate Request and Apply on CLI based on the steps described by Anahuac it works.<br />The certificates are created and applied to Carbonios Webservice like expected.<br /><br />Really don't get the source why it was "theoretically" applied also with the GUI but was not set active.<br /><br />Will dig a little bit deeper to get more feedback.<br /><br />Thanks<br />Alexander</p>]]></content:encoded>
						                            <category domain="https://community.zextras.com/forum/carbonio-setup/">Install &amp; Setup</category>                        <dc:creator>ASebestian</dc:creator>
                        <guid isPermaLink="true">https://community.zextras.com/forum/carbonio-setup/carbonio-ce-related-scripts/paged/3/#post-10713</guid>
                    </item>
				                    <item>
                        <title>RE: Carbonio CE Related Scripts</title>
                        <link>https://community.zextras.com/forum/carbonio-setup/carbonio-ce-related-scripts/paged/3/#post-10693</link>
                        <pubDate>Tue, 24 Jun 2025 10:42:34 +0000</pubDate>
                        <description><![CDATA[Hi,
 
1. Ubuntu 22.04 with all updates (fresh installed)
2. Carbonio CE 25.6.1
3. The primary install was done only on CLI (with the fantastic scrip) and the Lets Encrypt Process was don...]]></description>
                        <content:encoded><![CDATA[<p>Hi,</p>
<p> </p>
<p>1. Ubuntu 22.04 with all updates (fresh installed)</p>
<p>2. Carbonio CE 25.6.1</p>
<p>3. The primary install was done only on CLI (with the fantastic scrip) and the Lets Encrypt Process was done on the GUI </p>
<p>4. I tried Brave and Chrome as well as Firefox - but it doesn't relate to the browser, the problem is the certificate is not beeing replaced.<br />It still presents the self signed Zextras Carbonio Certificate.</p>
<p>Strange thing: when I look at the Virtual Hosts &amp; Certificates all looks good (it presents me the correct lets encrypt certificate)</p>
<p>Thanks for your feedback</p>
<p>Alexander</p>]]></content:encoded>
						                            <category domain="https://community.zextras.com/forum/carbonio-setup/">Install &amp; Setup</category>                        <dc:creator>ASebestian</dc:creator>
                        <guid isPermaLink="true">https://community.zextras.com/forum/carbonio-setup/carbonio-ce-related-scripts/paged/3/#post-10693</guid>
                    </item>
				                    <item>
                        <title>RE: Carbonio CE Related Scripts</title>
                        <link>https://community.zextras.com/forum/carbonio-setup/carbonio-ce-related-scripts/paged/3/#post-10692</link>
                        <pubDate>Tue, 24 Jun 2025 09:57:52 +0000</pubDate>
                        <description><![CDATA[@asebestian 
Hi,
Could you please tell us more about:

What is your server OS?
What Carbonio CE release you are using?
What process you followed? (GUI/CLI)
In Which browser you are ch...]]></description>
                        <content:encoded><![CDATA[<p>@asebestian </p>
<p>Hi,</p>
<p>Could you please tell us more about:</p>
<ol>
<li>What is your server OS?</li>
<li>What Carbonio CE release you are using?</li>
<li>What process you followed? (GUI/CLI)</li>
<li>In Which browser you are checking?</li>
</ol>
<p>Regards,</p>]]></content:encoded>
						                            <category domain="https://community.zextras.com/forum/carbonio-setup/">Install &amp; Setup</category>                        <dc:creator>Sharif</dc:creator>
                        <guid isPermaLink="true">https://community.zextras.com/forum/carbonio-setup/carbonio-ce-related-scripts/paged/3/#post-10692</guid>
                    </item>
				                    <item>
                        <title>RE: Carbonio CE Related Scripts</title>
                        <link>https://community.zextras.com/forum/carbonio-setup/carbonio-ce-related-scripts/paged/3/#post-10682</link>
                        <pubDate>Mon, 23 Jun 2025 14:57:56 +0000</pubDate>
                        <description><![CDATA[Hi,
I also asked my question already in a new post (which is not published because its my first post). So please excuse my double posting.
 
I did the LetsEncrypt Install procedure as des...]]></description>
                        <content:encoded><![CDATA[<p>Hi,</p>
<p>I also asked my question already in a new post (which is not published because its my first post). So please excuse my double posting.</p>
<p> </p>
<p>I did the LetsEncrypt Install procedure as described in the official admin guide and it looks like all is correct but the Admin GUI as also the WebMail GUI is still not using the letsencrypt certificate - instead still the self generated one from Carbonio.</p>
<p>Any ideas why it's not applied?</p>
<p>Best regards </p>
<p>Alexander</p>]]></content:encoded>
						                            <category domain="https://community.zextras.com/forum/carbonio-setup/">Install &amp; Setup</category>                        <dc:creator>ASebestian</dc:creator>
                        <guid isPermaLink="true">https://community.zextras.com/forum/carbonio-setup/carbonio-ce-related-scripts/paged/3/#post-10682</guid>
                    </item>
				                    <item>
                        <title>RE: Carbonio CE Related Scripts</title>
                        <link>https://community.zextras.com/forum/carbonio-setup/carbonio-ce-related-scripts/paged/3/#post-10510</link>
                        <pubDate>Wed, 21 May 2025 09:45:27 +0000</pubDate>
                        <description><![CDATA[@deksar 
Hi,
Yes, you can migrate all IMAP folders (INBOX, Sent, Drafts, etc.) from your existing Dovecot &amp; Postfix server to Carbonio CE. Tools like imapsync are widely used for this ...]]></description>
                        <content:encoded><![CDATA[<p>@deksar </p>
<p>Hi,</p>
<p class="" data-start="173" data-end="476">Yes, you can migrate all IMAP folders (INBOX, Sent, Drafts, etc.) from your existing Dovecot &amp; Postfix server to Carbonio CE. Tools like imapsync are widely used for this purpose—they preserve folder structure and flags, as long as both ends support standard IMAP (which Carbonio CE does). Carbonio CE includes: Postfix as the Mail Transfer Agent (MTA), A native mailbox server (not Dovecot) to handle IMAP/POP3 operations. </p>
<p class="" data-start="833" data-end="1143">I suggest setting up a test environment and trying experiencing operations, sample mailbox migration using imapsync etc. That way, you can verify folder compatibility, test authentication, and get a feel for the process.</p>
<p data-start="833" data-end="1143"> </p>]]></content:encoded>
						                            <category domain="https://community.zextras.com/forum/carbonio-setup/">Install &amp; Setup</category>                        <dc:creator>Sharif</dc:creator>
                        <guid isPermaLink="true">https://community.zextras.com/forum/carbonio-setup/carbonio-ce-related-scripts/paged/3/#post-10510</guid>
                    </item>
				                    <item>
                        <title>RE: Carbonio CE Related Scripts</title>
                        <link>https://community.zextras.com/forum/carbonio-setup/carbonio-ce-related-scripts/paged/2/#post-10507</link>
                        <pubDate>Tue, 20 May 2025 21:52:39 +0000</pubDate>
                        <description><![CDATA[Dear Mr. @sharif thank you so much for your prompt reply, much appreciated!
I have a clearer picture now, many thanks!
I&#039;d like to ask, is it possible to move all IMAP folders including al...]]></description>
                        <content:encoded><![CDATA[<p>Dear Mr. @sharif thank you so much for your prompt reply, much appreciated!</p>
<p>I have a clearer picture now, many thanks!</p>
<p>I'd like to ask, is it possible to move all IMAP folders including all mails (like INBOX, Sent, etc) from a Dovecot&amp;Postfix mail server to Carbonio CE server?</p>
<p>I'd like to know which software come with Carbonio, like Dovecot and Postfix or Exim?</p>
<p>(Asking because before I proceed, I'd like to know details in terms of compatibility with the current mail server)</p>
<p>Thanks a lot!</p>]]></content:encoded>
						                            <category domain="https://community.zextras.com/forum/carbonio-setup/">Install &amp; Setup</category>                        <dc:creator>deksar</dc:creator>
                        <guid isPermaLink="true">https://community.zextras.com/forum/carbonio-setup/carbonio-ce-related-scripts/paged/2/#post-10507</guid>
                    </item>
				                    <item>
                        <title>RE: Carbonio CE Related Scripts</title>
                        <link>https://community.zextras.com/forum/carbonio-setup/carbonio-ce-related-scripts/paged/2/#post-10488</link>
                        <pubDate>Mon, 19 May 2025 08:05:30 +0000</pubDate>
                        <description><![CDATA[@deksar 
Hi,
Thanks for your feedback. This Fan made script was made long ago when instructions were not fully streamlined. But now as both manual and script based official instructions ar...]]></description>
                        <content:encoded><![CDATA[<p>@deksar </p>
<p>Hi,</p>
<p>Thanks for your feedback. This Fan made script was made long ago when instructions were not fully streamlined. But now as both manual and script based official instructions are up to date, I guess we should use more of those resources and possibly improve them. </p>
<p>As of now, the <a href="https://docs.zextras.com/carbonio-ce/html/_downloads/bed211d6fc1b9ca35f15be01eb9aa3fc/install_carbonio_ce_singleserver_ubuntu.sh" target="_blank" rel="noopener">official script</a> is way simpler and easy to use. With few basic steps your whole installation would be completed in shortest possible time, I believe.</p>
<p>Just to give you some heads up on using the official script:</p>
<ol>
<li>Configure Zextras Repository by following these <a href="https://docs.zextras.com/carbonio-ce/html/install/preliminary.html#configure-repositories" target="_blank" rel="noopener">instructions</a>.</li>
<li>Configure your server <em>hostname</em> and <em>/etc/hosts</em> file <a href="https://docs.zextras.com/carbonio-ce/html/install/preliminary.html#setting-hostname" target="_blank" rel="noopener">as follows</a>.</li>
<li>Download and execute the relevant script using this <a href="https://docs.zextras.com/carbonio-ce/html/install/scenarios/single-server-scenario.html#automatic-script-based-installation" target="_blank" rel="noopener">information</a>.</li>
</ol>
<p>And you are good to go !</p>
<p>Please let me know if you have any feedback about the official script/instructions.</p>
<p><strong>Note:</strong> Ubuntu 24.04LTS is not officially supported by Carbonio CE yet. But our teams are working to prepare Carbonio CE packages for Ubuntu 2404LTS. As soon as they are ready, we will let our users know.</p>
<p>Have a Good Day!</p>]]></content:encoded>
						                            <category domain="https://community.zextras.com/forum/carbonio-setup/">Install &amp; Setup</category>                        <dc:creator>Sharif</dc:creator>
                        <guid isPermaLink="true">https://community.zextras.com/forum/carbonio-setup/carbonio-ce-related-scripts/paged/2/#post-10488</guid>
                    </item>
				                    <item>
                        <title>RE: Carbonio CE Related Scripts</title>
                        <link>https://community.zextras.com/forum/carbonio-setup/carbonio-ce-related-scripts/paged/2/#post-10484</link>
                        <pubDate>Sat, 17 May 2025 13:01:17 +0000</pubDate>
                        <description><![CDATA[Hello, this is my first post, just to thank to Sir @sharif for his efforts on custom made script. Much appreciated.
However, could you please update the script according to the posts above ...]]></description>
                        <content:encoded><![CDATA[<p>Hello, this is my first post, just to thank to Sir @sharif for his efforts on custom made script. Much appreciated.</p>
<p>However, could you please update the script according to the posts above (fixing double hostname set functions and the rest) ?</p>
<p>My other question is; does this script support Ubuntu server 24 LTS?</p>
<p>Best wishes, regards!</p>]]></content:encoded>
						                            <category domain="https://community.zextras.com/forum/carbonio-setup/">Install &amp; Setup</category>                        <dc:creator>deksar</dc:creator>
                        <guid isPermaLink="true">https://community.zextras.com/forum/carbonio-setup/carbonio-ce-related-scripts/paged/2/#post-10484</guid>
                    </item>
							        </channel>
        </rss>
		