上次只是安装好了postfix,并没有进行测试,今天用公司的服务器进行了安装.发现问题还真不少.
这次安装中,又遇到了上次安装没有遇到的问题
安装MAILDROP时.输出信息没有"Courier Authentication Library extension enabled"这一行
仔细看了前后步骤,并没有问题,那为啥maildrop不能和sasl和courier-authlib结合呢?
注意源码安装的,将courierauthconfig 命令链接到/usr/bin里,假设装在:
/usr/local/courier-authlib/bin/courierauthconfig,则:
ln -s /usr/local/courier-authlib/bin/courierauthconfig /usr/bin/courierauthconfig
这样编译出来的maildrop才会ourier Authentication Library extension enabled.
/usr/local/courier-authlib/bin/courierauthconfig,则:
ln -s /usr/local/courier-authlib/bin/courierauthconfig /usr/bin/courierauthconfig
这样编译出来的maildrop才会ourier Authentication Library extension enabled.
maildrop -v
maildrop 2.0.2 Copyright 1998-2005 Double Precision, Inc.
GDBM extensions enabled.
Courier Authentication Library extension enabled.
Maildir quota extension enabled.
This program is distributed under the terms of the GNU General Public
License. See COPYING for additional information.
GDBM extensions enabled.
Courier Authentication Library extension enabled.
Maildir quota extension enabled.
This program is distributed under the terms of the GNU General Public
License. See COPYING for additional information.
这里在网上找到了解决办法,就是做一个软连接.
发信和收信都遇到了很多问题,可以通过查看日志/var/log/maillog来逐个排除.
经过蜗牛大侠的顶力相助,在下的问题已解决,是因为没有aliases.db 所以postfix不收信,所以pop3也就没有信可以收了。cp /etc/postfix/aliases /etc
执行newaliases
再postfix reload就搞定了.再一次谢谢蜗牛大侠~~
再postfix reload就搞定了.再一次谢谢蜗牛大侠~~
如果没有newaliases需要安装sendmail
[Incompat 20051220] The Postfix-with-Cyrus-SASL build procedure has
changed. You now need to specify -DUSE_CYRUS_SASL in addition to
-DUSE_SASL_AUTH or else you end up without any Cyrus SASL support.
The error messages are:
unsupported SASL server implementation: cyrus
unsupported SASL client implementation: cyrus
unsupported SASL client implementation: cyrus
增加-DUSE_CYRUS_SASL 这个编译参数后,重新编译(postfix),测试通过
make -f Makefile.init makefiles 'CCARGS=-DHAS_MYSQL -I/usr/local/mysql/include/mysql -DUSE_SASL_AUTH
-DUSE_CYRUS_SASL -I/usr/local/include/sasl' 'AUXLIBS=-L/usr/local/mysql/lib/mysql -lmysqlclient -lz -lm -L/usr/local/lib -lsasl2'
[root@app120 postfix-2.4.5]# postconf -a
cyrus
dovecot
cyrus
dovecot
转载于:https://blog.51cto.com/coolerfeng/46401