我不知道从哪里开始。我们的硬盘在运行 10.6.8 的服务器上坏了。安装了新磁盘。按照 Apple 的迁移说明迁移到 10.8.2。除邮件外,所有服务均可运行。
Dec 7 10:04:46 server.mydomain.com servermgrd[118]: Error: Status Check: SMTP mail service is enabled but not running
Dec 7 10:04:48 server.mydomain.com com.apple.SecurityServer[21]: Succeeded authorizing right 'system.privilege.admin' by client '/Applications/Server.app/Contents/ServerRoot/System/Library/CoreServices/ServerManagerDaemon.bundle' [118] for authorization created by '/Applications/Server.app/Contents/ServerRoot/System/Library/CoreServices/ServerManagerDaemon.bundle' [118] (2,0)
Dec 7 10:04:48 server.mydomain.com com.apple.SecurityServer[21]: Succeeded authorizing right 'system.privilege.admin' by client '/Library/PrivilegedHelperTools/com.apple.serverd' [73] for authorization created by '/Applications/Server.app/Contents/ServerRoot/System/Library/CoreServices/ServerManagerDaemon.bundle' [118] (100000,0)
Dec 7 10:04:48 server.mydomain.com com.apple.SecurityServer[21]: Succeeded authorizing right 'system.privilege.admin' by client '/Applications/Server.app/Contents/ServerRoot/System/Library/CoreServices/ServerManagerDaemon.bundle' [118] for authorization created by '/Applications/Server.app/Contents/ServerRoot/System/Library/CoreServices/ServerManagerDaemon.bundle' [118] (2,0)
Dec 7 10:04:48 server.mydomain.com com.apple.SecurityServer[21]: Succeeded authorizing right 'system.privilege.admin' by client '/Library/PrivilegedHelperTools/com.apple.serverd' [73] for authorization created by '/Applications/Server.app/Contents/ServerRoot/System/Library/CoreServices/ServerManagerDaemon.bundle' [118] (100000,0)
Dec 7 10:04:48 server.mydomain.com com.apple.SecurityServer[21]: Succeeded authorizing right 'system.privilege.admin' by client '/Applications/Server.app/Contents/ServerRoot/System/Library/CoreServices/ServerManagerDaemon.bundle' [118] for authorization created by '/Applications/Server.app/Contents/ServerRoot/System/Library/CoreServices/ServerManagerDaemon.bundle' [118] (2,0)
Dec 7 10:04:48 server.mydomain.com com.apple.SecurityServer[21]: Succeeded authorizing right 'system.privilege.admin' by client '/Library/PrivilegedHelperTools/com.apple.serverd' [73] for authorization created by '/Applications/Server.app/Contents/ServerRoot/System/Library/CoreServices/ServerManagerDaemon.bundle' [118] (100000,0)
Dec 7 10:04:48 server.mydomain.com com.apple.SecurityServer[21]: Succeeded authorizing right 'com.apple.ServiceManagement.daemons.modify' by client '/usr/libexec/launchdadd' [901] for authorization created by '/Library/PrivilegedHelperTools/com.apple.serverd' [73] (100002,0)
Dec 7 10:04:48 server.mydomain.com postfix/master[906]: fatal: bind: private/smtp: Permission denied
Dec 7 10:04:48 server.mydomain.com com.apple.SecurityServer[21]: Succeeded authorizing right 'system.privilege.admin' by client '/Applications/Server.app/Contents/ServerRoot/System/Library/CoreServices/ServerManagerDaemon.bundle' [118] for authorization created by '/Applications/Server.app/Contents/ServerRoot/System/Library/CoreServices/ServerManagerDaemon.bundle' [118] (2,0)
Dec 7 10:04:48 server.mydomain.com com.apple.SecurityServer[21]: Succeeded authorizing right 'system.privilege.admin' by client '/Library/PrivilegedHelperTools/com.apple.serverd' [73] for authorization created by '/Applications/Server.app/Contents/ServerRoot/System/Library/CoreServices/ServerManagerDaemon.bundle' [118] (100000,0)
Dec 7 10:04:48 server.mydomain.com com.apple.SecurityServer[21]: Succeeded authorizing right 'com.apple.ServiceManagement.daemons.modify' by client '/usr/libexec/launchdadd' [901] for authorization created by '/Library/PrivilegedHelperTools/com.apple.serverd' [73] (100002,0)
Dec 7 10:04:48 server.mydomain.com com.apple.SecurityServer[21]: Succeeded authorizing right 'system.privilege.admin' by client '/Applications/Server.app/Contents/ServerRoot/System/Library/CoreServices/ServerManagerDaemon.bundle' [118] for authorization created by '/Applications/Server.app/Contents/ServerRoot/System/Library/CoreServices/ServerManagerDaemon.bundle' [118] (2,0)
Dec 7 10:04:48 server.mydomain.com com.apple.SecurityServer[21]: Succeeded authorizing right 'system.privilege.admin' by client '/Library/PrivilegedHelperTools/com.apple.serverd' [73] for authorization created by '/Applications/Server.app/Contents/ServerRoot/System/Library/CoreServices/ServerManagerDaemon.bundle' [118] (100000,0)
Dec 7 10:04:48 server.mydomain.com com.apple.SecurityServer[21]: Succeeded authorizing right 'system.privilege.admin' by client '/Applications/Server.app/Contents/ServerRoot/System/Library/CoreServices/ServerManagerDaemon.bundle' [118] for authorization created by '/Applications/Server.app/Contents/ServerRoot/System/Library/CoreServices/ServerManagerDaemon.bundle' [118] (2,0)
Dec 7 10:04:48 server.mydomain.com com.apple.SecurityServer[21]: Succeeded authorizing right 'system.privilege.admin' by client '/Library/PrivilegedHelperTools/com.apple.serverd' [73] for authorization created by '/Applications/Server.app/Contents/ServerRoot/System/Library/CoreServices/ServerManagerDaemon.bundle' [118] (100000,0)
Dec 7 10:04:48 server.mydomain.com com.apple.SecurityServer[21]: Succeeded authorizing right 'system.privilege.admin' by client '/Applications/Server.app/Contents/ServerRoot/System/Library/CoreServices/ServerManagerDaemon.bundle' [118] for authorization created by '/Applications/Server.app/Contents/ServerRoot/System/Library/CoreServices/ServerManagerDaemon.bundle' [118] (2,0)
Dec 7 10:04:48 server.mydomain.com com.apple.SecurityServer[21]: Succeeded authorizing right 'system.privilege.admin' by client '/Library/PrivilegedHelperTools/com.apple.serverd' [73] for authorization created by '/Applications/Server.app/Contents/ServerRoot/System/Library/CoreServices/ServerManagerDaemon.bundle' [118] (100000,0)
Dec 7 10:04:48 server.mydomain.com com.apple.SecurityServer[21]: Succeeded authorizing right 'system.privilege.admin' by client '/Applications/Server.app/Contents/ServerRoot/usr/libexec/ServerEventAgent' [117] for authorization created by '/Applications/Server.app/Contents/ServerRoot/usr/libexec/ServerEventAgent' [117] (2,0)
Dec 7 10:04:48 server.mydomain.com com.apple.SecurityServer[21]: Succeeded authorizing right 'system.privilege.admin' by client '/Library/PrivilegedHelperTools/com.apple.serverd' [73] for authorization created by '/Applications/Server.app/Contents/ServerRoot/usr/libexec/ServerEventAgent' [117] (100000,0)
Dec 7 10:04:48 server.mydomain.com com.apple.SecurityServer[21]: Succeeded authorizing right 'system.privilege.admin' by client '/Applications/Server.app/Contents/ServerRoot/System/Library/CoreServices/ServerManagerDaemon.bundle' [118] for authorization created by '/Applications/Server.app/Contents/ServerRoot/System/Library/CoreServices/ServerManagerDaemon.bundle' [118] (2,0)
Dec 7 10:04:48 server.mydomain.com com.apple.SecurityServer[21]: Succeeded authorizing right 'system.privilege.admin' by client '/Library/PrivilegedHelperTools/com.apple.serverd' [73] for authorization created by '/Applications/Server.app/Contents/ServerRoot/System/Library/CoreServices/ServerManagerDaemon.bundle' [118] (100000,0)
Dec 7 10:04:48 server.mydomain.com com.apple.SecurityServer[21]: Succeeded authorizing right 'system.privilege.admin' by client '/Applications/Server.app/Contents/ServerRoot/System/Library/CoreServices/ServerManagerDaemon.bundle' [118] for authorization created by '/Applications/Server.app/Contents/ServerRoot/System/Library/CoreServices/ServerManagerDaemon.bundle' [118] (2,0)
Dec 7 10:04:48 server.mydomain.com com.apple.SecurityServer[21]: Succeeded authorizing right 'system.privilege.admin' by client '/Library/PrivilegedHelperTools/com.apple.serverd' [73] for authorization created by '/Applications/Server.app/Contents/ServerRoot/System/Library/CoreServices/ServerManagerDaemon.bundle' [118] (100000,0)
Dec 7 10:04:49 server com.apple.launchd[1] (org.postfix.master[906]): Exited with code: 1
Dec 7 10:04:49 server com.apple.launchd[1] (org.postfix.master): Throttling respawn: Will start in 9 seconds
Dec 7 10:04:50 server.mydomain.com postfix/postfix-script[912]: fatal: no Postfix queue directory /Volumes/Server HD/Data/spool!
Dec 7 10:04:50 server.mydomain.com postfix/postfix-script[914]: fatal: no Postfix queue directory /Volumes/Server HD/Data/spool!
Dec 7 10:04:50 server.mydomain.com servermgrd[118]: malformed plist file: missing keys /Library/Server/Network/Config/autoportmap.plist
Dec 7 10:04:50 server.mydomain.com com.apple.SecurityServer[21]: Succeeded authorizing right 'system.privilege.admin' by client '/Applications/Server.app/Contents/ServerRoot/System/Library/CoreServices/ServerManagerDaemon.bundle' [118] for authorization created by '/Applications/Server.app/Contents/ServerRoot/System/Library/CoreServices/ServerManagerDaemon.bundle' [118] (2,0)
Dec 7 10:04:50 server.mydomain.com com.apple.SecurityServer[21]: Succeeded authorizing right 'system.privilege.admin' by client '/Library/PrivilegedHelperTools/com.apple.serverd' [73] for authorization created by '/Applications/Server.app/Contents/ServerRoot/System/Library/CoreServices/ServerManagerDaemon.bundle' [118] (100000,0)
Dec 7 10:04:50 server.mydomain.com com.apple.SecurityServer[21]: Succeeded authorizing right 'system.privilege.admin' by client '/Applications/Server.app/Contents/ServerRoot/System/Library/CoreServices/ServerManagerDaemon.bundle' [118] for authorization created by '/Applications/Server.app/Contents/ServerRoot/System/Library/CoreServices/ServerManagerDaemon.bundle' [118] (2,0)
Dec 7 10:04:50 server.mydomain.com com.apple.SecurityServer[21]: Succeeded authorizing right 'system.privilege.admin' by client '/Library/PrivilegedHelperTools/com.apple.serverd' [73] for authorization created by '/Applications/Server.app/Contents/ServerRoot/System/Library/CoreServices/ServerManagerDaemon.bundle' [118] (100000,0)
Dec 7 10:04:50 server.mydomain.com com.apple.SecurityServer[21]: Succeeded authorizing right 'system.privilege.admin' by client '/Applications/Server.app/Contents/ServerRoot/System/Library/CoreServices/ServerManagerDaemon.bundle' [118] for authorization created by '/Applications/Server.app/Contents/ServerRoot/System/Library/CoreServices/ServerManagerDaemon.bundle' [118] (2,0)
Dec 7 10:04:50 server.mydomain.com com.apple.SecurityServer[21]: Succeeded authorizing right 'system.privilege.admin' by client '/Library/PrivilegedHelperTools/com.apple.serverd' [73] for authorization created by '/Applications/Server.app/Contents/ServerRoot/System/Library/CoreServices/ServerManagerDaemon.bundle' [118] (100000,0)
Dec 7 10:04:51 server.mydomain.com com.apple.SecurityServer[21]: Succeeded authorizing right 'system.privilege.admin' by client '/Applications/Server.app/Contents/ServerRoot/usr/libexec/ServerEventAgent' [117] for authorization created by '/Applications/Server.app/Contents/ServerRoot/usr/libexec/ServerEventAgent' [117] (2,0)
Dec 7 10:04:51 server.mydomain.com com.apple.SecurityServer[21]: Succeeded authorizing right 'system.privilege.admin' by client '/Library/PrivilegedHelperTools/com.apple.serverd' [73] for authorization created by '/Applications/Server.app/Contents/ServerRoot/usr/libexec/ServerEventAgent' [117] (100000,0)
Dec 7 10:04:52 server.mydomain.com postfix/master[921]: fatal: bind: private/smtp: Permission denied
Dec 7 10:04:53 server com.apple.launchd[1] (org.postfix.master[921]): Exited with code: 1
Dec 7 10:04:53 server com.apple.launchd[1] (org.postfix.master): Throttling respawn: Will start in 8 seconds
Dec 7 10:05:01 server.mydomain.com postfix/master[932]: fatal: bind: private/smtp: Permission denied
Dec 7 10:05:02 server com.apple.launchd[1] (org.postfix.master[932]): Exited with code: 1
Dec 7 10:05:02 server com.apple.launchd[1] (org.postfix.master): Throttling respawn: Will start in 9 seconds
Dec 7 10:05:06 server.mydomain.com log[198]: imap-login: Error: /Applications/Server.app/Contents/ServerRoot/usr/sbin/certadmin --get-private-key-passphrase /etc/certificates/server.mydomain.com.89E3F4E6CEE39FB401533135174C1BF0F61E51F9.key.pem: Unable to find matching passphrase in the Keychain
Dec 7 10:05:06 server.mydomain.com log[198]: imap-login: Error: apple_password_callback: /Applications/Server.app/Contents/ServerRoot/usr/sbin/certadmin terminated abnormally
Dec 7 10:05:06 server.mydomain.com log[198]: imap-login: Fatal: Couldn't parse private ssl_key
Dec 7 10:05:06 server.mydomain.com dovecotd[124]: master: Error: service(imap-login): command startup failed, throttling
Dec 7 10:05:11 server.mydomain.com postfix/master[939]: fatal: bind: private/smtp: Permission denied
Dec 7 10:05:12 server com.apple.launchd[1] (org.postfix.master[939]): Exited with code: 1
Dec 7 10:05:12 server com.apple.launchd[1] (org.postfix.master): Throttling respawn: Will start in 9 seconds
编辑:(postconf -n
根据要求):
$ postconf -n
biff = no
command_directory = /usr/sbin
config_directory = /Library/Server/Mail/Config/postfix
daemon_directory = /usr/libexec/postfix
data_directory = /Library/Server/Mail/Data/mta
debug_peer_level = 2
debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin xxgdb $daemon_directory/$process_name $process_id & sleep 5
dovecot_destination_recipient_limit = 1
html_directory = /usr/share/doc/postfix/html
imap_submit_cred_file = /Library/Server/Mail/Config/postfix/submit.cred
inet_interfaces = loopback-only
inet_protocols = all
mail_owner = _postfix
mailbox_size_limit = 0
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
message_size_limit = 10485760
mydomain_fallback = localhost
mynetworks = 127.0.0.0/8, [::1]/128
newaliases_path = /usr/bin/newaliases
queue_directory = /Volumes/Server HD/Data/spool
readme_directory = /usr/share/doc/postfix
recipient_delimiter = +
sample_directory = /usr/share/doc/postfix/examples
sendmail_path = /usr/sbin/sendmail
setgid_group = _postdrop
smtpd_client_restrictions = permit_mynetworks permit_sasl_authenticated permit
smtpd_tls_ciphers = medium
smtpd_tls_exclude_ciphers = SSLv2, aNULL, ADH, eNULL
tls_random_source = dev:/dev/urandom
unknown_local_recipient_reject_code = 550
use_sacl_cache = yes
权限/private/*
(根据要求):
admin $ cd /
admin $ ls -l
...
drwxr-xr-x@ 6 root wheel 204 Dec 6 14:01 private
...
admin $ cd private/
server:private admin $ ls -l
total 0
drwxr-xr-x 128 root wheel 4352 Dec 7 08:23 etc
drwxr-xr-x 3 root wheel 102 Dec 6 16:24 tftpboot
drwxrwxrwt 27 root wheel 918 Dec 7 06:03 tmp
drwxr-xr-x 31 root wheel 1054 Dec 6 16:24 var
答案1
您的问题已列在您的日志中
Dec 7 10:04:50 server.mydomain.com postfix/postfix-script[912]: fatal: no Postfix queue directory /Volumes/Server HD/Data/spool!
创建目录/卷/服务器 HD/数据/spool并为其分配 postfix 权限。
然后重新启动您的邮件服务。
请记住,这可能无法完全解决您的 postfix 问题,但至少可以让您向前迈一步。
2. 你的 main.cf 可能存在的问题
(1)在全新安装 Mountain Lion Server 的情况下,数据假脱机通常位于
/Library/Server/Mail/Data/spool
在您的 /Library/Server/Mail/Config/postfix/main.cf 中,您可能需要更改
queue_directory = /Volumes/Server HD/Data/spool
到
queue_directory = /Library/Server/Mail/Data/spool
(2)main.cf 中缺少 mydestination,您可能需要将其添加回来
mydestination = $myhostname, localhost.$mydomain, localhost