Fix several errors in mlmmj integration tutorials.
Thanks Rob Arends <rob _at_ arends _ com _ au> for the feedback.
This commit is contained in:
parent
8c07104d9e
commit
215cc29c0a
|
@ -51,7 +51,7 @@ a good idea to backup it now before you adding any new mailing lists.
|
|||
iRedMail by default. So we can install it directly:
|
||||
|
||||
```
|
||||
yum install mlmmj uwsgi uwsgi-plugin-python
|
||||
yum install mlmmj uwsgi uwsgi-plugin-python uwsgi-logger-syslog
|
||||
```
|
||||
|
||||
* On Debian/Ubuntu:
|
||||
|
@ -85,7 +85,7 @@ On Linux or OpenBSD:
|
|||
|
||||
```
|
||||
groupadd mlmmj
|
||||
useradd -m -d /var/vmail/mlmmj -s /sbin/nologin mlmmj
|
||||
useradd -m -g mlmmj -d /var/vmail/mlmmj -s /sbin/nologin mlmmj
|
||||
chown -R mlmmj:mlmmj /var/vmail/mlmmj
|
||||
chmod -R 0700 /var/vmail/mlmmj
|
||||
```
|
||||
|
@ -153,7 +153,7 @@ On Linux:
|
|||
```
|
||||
cd /usr/bin/
|
||||
wget https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/samples/mlmmj/mlmmj-amime-receive
|
||||
chown mlmmj:mlmmj mlmj-amime-receive
|
||||
chown mlmmj:mlmmj mlmmj-amime-receive
|
||||
chmod 0550 mlmmj-amime-receive
|
||||
perl -pi -e 's#PH_CMD_MLMMJ_RECEIVE#/usr/bin/mlmmj-receive#g' mlmmj-amime-receive
|
||||
perl -pi -e 's#PH_CMD_ALTERMIME#/usr/bin/altermime#g' mlmmj-amime-receive
|
||||
|
@ -164,7 +164,7 @@ On FreeBSD or OpenBSD:
|
|||
```
|
||||
cd /usr/local/bin/
|
||||
wget https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/samples/mlmmj/mlmmj-amime-receive
|
||||
chown mlmmj:mlmmj mlmj-amime-receive
|
||||
chown mlmmj:mlmmj mlmmj-amime-receive
|
||||
chmod 0550 mlmmj-amime-receive
|
||||
perl -pi -e 's#PH_CMD_MLMMJ_RECEIVE#/usr/local/bin/mlmmj-receive#g' mlmmj-amime-receive
|
||||
perl -pi -e 's#PH_CMD_ALTERMIME#/usr/local/bin/altermime#g' mlmmj-amime-receive
|
||||
|
@ -208,23 +208,25 @@ $policy_bank{'MLMMJ'} = {
|
|||
};
|
||||
```
|
||||
|
||||
Now restart Amavisd and Postfix servivce, mlmmj mailing list manager is now
|
||||
fully integrated. We will setup `mlmmjadmin` to make managing mailing lists easier.
|
||||
Now restart Amavisd and Postfix service, mlmmj mailing list manager is now
|
||||
fully integrated.
|
||||
|
||||
## Setup mlmmjadmin: a RESTful API server used to manage mlmmj mailing lists
|
||||
We will setup `mlmmjadmin` program to make managing mailing lists easier.
|
||||
|
||||
## Setup mlmmjadmin: RESTful API server used to manage mlmmj mailing lists
|
||||
|
||||
* Download the latest mlmmjadmin release: <https://github.com/iredmail/mlmmjadmin/releases>,
|
||||
upload to iRedMail server. We assume it's uploaded to `/root/` directory.
|
||||
and upload to iRedMail server. We assume it's uploaded to `/root/` directory.
|
||||
|
||||
!!! attention
|
||||
|
||||
We use `mlmmjadmin-1.0` for example below.
|
||||
We use `mlmmjadmin-1.0.tar.gz` for example below.
|
||||
|
||||
* Extract downloaded mlmmjadmin package to `/opt/` directory, and create a
|
||||
symbol link:
|
||||
|
||||
```
|
||||
tar xjf /root/mlmmjadmin-1.0.tar.bz2 -C /opt
|
||||
tar zxf /root/mlmmjadmin-1.0.tar.gz -C /opt
|
||||
ln -s /opt/mlmmjadmin-1.0 /opt/mlmmjadmin
|
||||
```
|
||||
|
||||
|
|
|
@ -43,17 +43,21 @@ databases.
|
|||
|
||||
## Install mlmmj package
|
||||
|
||||
!!! attention
|
||||
|
||||
Package `uwsgi` is required by the RESTful API server `mlmmjadmin`.
|
||||
|
||||
* On RHEL/CentOS, `mlmmj` is available in `EPEL` repo, and it's enabled in
|
||||
iRedMail by default. So we can install it directly:
|
||||
|
||||
```
|
||||
yum install mlmmj
|
||||
yum install mlmmj uwsgi uwsgi-plugin-python uwsgi-logger-syslog
|
||||
```
|
||||
|
||||
* On Debian/Ubuntu:
|
||||
|
||||
```
|
||||
apt-get install mlmmj
|
||||
apt-get install mlmmj uwsgi uwsgi-plugin-python
|
||||
```
|
||||
|
||||
* On FreeBSD:
|
||||
|
@ -61,6 +65,8 @@ apt-get install mlmmj
|
|||
```
|
||||
cd /usr/ports/mail/mlmmj
|
||||
make install clean
|
||||
cd /usr/ports/www/uwsgi
|
||||
make install clean
|
||||
```
|
||||
|
||||
* On OpenBSD:
|
||||
|
@ -78,7 +84,7 @@ On Linux or OpenBSD:
|
|||
|
||||
```
|
||||
groupadd mlmmj
|
||||
useradd -m -d /var/vmail/mlmmj -s /sbin/nologin mlmmj
|
||||
useradd -m -g mlmmj -d /var/vmail/mlmmj -s /sbin/nologin mlmmj
|
||||
chown -R mlmmj:mlmmj /var/vmail/mlmmj
|
||||
chmod -R 0700 /var/vmail/mlmmj
|
||||
```
|
||||
|
@ -175,7 +181,7 @@ On Linux:
|
|||
```
|
||||
cd /usr/bin/
|
||||
wget https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/samples/mlmmj/mlmmj-amime-receive
|
||||
chown mlmmj:mlmmj mlmj-amime-receive
|
||||
chown mlmmj:mlmmj mlmmj-amime-receive
|
||||
chmod 0550 mlmmj-amime-receive
|
||||
perl -pi -e 's#PH_CMD_MLMMJ_RECEIVE#/usr/bin/mlmmj-receive#g' mlmmj-amime-receive
|
||||
perl -pi -e 's#PH_CMD_ALTERMIME#/usr/bin/altermime#g' mlmmj-amime-receive
|
||||
|
@ -186,7 +192,7 @@ On FreeBSD or OpenBSD:
|
|||
```
|
||||
cd /usr/local/bin/
|
||||
wget https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/samples/mlmmj/mlmmj-amime-receive
|
||||
chown mlmmj:mlmmj mlmj-amime-receive
|
||||
chown mlmmj:mlmmj mlmmj-amime-receive
|
||||
chmod 0550 mlmmj-amime-receive
|
||||
perl -pi -e 's#PH_CMD_MLMMJ_RECEIVE#/usr/local/bin/mlmmj-receive#g' mlmmj-amime-receive
|
||||
perl -pi -e 's#PH_CMD_ALTERMIME#/usr/local/bin/altermime#g' mlmmj-amime-receive
|
||||
|
@ -230,7 +236,7 @@ $policy_bank{'MLMMJ'} = {
|
|||
};
|
||||
```
|
||||
|
||||
Now restart Amavisd and Postfix servivce, mlmmj mailing list manager is now
|
||||
Now restart Amavisd and Postfix service, mlmmj mailing list manager is now
|
||||
fully integrated.
|
||||
|
||||
We will setup `mlmmjadmin` program to make managing mailing lists easier.
|
||||
|
@ -242,13 +248,13 @@ We will setup `mlmmjadmin` program to make managing mailing lists easier.
|
|||
|
||||
!!! attention
|
||||
|
||||
We use `mlmmjadmin-1.0` for example below.
|
||||
We use `mlmmjadmin-1.0.tar.gz` for example below.
|
||||
|
||||
* Extract downloaded mlmmjadmin package to `/opt/` directory, and create a
|
||||
symbol link:
|
||||
|
||||
```
|
||||
tar xjf /root/mlmmjadmin-1.0.tar.bz2 -C /opt
|
||||
tar zxf /root/mlmmjadmin-1.0.tar.gz -C /opt
|
||||
ln -s /opt/mlmmjadmin-1.0 /opt/mlmmjadmin
|
||||
```
|
||||
|
||||
|
@ -344,7 +350,7 @@ MLMMJ_SKEL_DIR = '/usr/local/share/mlmmj/text.skel'
|
|||
#
|
||||
cp /opt/mlmmjadmin/rc_scripts/mlmmjadmin.rhel /etc/init.d/mlmmjadmin
|
||||
chmod 0644 /etc/init.d/mlmmjadmin
|
||||
chkconfig --level 345 on mlmmjadmin
|
||||
chkconfig --level 345 mlmmjadmin on
|
||||
|
||||
#
|
||||
# For RHEL/CentOS 7
|
||||
|
|
|
@ -43,17 +43,21 @@ databases.
|
|||
|
||||
## Install mlmmj package
|
||||
|
||||
!!! attention
|
||||
|
||||
Package `uwsgi` is required by the RESTful API server `mlmmjadmin`.
|
||||
|
||||
* On RHEL/CentOS, `mlmmj` is available in `EPEL` repo, and it's enabled in
|
||||
iRedMail by default. So we can install it directly:
|
||||
|
||||
```
|
||||
yum install mlmmj
|
||||
yum install mlmmj uwsgi uwsgi-plugin-python uwsgi-logger-syslog
|
||||
```
|
||||
|
||||
* On Debian/Ubuntu:
|
||||
|
||||
```
|
||||
apt-get install mlmmj
|
||||
apt-get install mlmmj uwsgi uwsgi-plugin-python
|
||||
```
|
||||
|
||||
* On FreeBSD:
|
||||
|
@ -61,9 +65,12 @@ apt-get install mlmmj
|
|||
```
|
||||
cd /usr/ports/mail/mlmmj
|
||||
make install clean
|
||||
cd /usr/ports/www/uwsgi
|
||||
make install clean
|
||||
```
|
||||
|
||||
* On OpenBSD:
|
||||
* On OpenBSD (iRedMail always installs `uwsgi` during installation, so no need
|
||||
to install it here):
|
||||
|
||||
```
|
||||
pkg_add mlmmj
|
||||
|
@ -78,7 +85,7 @@ On Linux or OpenBSD:
|
|||
|
||||
```
|
||||
groupadd mlmmj
|
||||
useradd -m -d /var/vmail/mlmmj -s /sbin/nologin mlmmj
|
||||
useradd -m -g mlmmj -d /var/vmail/mlmmj -s /sbin/nologin mlmmj
|
||||
chown -R mlmmj:mlmmj /var/vmail/mlmmj
|
||||
chmod -R 0700 /var/vmail/mlmmj
|
||||
```
|
||||
|
@ -176,7 +183,7 @@ On Linux:
|
|||
```
|
||||
cd /usr/bin/
|
||||
wget https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/samples/mlmmj/mlmmj-amime-receive
|
||||
chown mlmmj:mlmmj mlmj-amime-receive
|
||||
chown mlmmj:mlmmj mlmmj-amime-receive
|
||||
chmod 0550 mlmmj-amime-receive
|
||||
perl -pi -e 's#PH_CMD_MLMMJ_RECEIVE#/usr/bin/mlmmj-receive#g' mlmmj-amime-receive
|
||||
perl -pi -e 's#PH_CMD_ALTERMIME#/usr/bin/altermime#g' mlmmj-amime-receive
|
||||
|
@ -187,7 +194,7 @@ On FreeBSD or OpenBSD:
|
|||
```
|
||||
cd /usr/local/bin/
|
||||
wget https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/samples/mlmmj/mlmmj-amime-receive
|
||||
chown mlmmj:mlmmj mlmj-amime-receive
|
||||
chown mlmmj:mlmmj mlmmj-amime-receive
|
||||
chmod 0550 mlmmj-amime-receive
|
||||
perl -pi -e 's#PH_CMD_MLMMJ_RECEIVE#/usr/local/bin/mlmmj-receive#g' mlmmj-amime-receive
|
||||
perl -pi -e 's#PH_CMD_ALTERMIME#/usr/local/bin/altermime#g' mlmmj-amime-receive
|
||||
|
@ -231,7 +238,7 @@ $policy_bank{'MLMMJ'} = {
|
|||
};
|
||||
```
|
||||
|
||||
Now restart Amavisd and Postfix servivce, mlmmj mailing list manager is now
|
||||
Now restart Amavisd and Postfix service, mlmmj mailing list manager is now
|
||||
fully integrated.
|
||||
|
||||
We will setup `mlmmjadmin` program to make managing mailing lists easier.
|
||||
|
@ -243,13 +250,13 @@ We will setup `mlmmjadmin` program to make managing mailing lists easier.
|
|||
|
||||
!!! attention
|
||||
|
||||
We use `mlmmjadmin-1.0` for example below.
|
||||
We use `mlmmjadmin-1.0.tar.gz` for example below.
|
||||
|
||||
* Extract downloaded mlmmjadmin package to `/opt/` directory, and create a
|
||||
symbol link:
|
||||
|
||||
```
|
||||
tar xjf /root/mlmmjadmin-1.0.tar.bz2 -C /opt
|
||||
tar zxf /root/mlmmjadmin-1.0.tar.gz -C /opt
|
||||
ln -s /opt/mlmmjadmin-1.0 /opt/mlmmjadmin
|
||||
```
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
<li><a href="#create-required-system-account">Create required system account</a></li>
|
||||
<li><a href="#postfix-integration">Postfix integration</a></li>
|
||||
<li><a href="#amavisd-integration">Amavisd Integration</a></li>
|
||||
<li><a href="#setup-mlmmjadmin-a-restful-api-server-used-to-manage-mlmmj-mailing-lists">Setup mlmmjadmin: a RESTful API server used to manage mlmmj mailing lists</a></li>
|
||||
<li><a href="#setup-mlmmjadmin-restful-api-server-used-to-manage-mlmmj-mailing-lists">Setup mlmmjadmin: RESTful API server used to manage mlmmj mailing lists</a></li>
|
||||
<li><a href="#manage-mailing-lists-with-iredadmin-pro">Manage mailing lists with iRedAdmin-Pro</a></li>
|
||||
<li><a href="#manage-mailing-lists-with-mlmmjadmin-command-line-tool">Manage mailing lists with mlmmjadmin command line tool</a></li>
|
||||
<li><a href="#references">References</a></li>
|
||||
|
@ -76,7 +76,7 @@ a good idea to backup it now before you adding any new mailing lists.</p>
|
|||
<li>On RHEL/CentOS, <code>mlmmj</code> is available in <code>EPEL</code> repo, and it's enabled in
|
||||
iRedMail by default. So we can install it directly:</li>
|
||||
</ul>
|
||||
<pre><code>yum install mlmmj uwsgi uwsgi-plugin-python
|
||||
<pre><code>yum install mlmmj uwsgi uwsgi-plugin-python uwsgi-logger-syslog
|
||||
</code></pre>
|
||||
|
||||
<ul>
|
||||
|
@ -106,7 +106,7 @@ make install clean
|
|||
be stored under its home directory <code>/var/vmail/mlmmj</code>:</p>
|
||||
<p>On Linux or OpenBSD:</p>
|
||||
<pre><code>groupadd mlmmj
|
||||
useradd -m -d /var/vmail/mlmmj -s /sbin/nologin mlmmj
|
||||
useradd -m -g mlmmj -d /var/vmail/mlmmj -s /sbin/nologin mlmmj
|
||||
chown -R mlmmj:mlmmj /var/vmail/mlmmj
|
||||
chmod -R 0700 /var/vmail/mlmmj
|
||||
</code></pre>
|
||||
|
@ -172,7 +172,7 @@ it manually</p>
|
|||
<p>On Linux:</p>
|
||||
<pre><code>cd /usr/bin/
|
||||
wget https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/samples/mlmmj/mlmmj-amime-receive
|
||||
chown mlmmj:mlmmj mlmj-amime-receive
|
||||
chown mlmmj:mlmmj mlmmj-amime-receive
|
||||
chmod 0550 mlmmj-amime-receive
|
||||
perl -pi -e 's#PH_CMD_MLMMJ_RECEIVE#/usr/bin/mlmmj-receive#g' mlmmj-amime-receive
|
||||
perl -pi -e 's#PH_CMD_ALTERMIME#/usr/bin/altermime#g' mlmmj-amime-receive
|
||||
|
@ -181,7 +181,7 @@ perl -pi -e 's#PH_CMD_ALTERMIME#/usr/bin/altermime#g' mlmmj-amime-receive
|
|||
<p>On FreeBSD or OpenBSD:</p>
|
||||
<pre><code>cd /usr/local/bin/
|
||||
wget https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/samples/mlmmj/mlmmj-amime-receive
|
||||
chown mlmmj:mlmmj mlmj-amime-receive
|
||||
chown mlmmj:mlmmj mlmmj-amime-receive
|
||||
chmod 0550 mlmmj-amime-receive
|
||||
perl -pi -e 's#PH_CMD_MLMMJ_RECEIVE#/usr/local/bin/mlmmj-receive#g' mlmmj-amime-receive
|
||||
perl -pi -e 's#PH_CMD_ALTERMIME#/usr/local/bin/altermime#g' mlmmj-amime-receive
|
||||
|
@ -225,16 +225,17 @@ $policy_bank{'MLMMJ'} = {
|
|||
};
|
||||
</code></pre>
|
||||
|
||||
<p>Now restart Amavisd and Postfix servivce, mlmmj mailing list manager is now
|
||||
fully integrated. We will setup <code>mlmmjadmin</code> to make managing mailing lists easier.</p>
|
||||
<h2 id="setup-mlmmjadmin-a-restful-api-server-used-to-manage-mlmmj-mailing-lists">Setup mlmmjadmin: a RESTful API server used to manage mlmmj mailing lists</h2>
|
||||
<p>Now restart Amavisd and Postfix service, mlmmj mailing list manager is now
|
||||
fully integrated.</p>
|
||||
<p>We will setup <code>mlmmjadmin</code> program to make managing mailing lists easier.</p>
|
||||
<h2 id="setup-mlmmjadmin-restful-api-server-used-to-manage-mlmmj-mailing-lists">Setup mlmmjadmin: RESTful API server used to manage mlmmj mailing lists</h2>
|
||||
<ul>
|
||||
<li>
|
||||
<p>Download the latest mlmmjadmin release: <a href="https://github.com/iredmail/mlmmjadmin/releases">https://github.com/iredmail/mlmmjadmin/releases</a>,
|
||||
upload to iRedMail server. We assume it's uploaded to <code>/root/</code> directory.</p>
|
||||
and upload to iRedMail server. We assume it's uploaded to <code>/root/</code> directory.</p>
|
||||
<div class="admonition attention">
|
||||
<p class="admonition-title">Attention</p>
|
||||
<p>We use <code>mlmmjadmin-1.0</code> for example below.</p>
|
||||
<p>We use <code>mlmmjadmin-1.0.tar.gz</code> for example below.</p>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
|
@ -242,7 +243,7 @@ fully integrated. We will setup <code>mlmmjadmin</code> to make managing mailing
|
|||
symbol link:</p>
|
||||
</li>
|
||||
</ul>
|
||||
<pre><code>tar xjf /root/mlmmjadmin-1.0.tar.bz2 -C /opt
|
||||
<pre><code>tar zxf /root/mlmmjadmin-1.0.tar.gz -C /opt
|
||||
ln -s /opt/mlmmjadmin-1.0 /opt/mlmmjadmin
|
||||
</code></pre>
|
||||
|
||||
|
|
|
@ -67,17 +67,21 @@ a good idea to backup it now before you adding any new mailing lists.</p>
|
|||
<p>Please run command <code>bash /var/vmail/backup/backup_mysql.sh</code> to backup SQL
|
||||
databases.</p>
|
||||
<h2 id="install-mlmmj-package">Install mlmmj package</h2>
|
||||
<div class="admonition attention">
|
||||
<p class="admonition-title">Attention</p>
|
||||
<p>Package <code>uwsgi</code> is required by the RESTful API server <code>mlmmjadmin</code>.</p>
|
||||
</div>
|
||||
<ul>
|
||||
<li>On RHEL/CentOS, <code>mlmmj</code> is available in <code>EPEL</code> repo, and it's enabled in
|
||||
iRedMail by default. So we can install it directly:</li>
|
||||
</ul>
|
||||
<pre><code>yum install mlmmj
|
||||
<pre><code>yum install mlmmj uwsgi uwsgi-plugin-python uwsgi-logger-syslog
|
||||
</code></pre>
|
||||
|
||||
<ul>
|
||||
<li>On Debian/Ubuntu:</li>
|
||||
</ul>
|
||||
<pre><code>apt-get install mlmmj
|
||||
<pre><code>apt-get install mlmmj uwsgi uwsgi-plugin-python
|
||||
</code></pre>
|
||||
|
||||
<ul>
|
||||
|
@ -85,6 +89,8 @@ databases.</p>
|
|||
</ul>
|
||||
<pre><code>cd /usr/ports/mail/mlmmj
|
||||
make install clean
|
||||
cd /usr/ports/www/uwsgi
|
||||
make install clean
|
||||
</code></pre>
|
||||
|
||||
<ul>
|
||||
|
@ -98,7 +104,7 @@ make install clean
|
|||
be stored under its home directory <code>/var/vmail/mlmmj</code>:</p>
|
||||
<p>On Linux or OpenBSD:</p>
|
||||
<pre><code>groupadd mlmmj
|
||||
useradd -m -d /var/vmail/mlmmj -s /sbin/nologin mlmmj
|
||||
useradd -m -g mlmmj -d /var/vmail/mlmmj -s /sbin/nologin mlmmj
|
||||
chown -R mlmmj:mlmmj /var/vmail/mlmmj
|
||||
chmod -R 0700 /var/vmail/mlmmj
|
||||
</code></pre>
|
||||
|
@ -192,7 +198,7 @@ it manually</p>
|
|||
<p>On Linux:</p>
|
||||
<pre><code>cd /usr/bin/
|
||||
wget https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/samples/mlmmj/mlmmj-amime-receive
|
||||
chown mlmmj:mlmmj mlmj-amime-receive
|
||||
chown mlmmj:mlmmj mlmmj-amime-receive
|
||||
chmod 0550 mlmmj-amime-receive
|
||||
perl -pi -e 's#PH_CMD_MLMMJ_RECEIVE#/usr/bin/mlmmj-receive#g' mlmmj-amime-receive
|
||||
perl -pi -e 's#PH_CMD_ALTERMIME#/usr/bin/altermime#g' mlmmj-amime-receive
|
||||
|
@ -201,7 +207,7 @@ perl -pi -e 's#PH_CMD_ALTERMIME#/usr/bin/altermime#g' mlmmj-amime-receive
|
|||
<p>On FreeBSD or OpenBSD:</p>
|
||||
<pre><code>cd /usr/local/bin/
|
||||
wget https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/samples/mlmmj/mlmmj-amime-receive
|
||||
chown mlmmj:mlmmj mlmj-amime-receive
|
||||
chown mlmmj:mlmmj mlmmj-amime-receive
|
||||
chmod 0550 mlmmj-amime-receive
|
||||
perl -pi -e 's#PH_CMD_MLMMJ_RECEIVE#/usr/local/bin/mlmmj-receive#g' mlmmj-amime-receive
|
||||
perl -pi -e 's#PH_CMD_ALTERMIME#/usr/local/bin/altermime#g' mlmmj-amime-receive
|
||||
|
@ -245,7 +251,7 @@ $policy_bank{'MLMMJ'} = {
|
|||
};
|
||||
</code></pre>
|
||||
|
||||
<p>Now restart Amavisd and Postfix servivce, mlmmj mailing list manager is now
|
||||
<p>Now restart Amavisd and Postfix service, mlmmj mailing list manager is now
|
||||
fully integrated.</p>
|
||||
<p>We will setup <code>mlmmjadmin</code> program to make managing mailing lists easier.</p>
|
||||
<h2 id="setup-mlmmjadmin-restful-api-server-used-to-manage-mlmmj-mailing-lists">Setup mlmmjadmin: RESTful API server used to manage mlmmj mailing lists</h2>
|
||||
|
@ -255,7 +261,7 @@ fully integrated.</p>
|
|||
and upload to iRedMail server. We assume it's uploaded to <code>/root/</code> directory.</p>
|
||||
<div class="admonition attention">
|
||||
<p class="admonition-title">Attention</p>
|
||||
<p>We use <code>mlmmjadmin-1.0</code> for example below.</p>
|
||||
<p>We use <code>mlmmjadmin-1.0.tar.gz</code> for example below.</p>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
|
@ -263,7 +269,7 @@ fully integrated.</p>
|
|||
symbol link:</p>
|
||||
</li>
|
||||
</ul>
|
||||
<pre><code>tar xjf /root/mlmmjadmin-1.0.tar.bz2 -C /opt
|
||||
<pre><code>tar zxf /root/mlmmjadmin-1.0.tar.gz -C /opt
|
||||
ln -s /opt/mlmmjadmin-1.0 /opt/mlmmjadmin
|
||||
</code></pre>
|
||||
|
||||
|
@ -359,7 +365,7 @@ MLMMJ_DEFAULT_PROFILE_SETTINGS.update({'smtp_port': 10027})
|
|||
#
|
||||
cp /opt/mlmmjadmin/rc_scripts/mlmmjadmin.rhel /etc/init.d/mlmmjadmin
|
||||
chmod 0644 /etc/init.d/mlmmjadmin
|
||||
chkconfig --level 345 on mlmmjadmin
|
||||
chkconfig --level 345 mlmmjadmin on
|
||||
|
||||
#
|
||||
# For RHEL/CentOS 7
|
||||
|
|
|
@ -67,17 +67,21 @@ a good idea to backup it now before you adding any new mailing lists.</p>
|
|||
<p>Please run command <code>bash /var/vmail/backup/backup_pgsql.sh</code> to backup SQL
|
||||
databases.</p>
|
||||
<h2 id="install-mlmmj-package">Install mlmmj package</h2>
|
||||
<div class="admonition attention">
|
||||
<p class="admonition-title">Attention</p>
|
||||
<p>Package <code>uwsgi</code> is required by the RESTful API server <code>mlmmjadmin</code>.</p>
|
||||
</div>
|
||||
<ul>
|
||||
<li>On RHEL/CentOS, <code>mlmmj</code> is available in <code>EPEL</code> repo, and it's enabled in
|
||||
iRedMail by default. So we can install it directly:</li>
|
||||
</ul>
|
||||
<pre><code>yum install mlmmj
|
||||
<pre><code>yum install mlmmj uwsgi uwsgi-plugin-python uwsgi-logger-syslog
|
||||
</code></pre>
|
||||
|
||||
<ul>
|
||||
<li>On Debian/Ubuntu:</li>
|
||||
</ul>
|
||||
<pre><code>apt-get install mlmmj
|
||||
<pre><code>apt-get install mlmmj uwsgi uwsgi-plugin-python
|
||||
</code></pre>
|
||||
|
||||
<ul>
|
||||
|
@ -85,10 +89,13 @@ databases.</p>
|
|||
</ul>
|
||||
<pre><code>cd /usr/ports/mail/mlmmj
|
||||
make install clean
|
||||
cd /usr/ports/www/uwsgi
|
||||
make install clean
|
||||
</code></pre>
|
||||
|
||||
<ul>
|
||||
<li>On OpenBSD:</li>
|
||||
<li>On OpenBSD (iRedMail always installs <code>uwsgi</code> during installation, so no need
|
||||
to install it here):</li>
|
||||
</ul>
|
||||
<pre><code>pkg_add mlmmj
|
||||
</code></pre>
|
||||
|
@ -98,7 +105,7 @@ make install clean
|
|||
be stored under its home directory <code>/var/vmail/mlmmj</code>:</p>
|
||||
<p>On Linux or OpenBSD:</p>
|
||||
<pre><code>groupadd mlmmj
|
||||
useradd -m -d /var/vmail/mlmmj -s /sbin/nologin mlmmj
|
||||
useradd -m -g mlmmj -d /var/vmail/mlmmj -s /sbin/nologin mlmmj
|
||||
chown -R mlmmj:mlmmj /var/vmail/mlmmj
|
||||
chmod -R 0700 /var/vmail/mlmmj
|
||||
</code></pre>
|
||||
|
@ -193,7 +200,7 @@ it manually</p>
|
|||
<p>On Linux:</p>
|
||||
<pre><code>cd /usr/bin/
|
||||
wget https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/samples/mlmmj/mlmmj-amime-receive
|
||||
chown mlmmj:mlmmj mlmj-amime-receive
|
||||
chown mlmmj:mlmmj mlmmj-amime-receive
|
||||
chmod 0550 mlmmj-amime-receive
|
||||
perl -pi -e 's#PH_CMD_MLMMJ_RECEIVE#/usr/bin/mlmmj-receive#g' mlmmj-amime-receive
|
||||
perl -pi -e 's#PH_CMD_ALTERMIME#/usr/bin/altermime#g' mlmmj-amime-receive
|
||||
|
@ -202,7 +209,7 @@ perl -pi -e 's#PH_CMD_ALTERMIME#/usr/bin/altermime#g' mlmmj-amime-receive
|
|||
<p>On FreeBSD or OpenBSD:</p>
|
||||
<pre><code>cd /usr/local/bin/
|
||||
wget https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/samples/mlmmj/mlmmj-amime-receive
|
||||
chown mlmmj:mlmmj mlmj-amime-receive
|
||||
chown mlmmj:mlmmj mlmmj-amime-receive
|
||||
chmod 0550 mlmmj-amime-receive
|
||||
perl -pi -e 's#PH_CMD_MLMMJ_RECEIVE#/usr/local/bin/mlmmj-receive#g' mlmmj-amime-receive
|
||||
perl -pi -e 's#PH_CMD_ALTERMIME#/usr/local/bin/altermime#g' mlmmj-amime-receive
|
||||
|
@ -246,7 +253,7 @@ $policy_bank{'MLMMJ'} = {
|
|||
};
|
||||
</code></pre>
|
||||
|
||||
<p>Now restart Amavisd and Postfix servivce, mlmmj mailing list manager is now
|
||||
<p>Now restart Amavisd and Postfix service, mlmmj mailing list manager is now
|
||||
fully integrated.</p>
|
||||
<p>We will setup <code>mlmmjadmin</code> program to make managing mailing lists easier.</p>
|
||||
<h2 id="setup-mlmmjadmin-restful-api-server-used-to-manage-mlmmj-mailing-lists">Setup mlmmjadmin: RESTful API server used to manage mlmmj mailing lists</h2>
|
||||
|
@ -256,7 +263,7 @@ fully integrated.</p>
|
|||
and upload to iRedMail server. We assume it's uploaded to <code>/root/</code> directory.</p>
|
||||
<div class="admonition attention">
|
||||
<p class="admonition-title">Attention</p>
|
||||
<p>We use <code>mlmmjadmin-1.0</code> for example below.</p>
|
||||
<p>We use <code>mlmmjadmin-1.0.tar.gz</code> for example below.</p>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
|
@ -264,7 +271,7 @@ fully integrated.</p>
|
|||
symbol link:</p>
|
||||
</li>
|
||||
</ul>
|
||||
<pre><code>tar xjf /root/mlmmjadmin-1.0.tar.bz2 -C /opt
|
||||
<pre><code>tar zxf /root/mlmmjadmin-1.0.tar.gz -C /opt
|
||||
ln -s /opt/mlmmjadmin-1.0 /opt/mlmmjadmin
|
||||
</code></pre>
|
||||
|
||||
|
|
Loading…
Reference in New Issue