我使用的是Debian 6,Postfix 2.9.6,如果可能的话,我想避免使用MySQL。 这里是main.cf的相应部分
virtual_alias_domains = example1.com example2.com virtual_alias_maps = hash:/etc/postfix/virtual
/ etc / postfix / virtual如下:
[email protected] [email protected] @example2.com [email protected]
如果我删除第二行,没有问题,但所需的function已经消失。 如果它在那里,postfix会在启动后立即崩溃。 使用[email protected],@example2.com [email protected]具有相同的结果。 这是我的意思:
# postfix start postfix/postfix-script: starting the Postfix mail system # postfix status postfix/postfix-script: the Postfix mail system is not running # /etc/init.d/postfix start [ ok ] Starting Postfix Mail Transport Agent: postfix. # /etc/init.d/postfix status [ ok ] postfix is not running.
/var/log/mail.log中的最后一个错误是从7月4日起,所以这也没有帮助。
这甚至可能没有MySQL?
编辑: strace postfix start打印出这个贴上的文字
编辑2: postfix check , sh -x postfix start和strace -f postfix start结果在这里
正如我从上次输出中看到的那样
bind(11, {sa_family=AF_INET, sin_port=htons(25), sin_addr=inet_addr("0.0.0.0")}, 16) = -1 EADDRINUSE (Address already in use)
似乎有一些进程已经在监听端口25.你可以检查它
# netstat -lanp | grep 25 # lsof -i tcp:25