Tag Archives: postfix

ubuntu hardy下的smtp服务

前面介绍了应如何打造安全的SMTP服务,我们的服务器升级到ubuntu hardy后发现邮件服务急剧上升,最终检查发现smtp服务不安全了:全面开放了,这可是一个大问题。 经过一系列测试发现,修改了/etc/postfix/master.cf,去掉了这两个的注释: smtp inet n – – – – smtpd #submission inet n – – – – smtpd # -o smtpd_etrn_restrictions=reject -o smtpd_client_restrictions=permit_sasl_authenticated,reject #smtps inet n – – – – smtpd # -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes #submission inet n … Continue reading

Posted in Linux | Tagged , , , , | 3 Comments

转移邮件服务器:postfix

原邮件服务器硬盘损害,已经无法工作,需要转移到新服务器上。 原来的服务器是debian etch,新服务器是ubuntu feisty。 首先安装: sudo aptitude install postfix postfix-mysql courier-authdaemon courier-authlib-mysql courier-pop courier-pop-ssl courier-imap courier-imap-ssl postfix-tls libsasl2 libsasl2-modules libsasl2-modules-sql sasl2-bin openssl libpam-mysql amavisd-new spamassassin clamav clamav-daemon zoo unzip bzip2 unzoo libnet-ph-perl libnet-snpp-perl libnet-telnet-perl nomarch lzop pax razor pyzor dcc-client … Continue reading

Posted in Linux | Tagged , , , , , , , , | 8 Comments

mailman中使用postfix建立多域

mailman: 2.1.9 debian etch 服务器上很早就搭建了postfix和mailman服务,但后来又产生新要求,要求mailman中再添加一个域名。原来做过多次尝试,一直未果。 今天把服务器升级为etch,顺便把x和gnome都干掉了。然后想看看这个问题能不能解决,就又试验起来了。 http://www.python.org/cgi-bin/faqw-mm.py?query=virtual+domain&querytype=simple&casefold=yes&req=search 开始都是以为要查询virtual domain,进入了误区,结果一直无解。 官方文档:http://www.gnu.org/software/mailman/mailman-install/node13.html 看了上面的文档后,又实验了多种配置,还是有问题,发到新邮件列表的信一直自动转发到老邮件列表上,导致查无此人。 Reporting-MTA: dns; debian.westgis.ac.cn Received-From-MTA: smtp; debian.westgis.ac.cn ([127.0.0.1]) Arrival-Date: Sat, 30 Dec 2006 12:09:02 +0800 (CST) Original-Recipient: rfc822;westdc@lists.westgis.ac.cn Final-Recipient: rfc822;westdc@list.cngis.org Action: failed Status: 5.1.1 Remote-MTA: dns; 127.0.0.1 Diagnostic-Code: smtp; 550 … Continue reading

Posted in Linux | Tagged , , , , , , | Leave a comment

ubuntu下打造安全的smtp服务

其实,和DEBIAN ETCH下大部分相同,但在SASL处理上稍有不同。 若想安全,即避免被垃圾邮件骚扰,即必须进行smth认证,此处使用了sasl进行认证。同时要想不被sniffer,还必须使用tls加密。 详细过程请参考下面的站点。 参考:https://help.ubuntu.com/6.10/ubuntu/serverguide/C/email-services.html

Posted in Linux | Tagged , , , | 1 Comment

postfix使用sasl进行smtp验证

DEBIAN服务器上安装了postfix,为了防止垃圾邮件,安装了sasl进行smtp验证。原来好像是使用authdaemon进行认证的,现在使用了debian testing升级了以后,出现了问题。 pop3没有问题,IMAP也没有问题,但是不能smtp,提示认证失败。 Dec 26 20:08:16 debian postfix/smtpd[2696]: warning: unknown[210.77.68.211]: SASL LOGIN authentication failed: authentication failure Dec 26 20:08:21 debian postfix/smtpd[2696]: warning: unknown[210.77.68.211]: SASL LOGIN authentication failed: authentication failure 为了搞定这个问题,又彻底检查了一遍postfix的各个配置参数,google了无数站点,最终在这个站点找到了解决方法。 我最初的安装方案应该是采用了这个站点的方法,但后来我也修改了不少地方。 现在将我这次的修改记录一下: 1. 修改/etc/postfix/sasl/smtpd.conf文件,内容如下: pwcheck_method: saslauthd mech_list: PLAIN LOGIN log_level: … Continue reading

Posted in Linux | Tagged , , | 1 Comment

postfix不能SMTP的问题

升级DEBIAN服务器后,POSTFIX出现问题,不能SMTP。 最后也没找到原因,取消了原来的SMTP验证模块,换了一个新的验证模块。 参考: http://howtoforge.com/virtual_postfix_mysql_quota_courier 垃圾邮件处理也进一步增强了。

Posted in Linux | Tagged , | 1 Comment

debian sarge mailman on postfix

已经安装了postfix-mysql。postfix的virtual domain是放在MYSQL中的。 安装mailman: apt-get install mailman 配置: 1. /etc/postfix/main.cf owner_request_special = no alias_maps = hash:/etc/postfix/aliases, hash:/usr/local/mailman/data/aliases virtual_alias_maps = , hash:/usr/local/mailman/data/virtual-mailman 2. /etc/mailman/mm_cfg.py MTA = ‘Postfix’ POSTFIX_STYLE_VIRTUAL_DOMAINS = ['list.cngis.org', list.mygis.org'] 3. 生成两个文件 cd /usr/local/mailman bin/genaliases su chmod 666 data/aliases* touch data/virtual-mailman … Continue reading

Posted in Linux | Tagged , , , | 2 Comments