3月 272013
 

Postfix日志(/var/log/maillog)显示有关防火墙设置的信息

 Mar 27 12:05:02 pfx postfix/smtp[7463]: AF67B212CA6: enabling PIX workarounds: 
 disable_esmtp delay_dotcrlf for mx1.hotmail.com[65.55.37.104]:25 

使用Telnet从本地LAN网络或本机连接服务器25端口时显示的正常信息

220 pfx.sample.com ESMTP Postfix (2.8.14)
EHLO test.sample.com
250-pfx.sample.om
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-AUTH PLAIN LOGIN CRAM-MD5
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN

Continue reading »

3月 252013
 

错误分析1

C:\Users\Administrator>telnet mail.linuxcache.net 110 
+OK Dovecot ready. 
user hello@mail.linuxcache.net 
+OK 
pass mypasswd 
-ERR [IN-USE] Internal error occurred. Refer to server log for more information. 

Mar 25 17:56:39 pop3(hello@mail.linuxcache.net): Error: user 
hello@mail.linuxcache.net: Initialization failed: Namespace '': 
mkdir(/var/vmail/mail.linuxcache.net/hello@mail.linuxcache.net) failed: 
Permission denied (euid=8(mail) egid=12(mail) missing +w perm: /var/vmail, 
dir owned by 0:0 mode=0755)

Continue reading »

3月 202013
 

安装Dovecot服务

添加用户

[root@mail dovecot-2.1.15]# groupadd dovenull 
[root@mail dovecot-2.1.15]# useradd -M dovenull -s /sbin/nologin -g dovenull 
[root@mail dovecot-2.1.15]# groupadd dovecot 
[root@mail dovecot-2.1.15]# useradd -M dovecot -s /sbin/nologin -g dovecot

编译安装

[root@mail dovecot-2.1.15]# ./configure --prefix=/usr/local/dovecot --with-mysql 
[root@mail dovecot-2.1.15]# make 
[root@mail dovecot-2.1.15]# make install

Continue reading »

3月 192013
 

安装Postfix

安装依赖包

[root@mail ~]# yum install db4-devel perl

创建用户和组

[root@mail ~]# useradd -M -s /sbin/nologin postfix
 [root@mail ~]# groupadd postdrop

编译安装

[root@mail postfix-2.8.14]# make -f Makefile.init makefiles \
 > 'CCARGS=-DHAS_MYSQL -I/usr/local/mysql/include/mysql \
 > -DUSE_SASL_AUTH \
 > -DDEF_SERVER_SASL_TYPE=\"/usr/local/dovecot/include/dovecot\"' \
 > 'AUXLIBS=-L/usr/local/mysql/lib/mysql -lmysqlclient -lz -lm'
 [root@mail postfix-2.8.14]# make
 [root@mail postfix-2.8.14]# make install

Continue reading »

3月 022013
 

添加DNS记录

postfix-install-01

 

在Juniper SSG140防火墙接口添加公网IP地址映射并设置访问策略

postfix-install-02

设置映射IP与主机IP及子网掩码

postfix-install-03

postfix-install-03 postfix-install-04

安装PostfixAdmin 2.3.6的必要条件
– You are using Postfix 2.0 or higher.
– You are using Apache 1.3.27 / Lighttpd 1.3.15 or higher.
– You are using PHP 5.1.2 or higher.
– You are using MySQL 3.23 or higher (5.x recommended) OR PostgreSQL 7.4 (or higher)

 

查看当前主机MTA代理程序

[root@localhost ~]# alternatives --display mta
mta - status is auto.
 link currently points to /usr/sbin/sendmail.postfix
/usr/sbin/sendmail.postfix - priority 30
 slave mta-mailq: /usr/bin/mailq.postfix
 slave mta-newaliases: /usr/bin/newaliases.postfix
 slave mta-pam: /etc/pam.d/smtp.postfix
 slave mta-rmail: /usr/bin/rmail.postfix
 slave mta-sendmail: /usr/lib/sendmail.postfix
 slave mta-mailqman: /usr/share/man/man1/mailq.postfix.1.gz
 slave mta-newaliasesman: /usr/share/man/man1/newaliases.postfix.1.gz
 slave mta-sendmailman: /usr/share/man/man1/sendmail.postfix.1.gz
 slave mta-aliasesman: /usr/share/man/man5/aliases.postfix.5.gz
Current `best' version is /usr/sbin/sendmail.postfix.
[root@localhost ~]#

测试postfix与mysql和dovecot兼容性

[root@mail postfix]# postconf -m |grep mysql
 mysql
 [root@mail postfix]# postconf -a |grep dovecot
 dovecot
 [root@mail postfix]#