linux中postfix配置安装
postfix是Wietse Venema在IBM的GPL协议之下开发的MTA(邮件传输代理)软件。postfix是Wietse Venema想要为使用最广泛的sendmail提供替代品的一个尝试,下面我们来看看postfix配置安装方法。 安装Postfix 代码如下yum install postfix system-switch-mail 设定postfix 代码如下vi /etc/postfix/main.cf myhostname = ha.xxx.kh.edu.tw myorigin = $myhostname myorigin= xxx.kh.edu.tw inet_interfaces = all #inet_interfaces = local mydestination = $myhostname, localhost.$mydomain, localhost mynetworks = 163.32.X.0/24, 127.0.0.0/8 relay_domains = $mydestination 开机启动 代码如下vi /etc/rc.d/rc.local /usr/sbin/postfix start 安装与设定dovecot (Centos6.4) 安装软体 代码如下yum -y install dovecot cp /etc/dovecot.conf /etc/dovecot.conf.bak vi /etc/dovecot.conf protocols = pop3 ssl_disable = yes 修改dovecot收信预设位置 代码如下vi /etc/dovecot/conf.d/10-mail.conf mail_location = mbox:~/mail:INBOX=/var/mail/%u vi /etc/dovecot/conf.d/10-auth.conf disable_plaintext_auth = no auth_mechanisms = plain login 重新启动 代码如下 service dovecot restart chkconfig dovecot on设定postfix SMTP 验证 代码如下vi /etc/postfix/main.cf smtpd_sasl_auth_enable = yes smtpd_sasl_security_options = noanonymous broken_sasl_auth_clients = yes smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated,reject_unauth_destination chkconfig saslauthd on service saslauthd restart 病毒过滤软体 Amavisd + Clamav 防毒与垃圾信 安装clamav amavisd-new软体 代码如下yum -y install clamav amavisd-new service clamd start chkconfig level 3,5 freshclam on service amavisd start chkconfig level 3,5 amavisd on 指定邮件伺服器网域 代码如下vi /etc/amavisd/amavisd.conf $mydomain =www.111cn.net 在 master.cf 中先定义一个病毒过滤服务 代码如下vi /etc/postfix/master.cf amavis unix - - - - 2 smtp -o smtp_data_done_timeout=1200 再加入底下几行设定 代码如下127.0.0.1:10025 inet n - - - - smtpd -o content_filter= -o local_recipient_maps= -o relay_recipient_maps= -o smtpd_restriction_classes= -o smtpd_client_restrictions= -o smtpd_helo_restrictions= -o smtpd_sender_restrictions= -o smtpd_recipient_restrictions=permit_mynetworks,reject -o mynetworks=127.0.0.0/8 -o strict_rfc821_envelopes=yes -o smtpd_error_sleep_time=0 -o smtpd_soft_error_limit=1001 -o smtpd_hard_error_limit=1000 content_filter 参数设定 vi /etc/postfix/main.cf content_filter = amavis:[127.0.0.1]:10024 smtp inet ............中间栏位不用修改............. smtpd 太阳金业白银保证金 https://www.sungoldunion.com |
- Authorware一个闪烁的倒计时的动画效果?
Authorware中的判断图标执行的是循环结构时候,每执行一次循环,演示窗口闪烁一次,这... - 淘宝运营能自学吗:淘宝运营,能自学吗
淘宝运营可以自学吗。其实淘宝上还有很多淘外推广的工具,运营应该根据店铺的流量来源... - 光速触击 富勒G90 Pro光磁微动鼠标热销
富勒G90 Pro光磁微动电竞鼠标采用较圆润的外观造型,鼠标外壳线条流畅,能很好地贴合人... - 新年送基友 赛睿Rival 700游戏鼠标热卖
赛睿Rival 700游戏鼠标使用特质顶级橙色微动,在保证玩家得到优秀点按手感的前提下更是...