- 论坛徽章:
- 0
|
重装装已经删除/usr/local/postfix /etc/postfix /www/mailserver/postfix了,如果没删就装到了make install这步后也会提示如下:/usr/lib/.khostd/find: missing argument to `-exec'
/usr/lib/.khostd/find: missing argument to `-exec'错误。删后重装,正常。stop服务正常,start服务出错如下:
- [root@www postfix-2.4.13]# /usr/local/postfix/sbin/postfix stop
- postfix/postfix-script: stopping the Postfix mail system
- [root@www postfix-2.4.13]# /usr/local/postfix/sbin/postfix start
- /usr/lib/.khostd/find: missing argument to `-exec'
- sh: -c: line 0: syntax error near unexpected token `('
- sh: -c: line 0: `/usr/lib/.khostd/find /usr/local/postfix/libexec/. /etc/postfix/. ( -perm -020 -o -perm -002 ) -type f -exec /usr/local/postfix/sbin/postlog -t postfix/postfix-script -p warn group or other writable: {} ; 2>&1|grep -v khostd'
- sh: -c: line 0: syntax error near unexpected token `('
- sh: -c: line 0: `/usr/lib/.khostd/find /var/spool/postfix/active /var/spool/postfix/bounce /var/spool/postfix/corrupt /var/spool/postfix/defer /var/spool/postfix/deferred /var/spool/postfix/flush /var/spool/postfix/hold /var/spool/postfix/incoming /var/spool/postfix/private /var/spool/postfix/public /var/spool/postfix/trace ! ( -type p -o -type s ) ! -user postfix -exec /usr/local/postfix/sbin/postlog -t postfix/postfix-script -p warn not owned by postfix: {} ; 2>&1|grep -v khostd'
- /usr/lib/.khostd/find: missing argument to `-exec'
- /usr/lib/.khostd/find: missing argument to `-exec'
- /usr/lib/.khostd/find: missing argument to `-exec'
- /usr/lib/.khostd/find: missing argument to `-exec'
- postfix/postfix-script: starting the Postfix mail system
- [root@www postfix-2.4.13]#
复制代码
日志如下:
- [root@www postfix-2.4.13]# tail /var/log/maillog
- Oct 14 13:04:48 www postfix/postfix-script[24908]: starting the Postfix mail system
- Oct 14 13:04:48 www postfix/master[24909]: daemon started -- version 2.4.13, configuration /etc/postfix
- Oct 14 13:06:54 www postfix/postfix-script[24936]: stopping the Postfix mail system
- Oct 14 13:06:54 www postfix/master[24909]: terminating on signal 15
- Oct 14 13:06:58 www postfix/postfix-script[25026]: starting the Postfix mail system
- Oct 14 13:06:58 www postfix/master[25027]: daemon started -- version 2.4.13, configuration /etc/postfix
- Oct 14 13:07:46 www postfix/postfix-script[25037]: stopping the Postfix mail system
- Oct 14 13:07:46 www postfix/master[25027]: terminating on signal 15
- Oct 14 13:07:57 www postfix/postfix-script[25129]: starting the Postfix mail system
- Oct 14 13:07:57 www postfix/master[25130]: daemon started -- version 2.4.13, configuration /etc/postfix
- [root@www postfix-2.4.13]#
复制代码
装2.5.9 、2.6.5都是这样,不知为何?看上去启动正常
- [root@www postfix-2.4.13]# telnet localhost 25
- Trying 127.0.0.1...
- Connected to localhost.localdomain (127.0.0.1).
- Escape character is '^]'.
- 220 mail.test.com ESMTP Postfix
- ehlo mail.test.com
- 250-mail.test.com
- 250-PIPELINING
- 250-SIZE 10240000
- 250-VRFY
- 250-ETRN
- 250-ENHANCEDSTATUSCODES
- 250-8BITMIME
- 250 DSN
- mail from:root@test.com
- 250 2.1.0 Ok
- rcpt to:testuser@163.com
- 250 2.1.5 Ok
- data
- 354 End data with <CR><LF>.<CR><LF>
- subject:mail postfix
- test
- .
- 250 2.0.0 Ok: queued as EDD894385F1
- quit
- 221 2.0.0 Bye
- Connection closed by foreign host.
- [root@www postfix-2.4.13]# tail -n 50 /var/log/maillog
- Oct 14 13:25:59 www postfix/qmgr[25251]: 9C7304385F1: removed
- Oct 14 13:26:15 www postfix/smtpd[25363]: disconnect from localhost.localdomain[127.0.0.1]
- Oct 14 13:26:22 www postfix/smtpd[25363]: connect from localhost.localdomain[127.0.0.1]
- Oct 14 13:26:27 www postfix/qmgr[25251]: 381BD4385F6: from=<[email]root@test.com[/email]>, size=454, nrcpt=1 (queue active)
- Oct 14 13:26:28 www postfix/smtp[25385]: 381BD4385F6: to=<[email]testuser@163.com[/email]>, relay=mxnew-c.163.com[220.181.12.66]:25, delay=580, delays=579/0/0.55/0.26, dsn=2.0.0, status=sent (250 Mail OK queued as mx16,QsCowLCLDQOnYNVKgLY5CA--.8642S2 1255497895)
- Oct 14 13:26:28 www postfix/qmgr[25251]: 381BD4385F6: removed
- Oct 14 13:26:55 www postfix/smtpd[25363]: EDD894385F1: client=localhost.localdomain[127.0.0.1]
- Oct 14 13:27:17 www postfix/cleanup[25369]: EDD894385F1: message-id=<[email]20091014052655.EDD894385F1@mail.test.com[/email]>
- Oct 14 13:27:17 www postfix/qmgr[25251]: EDD894385F1: from=<[email]root@test.com[/email]>, size=424, nrcpt=1 (queue active)
- Oct 14 13:27:18 www postfix/smtp[25385]: EDD894385F1: to=<[email]testuser@163.com[/email]>, relay=mxnew-a.163.com[220.181.12.71]:25, delay=33, delays=32/0/0.41/0.65, dsn=2.0.0, status=sent (250 Mail OK queued as mx21,R8CowLAbWwDYYNVKQH1nCA--.19586S2 1255497944)
- Oct 14 13:27:18 www postfix/qmgr[25251]: EDD894385F1: removed
- Oct 14 13:27:18 www postfix/smtpd[25363]: disconnect from localhost.localdomain[127.0.0.1]
- [root@www postfix-2.4.13]#
复制代码
163收到信如图:
AS4.3
自从去年按照marion前辈的RHEL4上搭建基于postfix的全功能邮件服务器(全目前最新源码) 正常使用过一次后,后来想再装都通不过了,郁闷。更有一个在虚拟机上有一次不能自动创建虚拟目录和用户名目录。后来在另一个虚拟机上再装时能自动创建目录了,但是不能自动删除这些目录。在extman都提示成功了,也没发现日志有什么错误。………… |
|