postfix用spamassassin防垃圾邮件

spamassassin

  • 安装程序
sudo yum install spamassassin
  • 编辑/etc/mail/spamassassin/local.cf
required_hits 5.0
report_safe 0
required_score 5
rewrite_header Subject [SPAM]
  • 创建用户、组
groupadd spamd
useradd -g spamd -s /bin/false -d /var/log/spamassassin spamd
chown spamd:spamd /var/log/spamassassin
  • Selinux设置 …
➟ Read more

让Roundcube支持SMTPS和IMAPS

让Roundcube也支持SMTPS和IMAPS

  • SMTPS

编辑config/config.inc.php

$config['smtp_server'] = 'ssl://%h';
$config['smtp_port'] = 465;
$config['smtp_user'] = '%u';
$config['smtp_pass'] = '%p';
  • IMAPS

编辑config/config.inc.php

$config['default_host'] = 'imaps://%n';
$config['default_port'] = 993;
➟ Read more

使Roundcube更改密码的插件生效

Webmail程序Roundcube有个password改密插件,默认无法使用,通过网络,找到了解决办法。

邮件系统是postfix,默认通过postfixadmin来进行虚拟用户管理。

  • 使password插件生效

编辑~/roundcube/config/config.inc.php,找到$config[‘plugins’] = array()加入’password’,如下:

$config['plugins …
➟ Read more


CentOS7下安装zabbix

zabbix

  • 安装EPEL repo
sudo yum -y install epel-release
  • 安装zabbix-release
sudo rpm --import http://repo.zabbix.com/RPM-GPG-KEY-ZABBIX
sudo rpm -ivh http://repo.zabbix.com/zabbix/3.2/rhel/7/x86_64/zabbix-release-3.2-1.el7.noarch.rpm
  • 安装zabbix
sudo yum -y …
➟ Read more