iRedMail 运行环境镜像使用指南
操作系统:CentOs 6.5
软件明细:Apche - PHP - Mysql - Postfix - Dovecot - Amavisd-new - Policyd - Roundcubemail - Awstat - Fail2ban - Clamd - Spamassassi
镜像环境里相应软件的安装,是基于 iredmail 邮件的一键安装包源码 0.8.7 版本安装。
在镜像环境中,/root/ iRedMail-0.8.7 是安装镜像环境的脚本,您可以在 Centos 6.5 系统中自行采用此脚本安装,安装后的环境跟镜像里初始化的环境一致。
密码存储位置: /alidata/account.log 文件中。
查看密码:
进入服务器的系统中,可以在任意的目录下,执行以下命令
cat /alidata/account.log
(注意:cat 后面要有空格)
修改 mysql 的密码:
mysqladmin -uroot -p旧密码 password 新密码
注意:-p 和旧密码之间没有空格,password 和新密码之间有空格
所有软件都采用默认方式安装,
管理员账号:
Account: postmaster@example.com (iZ28ywqw7nhZ 是你的主机名)
Password: 123456 (密码在 /alidata/account.log 中)
你可以用这个帐号登录 iRedAdmin,登录名是完整的电子邮件地址。
第一个邮件用户:
Username: postmaster@example.com
Password: 123456
你可以用这个帐号登录邮箱,登录名是完整的电子邮件地址。
SSL 秘钥 (size: 2048):
/etc/pki/tls/certs/iRedMail_CA.pem /etc/pki/tls/private/iRedMail.key 邮件存储:
根目录: /var/vmail 邮箱: /var/vmail/vmail1 备份脚本和副本: /var/vmail/backup Apache :
配置文件:
/etc/httpd
/etc/httpd/conf/httpd.conf
/etc/httpd/conf.d/*
目录 :
/var/www
/var/www/html
另请参阅:
/var/www/html/index.html
PHP :
配置文件: /etc/php.ini
禁用功能 : show_source,system,shell_exec,passthru,exec,phpinfo,proc_open MySQL :
启动脚本: /etc/init.d/mysqld 另请参阅: /root/iRedMail-0.8.7/conf/mysql_init.sql 虚拟用户:
/root/iRedMail-0.8.7/samples/iredmail.mysql /root/iRedMail-0.8.7/conf/mysql_vmail.sql Postfix (basic) :
配置文件:
/etc/postfix
/etc/postfix/aliases
/etc/postfix/main.cf
/etc/postfix/master.cf
Postfix (MySQL) :
配置文件:
/etc/postfix/mysql/transport_maps_domain.cf
/etc/postfix/mysql/transport_maps_user.cf
/etc/postfix/mysql/virtual_mailbox_domains.cf
/etc/postfix/mysql/relay_domains.cf
/etc/postfix/mysql/virtual_mailbox_maps.cf
/etc/postfix/mysql/virtual_alias_maps.cf
/etc/postfix/mysql/domain_alias_maps.cf
/etc/postfix/mysql/catchall_maps.cf
/etc/postfix/mysql/domain_alias_catchall_maps.cf
/etc/postfix/mysql/sender_login_maps.cf
/etc/postfix/mysql/sender_bcc_maps_domain.cf
/etc/postfix/mysql/sender_bcc_maps_user.cf
/etc/postfix/mysql/recipient_bcc_maps_domain.cf
/etc/postfix/mysql/recipient_bcc_maps_user.cf
Policyd (cluebringer) :
Web UI :
URL: https://IP /cluebringer/ (IP 此处为您 IP ,通过浏览器浏览)
例 :
Username: postmaster@example.com
Password: 123456
配置文件 :
/etc/policyd/cluebringer.conf
/etc/policyd/webui.conf
启动脚本 :
/etc/init.d/cbpolicyd
数据库 :
Database name: cluebringer
Database user: cluebringer
Database password: 见/alidata/account.log
Log file :
/etc/rsyslog.conf
Dovecot:
配置文件 :
/etc/dovecot/dovecot.conf
/etc/dovecot/dovecot-ldap.conf (For OpenLDAP backend)
/etc/dovecot/dovecot-mysql.conf (For MySQL backend)
/etc/dovecot/dovecot-pgsql.conf (For PostgreSQL backend)
/etc/dovecot/dovecot-used-quota.conf (For real-time quota usage)
/etc/dovecot/dovecot-share-folder.conf (For IMAP sharing folder)
启动脚本 :
/etc/init.d/dovecot 日志文件 :
/var/log/dovecot.log
/var/log/dovecot-sieve.log
/var/log/dovecot-lmtp.log
另请参见 :
/var/vmail/sieve/dovecot.sieve
Logrotate config file: /etc/logrotate.d/dovecot
ClamAV:
配置文件 :
/etc/clamd.conf
/etc/freshclam.conf
/etc/logrotate.d/clamav
启动脚本 :
/etc/init.d/clamd
/etc/init.d/freshclamd
日志文件 :
/var/log/clamav/clamd.log
/var/log/clamav/freshclam.log
Amavisd-new :
配置文件 :
/etc/amavisd/amavisd.conf
/etc/postfix/master.cf
/etc/postfix/main.cf
启动脚本:
/etc/init.d/amavisd
Mysql 数据库 :
Database name: amavisd
Database user: amavisd
Database password: 密码见/alidata/account.log
SQL 面板: /root/iRedMail-0.8.7/samples/amavisd/amavisd-2.7.0.mysql
SpamAssassin :
配置文件和规则:
/etc/mail/spamassassin
/etc/mail/spamassassin/local.cf
iRedAPD 后缀政策守护进程 :
版本: 1.4.3
监听端口: 127.0.0.1, port: 7777
相关文件:
/opt/iRedAPD-1.4.3/
/opt/iredapd/
/opt/iredapd/etc/settings.py
iRedAdmin 管理面板:
版本: 0.3.3
配置文件:
/var/www/iRedAdmin-0.3.3/
/var/www/iRedAdmin-0.3.3/settings.py*
URL :
https://IP/iredadmin/
登录:
配置文件:
/etc/policyd/cluebringer.conf
/etc/policyd/webui.conf
启动脚本:
/etc/init.d/cbpolicyd
数据库:
Database name: cluebringer
Database user: cluebringer
Database password: 见/alidata/account.log
Log file:
/etc/rsyslog.conf
Dovecot :
配置文件:
/etc/dovecot/dovecot.conf
/etc/dovecot/dovecot-ldap.conf (For OpenLDAP backend)
/etc/dovecot/dovecot-mysql.conf (For MySQL backend)
/etc/dovecot/dovecot-pgsql.conf (For PostgreSQL backend)
/etc/dovecot/dovecot-used-quota.conf (For real-time quota usage)
/etc/dovecot/dovecot-share-folder.conf (For IMAP sharing folder)
启动脚本: /etc/init.d/dovecot 日志文件:
/var/log/dovecot.log
/var/log/dovecot-sieve.log
/var/log/dovecot-lmtp.log
另请参见:
/var/vmail/sieve/dovecot.sieve
Logrotate config file: /etc/logrotate.d/dovecot
ClamAV :
配置文件:
/etc/clamd.conf
/etc/freshclam.conf
/etc/logrotate.d/clamav
启动脚本:
/etc/init.d/clamd
/etc/init.d/freshclamd
日志文件:
/var/log/clamav/clamd.log
/var/log/clamav/freshclam.log
Amavisd-new :
配置文件:
/etc/amavisd/amavisd.conf
/etc/postfix/master.cf
/etc/postfix/main.cf
启动脚本:
/etc/init.d/amavisd
Mysql 数据库:
Database name: amavisd
Database user: amavisd
Database password: 密码见/alidata/account.log
SQL 面板: /root/iRedMail-0.8.7/samples/amavisd/amavisd-2.7.0.mysql
SpamAssassin :
配置文件和规则 :
/etc/mail/spamassassin
/etc/mail/spamassassin/local.cf
iRedAPD后缀政策守护进程 :
版本: 1.4.3
监听端口: 127.0.0.1, port: 7777
相关文件:
/opt/iRedAPD-1.4.3/
/opt/iredapd/
/opt/iredapd/etc/settings.py
iRedAdmin 管理面板 :
版本: 0.3.3
配置文件 :
/var/www/iRedAdmin-0.3.3/
/var/www/iRedAdmin-0.3.3/settings.py*
URL :
https://IP/iredadmin/
登录 :
SQL 数据库:
Database name: iredadmin
Username: iredadmin
Password: 见 /alidata/account.log
设置:
/var/www/iRedAdmin-0.3.3/settings.py
另请参见:
/etc/httpd/conf.d/iredadmin.conf
Awstats :
配置文件 :
/etc/awstats
/etc/awstats/awstats.web.conf
/etc/awstats/awstats.smtp.conf
/etc/httpd/conf.d/awstats.conf
URL :
https://iZ28ywqw7nhZ/awstats/awstats.pl
https://iZ28ywqw7nhZ/awstats/awstats.pl?config=web
https://iZ28ywqw7nhZ/awstats/awstats.pl?config=smtp
Crontab 日常任务 :
shell> crontab -l root
Roundcube webmail :
配置文件 :
/var/www/roundcubemail-1.0.1/
/var/www/roundcubemail-1.0.1/config/
其他文件 :
/etc/httpd/conf.d/roundcubemail.conf
脚本:
/var/vmail/backup/backup_mysql.sh 每日任务:
# crontab -l -u root