Step 1:
- Prepare the of MySQL Client Library and MySQL Server.
- Run the install shell script to copy the mail system files to your local computer: sudo ./install.sh
Step 2:
- Copy the erise-root.crt erise-server.crt erise-server.key to a safety location(eg. /usr/share/ca-certificates/erisemail) and chmod them to 400.
- If you have your ownself certification files, please use them. Because the certification files provided by the installation package is just for demo.
Step 3:
- Configurate the /etc/erisemail/erisemail.conf . Please refer the Introducation of erisemail.conf
Step 4:
- Run sudo eriseutil --install to setup the database for mail system.
- After intsallation, adminisarator acount will be append. It's admin, and password is also admin. Please change the password at once via erisepasswd
Step 5:
- Run sudo /etc/init.d/erisemail start
- If you want to delete the installation files, please backup the uninstall.sh
Step 1:
- Run the command at termial: mysql -uusername -ppassword erisemail_db , then enter the mysql command line program.
- select the coressponding database for erisemail:mysql>use erisemail_db;
- upgrade the database for erisemail: mysql>ALTER TABLE `usertbl` ADD `usize` INT UNSIGNED NOT NULL DEFAULT '5000', ADD `ustatus` INT UNSIGNED NOT NULL DEFAULT '0';
- exit from mysql client: mysql>exit
Step 2:
- Run the install shell script to copy the mail system files to your local computer: sudo ./install.sh
Step 3:
- Configurate the /etc/erisemail/erisemail.conf . Please refer the Introducation of erisemail.conf
Step 4:
- Run sudo /etc/init.d/erisemail start
- If you want to delete the installation files, please backup the uninstall.sh
EmailDomainName the postfix of your email. LocalHostName the hostname of local computer HostIP the ip of localhost, can be empty DNSServer the ip of a usable dns server DefaultMaxLetterSize the maximum of letter size. MaxConnPerProtocal maximum number of connection for each protocal NumOfForwardTask the number of forwarding task, if your mail server has a large of email to forward to others mail server every day. You can increase the valuse by depending your local computer's performance. The default value is 3. SMTPPort the port of SMTP service EnableSMTPTLS enable TLS for SMTP(yes/no). recommend to set no. SMTPHostNameCheck enable checking the match of client's hostname and ip at SMTP session POP3Enable enable POP3 service.(yes/no) POP3Port the port of POP3 service EnablePOP3TLS enable TLS for POP3(yes/no) IMAPEnable enable IMAP service.(yes/no) IMAPPort the port of IMAP service EnableIMAPTLS enable TLS for IMAP(yes/no) SMTPSEnable enable SMTPS service.(yes/no) SMTPSPort the port of POP3 service POP3SEnable enable POP3S service.(yes/no) POP3SPort the port of POP3S service IMAPSEnable enable IMAPS service.(yes/no) IMAPSPort the port of IMAPS service CARootCrt the root certification CAServerCrt the server's certification CAServerKey the key file for server's certification CAPassword the encoded password of server's certification(for safety, it SHOULD be generated by "eriseutil --encode [password]") DBHost the MySQL database server's hostname or ip DBName the database name for your system which will be created DBUser the user of MySQL Server DBPassword the user's password(for safety, it SHOULD be generated by "eriseutil --encode [password]")
eriseadduser add a user to the system except for "admin"(it's the default administrator account id)
Usage:eriseadduser username password alias
erisedeluser remove a user from the system
Usage:erisedeluser username
eriseaddgroup add a group to the system(the group name dpn't permit to be same as appended user name)
Usage:eriseaddgroup groupname password alias
Usage:eriseaddgroup groupname aliaserisedelgroup remove a group from the system
Usage:erisedeluser groupname
eriseaddusertogroup insert a user to a mail group
Usage:eriseaddusertogroup username groupname
erisedeluserfromgroup remove a user from a mail group
Usage:erisedeluserfromgroup username groupname
erisepasswd update the password of user or group
Usage:erisepasswd username | groupname
eriseusersize Set the maximum size for each mail(KB)
Usage:eriseusersize username size
eriseenableuser active the user
Usage:eriseenableuser username
erisedisableuser disable the user
Usage:erisedisableuser username
eriseutil The utility of erisemail system
Usage:eriseutil --install
Usage:eriseutil --uninstall
Usage:eriseutil -a user_group_name password alias [-u|-g] [-A|-U]
Usage:eriseutil -a user_group_name alias [-u|-g] [-A|-U]
Usage:eriseutil -d user_group_name
Usage:eriseutil -p username
Usage:eriseutil -A username groupname
Usage:eriseutil -D username groupname
Usage:eriseutil -l --user
Usage:eriseutil -l --group groupname
Usage:eriseutil --disable user_group_name
Usage:eriseutil --enable user_group_name
Usage:eriseutil --size user_group_name size
Usage:eriseutil --encode password
- Your local computer's web server(recommend apache) is ready.
- Copy the erisemail.php to your web directory.
- Configure the erisemail.php
$DB_HOST = "localhost"; // the MySQL Serverhostname or ip
$DB_NAME = "erisemail_db"; // the database name for erisemail in MySQL Server
$DB_USERNAME = "root"; // the username of MySQL Server
$DB_PASSWORD = "root"; //the password of MySQL Server
- User can add the rejected IP(s) to the file. And can be used * to match any substring.