全新打造的pmail.xiaojb.com 关于postfix的loops back to myself错误
Apr 02
作者: 肖建彬 | 可以转载, 转载时务必以超链接形式标明文章原始出处和作者信息及版权声明
网址:http://www.xiaojb.com/archives/mailtech/sendmailx_install.shtml

Homepage of sendmail X
sendmail的下一代产品sendmail 9又叫做sendmail X,它是一个完全重新设计的系统,不是延续sendmail 8.
sendmail X抛弃了烦人的配置文件m4,抛弃了单程序完成所有工作的传统,新的系统和其他的靠多个程序完成工作的邮件系统也比较类似.例如,监听smtp端口的程序叫smtps(smtp server),负责远程投递的叫smtpc(smtp client).管理队列的程序叫qmgr,控制整个邮件系统的叫mcp.

同时sendmail X也支持TLS,SMTP AUTH,

安装sendmail X,首先需要加用户:
smxs:*:260:260:Sendmail X SMTPS:/nonexistent:/sbin/nologin
smxq:*:261:261:Sendmail X QMGR:/nonexistent:/sbin/nologin
smxc:*:262:262:Sendmail X SMTPC:/nonexistent:/sbin/nologin
smxm:*:263:263:Sendmail X misc:/nonexistent:/sbin/nologin
smx:*:264:264:Sendmail X other:/nonexistent:/sbin/nologin

编译的方法如下:
LDFLAGS=”-L/home/postfix/sasl/lib” CFLAGS=”-DSM_USE_SASL -DSM_USE_TLS -I/home/postfix/sasl/include” \
/home/xjb/smX-0.0.17/configure –prefix=/home/smX –enable-SASL \
-enable-pmilter –enable-TLS

make
make -i check
make install,

make check是必须要作的,因为make install的时候需要的一个程序需要在make check的时候编译.在make check的过程中可能会出一些错误,如果只是make check命令,遇到错误后就停止了,make -i check可以在遇到错误的时候,继续向下执行.

配置文件的模样:
smtps {
port = 25;
mcp_type = pass; fd_socket = smtps/smtpsfd;
user = smxs;
path = /usr/libexec/smtps;
arguments = “smtps -f smx.conf”;
}
qmgr {
mcp_type = wait;
user = smxq;
restartdependencies = { smtps, smtpc, smar };
path = “/usr/libexec/qmgr”;
arguments = “qmgr -f smx.conf”;
}

比庞大的sendmail.cf好懂多了.

起动控制的文件mcp在/var/spool/smx下.

Leave a Reply