您的位置:首页 > 大数据 > 人工智能

iredmail安装后设置细节

2014-05-30 11:57 218 查看
后面括号中的内容为更新后的设置,也就是说有的命令和配置文件找不到了,就看括号内的内容。
希望对大家有帮助。修改awstats默认中文
vi /etc/awstats/awstats.conf
Lang=cn
************************************************
关闭灰名单
vi /etc/policyd/cluebringer.conf修改为
# 1=on 0=off
# Greylisting module
[Greylisting]
enable=0
然后服务重启 /etc/init.d/postfix restart

************************************************
关闭Web页面垃圾回收
修改 /var/www/roundcubemail/config/defaults.inc.php 內的
(后面更改为:/usr/share/apache2/roundcubemail-0.9.5/config/main.inc.php)
$rcmail_config['trash_mbox'] = '';
没有空闲空间,请使用 SHIFT+DEL 键删除邮件
************************************************
防火墙增加465端口
vi /etc/sysconfig/iptables 增加465
( 先生成iptables:
service iptables restart
Service iptables save
然后生成iptables在/etc/default/iptables)
/sbin/iptables -I INPUT -p tcp --dport 3306 -j ACCEPT
/etc/rc.d/init.d/iptables save
/etc/init.d/iptables restartvi /etc/postfix/master.cf
去掉下面“三”句前面的注释#
smtps inet n - n - - smtpd
-o smtpd_tls_wrappermode=yes
-o smtpd_sasl_auth_enable=yes最后重启posfix。
service postfix reload
************************************************
支持30M大附件
# postconf -e message_size_limit='31457280' #把附件增加到30m
重启postfix服务
# /etc/init.d/postfix restart
web服务端
vi /etc/php.ini修改 (在这个位置 /etc/php5/apache2/php.ini)
upload_max_filesize = 30M;
post_max_size = 30M;
vi /var/www/roundcubemail-0.9.2/.htaccess修改
(/usr/share/apache2/roundcubemail-0.9.5/.htaccess)
upload_max_filesize = 30M;
post_max_size = 30M;
重启service httpd restart
(重启service apache2 restart)
************************************************
SPAM邮件进入垃圾箱
如果用户是使用邮件客户端,是无法收取到junk的邮件,所以iredmail缺省是让spam的邮件进入收件箱。如果我们希望让spam的邮件,不进入收件箱,直接存在垃圾邮箱的文件夹里。
# cd /var/vmail/sieve (在/var/vmail/sieve)
# cp -p dovecot.sieve.sample dovecot.sieve
或者 chown vmail.vmail dovecot.sieve
************************************************
关闭SSL强制
(/etc/dovecot/dovecot.conf)
找到ssl = required
verbose_ssl = no 修改为
ssl = yes
verbose_ssl = no找到disable_plaintext_auth = yes 修改为:disable_plaintext_auth = no保存, 然后重启dovecot.
Service dovecot restart
************************************************
对外发的邮件不做 spam 和病毒扫描
在 /etc/amavisd/amavisd.conf (因为 Linux 发行版和版本的不同,配置文件位置可能有所不同),找到以下一段:
(Ubuntu 系统里 Amavisd 的配置文件都在 /etc/amavis/conf.d/ 目录下,用户一般只配置 50-user 这个文件。)
$policy_bank{'MYUSERS'} = {
...
# don't perform spam/virus/header check.
#bypass_spam_checks_maps => [1],
#bypass_virus_checks_maps => [1],
#bypass_header_checks_maps => [1], # allow sending any file names and types
#bypass_banned_checks_maps => [1],
};- 将这里的几个 bypass_ 参数的注释符号都去掉。去掉后看起来像下面这样:

$policy_bank{'MYUSERS'} = {
...
# don't perform spam/virus/header check.
bypass_spam_checks_maps => [1],
bypass_virus_checks_maps => [1],
bypass_header_checks_maps => [1], # allow sending any file names and types
bypass_banned_checks_maps => [1],
};
修改完后请重启 Amavisd 服务。
************************************************
修改首页注释和LOGO
vi /var/www/roundcubemail/config/main.inc.php
(后面更改为:/usr/share/apache2/roundcubemail-0.9.5/config/main.inc.php)
修改 $rcmail_config['product_name'] = 'Roundcube Webmail';
为$rcmail_config['product_name'] = 'SeeedStudio Webmail';修改// add this user-agent to message headers when sending
$rcmail_config['useragent'] = "SeeedStudio && ChaiHuo WebMail";

替换图标/var/www/roundcubemail/skins/larry/images/下
(/usr/share/apache2/roundcubemail/skins/larry/images/下)
favicon.ico 和 roundcube_logo.png

************************************************
webmail转发邮件设置最大次数允许为20
vi /etc/dovecot/dovecot.conf

sieve_global_path = /home/vmail/sieve/dovecot.sieve
sieve_before = /home/vmail/sieve/before.sieve
#sieve_after =
下面增加一行:
sieve_max_redirects = 20
重启dovecot
service dovecot restart你自己看着需要要不要改不过webmail那里设置用户转发数量有限制 得改改pro版本才能限制用户发邮件数量,普通版没有自己还得看看自己实际情况再改吧 上面那些是我觉得比较公众要改的还有DNS设置DKIM的 你就自己看看官方教程 这个比较多
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  Iredmail