Replace bitbucket.org by github.com, with tagged version in url to prevent dead links/files.

This commit is contained in:
Zhang Huangbin 2019-12-09 11:38:29 +08:00
parent aa632afa6f
commit 37164853d9
68 changed files with 196 additions and 686 deletions

View File

@ -18,7 +18,7 @@ mailboxes with tool like `rsync` or other backup tools.
Mail accounts are stored in SQL/LDAP database. iRedMail provides shell scripts
to backup SQL/LDAP databases, you can find them in downloaded iRedMail release,
or find them in [iRedMail source code repository](https://bitbucket.org/zhb/iredmail/src/default/iRedMail/tools/):
or find them in [iRedMail source code repository](https://github.com/iredmail/iRedMail/tree/master/tools):
* `iRedMail-[VERSION]/tools/backup_openldap.sh`: used to backup OpenLDAP data.
* `iRedMail-[VERSION]/tools/backup_ldapd.sh`: used to backup OpenBSD ldapd(8).
@ -335,7 +335,7 @@ by following step below: [After LDAP Restore](#after-ldap-restore).
If you're restoring from an old iRedMail release, you need to add missing LDAP
attribute/values, which are introduced in new iRedMail releases, by running
Python scripts below: <https://bitbucket.org/zhb/iredmail/src/default/extra/update/>
Python scripts below: <https://github.com/iredmail/iRedMail/tree/master/update/ldap>
For example:

View File

@ -72,9 +72,8 @@ the limit of either Postfix setting or iRedAPD throttle setting, the email will
be rejected.
You can set the throttle with iRedAdmin-Pro, or with SQL command tool, for more
details, please check plugin source file, it's detailed with examples and
explanation: [Throttle plugin](https://bitbucket.org/zhb/iredapd/src/default/plugins/throttle.py).
details, please check plugin source file, it's documented with examples and
explanation: [Throttle plugin](https://github.com/iredmail/iRedAPD/blob/master/plugins/throttle.py).
If you have Roundcube webmail, please change two more settings:

View File

@ -11,7 +11,7 @@ service.
iRedMail ships a script to enable postscreen. You can enable it with steps below:
1. Download script `enable_postscreen.sh` from [iRedMail source code
repository](https://bitbucket.org/zhb/iredmail/src/default/iRedMail/tools/?at=default)
repository](https://github.com/iredmail/iRedMail/blob/1.0/tools/enable_postscreen.sh).
1. Upload this script to your iRedMail server, then execute it to enable
postscreen service:

View File

@ -13,7 +13,7 @@ iRedAPD is a simple Postfix policy server, written in Python, with plugin
support. It listens on `127.0.0.1:7777` by default, and runs as a low-privileged
user `iredapd`.
Source code is hosted on [BitBucket](https://bitbucket.org/zhb/iredapd/).
Source code is hosted on [GitHub](https://github.com/iredmail/iRedAPD).
## How to disable iRedAPD service

View File

@ -8,7 +8,7 @@ if you chose `/var/vmail` to store mailboxes during iRedMail installation.
If you have a custom mailbox storage directory, the sample sieve rule file
should be `sieve/dovecot.sieve.sample` under that directory. If you cannot
find it, you can still download one from iRedMail project:
[here](https://bitbucket.org/zhb/iredmail/src/default/iRedMail/samples/dovecot/dovecot.sieve)
[here](https://github.com/iredmail/iRedMail/blob/1.0/samples/dovecot/dovecot.sieve).
This file must be owned by user `vmail` and group `vmail`, permission `0500`.

View File

@ -166,7 +166,7 @@ On Linux:
```
cd /usr/bin/
wget https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/samples/mlmmj/mlmmj-amime-receive
wget https://github.com/iredmail/iRedMail/raw/1.0/samples/mlmmj/mlmmj-amime-receive
chown mlmmj:mlmmj mlmmj-amime-receive
chmod 0550 mlmmj-amime-receive
```
@ -175,7 +175,7 @@ On FreeBSD or OpenBSD:
```
cd /usr/local/bin/
wget https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/samples/mlmmj/mlmmj-amime-receive
wget https://github.com/iredmail/iRedMail/raw/1.0/samples/mlmmj/mlmmj-amime-receive
chown mlmmj:mlmmj mlmmj-amime-receive
chmod 0550 mlmmj-amime-receive
```

View File

@ -184,7 +184,7 @@ On Linux:
```
cd /usr/bin/
wget https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/samples/mlmmj/mlmmj-amime-receive
wget https://github.com/iredmail/iRedMail/raw/1.0/samples/mlmmj/mlmmj-amime-receive
chown mlmmj:mlmmj mlmmj-amime-receive
chmod 0550 mlmmj-amime-receive
```
@ -193,7 +193,7 @@ On FreeBSD or OpenBSD:
```
cd /usr/local/bin/
wget https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/samples/mlmmj/mlmmj-amime-receive
wget https://github.com/iredmail/iRedMail/raw/1.0/samples/mlmmj/mlmmj-amime-receive
chown mlmmj:mlmmj mlmmj-amime-receive
chmod 0550 mlmmj-amime-receive
```

View File

@ -185,7 +185,7 @@ On Linux:
```
cd /usr/bin/
wget https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/samples/mlmmj/mlmmj-amime-receive
wget https://github.com/iredmail/iRedMail/raw/1.0/samples/mlmmj/mlmmj-amime-receive
chown mlmmj:mlmmj mlmmj-amime-receive
chmod 0550 mlmmj-amime-receive
```
@ -194,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
wget https://github.com/iredmail/iRedMail/raw/1.0/samples/mlmmj/mlmmj-amime-receive
chown mlmmj:mlmmj mlmmj-amime-receive
chmod 0550 mlmmj-amime-receive
```

View File

@ -29,7 +29,7 @@ make install clean
Main config file of netdata is `/usr/local/etc/netdata/netdata.conf`, it
contains many parameters with detailed comments. Here's the
[config file](https://bitbucket.org/zhb/iredmail/src/default/iRedMail/samples/netdata/netdata.conf)
[config file](https://github.com/iredmail/iRedMail/blob/1.0/samples/netdata/netdata.conf)
used by iRedMail:
* It binds to address `127.0.0.1` and port `19999` by default. Since it doesn't

View File

@ -68,7 +68,7 @@ config file, so there's not much we need to do after the package installation.
Main config file of netdata is `/etc/netdata/netdata.conf`, it contains many
parameters with detailed comments. Here's the
[config file](https://bitbucket.org/zhb/iredmail/src/default/iRedMail/samples/netdata/netdata.conf)
[config file](https://github.com/iredmail/iRedMail/blob/1.0/samples/netdata/netdata.conf)
used by iRedMail:
* It binds to address `127.0.0.1` and port `19999` by default. Since it doesn't

View File

@ -1,229 +0,0 @@
# Install Pure-FTPd with OpenLDAP backend on RHEL/CentOS
[TOC]
## Install Pure-FTPd
Install PureFTPD from EPEL yum repo:
```
# yum install pure-ftpd
```
## Use a proper LDAP bind dn/password to query accounts
iRedMail generates a read-only LDAP bind dn `cn=vmail,dc=xxx,dc=xxx` during
installation, so it's perfect to query user accounts with this dn.
You can find the full dn and password in `/etc/postfix/ldap/catchall_maps.cf`:
```
# grep 'bind_' /etc/postfix/ldap/catchall_maps.cf
bind_dn = cn=vmail,dc=example,dc=com
bind_pw = InYTi8qGjamTb6Me2ESwbb6rxQUs5y
```
## Configure the LDAP setting for PureFTPD
* Open `/etc/pure-ftpd/pureftpd-ldap.conf` and update parameters below:
```
LDAPServer localhost
LDAPPort 389
LDAPBaseDN o=domains,dc=example,dc=com
LDAPBindDN cn=vmail,dc=example,dc=com
LDAPBindPW InYTi8qGjamTb6Me2ESwbb6rxQUs5y # cn=vmail password
LDAPDefaultUID 2000 # <- UID of `vmail` user.
LDAPDefaultGID 2000 # <- GID of `vmail` user.
LDAPFilter (&(objectClass=PureFTPdUser)(mail=\L)(FTPStatus=enabled))
LDAPHomeDir FTPHomeDir # <- New LDAP attribute, we will add it later.
LDAPVersion 3
```
## Config OpenLDAP
* Get the schema modified by iredmail, it adds a new attribute `FTPHomeDir` to
store per-user FTP home directory. Default schema uses `homeDirectory`.
```
# wget https://bitbucket.org/zhb/iredmail/raw/0.9.9/extra/samples/pureftpd.schema
# mv pureftpd.schema /etc/openldap/schema/
```
* Update `/etc/openldap/slapd.conf`, include `pureftpd.schema` after `iredmail.schema`:
```
include /etc/openldap/schema/iredmail.schema
include /etc/openldap/schema/pureftpd.schema # <-- Add this line.
```
* Open `/etc/openldap/slapd.conf`, append required indexes for attributes
defined in `pureftpd.schema`:
```
# Indexes for Pure-FTPd LDAP attributes.
index FTPQuotaFiles,FTPQuotaMBytes eq,pres
index FTPUploadRatio,FTPDownloadRatio eq,pres
index FTPUploadBandwidth,FTPDownloadBandwidth eq,pres
index FTPStatus,FTPuid,FTPgid,FTPHomeDir eq,pres
```
## Create FTP Home Directory
We're going to store all FTP data under `/home/ftp/` directory, so let's create
`/home/ftp/` first, directory owner MUST be `root` user.
```
# mkdir /home/ftp/
# ls -dl /home/ftp
drwxr-xr-x 3 root root 4096 Jun 7 20:18 /home/ftp/
```
## Restart OpenLDAP and Pure-FTPD Service
Restart Pure-FTPd and OpenLDAP services:
```
# /etc/init.d/ldap restart
# /etc/init.d/pure-ftpd restart
# netstat -ntlp | grep pure-ftpd
tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 2062/pure-ftpd (SERVER)
tcp 0 0 :::21 :::* LISTEN 2062/pure-ftpd (SERVER)
```
## Add LDAP FTP attributes and values for new user
With script shipped in iRedMail, you can quickly create NEW mail user which
has pureftpd service support.
* Open file `tools/create_mail_user_OpenLDAP.sh` under your iRedMail directory
(e.g. `/root/iRedMail-0.9.4/tools/create_mail_user_OpenLDAP.sh`), update
paraemters below with correct values:
```
LDAP_SUFFIX="dc=example,dc=com" # <- Change the LDAP suffix
BINDPW='passwd' # <- Password for the bind dn `cn=Manager,dc=example,dc=com`
PUREFTPD_INTEGRATION='YES' # <- Set to 'YES' to enable the pureftp inteegration
FTP_STORAGE_BASE_DIRECTORY='/home/ftp' # <- Change it to the ftp home directory
```
* Run the script to create a new user `user1@example.com`. The default
password is same as user name (`user1`) by default.
```
# bash create_mail_user_OpenLDAP.sh example.com user1
adding new entry "ou=Users,domainName=example.com,o=domains,dc=example,dc=com"
ldapadd: Already exists (68)
adding new entry "ou=Groups,domainName=example.com,o=domains,dc=example,dc=com"
ldapadd: Already exists (68)
adding new entry "ou=Aliases,domainName=example.com,o=domains,dc=example,dc=com"
ldapadd: Already exists (68)
adding new entry "mail=user1@example.com,ou=Users,domainName=example.com,o=domains,dc=example,dc=com"
```
You can now login to both webmail and FTP service as this user.
## Configure iptables
iRedMail doesn't open port 20 and 21 by default, you must open them first.
* Open `/etc/sysconfig/iptables` and set correct values:
```
-A INPUT -p tcp --dport 20 -j ACCEPT
-A INPUT -p tcp --dport 21 -j ACCEPT
```
* Restart the iptables service
```
# service iptables restart
```
## Testing
You can use windows FTP client or Linux ftp client (e.g. command line ftp
client `lftp` or GUI client [`FileZilla`](https://filezilla-project.org)) for
testing.
We use `lftp` for testing below:
```
$ lftp localhost
localhost:~> debug 4
localhost:~> login user1@example.com user1 # <-- input the username and password
user1@example.com@localhost:~> ls
---- Connecting to localhost (127.0.0.1) port 21
<--- 220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
<--- 220-You are user number 1 of 50 allowed.
<--- 220-Local time is now 16:25. Server port: 21.
<--- 220-IPv6 connections are also welcome on this server.
<--- 220 You will be disconnected after 15 minutes of inactivity.
<--- 211-Extensions supported:
<--- EPRT
<--- IDLE
<--- MDTM
<--- SIZE
<--- REST STREAM
<--- MLST type*;size*;sizd*;modify*;UNIX.mode*;UNIX.uid*;UNIX.gid*;unique*;
<--- MLSD
<--- ESTP
<--- PASV
<--- EPSV
<--- SPSV
<--- ESTA
<--- AUTH TLS
<--- PBSZ
<--- PROT
<--- UTF8
<--- 211 End.
<--- 500 This security scheme is not implemented
<--- 200 OK, UTF-8 enabled
<--- 200 MLST OPTS type;size;sizd;modify;UNIX.mode;UNIX.uid;UNIX.gid;unique;
<--- 331 User user1@example.com OK. Password required
<--- 230-Your bandwidth usage is restricted
<--- 230-User user1@example.com has group access to: vmail
<--- 230-You must respect a 1:5 (UL/DL) ratio
<--- 230-OK. Current restricted directory is /
<--- 230-0 files used (0%) - authorized: 50 files
<--- 230 0 Kbytes used (0%) - authorized: 10240 Kb
<--- 257 "/" is your current location
<--- 227 Entering Passive Mode (127,0,0,1,32,58)
<--- 150 Accepted data connection
drwxr-xr-x 2 500 vmail 4096 Jun 10 16:16 .
drwxr-xr-x 2 500 vmail 4096 Jun 10 16:16 ..
-rw------- 1 500 vmail 0 Jun 10 16:16 .ftpquota
```
## Troubleshooting
Enable verbose log in pure-ftpd
* Open `/etc/pure-ftpd/pure-ftpd.conf` and set correct values:
```
VerboseLog yes # <-- change from no to yes
```
* Open `/etc/rsyslog.conf` and set correct values:
```
ftp.* -/var/log/pureftpd.log # <-- Add entry
```
* Restart services
```
# service pure-ftpd restart
# service rsyslog restart
```
Monitor `/var/log/pureftpd.log` for troubleshooting:
```
# tail -0f /var/log/pureftpd.log
```
If you need to debug OpenLDAP, please refer to another document: [Debug OpenLDAP](./debug.openldap.html).

View File

@ -80,7 +80,7 @@ With below config file, SOGo will listen on address `127.0.0.1`, port `20000`.
!!! warning
Sample config file below may be out of date, please check the [latest one
in iRedMail source code repository](https://bitbucket.org/zhb/iredmail/src/default/iRedMail/samples/sogo/sogo.conf).
in iRedMail source code repository](https://github.com/iredmail/iRedMail/blob/1.0/samples/sogo/sogo.conf).
```
{

View File

@ -73,7 +73,7 @@ With below config file, SOGo will listen on address `127.0.0.1`, port `20000`.
!!! note
Sample config file below may be out of date, please check the [latest one
in iRedMail source code repository](https://bitbucket.org/zhb/iredmail/src/default/iRedMail/samples/sogo/sogo.conf).
in iRedMail source code repository](https://github.com/iredmail/iRedMail/blob/1.0/samples/sogo/sogo.conf).
```
{

View File

@ -56,7 +56,9 @@ Normally, LDAP data can be exported into LDIF format. Here's backup/restore proc
Notes:
* There might be some changes in LDAP schema, please find scripts [here](https://bitbucket.org/zhb/iredmail/src/default/extra/update/) to apply all required changes.
* There might be some changes in LDAP schema, please find scripts
[here](https://github.com/iredmail/iRedMail/tree/master/update/ldap) to apply
all required changes.
* Here are all [upgrade tutorials for iRedMail](https://docs.iredmail.org/iredmail.releases.html).
## MySQL/PostgreSQL: Migrate mail accounts

View File

@ -8,19 +8,17 @@ Name | Comment
--- |---
[Postfix](http://www.postfix.org) | Mail Transfer Agent (MTA)
[Dovecot](http://www.dovecot.org) | POP3, IMAP and Managesieve server
[Apache](http://httpd.apache.org), [Nginx](http://nginx.org) | Web server
[Nginx](http://www.nginx.org), [Nginx](http://nginx.org) | Web server
[OpenLDAP](http://www.openldap.org), [ldapd(8)](http://www.openbsd.org/cgi-bin/man.cgi/OpenBSD-current/man8/ldapd.8?query=ldapd&arch=i386) | LDAP server, used for storing mail accounts (optional)
[MySQL](http://www.mysql.com), [MariaDB](https://mariadb.org), [PostgreSQL](http://www.postgresql.org) | SQL server used to store application data. Could be used to store mail accounts too.
[mlmmj](http://mlmmj.org) | Mailing list manager. Shipped in iRedMail-0.9.8 and later releases.
[Amavisd-new](http://www.amavis.org) | Interface between Postfix and SpamAssassin, ClamAV.
[SpamAssassin](http://spamassassin.apache.org) | Content-based spam scanner
[ClamAV](http://www.clamav.net/) | Virus scanner
[Roundcube](http://roundcube.net) | Webmail (PHP)
[Roundcube webmail](http://roundcube.net) | Webmail (PHP)
[SOGo Groupware](http://sogo.nu) | A groupware which provides calendar (CalDAV), contact (CardDAV), tasks and ActiveSync services
[Fail2ban](http://www.fail2ban.org) | Scans log files and bans IPs that show the malicious signs
[Awstats](http://www.awstats.org) | Apache and Postfix log analyzer
[iRedAPD](https://bitbucket.org/zhb/iredapd/) | A simple postfix policy server developed by iRedMail team, with SRS (Sender Rewrite Scheme) support.
<strike>[Cluebringer](http://www.policyd.org)</strike> | <strike>A postfix policy server. Deprecated since iRedMail-0.9.3.</strike>
[iRedAPD](https://github.com/iredmail/iRedAPD/) | A simple postfix policy server developed by iRedMail team, with SRS (Sender Rewrite Scheme) support.
## The Big Picture

View File

@ -142,7 +142,7 @@ We need to add new ldap attribute/value pairs for existing mail users.
```
cd /root/
wget https://bitbucket.org/zhb/iredmail/raw/default/extra/update/update-ldap-dovecot-2.3.py
wget https://github.com/iredmail/iRedMail/raw/1.0/update/ldap/update-ldap-dovecot-2.3.py
```
* Open downloaded file `update-ldap-dovecot-2.3.py`, set LDAP server

View File

@ -216,7 +216,7 @@ attribute 'enabledService' for mail user.
```
# cd /root/
# wget https://bitbucket.org/zhb/iredmail/raw/f0e7e84c4b8a/extra/update/updateLDAPValues_074_to_080.py
# wget https://github.com/iredmail/iRedMail/raw/1.0/update/ldap/updateLDAPValues_074_to_080.py
```
* Open `updateLDAPValues_074_to_080.py`, config LDAP server related settings in

View File

@ -194,7 +194,7 @@ Below steps are used to add it for all mail users.
* Download python script used to adding missing values.
```
# cd /root/
# wget https://bitbucket.org/zhb/iredmail/raw/cb7d2492563d/extra/update/updateLDAPValues_080_to_081.py
# wget https://github.com/iredmail/iRedMail/raw/1.0/update/ldap/updateLDAPValues_080_to_081.py
```
* Open `updateLDAPValues_080_to_081.py`, config LDAP server related settings in

View File

@ -140,7 +140,7 @@ Here we go:
```
# cd /tmp
# wget https://bitbucket.org/zhb/iredmail/raw/a4d8b730d147/iRedMail/samples/iredmail/iredmail.schema
# wget https://github.com/iredmail/iRedMail/raw/1.0/samples/iredmail/iredmail.schema
# cd /etc/openldap/schema/
# cp iredmail.schema iredmail.schema.bak
@ -152,7 +152,7 @@ Here we go:
* On Debian/Ubuntu:
```
# cd /tmp
# wget https://bitbucket.org/zhb/iredmail/raw/a4d8b730d147/iRedMail/samples/iredmail/iredmail.schema
# wget https://github.com/iredmail/iRedMail/raw/1.0/samples/iredmail/iredmail.schema
# cd /etc/ldap/schema/
# cp iredmail.schema iredmail.schema.bak
@ -164,7 +164,7 @@ Here we go:
* On FreeBSD:
```
# cd /tmp
# wget https://bitbucket.org/zhb/iredmail/raw/a4d8b730d147/iRedMail/samples/iredmail/iredmail.schema
# wget https://github.com/iredmail/iRedMail/raw/1.0/samples/iredmail/iredmail.schema
# cd /usr/local/etc/openldap/schema/
# cp iredmail.schema iredmail.schema.bak

View File

@ -86,7 +86,7 @@ Here we go:
```
# cd /tmp
# wget https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/samples/iredmail/iredmail.schema
# wget https://github.com/iredmail/iRedMail/raw/1.0/samples/iredmail/iredmail.schema
# cd /etc/openldap/schema/
# cp iredmail.schema iredmail.schema.bak
@ -99,7 +99,7 @@ Here we go:
```
# cd /tmp
# wget https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/samples/iredmail/iredmail.schema
# wget https://github.com/iredmail/iRedMail/raw/1.0/samples/iredmail/iredmail.schema
# cd /etc/ldap/schema/
# cp iredmail.schema iredmail.schema.bak
@ -112,7 +112,7 @@ Here we go:
```
# cd /tmp
# wget https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/samples/iredmail/iredmail.schema
# wget https://github.com/iredmail/iRedMail/raw/1.0/samples/iredmail/iredmail.schema
# cd /usr/local/etc/openldap/schema/
# cp iredmail.schema iredmail.schema.bak
@ -127,7 +127,7 @@ Here we go:
```
# cd /root/
# wget https://bitbucket.org/zhb/iredmail/raw/default/extra/update/updateLDAPValues_083_to_084.py
# wget https://github.com/iredmail/iRedMail/raw/1.0/update/ldap/updateLDAPValues_083_to_084.py
```
Open downloaded file `updateLDAPValues_083_to_084.py`, set LDAP server related

View File

@ -72,7 +72,7 @@ Here we go:
```
# cd /tmp
# wget https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/samples/iredmail/iredmail.schema
# wget https://github.com/iredmail/iRedMail/raw/1.0/samples/iredmail/iredmail.schema
# cd /etc/openldap/schema/
# cp iredmail.schema iredmail.schema.bak
@ -84,7 +84,7 @@ Here we go:
* On Debian/Ubuntu:
```
# cd /tmp
# wget https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/samples/iredmail/iredmail.schema
# wget https://github.com/iredmail/iRedMail/raw/1.0/samples/iredmail/iredmail.schema
# cd /etc/ldap/schema/
# cp iredmail.schema iredmail.schema.bak
@ -97,7 +97,7 @@ Here we go:
```
# cd /tmp
# wget https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/samples/iredmail/iredmail.schema
# wget https://github.com/iredmail/iRedMail/raw/1.0/samples/iredmail/iredmail.schema
# cd /usr/local/etc/openldap/schema/
# cp iredmail.schema iredmail.schema.bak

View File

@ -96,8 +96,8 @@ to finish this in one step.
Please download below two SQL files shipped in iRedMail-0.8.6, and save it as
file /root/extra.sql, and /root/column_character_set.mysql:
* https://bitbucket.org/zhb/iredmail/raw/4d7b14fc40bb2467fb4efcc4ce08ac9fc037224c/iRedMail/samples/cluebringer/extra.sql
* https://bitbucket.org/zhb/iredmail/raw/4d7b14fc40bb2467fb4efcc4ce08ac9fc037224c/iRedMail/samples/cluebringer/column_character_set.mysql
* https://github.com/iredmail/iRedMail/raw/0.8.6/iRedMail/samples/cluebringer/extra.sql
* https://github.com/iredmail/iRedMail/raw/0.8.6/iRedMail/samples/cluebringer/column_character_set.mysql
For MySQL, please login to MySQL server as `root` user and import this sql file:

View File

@ -289,7 +289,7 @@ We will add one new LDAP attribute/value pair for existing mail users:
```
# cd /root/
# wget https://bitbucket.org/zhb/iredmail/raw/default/extra/update/updateLDAPValues_086_to_087.py
# wget https://github.com/iredmail/iRedMail/raw/1.0/update/ldap/updateLDAPValues_086_to_087.py
```
* Open downloaded file `updateLDAPValues_086_to_087.py`, set LDAP server

View File

@ -305,7 +305,7 @@ We will add new LDAP attribute/value pair for existing mail users:
```
# cd /root/
# wget https://bitbucket.org/zhb/iredmail/raw/default/extra/update/updateLDAPValues_087_to_090.py
# wget https://github.com/iredmail/iRedMail/raw/1.0/update/ldap/updateLDAPValues_087_to_090.py
```
* Open downloaded file `updateLDAPValues_087_to_090.py`, set LDAP server related

View File

@ -439,7 +439,7 @@ Here we go:
```
# cd /tmp
# wget https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/samples/iredmail/iredmail.schema
# wget https://github.com/iredmail/iRedMail/raw/1.0/samples/iredmail/iredmail.schema
# cd /etc/openldap/schema/
# cp iredmail.schema iredmail.schema.bak
@ -451,7 +451,7 @@ Here we go:
* On Debian/Ubuntu:
```
# cd /tmp
# wget https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/samples/iredmail/iredmail.schema
# wget https://github.com/iredmail/iRedMail/raw/1.0/samples/iredmail/iredmail.schema
# cd /etc/ldap/schema/
# cp iredmail.schema iredmail.schema.bak
@ -464,7 +464,7 @@ Here we go:
```
# cd /tmp
# wget https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/samples/iredmail/iredmail.schema
# wget https://github.com/iredmail/iRedMail/raw/1.0/samples/iredmail/iredmail.schema
# cd /usr/local/etc/openldap/schema/
# cp iredmail.schema iredmail.schema.bak
@ -537,7 +537,7 @@ greylisting on them is helpless.
```
# cd /tmp
# wget https://bitbucket.org/zhb/iredmail/raw/40b98d7dde0178d54498e170c8b5165c0316dc96/iRedMail/samples/cluebringer/greylisting-whitelist.sql
# wget https://github.com/iredmail/iRedMail/raw/fd52316fc12651768c69671ddcfbafc211cd4689/iRedMail/samples/cluebringer/greylisting-whitelist.sql
```
* Login to MySQL database and import this file:
@ -656,7 +656,7 @@ greylisting on them is helpless.
```
# cd /tmp
# wget https://bitbucket.org/zhb/iredmail/raw/40b98d7dde0178d54498e170c8b5165c0316dc96/iRedMail/samples/cluebringer/greylisting-whitelist.sql
# wget https://github.com/iredmail/iRedMail/raw/fd52316fc12651768c69671ddcfbafc211cd4689/iRedMail/samples/cluebringer/greylisting-whitelist.sql
```
* Login to MySQL database and import this file:
@ -775,7 +775,7 @@ greylisting on them is helpless.
```
# cd /tmp
# wget https://bitbucket.org/zhb/iredmail/raw/40b98d7dde0178d54498e170c8b5165c0316dc96/iRedMail/samples/cluebringer/greylisting-whitelist.sql
# wget https://github.com/iredmail/iRedMail/raw/fd52316fc12651768c69671ddcfbafc211cd4689/iRedMail/samples/cluebringer/greylisting-whitelist.sql
```
* Switch to PostgreSQL daemon user, then execute SQL commands to import it:

View File

@ -227,7 +227,7 @@ It will create file `/etc/uwsgi.ini` and directory `/etc/uwsgi.d/`.
```
# cd /tmp/
# wget https://bitbucket.org/zhb/iredmail/raw/1e45afade3af2b214fe7b1dbee2b753cee27a52a/iRedMail/samples/nginx/uwsgi.ini
# wget https://github.com/iredmail/iRedMail/raw/0.9.2/iRedMail/samples/nginx/uwsgi.ini
# mv /etc/uwsgi.ini /etc/uwsgi.ini.bak
# mv /tmp/uwsgi.ini /etc/uwsgi.ini
# mkdir /var/log/uwsgi

View File

@ -246,7 +246,7 @@ steps below.
```
cd /var/vmail/backup/
wget https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/tools/backup_ldapd.sh
wget https://github.com/iredmail/iRedMail/raw/0.9.9/iRedMail/tools/backup_ldapd.sh
chown root:wheel backup_ldapd.sh
chmod 0500 backup_ldapd.sh
```
@ -424,7 +424,7 @@ iRedMail server:
```
cd /tmp
wget https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/samples/iredmail/iredmail.schema
wget https://github.com/iredmail/iRedMail/raw/1.0/samples/iredmail/iredmail.schema
cd /etc/openldap/schema/
cp iredmail.schema iredmail.schema.bak
@ -436,7 +436,7 @@ service slapd restart
* On Debian/Ubuntu:
```
cd /tmp
wget https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/samples/iredmail/iredmail.schema
wget https://github.com/iredmail/iRedMail/raw/1.0/samples/iredmail/iredmail.schema
cd /etc/ldap/schema/
cp iredmail.schema iredmail.schema.bak
@ -449,7 +449,7 @@ service slapd restart
```
cd /tmp
wget https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/samples/iredmail/iredmail.schema
wget https://github.com/iredmail/iRedMail/raw/1.0/samples/iredmail/iredmail.schema
cd /usr/local/etc/openldap/schema/
cp iredmail.schema iredmail.schema.bak
@ -462,7 +462,7 @@ service slapd restart
```
cd /tmp
ftp https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/samples/iredmail/iredmail.schema
ftp https://github.com/iredmail/iRedMail/raw/1.0/samples/iredmail/iredmail.schema
cd /etc/openldap/schema/
cp iredmail.schema iredmail.schema.bak
@ -531,7 +531,7 @@ use this condition while querying user accounts.
```
cd /root/
wget https://bitbucket.org/zhb/iredmail/raw/default/extra/update/updateLDAPValues_094_to_095.py
wget https://github.com/iredmail/iRedMail/raw/1.0/update/ldap/updateLDAPValues_094_to_095.py
```
* Open downloaded file `updateLDAPValues_094_to_095.py`, set LDAP server

View File

@ -423,7 +423,7 @@ Steps:
```
cd /etc/fail2ban/filter.d/
rm -f dovecot.iredmail.conf
wget https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/samples/fail2ban/filter.d/dovecot.iredmail.conf
wget https://github.com/iredmail/iRedMail/raw/1.0/samples/fail2ban/filter.d/dovecot.iredmail.conf
service fail2ban reload
```
@ -517,7 +517,7 @@ access to attrs="domainStatus,employeeNumber,mail,..."
```
cd /tmp
wget https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/samples/iredmail/iredmail.schema
wget https://github.com/iredmail/iRedMail/raw/1.0/samples/iredmail/iredmail.schema
cd /etc/openldap/schema/
cp iredmail.schema iredmail.schema.bak
@ -529,7 +529,7 @@ service slapd restart
* On Debian/Ubuntu:
```
cd /tmp
wget https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/samples/iredmail/iredmail.schema
wget https://github.com/iredmail/iRedMail/raw/1.0/samples/iredmail/iredmail.schema
cd /etc/ldap/schema/
cp iredmail.schema iredmail.schema.bak
@ -542,7 +542,7 @@ service slapd restart
```
cd /tmp
wget https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/samples/iredmail/iredmail.schema
wget https://github.com/iredmail/iRedMail/raw/1.0/samples/iredmail/iredmail.schema
cd /usr/local/etc/openldap/schema/
cp iredmail.schema iredmail.schema.bak
@ -558,7 +558,7 @@ service slapd restart
```
cd /tmp
ftp https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/samples/iredmail/iredmail.schema
ftp https://github.com/iredmail/iRedMail/raw/1.0/samples/iredmail/iredmail.schema
cd /etc/openldap/schema/
cp iredmail.schema iredmail.schema.bak
@ -610,7 +610,7 @@ perl -pi -e 's#\(accountStatus=active\)#(accountStatus=active)(!(domainStatus=di
```
cd /root/
wget https://bitbucket.org/zhb/iredmail/raw/default/extra/update/updateLDAPValues_095_1_to_096.py
wget https://github.com/iredmail/iRedMail/raw/1.0/update/ldap/updateLDAPValues_095_1_to_096.py
```
* Open downloaded file `updateLDAPValues_095_1_to_096.py`, set LDAP server

View File

@ -174,8 +174,8 @@ client while Roundcube is running behind a proxy server.
```
cd /etc/fail2ban/filter.d/
rm -f dovecot.iredmail.conf roundcube.iredmail.conf
wget https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/samples/fail2ban/filter.d/dovecot.iredmail.conf
wget https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/samples/fail2ban/filter.d/roundcube.iredmail.conf
wget https://github.com/iredmail/iRedMail/raw/1.0/samples/fail2ban/filter.d/dovecot.iredmail.conf
wget https://github.com/iredmail/iRedMail/raw/1.0/samples/fail2ban/filter.d/roundcube.iredmail.conf
```
Restarting Fail2ban service is required.
@ -232,7 +232,7 @@ Please follow steps below to setup this daily cron job.
```
cd /var/vmail/backup/
wget https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/tools/backup_sogo.sh
wget https://github.com/iredmail/iRedMail/raw/1.0/tools/backup_sogo.sh
chmod 0400 backup_sogo.sh
```
@ -313,10 +313,7 @@ export CMD_MYSQLDUMP="mysqldump ... --skip-comments"
### SQL structure change in `vmail.alias` SQL table
We've made some changes to `vmail.alias` SQL table for easier account
management, you can find details about this change here:
[SQL structure changes in `vmail.alias` table](https://bitbucket.org/zhb/iredmail/issues/101/sql-structure-changes-in-vmailalias-table).
This change introduces 2 new SQL tables (`forwardings`, `alias_moderators`),
management. This change introduces 2 new SQL tables (`forwardings`, `alias_moderators`),
and (optionally) dropped few columns in `vmail.alias` table.
iRedAPD and iRedAdmin (and iRedAdmin-Pro) have been upgraded to use this new
@ -378,7 +375,7 @@ Please download script used to migrate mail accounts, and run it directly:
```
cd /root/
wget https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/tools/migrate_sql_alias_table.py
wget https://github.com/iredmail/iRedMail/raw/1.0/tools/migrate_sql_alias_table.py
python migrate_sql_alias_table.py
```
@ -470,10 +467,7 @@ export CMD_MYSQLDUMP="mysqldump ... --skip-comments"
### SQL structure change in `vmail.alias` SQL table
We've made some changes to `vmail.alias` SQL table for easier account
management, you can find details about this change here:
[SQL structure changes in `vmail.alias` table](https://bitbucket.org/zhb/iredmail/issues/101/sql-structure-changes-in-vmailalias-table).
This change introduces 2 new SQL tables (`forwardings`, `alias_moderators`),
management, this change introduces 2 new SQL tables (`forwardings`, `alias_moderators`),
and (optionally) dropped few columns in `vmail.alias` table.
iRedAPD and iRedAdmin (and iRedAdmin-Pro) have been upgraded to use this new
@ -544,7 +538,7 @@ Please download script used to migrate mail accounts, and run it directly:
```
cd /root/
wget https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/tools/migrate_sql_alias_table.py
wget https://github.com/iredmail/iRedMail/raw/1.0/tools/migrate_sql_alias_table.py
python migrate_sql_alias_table.py
```

View File

@ -121,7 +121,7 @@ system:
```
cd /var/vmail/backup/
rm -f backup_sogo.sh
wget https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/tools/backup_sogo.sh
wget https://github.com/iredmail/iRedMail/raw/1.0/tools/backup_sogo.sh
chown root backup_sogo.sh
chmod 0400 backup_sogo.sh
```
@ -153,7 +153,7 @@ Steps to create this new Fail2ban jail:
```
cd /etc/fail2ban/filter.d/
wget https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/samples/fail2ban/filter.d/postfix-pregreet.iredmail.conf
wget https://github.com/iredmail/iRedMail/raw/1.0/samples/fail2ban/filter.d/postfix-pregreet.iredmail.conf
```
* Create new file `/etc/fail2ban/jail.d/postfix-pregreet.local` with content
@ -439,7 +439,7 @@ Download the latest iRedMail LDAP schema file
```
cd /tmp
wget https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/samples/iredmail/iredmail.schema
wget https://github.com/iredmail/iRedMail/raw/1.0/samples/iredmail/iredmail.schema
cd /etc/openldap/schema/
cp iredmail.schema iredmail.schema.bak
@ -450,7 +450,7 @@ cp -f /tmp/iredmail.schema /etc/openldap/schema/
* On Debian/Ubuntu:
```
cd /tmp
wget https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/samples/iredmail/iredmail.schema
wget https://github.com/iredmail/iRedMail/raw/1.0/samples/iredmail/iredmail.schema
cd /etc/ldap/schema/
cp iredmail.schema iredmail.schema.bak
@ -462,7 +462,7 @@ cp -f /tmp/iredmail.schema /etc/ldap/schema/
```
cd /tmp
wget https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/samples/iredmail/iredmail.schema
wget https://github.com/iredmail/iRedMail/raw/1.0/samples/iredmail/iredmail.schema
cd /usr/local/etc/openldap/schema/
cp iredmail.schema iredmail.schema.bak
@ -477,7 +477,7 @@ cp -f /tmp/iredmail.schema /usr/local/etc/openldap/schema/
```
cd /tmp
ftp https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/samples/iredmail/iredmail.schema
ftp https://github.com/iredmail/iRedMail/raw/1.0/samples/iredmail/iredmail.schema
cd /etc/openldap/schema/
cp iredmail.schema iredmail.schema.bak
@ -499,7 +499,7 @@ Please follow steps below to add them.
```
cd /root/
wget https://bitbucket.org/zhb/iredmail/raw/default/extra/update/update-ldap-dovecot-2.3.py
wget https://github.com/iredmail/iRedMail/raw/1.0/update/ldap/update-ldap-dovecot-2.3.py
```
* Open downloaded file `update-ldap-dovecot-2.3.py`, set LDAP server
@ -550,7 +550,7 @@ steps below to apply the SQL structure change.
```
cd /tmp/
wget https://bitbucket.org/zhb/iredmail/raw/default/extra/update/0.9.8/amavisd.mysql
wget https://github.com/iredmail/iRedMail/raw/1.0/update/0.9.8/amavisd.mysql
mysql amavisd < amavisd.mysql
```
@ -644,7 +644,7 @@ Download SQL template file used to update SQL database:
```
cd /root/
wget -O iredmail.mysql https://bitbucket.org/zhb/iredmail/raw/default/extra/update/0.9.8/iredmail.mysql
wget -O iredmail.mysql https://github.com/iredmail/iRedMail/raw/1.0/update/0.9.8/iredmail.mysql
```
Connect to MySQL server as MySQL root user, and execute SQL commands:
@ -666,7 +666,7 @@ address without address extension in a new column `maddr.email_raw`. Steps:
```
cd /tmp/
wget https://bitbucket.org/zhb/iredmail/raw/default/extra/update/0.9.8/amavisd.mysql
wget https://github.com/iredmail/iRedMail/raw/1.0/update/0.9.8/amavisd.mysql
mysql amavisd < amavisd.mysql
```
@ -738,7 +738,7 @@ We've made some changes to `vmail` database:
```
cd /tmp/
wget https://bitbucket.org/zhb/iredmail/raw/default/extra/update/0.9.8/iredmail.pgsql
wget https://github.com/iredmail/iRedMail/raw/1.0/update/0.9.8/iredmail.pgsql
```
* Connect to PostgreSQL server as `postgres` user and import the SQL file:
@ -764,7 +764,7 @@ address without address extension in a new column `maddr.email_raw`. Steps:
```
cd /tmp/
wget https://bitbucket.org/zhb/iredmail/raw/default/extra/update/0.9.8/amavisd.pgsql
wget https://github.com/iredmail/iRedMail/raw/1.0/update/0.9.8/amavisd.pgsql
```
* Run shell commands as root user below to connect to PostgreSQL server:

View File

@ -132,7 +132,7 @@ On Linux:
```
cd /usr/bin/
wget -O mlmmj-amime-receive https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/samples/mlmmj/mlmmj-amime-receive
wget -O mlmmj-amime-receive https://github.com/iredmail/iRedMail/raw/1.0/samples/mlmmj/mlmmj-amime-receive
chown mlmmj:mlmmj mlmmj-amime-receive
chmod 0550 mlmmj-amime-receive
```
@ -141,7 +141,7 @@ On FreeBSD or OpenBSD:
```
cd /usr/local/bin/
wget -O mlmmj-amime-receive https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/samples/mlmmj/mlmmj-amime-receive
wget -O mlmmj-amime-receive https://github.com/iredmail/iRedMail/raw/1.0/samples/mlmmj/mlmmj-amime-receive
chown mlmmj:mlmmj mlmmj-amime-receive
chmod 0550 mlmmj-amime-receive
```
@ -226,7 +226,7 @@ download the latest version and override the one on your system:
```
cd /var/vmail/backup/
wget -O backup_sogo.sh https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/tools/backup_sogo.sh
wget -O backup_sogo.sh https://github.com/iredmail/iRedMail/raw/1.0/tools/backup_sogo.sh
chown root backup_sogo.sh
chmod 0400 backup_sogo.sh
```
@ -257,7 +257,7 @@ Download the latest iRedMail LDAP schema file
```
cd /tmp
wget -O iredmail.schema https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/samples/iredmail/iredmail.schema
wget -O iredmail.schema https://github.com/iredmail/iRedMail/raw/1.0/samples/iredmail/iredmail.schema
cd /etc/openldap/schema/
cp iredmail.schema iredmail.schema.bak
@ -269,7 +269,7 @@ service slapd restart
* On Debian/Ubuntu:
```
cd /tmp
wget -O iredmail.schema https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/samples/iredmail/iredmail.schema
wget -O iredmail.schema https://github.com/iredmail/iRedMail/raw/1.0/samples/iredmail/iredmail.schema
cd /etc/ldap/schema/
cp iredmail.schema iredmail.schema.bak
@ -282,7 +282,7 @@ service slapd restart
```
cd /tmp
wget -O iredmail.schema https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/samples/iredmail/iredmail.schema
wget -O iredmail.schema https://github.com/iredmail/iRedMail/raw/1.0/samples/iredmail/iredmail.schema
cd /usr/local/etc/openldap/schema/
cp iredmail.schema iredmail.schema.bak
@ -298,7 +298,7 @@ service slapd restart
```
cd /tmp
ftp https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/samples/iredmail/iredmail.schema
ftp https://github.com/iredmail/iRedMail/raw/1.0/samples/iredmail/iredmail.schema
cd /etc/openldap/schema/
cp iredmail.schema iredmail.schema.bak
@ -371,7 +371,7 @@ Download SQL template file and import it:
```
cd /root/
wget -O iredmail.mysql https://bitbucket.org/zhb/iredmail/raw/default/extra/update/0.9.9/iredmail.mysql
wget -O iredmail.mysql https://github.com/iredmail/iRedMail/raw/1.0/update/0.9.9/iredmail.mysql
mysql vmail < /root/iredmail.mysql
```
@ -429,7 +429,7 @@ Download SQL template file used to update SQL database:
```
cd /tmp/
wget -O iredmail.pgsql https://bitbucket.org/zhb/iredmail/raw/default/extra/update/0.9.9/iredmail.pgsql
wget -O iredmail.pgsql https://github.com/iredmail/iRedMail/raw/1.0/update/0.9.9/iredmail.pgsql
```
* Run shell commands as root user below to connect to PostgreSQL server:

View File

@ -147,8 +147,8 @@ Please follow commands below to get the updated filter rules.
```
cd /etc/fail2ban/filter.d/
wget -O postfix.iredmail.conf https://github.com/iredmail/iRedMail/raw/master/samples/fail2ban/filter.d/postfix.iredmail.conf
wget -O dovecot.iredmail.conf https://github.com/iredmail/iRedMail/raw/master/samples/fail2ban/filter.d/dovecot.iredmail.conf
wget -O postfix.iredmail.conf https://github.com/iredmail/iRedMail/raw/1.0/samples/fail2ban/filter.d/postfix.iredmail.conf
wget -O dovecot.iredmail.conf https://github.com/iredmail/iRedMail/raw/1.0/samples/fail2ban/filter.d/dovecot.iredmail.conf
```
Restarting Fail2ban service is required.
@ -176,7 +176,7 @@ this service.
```
cd /root/
wget https://github.com/iredmail/iRedMail/raw/master/update/ldap/updateLDAPValues_099_to_1.py
wget https://github.com/iredmail/iRedMail/raw/1.0/update/ldap/updateLDAPValues_099_to_1.py
```
* Open downloaded file `updateLDAPValues_099_to_1.py`, set LDAP server
@ -274,7 +274,7 @@ Download plain SQL file used to create required column and index, then import
it directly as MySQL root user (Please run commands below as `root` user):
```
wget -O /tmp/iredmail.mysql https://github.com/iredmail/iRedMail/raw/master/update/1.0/iredmail.mysql
wget -O /tmp/iredmail.mysql https://github.com/iredmail/iRedMail/raw/1.0/update/1.0/iredmail.mysql
mysql vmail < /tmp/iredmail.mysql
rm -f /tmp/iredmail.mysql
```
@ -350,7 +350,7 @@ According to the Dovecot settings configured by iRedMail, a new SQL column
* Download plain SQL file used to create required column and index:
```
wget -O /tmp/iredmail.pgsql https://github.com/iredmail/iRedMail/raw/master/update/1.0/iredmail.pgsql
wget -O /tmp/iredmail.pgsql https://github.com/iredmail/iRedMail/raw/1.0/update/1.0/iredmail.pgsql
```
* Connect to PostgreSQL server as `postgres` user and import the SQL file:

View File

@ -2,7 +2,7 @@
!!! attention
* iRedMail source code is hosted on [BitBucket](https://bitbucket.org/zhb/iredmail/src).
* iRedMail source code: <https://github.com/iredmail/iRedMail>.
* Download the [latest iRedMail stable release](https://www.iredmail.org/download.html).
[TOC]

View File

@ -2,9 +2,9 @@
!!! attention
* iRedAPD source code is hosted on [BitBucket](https://bitbucket.org/zhb/iredapd/).
* Download the [latest iRedAPD stable release](https://bitbucket.org/zhb/iredapd/downloads).
* For plugin development, please read document [README_PLUGINS.md](https://bitbucket.org/zhb/iredapd/src/default/README_PLUGINS.md).
* iRedAPD source code: <https://github.com/iredmail/iRedAPD>
* Download the [latest iRedAPD stable release](https://github.com/iredmail/iRedAPD/releases).
* For plugin development, please read document [README_PLUGINS.md](https://github.com/iredmail/iRedAPD/blob/master/README_PLUGINS.md).
## Upgrade iRedAPD
@ -17,5 +17,5 @@ tutorial: [Migrate from Cluebringer to iRedAPD](./cluebringer.to.iredapd.html).
## See also
* Please check [ChangeLog](https://bitbucket.org/zhb/iredapd/src/default/ChangeLog)
* Please check [ChangeLog](https://github.com/iredmail/iRedAPD/blob/master/ChangeLog)
file in iRedAPD source code to check full, detailed changes in each release.

View File

@ -53,7 +53,7 @@ mailboxes with tool like <code>rsync</code> or other backup tools.</p>
<h3 id="backup-mail-accounts">Backup mail accounts</h3>
<p>Mail accounts are stored in SQL/LDAP database. iRedMail provides shell scripts
to backup SQL/LDAP databases, you can find them in downloaded iRedMail release,
or find them in <a href="https://bitbucket.org/zhb/iredmail/src/default/iRedMail/tools/">iRedMail source code repository</a>:</p>
or find them in <a href="https://github.com/iredmail/iRedMail/tree/master/tools">iRedMail source code repository</a>:</p>
<ul>
<li><code>iRedMail-[VERSION]/tools/backup_openldap.sh</code>: used to backup OpenLDAP data.</li>
<li><code>iRedMail-[VERSION]/tools/backup_ldapd.sh</code>: used to backup OpenBSD ldapd(8).</li>
@ -364,7 +364,7 @@ by following step below: <a href="#after-ldap-restore">After LDAP Restore</a>.</
<h4 id="after-ldap-restore">After LDAP restore</h4>
<p>If you're restoring from an old iRedMail release, you need to add missing LDAP
attribute/values, which are introduced in new iRedMail releases, by running
Python scripts below: <a href="https://bitbucket.org/zhb/iredmail/src/default/extra/update/">https://bitbucket.org/zhb/iredmail/src/default/extra/update/</a></p>
Python scripts below: <a href="https://github.com/iredmail/iRedMail/tree/master/update/ldap">https://github.com/iredmail/iRedMail/tree/master/update/ldap</a></p>
<p>For example:</p>
<ul>
<li>

View File

@ -102,8 +102,8 @@ or recipient, it will performs the check.</p>
the limit of either Postfix setting or iRedAPD throttle setting, the email will
be rejected.</p>
<p>You can set the throttle with iRedAdmin-Pro, or with SQL command tool, for more
details, please check plugin source file, it's detailed with examples and
explanation: <a href="https://bitbucket.org/zhb/iredapd/src/default/plugins/throttle.py">Throttle plugin</a>.</p>
details, please check plugin source file, it's documented with examples and
explanation: <a href="https://github.com/iredmail/iRedAPD/blob/master/plugins/throttle.py">Throttle plugin</a>.</p>
<p>If you have Roundcube webmail, please change two more settings:</p>
<h2 id="change-php-settings-to-upload-large-file">Change PHP settings to upload large file</h2>
<p>Please also update PHP config file <code>php.ini</code> to allow uploading large file:</p>

View File

@ -33,8 +33,8 @@ service.</p>
<h2 id="enable-postscreen-service_1">Enable postscreen service</h2>
<p>iRedMail ships a script to enable postscreen. You can enable it with steps below:</p>
<ol>
<li>Download script <code>enable_postscreen.sh</code> from <a href="https://bitbucket.org/zhb/iredmail/src/default/iRedMail/tools/?at=default">iRedMail source code
repository</a></li>
<li>Download script <code>enable_postscreen.sh</code> from <a href="https://github.com/iredmail/iRedMail/blob/1.0/tools/enable_postscreen.sh">iRedMail source code
repository</a>.</li>
<li>Upload this script to your iRedMail server, then execute it to enable
postscreen service:</li>
</ol>

View File

@ -185,14 +185,14 @@ it manually</p>
</div>
<p>On Linux:</p>
<pre><code>cd /usr/bin/
wget https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/samples/mlmmj/mlmmj-amime-receive
wget https://github.com/iredmail/iRedMail/raw/1.0/samples/mlmmj/mlmmj-amime-receive
chown mlmmj:mlmmj mlmmj-amime-receive
chmod 0550 mlmmj-amime-receive
</code></pre>
<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
wget https://github.com/iredmail/iRedMail/raw/1.0/samples/mlmmj/mlmmj-amime-receive
chown mlmmj:mlmmj mlmmj-amime-receive
chmod 0550 mlmmj-amime-receive
</code></pre>

View File

@ -203,14 +203,14 @@ it manually</p>
</div>
<p>On Linux:</p>
<pre><code>cd /usr/bin/
wget https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/samples/mlmmj/mlmmj-amime-receive
wget https://github.com/iredmail/iRedMail/raw/1.0/samples/mlmmj/mlmmj-amime-receive
chown mlmmj:mlmmj mlmmj-amime-receive
chmod 0550 mlmmj-amime-receive
</code></pre>
<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
wget https://github.com/iredmail/iRedMail/raw/1.0/samples/mlmmj/mlmmj-amime-receive
chown mlmmj:mlmmj mlmmj-amime-receive
chmod 0550 mlmmj-amime-receive
</code></pre>

View File

@ -204,14 +204,14 @@ it manually</p>
</div>
<p>On Linux:</p>
<pre><code>cd /usr/bin/
wget https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/samples/mlmmj/mlmmj-amime-receive
wget https://github.com/iredmail/iRedMail/raw/1.0/samples/mlmmj/mlmmj-amime-receive
chown mlmmj:mlmmj mlmmj-amime-receive
chmod 0550 mlmmj-amime-receive
</code></pre>
<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
wget https://github.com/iredmail/iRedMail/raw/1.0/samples/mlmmj/mlmmj-amime-receive
chown mlmmj:mlmmj mlmmj-amime-receive
chmod 0550 mlmmj-amime-receive
</code></pre>

View File

@ -58,7 +58,7 @@ make install clean
<h2 id="configure-netdata">Configure netdata</h2>
<p>Main config file of netdata is <code>/usr/local/etc/netdata/netdata.conf</code>, it
contains many parameters with detailed comments. Here's the
<a href="https://bitbucket.org/zhb/iredmail/src/default/iRedMail/samples/netdata/netdata.conf">config file</a>
<a href="https://github.com/iredmail/iRedMail/blob/1.0/samples/netdata/netdata.conf">config file</a>
used by iRedMail:</p>
<ul>
<li>It binds to address <code>127.0.0.1</code> and port <code>19999</code> by default. Since it doesn't

View File

@ -97,7 +97,7 @@ config file, so there's not much we need to do after the package installation.</
<h2 id="configure-netdata">Configure netdata</h2>
<p>Main config file of netdata is <code>/etc/netdata/netdata.conf</code>, it contains many
parameters with detailed comments. Here's the
<a href="https://bitbucket.org/zhb/iredmail/src/default/iRedMail/samples/netdata/netdata.conf">config file</a>
<a href="https://github.com/iredmail/iRedMail/blob/1.0/samples/netdata/netdata.conf">config file</a>
used by iRedMail:</p>
<ul>
<li>It binds to address <code>127.0.0.1</code> and port <code>19999</code> by default. Since it doesn't

View File

@ -19,9 +19,9 @@
<div class="admonition attention">
<p class="admonition-title">Attention</p>
<ul>
<li>iRedAPD source code is hosted on <a href="https://bitbucket.org/zhb/iredapd/">BitBucket</a>.</li>
<li>Download the <a href="https://bitbucket.org/zhb/iredapd/downloads">latest iRedAPD stable release</a>.</li>
<li>For plugin development, please read document <a href="https://bitbucket.org/zhb/iredapd/src/default/README_PLUGINS.md">README_PLUGINS.md</a>.</li>
<li>iRedAPD source code: <a href="https://github.com/iredmail/iRedAPD">https://github.com/iredmail/iRedAPD</a></li>
<li>Download the <a href="https://github.com/iredmail/iRedAPD/releases">latest iRedAPD stable release</a>.</li>
<li>For plugin development, please read document <a href="https://github.com/iredmail/iRedAPD/blob/master/README_PLUGINS.md">README_PLUGINS.md</a>.</li>
</ul>
</div>
<h2 id="upgrade-iredapd">Upgrade iRedAPD</h2>
@ -31,7 +31,7 @@
tutorial: <a href="./cluebringer.to.iredapd.html">Migrate from Cluebringer to iRedAPD</a>.</p>
<h2 id="see-also">See also</h2>
<ul>
<li>Please check <a href="https://bitbucket.org/zhb/iredapd/src/default/ChangeLog">ChangeLog</a>
<li>Please check <a href="https://github.com/iredmail/iRedAPD/blob/master/ChangeLog">ChangeLog</a>
file in iRedAPD source code to check full, detailed changes in each release.</li>
</ul><div class="footer">
<p style="text-align: center; color: grey;">All documents are available in <a href="https://github.com/iredmail/docs/">BitBucket repository</a>, and published under <a href="http://creativecommons.org/licenses/by-nd/3.0/us/" target="_blank">Creative Commons</a> license. You can <a href="https://github.com/iredmail/docs/archive/master.zip">download the latest version</a> for offline reading. If you found something wrong, please do <a href="https://www.iredmail.org/contact.html">contact us</a> to fix it.</p>

View File

@ -19,7 +19,7 @@
<div class="admonition attention">
<p class="admonition-title">Attention</p>
<ul>
<li>iRedMail source code is hosted on <a href="https://bitbucket.org/zhb/iredmail/src">BitBucket</a>.</li>
<li>iRedMail source code: <a href="https://github.com/iredmail/iRedMail">https://github.com/iredmail/iRedMail</a>.</li>
<li>Download the <a href="https://www.iredmail.org/download.html">latest iRedMail stable release</a>.</li>
</ul>
</div>

View File

@ -60,7 +60,7 @@ web-based admin panel - <a href="https://www.iredmail.org/admin_panel.html">iRed
<p>iRedAPD is a simple Postfix policy server, written in Python, with plugin
support. It listens on <code>127.0.0.1:7777</code> by default, and runs as a low-privileged
user <code>iredapd</code>.</p>
<p>Source code is hosted on <a href="https://bitbucket.org/zhb/iredapd/">BitBucket</a>.</p>
<p>Source code is hosted on <a href="https://github.com/iredmail/iRedAPD">GitHub</a>.</p>
<h2 id="how-to-disable-iredapd-service">How to disable iRedAPD service</h2>
<p>To disable iRedAPD service:</p>
<ol>

View File

@ -95,7 +95,9 @@ please update your mail client applications to use TLS connection.</p>
<p>Normally, LDAP data can be exported into LDIF format. Here's backup/restore procedure: <a href="./backup.restore.html">Backup and Restore</a>.</p>
<p>Notes:</p>
<ul>
<li>There might be some changes in LDAP schema, please find scripts <a href="https://bitbucket.org/zhb/iredmail/src/default/extra/update/">here</a> to apply all required changes.</li>
<li>There might be some changes in LDAP schema, please find scripts
<a href="https://github.com/iredmail/iRedMail/tree/master/update/ldap">here</a> to apply
all required changes.</li>
<li>Here are all <a href="https://docs.iredmail.org/iredmail.releases.html">upgrade tutorials for iRedMail</a>.</li>
</ul>
<h2 id="mysqlpostgresql-migrate-mail-accounts">MySQL/PostgreSQL: Migrate mail accounts</h2>

View File

@ -23,7 +23,7 @@ if you chose <code>/var/vmail</code> to store mailboxes during iRedMail installa
If you have a custom mailbox storage directory, the sample sieve rule file
should be <code>sieve/dovecot.sieve.sample</code> under that directory. If you cannot
find it, you can still download one from iRedMail project:
<a href="https://bitbucket.org/zhb/iredmail/src/default/iRedMail/samples/dovecot/dovecot.sieve">here</a></p>
<a href="https://github.com/iredmail/iRedMail/blob/1.0/samples/dovecot/dovecot.sieve">here</a>.</p>
<p>This file must be owned by user <code>vmail</code> and group <code>vmail</code>, permission <code>0500</code>.</p>
<p>Now open Dovecot config file <code>/etc/dovecot/dovecot.conf</code> (on Linux/OpenBSD)
or <code>/usr/local/etc/dovecot/dovecot.conf</code> (FreeBSD), make sure you have setting

View File

@ -1,244 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Install Pure-FTPd with OpenLDAP backend on RHEL/CentOS</title>
<link rel="stylesheet" type="text/css" href="./css/markdown.css" />
</head>
<body>
<div id="navigation">
<a href="https://www.iredmail.org" target="_blank">
<img alt="iRedMail web site"
src="./images/logo-iredmail.png"
style="vertical-align: middle; height: 30px;"
/>&nbsp;
<span>iRedMail</span>
</a>
&nbsp;&nbsp;//&nbsp;&nbsp;<a href="./index.html">Document Index</a></div><h1 id="install-pure-ftpd-with-openldap-backend-on-rhelcentos">Install Pure-FTPd with OpenLDAP backend on RHEL/CentOS</h1>
<div class="toc">
<ul>
<li><a href="#install-pure-ftpd-with-openldap-backend-on-rhelcentos">Install Pure-FTPd with OpenLDAP backend on RHEL/CentOS</a><ul>
<li><a href="#install-pure-ftpd">Install Pure-FTPd</a></li>
<li><a href="#use-a-proper-ldap-bind-dnpassword-to-query-accounts">Use a proper LDAP bind dn/password to query accounts</a></li>
<li><a href="#configure-the-ldap-setting-for-pureftpd">Configure the LDAP setting for PureFTPD</a></li>
<li><a href="#config-openldap">Config OpenLDAP</a></li>
<li><a href="#create-ftp-home-directory">Create FTP Home Directory</a></li>
<li><a href="#restart-openldap-and-pure-ftpd-service">Restart OpenLDAP and Pure-FTPD Service</a></li>
<li><a href="#add-ldap-ftp-attributes-and-values-for-new-user">Add LDAP FTP attributes and values for new user</a></li>
<li><a href="#configure-iptables">Configure iptables</a></li>
<li><a href="#testing">Testing</a></li>
<li><a href="#troubleshooting">Troubleshooting</a></li>
</ul>
</li>
</ul>
</div>
<h2 id="install-pure-ftpd">Install Pure-FTPd</h2>
<p>Install PureFTPD from EPEL yum repo:</p>
<pre><code># yum install pure-ftpd
</code></pre>
<h2 id="use-a-proper-ldap-bind-dnpassword-to-query-accounts">Use a proper LDAP bind dn/password to query accounts</h2>
<p>iRedMail generates a read-only LDAP bind dn <code>cn=vmail,dc=xxx,dc=xxx</code> during
installation, so it's perfect to query user accounts with this dn.</p>
<p>You can find the full dn and password in <code>/etc/postfix/ldap/catchall_maps.cf</code>:</p>
<pre><code># grep 'bind_' /etc/postfix/ldap/catchall_maps.cf
bind_dn = cn=vmail,dc=example,dc=com
bind_pw = InYTi8qGjamTb6Me2ESwbb6rxQUs5y
</code></pre>
<h2 id="configure-the-ldap-setting-for-pureftpd">Configure the LDAP setting for PureFTPD</h2>
<ul>
<li>Open <code>/etc/pure-ftpd/pureftpd-ldap.conf</code> and update parameters below:</li>
</ul>
<pre><code>LDAPServer localhost
LDAPPort 389
LDAPBaseDN o=domains,dc=example,dc=com
LDAPBindDN cn=vmail,dc=example,dc=com
LDAPBindPW InYTi8qGjamTb6Me2ESwbb6rxQUs5y # cn=vmail password
LDAPDefaultUID 2000 # &lt;- UID of `vmail` user.
LDAPDefaultGID 2000 # &lt;- GID of `vmail` user.
LDAPFilter (&amp;(objectClass=PureFTPdUser)(mail=\L)(FTPStatus=enabled))
LDAPHomeDir FTPHomeDir # &lt;- New LDAP attribute, we will add it later.
LDAPVersion 3
</code></pre>
<h2 id="config-openldap">Config OpenLDAP</h2>
<ul>
<li>Get the schema modified by iredmail, it adds a new attribute <code>FTPHomeDir</code> to
store per-user FTP home directory. Default schema uses <code>homeDirectory</code>.</li>
</ul>
<pre><code># wget https://bitbucket.org/zhb/iredmail/raw/0.9.9/extra/samples/pureftpd.schema
# mv pureftpd.schema /etc/openldap/schema/
</code></pre>
<ul>
<li>Update <code>/etc/openldap/slapd.conf</code>, include <code>pureftpd.schema</code> after <code>iredmail.schema</code>:</li>
</ul>
<pre><code>include /etc/openldap/schema/iredmail.schema
include /etc/openldap/schema/pureftpd.schema # &lt;-- Add this line.
</code></pre>
<ul>
<li>Open <code>/etc/openldap/slapd.conf</code>, append required indexes for attributes
defined in <code>pureftpd.schema</code>:</li>
</ul>
<pre><code># Indexes for Pure-FTPd LDAP attributes.
index FTPQuotaFiles,FTPQuotaMBytes eq,pres
index FTPUploadRatio,FTPDownloadRatio eq,pres
index FTPUploadBandwidth,FTPDownloadBandwidth eq,pres
index FTPStatus,FTPuid,FTPgid,FTPHomeDir eq,pres
</code></pre>
<h2 id="create-ftp-home-directory">Create FTP Home Directory</h2>
<p>We're going to store all FTP data under <code>/home/ftp/</code> directory, so let's create
<code>/home/ftp/</code> first, directory owner MUST be <code>root</code> user.</p>
<pre><code># mkdir /home/ftp/
# ls -dl /home/ftp
drwxr-xr-x 3 root root 4096 Jun 7 20:18 /home/ftp/
</code></pre>
<h2 id="restart-openldap-and-pure-ftpd-service">Restart OpenLDAP and Pure-FTPD Service</h2>
<p>Restart Pure-FTPd and OpenLDAP services:</p>
<pre><code># /etc/init.d/ldap restart
# /etc/init.d/pure-ftpd restart
# netstat -ntlp | grep pure-ftpd
tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 2062/pure-ftpd (SERVER)
tcp 0 0 :::21 :::* LISTEN 2062/pure-ftpd (SERVER)
</code></pre>
<h2 id="add-ldap-ftp-attributes-and-values-for-new-user">Add LDAP FTP attributes and values for new user</h2>
<p>With script shipped in iRedMail, you can quickly create NEW mail user which
has pureftpd service support.</p>
<ul>
<li>Open file <code>tools/create_mail_user_OpenLDAP.sh</code> under your iRedMail directory
(e.g. <code>/root/iRedMail-0.9.4/tools/create_mail_user_OpenLDAP.sh</code>), update
paraemters below with correct values:</li>
</ul>
<pre><code>LDAP_SUFFIX=&quot;dc=example,dc=com&quot; # &lt;- Change the LDAP suffix
BINDPW='passwd' # &lt;- Password for the bind dn `cn=Manager,dc=example,dc=com`
PUREFTPD_INTEGRATION='YES' # &lt;- Set to 'YES' to enable the pureftp inteegration
FTP_STORAGE_BASE_DIRECTORY='/home/ftp' # &lt;- Change it to the ftp home directory
</code></pre>
<ul>
<li>Run the script to create a new user <code>user1@example.com</code>. The default
password is same as user name (<code>user1</code>) by default.</li>
</ul>
<pre><code># bash create_mail_user_OpenLDAP.sh example.com user1
adding new entry &quot;ou=Users,domainName=example.com,o=domains,dc=example,dc=com&quot;
ldapadd: Already exists (68)
adding new entry &quot;ou=Groups,domainName=example.com,o=domains,dc=example,dc=com&quot;
ldapadd: Already exists (68)
adding new entry &quot;ou=Aliases,domainName=example.com,o=domains,dc=example,dc=com&quot;
ldapadd: Already exists (68)
adding new entry &quot;mail=user1@example.com,ou=Users,domainName=example.com,o=domains,dc=example,dc=com&quot;
</code></pre>
<p>You can now login to both webmail and FTP service as this user.</p>
<h2 id="configure-iptables">Configure iptables</h2>
<p>iRedMail doesn't open port 20 and 21 by default, you must open them first.</p>
<ul>
<li>Open <code>/etc/sysconfig/iptables</code> and set correct values:</li>
</ul>
<pre><code>-A INPUT -p tcp --dport 20 -j ACCEPT
-A INPUT -p tcp --dport 21 -j ACCEPT
</code></pre>
<ul>
<li>Restart the iptables service</li>
</ul>
<pre><code># service iptables restart
</code></pre>
<h2 id="testing">Testing</h2>
<p>You can use windows FTP client or Linux ftp client (e.g. command line ftp
client <code>lftp</code> or GUI client <a href="https://filezilla-project.org"><code>FileZilla</code></a>) for
testing.</p>
<p>We use <code>lftp</code> for testing below:</p>
<pre><code>$ lftp localhost
localhost:~&gt; debug 4
localhost:~&gt; login user1@example.com user1 # &lt;-- input the username and password
user1@example.com@localhost:~&gt; ls
---- Connecting to localhost (127.0.0.1) port 21
&lt;--- 220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
&lt;--- 220-You are user number 1 of 50 allowed.
&lt;--- 220-Local time is now 16:25. Server port: 21.
&lt;--- 220-IPv6 connections are also welcome on this server.
&lt;--- 220 You will be disconnected after 15 minutes of inactivity.
&lt;--- 211-Extensions supported:
&lt;--- EPRT
&lt;--- IDLE
&lt;--- MDTM
&lt;--- SIZE
&lt;--- REST STREAM
&lt;--- MLST type*;size*;sizd*;modify*;UNIX.mode*;UNIX.uid*;UNIX.gid*;unique*;
&lt;--- MLSD
&lt;--- ESTP
&lt;--- PASV
&lt;--- EPSV
&lt;--- SPSV
&lt;--- ESTA
&lt;--- AUTH TLS
&lt;--- PBSZ
&lt;--- PROT
&lt;--- UTF8
&lt;--- 211 End.
&lt;--- 500 This security scheme is not implemented
&lt;--- 200 OK, UTF-8 enabled
&lt;--- 200 MLST OPTS type;size;sizd;modify;UNIX.mode;UNIX.uid;UNIX.gid;unique;
&lt;--- 331 User user1@example.com OK. Password required
&lt;--- 230-Your bandwidth usage is restricted
&lt;--- 230-User user1@example.com has group access to: vmail
&lt;--- 230-You must respect a 1:5 (UL/DL) ratio
&lt;--- 230-OK. Current restricted directory is /
&lt;--- 230-0 files used (0%) - authorized: 50 files
&lt;--- 230 0 Kbytes used (0%) - authorized: 10240 Kb
&lt;--- 257 &quot;/&quot; is your current location
&lt;--- 227 Entering Passive Mode (127,0,0,1,32,58)
&lt;--- 150 Accepted data connection
drwxr-xr-x 2 500 vmail 4096 Jun 10 16:16 .
drwxr-xr-x 2 500 vmail 4096 Jun 10 16:16 ..
-rw------- 1 500 vmail 0 Jun 10 16:16 .ftpquota
</code></pre>
<h2 id="troubleshooting">Troubleshooting</h2>
<p>Enable verbose log in pure-ftpd</p>
<ul>
<li>Open <code>/etc/pure-ftpd/pure-ftpd.conf</code> and set correct values:</li>
</ul>
<pre><code>VerboseLog yes # &lt;-- change from no to yes
</code></pre>
<ul>
<li>Open <code>/etc/rsyslog.conf</code> and set correct values:</li>
</ul>
<pre><code>ftp.* -/var/log/pureftpd.log # &lt;-- Add entry
</code></pre>
<ul>
<li>Restart services</li>
</ul>
<pre><code># service pure-ftpd restart
# service rsyslog restart
</code></pre>
<p>Monitor <code>/var/log/pureftpd.log</code> for troubleshooting:</p>
<pre><code># tail -0f /var/log/pureftpd.log
</code></pre>
<p>If you need to debug OpenLDAP, please refer to another document: <a href="./debug.openldap.html">Debug OpenLDAP</a>.</p><div class="footer">
<p style="text-align: center; color: grey;">All documents are available in <a href="https://github.com/iredmail/docs/">BitBucket repository</a>, and published under <a href="http://creativecommons.org/licenses/by-nd/3.0/us/" target="_blank">Creative Commons</a> license. You can <a href="https://github.com/iredmail/docs/archive/master.zip">download the latest version</a> for offline reading. If you found something wrong, please do <a href="https://www.iredmail.org/contact.html">contact us</a> to fix it.</p>
</div>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-3293801-21"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-3293801-21');
</script>
</body></html>

View File

@ -108,7 +108,7 @@ for you, just replace MySQL username/password in this file, then it's done.</p>
<p>With below config file, SOGo will listen on address <code>127.0.0.1</code>, port <code>20000</code>.</p>
<div class="admonition warning">
<p class="admonition-title">Warning</p>
<p>Sample config file below may be out of date, please check the <a href="https://bitbucket.org/zhb/iredmail/src/default/iRedMail/samples/sogo/sogo.conf">latest one
<p>Sample config file below may be out of date, please check the <a href="https://github.com/iredmail/iRedMail/blob/1.0/samples/sogo/sogo.conf">latest one
in iRedMail source code repository</a>.</p>
</div>
<pre><code>{

View File

@ -98,7 +98,7 @@ basedn, bind dn/passwordthen in this file, then it's done.</p>
<p>With below config file, SOGo will listen on address <code>127.0.0.1</code>, port <code>20000</code>.</p>
<div class="admonition note">
<p class="admonition-title">Note</p>
<p>Sample config file below may be out of date, please check the <a href="https://bitbucket.org/zhb/iredmail/src/default/iRedMail/samples/sogo/sogo.conf">latest one
<p>Sample config file below may be out of date, please check the <a href="https://github.com/iredmail/iRedMail/blob/1.0/samples/sogo/sogo.conf">latest one
in iRedMail source code repository</a>.</p>
</div>
<pre><code>{

View File

@ -161,7 +161,7 @@ CREATE INDEX idx_mailbox_enablesievetls ON mailbox (enablesievetls);
<li>Download script used to update existing mail users:</li>
</ul>
<pre><code>cd /root/
wget https://bitbucket.org/zhb/iredmail/raw/default/extra/update/update-ldap-dovecot-2.3.py
wget https://github.com/iredmail/iRedMail/raw/1.0/update/ldap/update-ldap-dovecot-2.3.py
</code></pre>
<ul>

View File

@ -220,7 +220,7 @@ attribute 'enabledService' for mail user.</p>
<li>Download python script used to adding missing values.</li>
</ul>
<pre><code># cd /root/
# wget https://bitbucket.org/zhb/iredmail/raw/f0e7e84c4b8a/extra/update/updateLDAPValues_074_to_080.py
# wget https://github.com/iredmail/iRedMail/raw/1.0/update/ldap/updateLDAPValues_074_to_080.py
</code></pre>
<ul>

View File

@ -238,7 +238,7 @@ Below steps are used to add it for all mail users.</p>
<li>Download python script used to adding missing values.</li>
</ul>
<pre><code># cd /root/
# wget https://bitbucket.org/zhb/iredmail/raw/cb7d2492563d/extra/update/updateLDAPValues_080_to_081.py
# wget https://github.com/iredmail/iRedMail/raw/1.0/update/ldap/updateLDAPValues_080_to_081.py
</code></pre>
<ul>

View File

@ -160,7 +160,7 @@ files: <code>/var/log/dovecot.log</code>, <code>/var/log/sieve.log</code>.</p>
<li>On RHEL/CentOS/Scientific Linux (both release 5.x and 6.x), openSUSE, Gentoo, OpenBSD:</li>
</ul>
<pre><code># cd /tmp
# wget https://bitbucket.org/zhb/iredmail/raw/a4d8b730d147/iRedMail/samples/iredmail/iredmail.schema
# wget https://github.com/iredmail/iRedMail/raw/1.0/samples/iredmail/iredmail.schema
# cd /etc/openldap/schema/
# cp iredmail.schema iredmail.schema.bak
@ -173,7 +173,7 @@ files: <code>/var/log/dovecot.log</code>, <code>/var/log/sieve.log</code>.</p>
<li>On Debian/Ubuntu:</li>
</ul>
<pre><code># cd /tmp
# wget https://bitbucket.org/zhb/iredmail/raw/a4d8b730d147/iRedMail/samples/iredmail/iredmail.schema
# wget https://github.com/iredmail/iRedMail/raw/1.0/samples/iredmail/iredmail.schema
# cd /etc/ldap/schema/
# cp iredmail.schema iredmail.schema.bak
@ -186,7 +186,7 @@ files: <code>/var/log/dovecot.log</code>, <code>/var/log/sieve.log</code>.</p>
<li>On FreeBSD:</li>
</ul>
<pre><code># cd /tmp
# wget https://bitbucket.org/zhb/iredmail/raw/a4d8b730d147/iRedMail/samples/iredmail/iredmail.schema
# wget https://github.com/iredmail/iRedMail/raw/1.0/samples/iredmail/iredmail.schema
# cd /usr/local/etc/openldap/schema/
# cp iredmail.schema iredmail.schema.bak

View File

@ -118,7 +118,7 @@ Steps are:</p>
<li>On RHEL/CentOS/Scientific Linux (both release 5.x and 6.x), openSUSE, Gentoo, OpenBSD:</li>
</ul>
<pre><code># cd /tmp
# wget https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/samples/iredmail/iredmail.schema
# wget https://github.com/iredmail/iRedMail/raw/1.0/samples/iredmail/iredmail.schema
# cd /etc/openldap/schema/
# cp iredmail.schema iredmail.schema.bak
@ -131,7 +131,7 @@ Steps are:</p>
<li>On Debian/Ubuntu:</li>
</ul>
<pre><code># cd /tmp
# wget https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/samples/iredmail/iredmail.schema
# wget https://github.com/iredmail/iRedMail/raw/1.0/samples/iredmail/iredmail.schema
# cd /etc/ldap/schema/
# cp iredmail.schema iredmail.schema.bak
@ -144,7 +144,7 @@ Steps are:</p>
<li>On FreeBSD:</li>
</ul>
<pre><code># cd /tmp
# wget https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/samples/iredmail/iredmail.schema
# wget https://github.com/iredmail/iRedMail/raw/1.0/samples/iredmail/iredmail.schema
# cd /usr/local/etc/openldap/schema/
# cp iredmail.schema iredmail.schema.bak
@ -158,7 +158,7 @@ Steps are:</p>
<li>Download python script used to adding missing values.</li>
</ul>
<pre><code># cd /root/
# wget https://bitbucket.org/zhb/iredmail/raw/default/extra/update/updateLDAPValues_083_to_084.py
# wget https://github.com/iredmail/iRedMail/raw/1.0/update/ldap/updateLDAPValues_083_to_084.py
</code></pre>
<p>Open downloaded file <code>updateLDAPValues_083_to_084.py</code>, set LDAP server related

View File

@ -111,7 +111,7 @@ latest stable release: <a href="./migrate.or.upgrade.iredadmin.html">Upgrade iRe
<li>On RHEL/CentOS/Scientific Linux (both release 5.x and 6.x), openSUSE, Gentoo, OpenBSD:</li>
</ul>
<pre><code># cd /tmp
# wget https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/samples/iredmail/iredmail.schema
# wget https://github.com/iredmail/iRedMail/raw/1.0/samples/iredmail/iredmail.schema
# cd /etc/openldap/schema/
# cp iredmail.schema iredmail.schema.bak
@ -124,7 +124,7 @@ latest stable release: <a href="./migrate.or.upgrade.iredadmin.html">Upgrade iRe
<li>On Debian/Ubuntu:</li>
</ul>
<pre><code># cd /tmp
# wget https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/samples/iredmail/iredmail.schema
# wget https://github.com/iredmail/iRedMail/raw/1.0/samples/iredmail/iredmail.schema
# cd /etc/ldap/schema/
# cp iredmail.schema iredmail.schema.bak
@ -137,7 +137,7 @@ latest stable release: <a href="./migrate.or.upgrade.iredadmin.html">Upgrade iRe
<li>On FreeBSD:</li>
</ul>
<pre><code># cd /tmp
# wget https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/samples/iredmail/iredmail.schema
# wget https://github.com/iredmail/iRedMail/raw/1.0/samples/iredmail/iredmail.schema
# cd /usr/local/etc/openldap/schema/
# cp iredmail.schema iredmail.schema.bak

View File

@ -112,8 +112,8 @@ to finish this in one step.</p>
<p>Please download below two SQL files shipped in iRedMail-0.8.6, and save it as
file /root/extra.sql, and /root/column_character_set.mysql:</p>
<ul>
<li>https://bitbucket.org/zhb/iredmail/raw/4d7b14fc40bb2467fb4efcc4ce08ac9fc037224c/iRedMail/samples/cluebringer/extra.sql</li>
<li>https://bitbucket.org/zhb/iredmail/raw/4d7b14fc40bb2467fb4efcc4ce08ac9fc037224c/iRedMail/samples/cluebringer/column_character_set.mysql</li>
<li>https://github.com/iredmail/iRedMail/raw/0.8.6/iRedMail/samples/cluebringer/extra.sql</li>
<li>https://github.com/iredmail/iRedMail/raw/0.8.6/iRedMail/samples/cluebringer/column_character_set.mysql</li>
</ul>
<p>For MySQL, please login to MySQL server as <code>root</code> user and import this sql file:</p>
<pre><code># mysql -uroot -p

View File

@ -309,7 +309,7 @@ log file, but cannot resolve IP to DNS name. You can fix it with below steps:</p
<li>Download below python script to adding new values for existing mail users.</li>
</ul>
<pre><code># cd /root/
# wget https://bitbucket.org/zhb/iredmail/raw/default/extra/update/updateLDAPValues_086_to_087.py
# wget https://github.com/iredmail/iRedMail/raw/1.0/update/ldap/updateLDAPValues_086_to_087.py
</code></pre>
<ul>

View File

@ -328,7 +328,7 @@ query_filter = (&amp;(objectClass=mailDomain)(accountStatus=active)(enabledSe
<li>Download below python script to adding new values for existing mail users.</li>
</ul>
<pre><code># cd /root/
# wget https://bitbucket.org/zhb/iredmail/raw/default/extra/update/updateLDAPValues_087_to_090.py
# wget https://github.com/iredmail/iRedMail/raw/1.0/update/ldap/updateLDAPValues_087_to_090.py
</code></pre>
<ul>

View File

@ -442,7 +442,7 @@ comma.</p>
<li>On RHEL/CentOS, OpenBSD:</li>
</ul>
<pre><code># cd /tmp
# wget https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/samples/iredmail/iredmail.schema
# wget https://github.com/iredmail/iRedMail/raw/1.0/samples/iredmail/iredmail.schema
# cd /etc/openldap/schema/
# cp iredmail.schema iredmail.schema.bak
@ -455,7 +455,7 @@ comma.</p>
<li>On Debian/Ubuntu:</li>
</ul>
<pre><code># cd /tmp
# wget https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/samples/iredmail/iredmail.schema
# wget https://github.com/iredmail/iRedMail/raw/1.0/samples/iredmail/iredmail.schema
# cd /etc/ldap/schema/
# cp iredmail.schema iredmail.schema.bak
@ -468,7 +468,7 @@ comma.</p>
<li>On FreeBSD:</li>
</ul>
<pre><code># cd /tmp
# wget https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/samples/iredmail/iredmail.schema
# wget https://github.com/iredmail/iRedMail/raw/1.0/samples/iredmail/iredmail.schema
# cd /usr/local/etc/openldap/schema/
# cp iredmail.schema iredmail.schema.bak
@ -526,7 +526,7 @@ greylisting on them is helpless.</p>
<li>Download SQL template file:</li>
</ul>
<pre><code># cd /tmp
# wget https://bitbucket.org/zhb/iredmail/raw/40b98d7dde0178d54498e170c8b5165c0316dc96/iRedMail/samples/cluebringer/greylisting-whitelist.sql
# wget https://github.com/iredmail/iRedMail/raw/fd52316fc12651768c69671ddcfbafc211cd4689/iRedMail/samples/cluebringer/greylisting-whitelist.sql
</code></pre>
<ul>
@ -628,7 +628,7 @@ greylisting on them is helpless.</p>
<li>Download SQL template file:</li>
</ul>
<pre><code># cd /tmp
# wget https://bitbucket.org/zhb/iredmail/raw/40b98d7dde0178d54498e170c8b5165c0316dc96/iRedMail/samples/cluebringer/greylisting-whitelist.sql
# wget https://github.com/iredmail/iRedMail/raw/fd52316fc12651768c69671ddcfbafc211cd4689/iRedMail/samples/cluebringer/greylisting-whitelist.sql
</code></pre>
<ul>
@ -730,7 +730,7 @@ greylisting on them is helpless.</p>
<li>Download SQL template file:</li>
</ul>
<pre><code># cd /tmp
# wget https://bitbucket.org/zhb/iredmail/raw/40b98d7dde0178d54498e170c8b5165c0316dc96/iRedMail/samples/cluebringer/greylisting-whitelist.sql
# wget https://github.com/iredmail/iRedMail/raw/fd52316fc12651768c69671ddcfbafc211cd4689/iRedMail/samples/cluebringer/greylisting-whitelist.sql
</code></pre>
<ul>

View File

@ -227,7 +227,7 @@ cannot be started, and iRedAdmin is unaccessible. Below steps fix this issue.</p
create required log directory:</li>
</ul>
<pre><code># cd /tmp/
# wget https://bitbucket.org/zhb/iredmail/raw/1e45afade3af2b214fe7b1dbee2b753cee27a52a/iRedMail/samples/nginx/uwsgi.ini
# wget https://github.com/iredmail/iRedMail/raw/0.9.2/iRedMail/samples/nginx/uwsgi.ini
# mv /etc/uwsgi.ini /etc/uwsgi.ini.bak
# mv /tmp/uwsgi.ini /etc/uwsgi.ini
# mkdir /var/log/uwsgi

View File

@ -291,7 +291,7 @@ steps below.</p>
so please copy to the correct directory on your server):</li>
</ul>
<pre><code>cd /var/vmail/backup/
wget https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/tools/backup_ldapd.sh
wget https://github.com/iredmail/iRedMail/raw/0.9.9/iRedMail/tools/backup_ldapd.sh
chown root:wheel backup_ldapd.sh
chmod 0500 backup_ldapd.sh
</code></pre>
@ -465,7 +465,7 @@ iRedMail server:</p>
<li>On RHEL/CentOS:</li>
</ul>
<pre><code>cd /tmp
wget https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/samples/iredmail/iredmail.schema
wget https://github.com/iredmail/iRedMail/raw/1.0/samples/iredmail/iredmail.schema
cd /etc/openldap/schema/
cp iredmail.schema iredmail.schema.bak
@ -478,7 +478,7 @@ service slapd restart
<li>On Debian/Ubuntu:</li>
</ul>
<pre><code>cd /tmp
wget https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/samples/iredmail/iredmail.schema
wget https://github.com/iredmail/iRedMail/raw/1.0/samples/iredmail/iredmail.schema
cd /etc/ldap/schema/
cp iredmail.schema iredmail.schema.bak
@ -491,7 +491,7 @@ service slapd restart
<li>On FreeBSD:</li>
</ul>
<pre><code>cd /tmp
wget https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/samples/iredmail/iredmail.schema
wget https://github.com/iredmail/iRedMail/raw/1.0/samples/iredmail/iredmail.schema
cd /usr/local/etc/openldap/schema/
cp iredmail.schema iredmail.schema.bak
@ -504,7 +504,7 @@ service slapd restart
<li>On OpenBSD:</li>
</ul>
<pre><code>cd /tmp
ftp https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/samples/iredmail/iredmail.schema
ftp https://github.com/iredmail/iRedMail/raw/1.0/samples/iredmail/iredmail.schema
cd /etc/openldap/schema/
cp iredmail.schema iredmail.schema.bak
@ -565,7 +565,7 @@ use this condition while querying user accounts.</p>
<li>Download below script to update existing mail users:</li>
</ul>
<pre><code>cd /root/
wget https://bitbucket.org/zhb/iredmail/raw/default/extra/update/updateLDAPValues_094_to_095.py
wget https://github.com/iredmail/iRedMail/raw/1.0/update/ldap/updateLDAPValues_094_to_095.py
</code></pre>
<ul>

View File

@ -455,7 +455,7 @@ lip=10.11.12.13, TLS: Disconnected, session=<xxfH9mhDwgDUCPbe></p>
</ul>
<pre><code>cd /etc/fail2ban/filter.d/
rm -f dovecot.iredmail.conf
wget https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/samples/fail2ban/filter.d/dovecot.iredmail.conf
wget https://github.com/iredmail/iRedMail/raw/1.0/samples/fail2ban/filter.d/dovecot.iredmail.conf
service fail2ban reload
</code></pre>
@ -555,7 +555,7 @@ any whitespace between attribute names and comma):</p>
<li>On RHEL/CentOS:</li>
</ul>
<pre><code>cd /tmp
wget https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/samples/iredmail/iredmail.schema
wget https://github.com/iredmail/iRedMail/raw/1.0/samples/iredmail/iredmail.schema
cd /etc/openldap/schema/
cp iredmail.schema iredmail.schema.bak
@ -568,7 +568,7 @@ service slapd restart
<li>On Debian/Ubuntu:</li>
</ul>
<pre><code>cd /tmp
wget https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/samples/iredmail/iredmail.schema
wget https://github.com/iredmail/iRedMail/raw/1.0/samples/iredmail/iredmail.schema
cd /etc/ldap/schema/
cp iredmail.schema iredmail.schema.bak
@ -581,7 +581,7 @@ service slapd restart
<li>On FreeBSD:</li>
</ul>
<pre><code>cd /tmp
wget https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/samples/iredmail/iredmail.schema
wget https://github.com/iredmail/iRedMail/raw/1.0/samples/iredmail/iredmail.schema
cd /usr/local/etc/openldap/schema/
cp iredmail.schema iredmail.schema.bak
@ -600,7 +600,7 @@ service slapd restart
</li>
</ul>
<pre><code>cd /tmp
ftp https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/samples/iredmail/iredmail.schema
ftp https://github.com/iredmail/iRedMail/raw/1.0/samples/iredmail/iredmail.schema
cd /etc/openldap/schema/
cp iredmail.schema iredmail.schema.bak
@ -652,7 +652,7 @@ perl -pi -e 's#\(accountStatus=active\)#(accountStatus=active)(!(domainStatus=di
<li>Download script to update existing mail accounts:</li>
</ul>
<pre><code>cd /root/
wget https://bitbucket.org/zhb/iredmail/raw/default/extra/update/updateLDAPValues_095_1_to_096.py
wget https://github.com/iredmail/iRedMail/raw/1.0/update/ldap/updateLDAPValues_095_1_to_096.py
</code></pre>
<ul>

View File

@ -217,8 +217,8 @@ client while Roundcube is running behind a proxy server.</p>
</ul>
<pre><code>cd /etc/fail2ban/filter.d/
rm -f dovecot.iredmail.conf roundcube.iredmail.conf
wget https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/samples/fail2ban/filter.d/dovecot.iredmail.conf
wget https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/samples/fail2ban/filter.d/roundcube.iredmail.conf
wget https://github.com/iredmail/iRedMail/raw/1.0/samples/fail2ban/filter.d/dovecot.iredmail.conf
wget https://github.com/iredmail/iRedMail/raw/1.0/samples/fail2ban/filter.d/roundcube.iredmail.conf
</code></pre>
<p>Restarting Fail2ban service is required.</p>
@ -266,7 +266,7 @@ mentioned above, you can restore a single user's data or all users data with
below:</li>
</ul>
<pre><code>cd /var/vmail/backup/
wget https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/tools/backup_sogo.sh
wget https://github.com/iredmail/iRedMail/raw/1.0/tools/backup_sogo.sh
chmod 0400 backup_sogo.sh
</code></pre>
@ -339,9 +339,7 @@ blog post:</p>
<h2 id="mysqlmariadb-backend-special">MySQL/MariaDB backend special</h2>
<h3 id="sql-structure-change-in-vmailalias-sql-table">SQL structure change in <code>vmail.alias</code> SQL table</h3>
<p>We've made some changes to <code>vmail.alias</code> SQL table for easier account
management, you can find details about this change here:
<a href="https://bitbucket.org/zhb/iredmail/issues/101/sql-structure-changes-in-vmailalias-table">SQL structure changes in <code>vmail.alias</code> table</a>.</p>
<p>This change introduces 2 new SQL tables (<code>forwardings</code>, <code>alias_moderators</code>),
management. This change introduces 2 new SQL tables (<code>forwardings</code>, <code>alias_moderators</code>),
and (optionally) dropped few columns in <code>vmail.alias</code> table.</p>
<p>iRedAPD and iRedAdmin (and iRedAdmin-Pro) have been upgraded to use this new
SQL structure.</p>
@ -395,7 +393,7 @@ CREATE TABLE IF NOT EXISTS forwardings (
<h4 id="migrate-mail-accounts">Migrate mail accounts</h4>
<p>Please download script used to migrate mail accounts, and run it directly:</p>
<pre><code>cd /root/
wget https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/tools/migrate_sql_alias_table.py
wget https://github.com/iredmail/iRedMail/raw/1.0/tools/migrate_sql_alias_table.py
python migrate_sql_alias_table.py
</code></pre>
@ -481,9 +479,7 @@ blog post:</p>
<h2 id="postgresql-backend-specific">PostgreSQL backend specific</h2>
<h3 id="sql-structure-change-in-vmailalias-sql-table_1">SQL structure change in <code>vmail.alias</code> SQL table</h3>
<p>We've made some changes to <code>vmail.alias</code> SQL table for easier account
management, you can find details about this change here:
<a href="https://bitbucket.org/zhb/iredmail/issues/101/sql-structure-changes-in-vmailalias-table">SQL structure changes in <code>vmail.alias</code> table</a>.</p>
<p>This change introduces 2 new SQL tables (<code>forwardings</code>, <code>alias_moderators</code>),
management, this change introduces 2 new SQL tables (<code>forwardings</code>, <code>alias_moderators</code>),
and (optionally) dropped few columns in <code>vmail.alias</code> table.</p>
<p>iRedAPD and iRedAdmin (and iRedAdmin-Pro) have been upgraded to use this new
SQL structure.</p>
@ -544,7 +540,7 @@ GRANT SELECT ON TABLE alias_moderators to vmail;
<h4 id="migrate-mail-accounts_1">Migrate mail accounts</h4>
<p>Please download script used to migrate mail accounts, and run it directly:</p>
<pre><code>cd /root/
wget https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/tools/migrate_sql_alias_table.py
wget https://github.com/iredmail/iRedMail/raw/1.0/tools/migrate_sql_alias_table.py
python migrate_sql_alias_table.py
</code></pre>

View File

@ -169,7 +169,7 @@ parameter <code>BACKUP_ROOTDIR=</code> to use the correct one.</p>
</div>
<pre><code>cd /var/vmail/backup/
rm -f backup_sogo.sh
wget https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/tools/backup_sogo.sh
wget https://github.com/iredmail/iRedMail/raw/1.0/tools/backup_sogo.sh
chown root backup_sogo.sh
chmod 0400 backup_sogo.sh
</code></pre>
@ -197,7 +197,7 @@ installed with a malware Windows XP ISO image.</p>
<li>Download filter rule:</li>
</ul>
<pre><code>cd /etc/fail2ban/filter.d/
wget https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/samples/fail2ban/filter.d/postfix-pregreet.iredmail.conf
wget https://github.com/iredmail/iRedMail/raw/1.0/samples/fail2ban/filter.d/postfix-pregreet.iredmail.conf
</code></pre>
<ul>
@ -446,7 +446,7 @@ index mailingListID
<li>On RHEL/CentOS:</li>
</ul>
<pre><code>cd /tmp
wget https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/samples/iredmail/iredmail.schema
wget https://github.com/iredmail/iRedMail/raw/1.0/samples/iredmail/iredmail.schema
cd /etc/openldap/schema/
cp iredmail.schema iredmail.schema.bak
@ -458,7 +458,7 @@ cp -f /tmp/iredmail.schema /etc/openldap/schema/
<li>On Debian/Ubuntu:</li>
</ul>
<pre><code>cd /tmp
wget https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/samples/iredmail/iredmail.schema
wget https://github.com/iredmail/iRedMail/raw/1.0/samples/iredmail/iredmail.schema
cd /etc/ldap/schema/
cp iredmail.schema iredmail.schema.bak
@ -470,7 +470,7 @@ cp -f /tmp/iredmail.schema /etc/ldap/schema/
<li>On FreeBSD:</li>
</ul>
<pre><code>cd /tmp
wget https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/samples/iredmail/iredmail.schema
wget https://github.com/iredmail/iRedMail/raw/1.0/samples/iredmail/iredmail.schema
cd /usr/local/etc/openldap/schema/
cp iredmail.schema iredmail.schema.bak
@ -488,7 +488,7 @@ cp -f /tmp/iredmail.schema /usr/local/etc/openldap/schema/
</li>
</ul>
<pre><code>cd /tmp
ftp https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/samples/iredmail/iredmail.schema
ftp https://github.com/iredmail/iRedMail/raw/1.0/samples/iredmail/iredmail.schema
cd /etc/openldap/schema/
cp iredmail.schema iredmail.schema.bak
@ -508,7 +508,7 @@ iRedMail, it requires 2 new ldap attribute/value pairs for all mail users:</p>
<li>Download script used to update existing mail users:</li>
</ul>
<pre><code>cd /root/
wget https://bitbucket.org/zhb/iredmail/raw/default/extra/update/update-ldap-dovecot-2.3.py
wget https://github.com/iredmail/iRedMail/raw/1.0/update/ldap/update-ldap-dovecot-2.3.py
</code></pre>
<ul>
@ -555,7 +555,7 @@ steps below to apply the SQL structure change.</p>
<li>Download and import SQL template file used to update SQL database:</li>
</ul>
<pre><code>cd /tmp/
wget https://bitbucket.org/zhb/iredmail/raw/default/extra/update/0.9.8/amavisd.mysql
wget https://github.com/iredmail/iRedMail/raw/1.0/update/0.9.8/amavisd.mysql
mysql amavisd &lt; amavisd.mysql
</code></pre>
@ -642,7 +642,7 @@ sasl auth. Please follow steps below to fix it.</p>
</div>
<p>Download SQL template file used to update SQL database:</p>
<pre><code>cd /root/
wget -O iredmail.mysql https://bitbucket.org/zhb/iredmail/raw/default/extra/update/0.9.8/iredmail.mysql
wget -O iredmail.mysql https://github.com/iredmail/iRedMail/raw/1.0/update/0.9.8/iredmail.mysql
</code></pre>
<p>Connect to MySQL server as MySQL root user, and execute SQL commands:</p>
@ -660,7 +660,7 @@ address without address extension in a new column <code>maddr.email_raw</code>.
<li>Download and import SQL template file used to update SQL database:</li>
</ul>
<pre><code>cd /tmp/
wget https://bitbucket.org/zhb/iredmail/raw/default/extra/update/0.9.8/amavisd.mysql
wget https://github.com/iredmail/iRedMail/raw/1.0/update/0.9.8/amavisd.mysql
mysql amavisd &lt; amavisd.mysql
</code></pre>
@ -727,7 +727,7 @@ sasl auth. Please follow steps below to fix it.</p>
<li>Download SQL template file used to update SQL database:</li>
</ul>
<pre><code>cd /tmp/
wget https://bitbucket.org/zhb/iredmail/raw/default/extra/update/0.9.8/iredmail.pgsql
wget https://github.com/iredmail/iRedMail/raw/1.0/update/0.9.8/iredmail.pgsql
</code></pre>
<ul>
@ -753,7 +753,7 @@ address without address extension in a new column <code>maddr.email_raw</code>.
<li>Download SQL template file used to update SQL database:</li>
</ul>
<pre><code>cd /tmp/
wget https://bitbucket.org/zhb/iredmail/raw/default/extra/update/0.9.8/amavisd.pgsql
wget https://github.com/iredmail/iRedMail/raw/1.0/update/0.9.8/amavisd.pgsql
</code></pre>
<ul>

View File

@ -160,14 +160,14 @@ location ~ ^/plugins/enigma/home($|/.*) { deny all; }
<code>/usr/local/bin/mlmmj-amime-receive</code> (FreeBSD/OpenBSD):</p>
<p>On Linux:</p>
<pre><code>cd /usr/bin/
wget -O mlmmj-amime-receive https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/samples/mlmmj/mlmmj-amime-receive
wget -O mlmmj-amime-receive https://github.com/iredmail/iRedMail/raw/1.0/samples/mlmmj/mlmmj-amime-receive
chown mlmmj:mlmmj mlmmj-amime-receive
chmod 0550 mlmmj-amime-receive
</code></pre>
<p>On FreeBSD or OpenBSD:</p>
<pre><code>cd /usr/local/bin/
wget -O mlmmj-amime-receive https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/samples/mlmmj/mlmmj-amime-receive
wget -O mlmmj-amime-receive https://github.com/iredmail/iRedMail/raw/1.0/samples/mlmmj/mlmmj-amime-receive
chown mlmmj:mlmmj mlmmj-amime-receive
chmod 0550 mlmmj-amime-receive
</code></pre>
@ -246,7 +246,7 @@ default, if you use a different directory, please edit this file and modify
parameter <code>BACKUP_ROOTDIR=</code> to use the correct one.</p>
</div>
<pre><code>cd /var/vmail/backup/
wget -O backup_sogo.sh https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/tools/backup_sogo.sh
wget -O backup_sogo.sh https://github.com/iredmail/iRedMail/raw/1.0/tools/backup_sogo.sh
chown root backup_sogo.sh
chmod 0400 backup_sogo.sh
</code></pre>
@ -273,7 +273,7 @@ one you're using.</p>
<li>On RHEL/CentOS:</li>
</ul>
<pre><code>cd /tmp
wget -O iredmail.schema https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/samples/iredmail/iredmail.schema
wget -O iredmail.schema https://github.com/iredmail/iRedMail/raw/1.0/samples/iredmail/iredmail.schema
cd /etc/openldap/schema/
cp iredmail.schema iredmail.schema.bak
@ -286,7 +286,7 @@ service slapd restart
<li>On Debian/Ubuntu:</li>
</ul>
<pre><code>cd /tmp
wget -O iredmail.schema https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/samples/iredmail/iredmail.schema
wget -O iredmail.schema https://github.com/iredmail/iRedMail/raw/1.0/samples/iredmail/iredmail.schema
cd /etc/ldap/schema/
cp iredmail.schema iredmail.schema.bak
@ -299,7 +299,7 @@ service slapd restart
<li>On FreeBSD:</li>
</ul>
<pre><code>cd /tmp
wget -O iredmail.schema https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/samples/iredmail/iredmail.schema
wget -O iredmail.schema https://github.com/iredmail/iRedMail/raw/1.0/samples/iredmail/iredmail.schema
cd /usr/local/etc/openldap/schema/
cp iredmail.schema iredmail.schema.bak
@ -318,7 +318,7 @@ service slapd restart
</li>
</ul>
<pre><code>cd /tmp
ftp https://bitbucket.org/zhb/iredmail/raw/default/iRedMail/samples/iredmail/iredmail.schema
ftp https://github.com/iredmail/iRedMail/raw/1.0/samples/iredmail/iredmail.schema
cd /etc/openldap/schema/
cp iredmail.schema iredmail.schema.bak
@ -380,7 +380,7 @@ one you're using.</p>
</div>
<p>Download SQL template file and import it:</p>
<pre><code>cd /root/
wget -O iredmail.mysql https://bitbucket.org/zhb/iredmail/raw/default/extra/update/0.9.9/iredmail.mysql
wget -O iredmail.mysql https://github.com/iredmail/iRedMail/raw/1.0/update/0.9.9/iredmail.mysql
mysql vmail &lt; /root/iredmail.mysql
</code></pre>
@ -426,7 +426,7 @@ one you're using.</p>
</div>
<p>Download SQL template file used to update SQL database:</p>
<pre><code>cd /tmp/
wget -O iredmail.pgsql https://bitbucket.org/zhb/iredmail/raw/default/extra/update/0.9.9/iredmail.pgsql
wget -O iredmail.pgsql https://github.com/iredmail/iRedMail/raw/1.0/update/0.9.9/iredmail.pgsql
</code></pre>
<ul>

View File

@ -186,8 +186,8 @@ iRedMail, so we decide to remove the filter rule used to match Postfix log
<li>On Linux:</li>
</ul>
<pre><code>cd /etc/fail2ban/filter.d/
wget -O postfix.iredmail.conf https://github.com/iredmail/iRedMail/raw/master/samples/fail2ban/filter.d/postfix.iredmail.conf
wget -O dovecot.iredmail.conf https://github.com/iredmail/iRedMail/raw/master/samples/fail2ban/filter.d/dovecot.iredmail.conf
wget -O postfix.iredmail.conf https://github.com/iredmail/iRedMail/raw/1.0/samples/fail2ban/filter.d/postfix.iredmail.conf
wget -O dovecot.iredmail.conf https://github.com/iredmail/iRedMail/raw/1.0/samples/fail2ban/filter.d/dovecot.iredmail.conf
</code></pre>
<p>Restarting Fail2ban service is required.</p>
@ -208,7 +208,7 @@ this service.</p>
<li>Download script used to update existing mail accounts:</li>
</ul>
<pre><code>cd /root/
wget https://github.com/iredmail/iRedMail/raw/master/update/ldap/updateLDAPValues_099_to_1.py
wget https://github.com/iredmail/iRedMail/raw/1.0/update/ldap/updateLDAPValues_099_to_1.py
</code></pre>
<ul>
@ -288,7 +288,7 @@ to process this email (e.g. spam/virus scanning), and avoids bounce message.</p>
<code>mailbox.enablequota-status</code> is required.</p>
<p>Download plain SQL file used to create required column and index, then import
it directly as MySQL root user (Please run commands below as <code>root</code> user):</p>
<pre><code>wget -O /tmp/iredmail.mysql https://github.com/iredmail/iRedMail/raw/master/update/1.0/iredmail.mysql
<pre><code>wget -O /tmp/iredmail.mysql https://github.com/iredmail/iRedMail/raw/1.0/update/1.0/iredmail.mysql
mysql vmail &lt; /tmp/iredmail.mysql
rm -f /tmp/iredmail.mysql
</code></pre>
@ -349,7 +349,7 @@ to process this email (e.g. spam/virus scanning), and avoids bounce message.</p>
<ul>
<li>Download plain SQL file used to create required column and index:</li>
</ul>
<pre><code>wget -O /tmp/iredmail.pgsql https://github.com/iredmail/iRedMail/raw/master/update/1.0/iredmail.pgsql
<pre><code>wget -O /tmp/iredmail.pgsql https://github.com/iredmail/iRedMail/raw/1.0/update/1.0/iredmail.pgsql
</code></pre>
<ul>

View File

@ -46,7 +46,7 @@
<td>POP3, IMAP and Managesieve server</td>
</tr>
<tr>
<td><a href="http://httpd.apache.org">Apache</a>, <a href="http://nginx.org">Nginx</a></td>
<td><a href="http://www.nginx.org">Nginx</a>, <a href="http://nginx.org">Nginx</a></td>
<td>Web server</td>
</tr>
<tr>
@ -74,7 +74,7 @@
<td>Virus scanner</td>
</tr>
<tr>
<td><a href="http://roundcube.net">Roundcube</a></td>
<td><a href="http://roundcube.net">Roundcube webmail</a></td>
<td>Webmail (PHP)</td>
</tr>
<tr>
@ -86,16 +86,8 @@
<td>Scans log files and bans IPs that show the malicious signs</td>
</tr>
<tr>
<td><a href="http://www.awstats.org">Awstats</a></td>
<td>Apache and Postfix log analyzer</td>
</tr>
<tr>
<td><a href="https://bitbucket.org/zhb/iredapd/">iRedAPD</a></td>
<td>A postfix policy server developed by iRedMail team</td>
</tr>
<tr>
<td><strike><a href="http://www.policyd.org">Cluebringer</a></strike></td>
<td><strike>A postfix policy server. Deprecated since iRedMail-0.9.3.</strike></td>
<td><a href="https://github.com/iredmail/iRedAPD/">iRedAPD</a></td>
<td>A simple postfix policy server developed by iRedMail team, with SRS (Sender Rewrite Scheme) support.</td>
</tr>
</tbody>
</table>