255044

Q: OSX postfix Server  will not start - help!

Hi All

 

I have inherited a 10.7.5 os x server.

 

It is currently acting as a mail server (IMAP).

 

When i click on start mail - it just stops again.

 

The clients didn't use the imap to send or receive mail, they had that on a different account. The used the servers imap as a storage archive.

 

All was running fine but suddenly mail service stopped. I have tried to get it working again but currently i am getting nowhere fast.

 

I think its a permissions issue, outputs are below.

 

Also the server is saying the certificate has expired, would this also stop mail from working (as a service)?

 

This server is about to be killed off, all i want to do is connect to the imap folders and export the data!

 

Thanks for any help

 

server:~ serveradmin$ sudo postfix check

postfix/postfix-script: warning: group or other writable: /Library/Server/Mail/Data/mta

server:~ serveradmin$ sudo postfix set-permissions

server:~ serveradmin$ sudo /usr/libexec/postfix/post-install upgrade-permissions/usr/libexec/postfix/post-install: Error: /postfix-files is not a file.

server:~ serveradmin$ sudo /usr/libexec/postfix/post-install data_directory=/Library/Server/Mail/Data/mta upgrade-permissions 

/usr/libexec/postfix/post-install: Error: /postfix-files is not a file.

server:~ serveradmin$ sudo serveradmin fullstatus mail

mail:setStateVersion = 1

mail:readWriteSettingsVersion = 1

mail:cluster = _empty_dictionary

mail:servicePortsRestrictionInfo = _empty_array

mail:protocolsArray:_array_index:0:status = "ON"

mail:protocolsArray:_array_index:0:kind = "INCOMING"

mail:protocolsArray:_array_index:0:protocol = "IMAP"

mail:protocolsArray:_array_index:0:state = "STOPPED"

mail:protocolsArray:_array_index:0:error = ""

mail:protocolsArray:_array_index:1:status = "OFF"

mail:protocolsArray:_array_index:1:kind = "INCOMING"

mail:protocolsArray:_array_index:1:protocol = "POP3"

mail:protocolsArray:_array_index:1:state = "STOPPED"

mail:protocolsArray:_array_index:1:error = ""

mail:protocolsArray:_array_index:2:status = "ON"

mail:protocolsArray:_array_index:2:kind = "INCOMING"

mail:protocolsArray:_array_index:2:protocol = "SMTP"

mail:protocolsArray:_array_index:2:state = "STOPPED"

mail:protocolsArray:_array_index:2:error = ""

mail:protocolsArray:_array_index:3:status = "ON"

mail:protocolsArray:_array_index:3:kind = "OUTGOING"

mail:protocolsArray:_array_index:3:protocol = "SMTP"

mail:protocolsArray:_array_index:3:state = "STOPPED"

mail:protocolsArray:_array_index:3:error = ""

mail:protocolsArray:_array_index:4:status = "OFF"

mail:protocolsArray:_array_index:4:kind = "OUTGOING"

mail:protocolsArray:_array_index:4:protocol = "LISTSERVER"

mail:protocolsArray:_array_index:4:state = "STOPPED"

mail:protocolsArray:_array_index:4:error = ""

mail:protocolsArray:_array_index:5:status = "OFF"

mail:protocolsArray:_array_index:5:kind = "INCOMING"

mail:protocolsArray:_array_index:5:protocol = "Junk_mail_filter"

mail:protocolsArray:_array_index:5:state = "STOPPED"

mail:protocolsArray:_array_index:5:error = ""

mail:protocolsArray:_array_index:6:status = "OFF"

mail:protocolsArray:_array_index:6:kind = "INCOMING"

mail:protocolsArray:_array_index:6:protocol = "Virus_scanner"

mail:protocolsArray:_array_index:6:state = "STOPPED"

mail:protocolsArray:_array_index:6:error = ""

mail:startedTime = ""

mail:logPaths:IMAP Log = "/var/log/mailaccess.log"

mail:logPaths:POP Log = "/var/log/mailaccess.log"

mail:logPaths:Lists smtp = "/var/log/mailman/smtp"

mail:logPaths:Lists subscribe = "/var/log/mailman/subscribe"

mail:logPaths:Migration Log = "/Library/Logs/MailMigration.log"

mail:logPaths:SMTP Log = "/var/log/mail.log"

mail:logPaths:Server Log = "/var/log/mailaccess.log"

mail:logPaths:Lists error = "/var/log/mailman/error"

mail:logPaths:Lists post = "/var/log/mailman/post"

mail:logPaths:Virus DB Log = "/var/log/freshclam.log"

mail:logPaths:Lists smtp-failure = "/var/log/mailman/smtp-failure"

mail:logPaths:Lists qrunner = "/var/log/mailman/qrunner"

mail:logPaths:Amavisd Log = "/var/log/amavis.log"

mail:logPaths:Virus Log = "/var/log/clamav.log"

mail:imapStartedTime = ""

mail:servicePortsAreRestricted = "NO"

mail:state = "STOPPED"

mail:postfixStartedTime = ""

 

 

 

 

 

server:~ serveradmin$ sudo postconf -n

biff = no

command_directory = /usr/sbin

config_directory = /etc/postfix

content_filter =

daemon_directory = /usr/libexec/postfix

data_directory = /Library/Server/Mail/Data/mta

debug_peer_level = 2

enable_server_options = yes

header_checks =

html_directory = /usr/share/doc/postfix/html

imap_submit_cred_file = /private/etc/postfix/submit.cred

inet_interfaces = loopback-only

inet_protocols = all

mail_owner = _postfix

mailbox_size_limit = 0

mailbox_transport = dovecot

mailq_path = /usr/bin/mailq

manpage_directory = /usr/share/man

maps_rbl_domains =

message_size_limit = 0

mydestination = $myhostname, localhost.$mydomain, localhost

mydomain = AAA.co.uk

mydomain_fallback = localhost

myhostname = AAA.co.uk

mynetworks = 127.0.0.0/8, [::1]/128

newaliases_path = /usr/bin/newaliases

postscreen_dnsbl_sites =

queue_directory = /Library/Server/Mail/Data/spool

readme_directory = /usr/share/doc/postfix

recipient_canonical_maps = hash:/etc/postfix/system_user_maps

recipient_delimiter = +

relayhost =

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_enforce_tls = no

smtpd_helo_required = no

smtpd_helo_restrictions =

smtpd_pw_server_security_options =

smtpd_recipient_restrictions = permit_sasl_authenticated permit_mynetworks  reject_unauth_destination permit

smtpd_sasl_auth_enable = yes

smtpd_tls_CAfile = /etc/certificates/server.AAA.co.uk.4C925A07FB31A9F93148448EE1140838C6ECE9D2.cha in.pem

smtpd_tls_cert_file = /etc/certificates/server.AAA.co.uk.4C925A07FB31A9F93148448EE1140838C6ECE9D2.cer t.pem

smtpd_tls_ciphers = medium

smtpd_tls_exclude_ciphers = SSLv2, aNULL, ADH, eNULL

smtpd_tls_key_file = /etc/certificates/server.AAA.co.uk.4C925A07FB31A9F93148448EE1140838C6ECE9D2.key .pem

smtpd_use_pw_server = yes

smtpd_use_tls = yes

tls_random_source = dev:/dev/urandom

unknown_local_recipient_reject_code = 550

use_sacl_cache = yes

virtual_alias_maps = $virtual_maps

 

 

SMTP LOG

Dec 16 15:17:20 server postfix/qmgr[11517]: fatal: scan_dir_push: open directory active: No such file or directory

Dec 16 15:17:21 server postfix/master[10118]: warning: process /usr/libexec/postfix/qmgr pid 11517 exit status 1

Dec 16 15:17:21 server postfix/master[10118]: warning: /usr/libexec/postfix/qmgr: bad command startup -- throttling

Dec 16 15:18:21 server postfix/qmgr[11586]: fatal: scan_dir_push: open directory active: No such file or directory

Dec 16 15:18:22 server postfix/master[10118]: warning: process /usr/libexec/postfix/qmgr pid 11586 exit status 1

Dec 16 15:18:22 server postfix/master[10118]: warning: /usr/libexec/postfix/qmgr: bad command startup -- throttling

Dec 16 15:19:12 server postfix/pickup[11649]: fatal: scan_dir_push: open directory maildrop: No such file or directory

Dec 16 15:19:13 server postfix/master[10118]: warning: process /usr/libexec/postfix/pickup pid 11649 exit status 1

Dec 16 15:19:13 server postfix/master[10118]: warning: /usr/libexec/postfix/pickup: bad command startup -- throttling

Dec 16 15:19:22 server postfix/qmgr[11655]: fatal: scan_dir_push: open directory active: No such file or directory

Dec 16 15:19:23 server postfix/master[10118]: warning: process /usr/libexec/postfix/qmgr pid 11655 exit status 1

Dec 16 15:19:23 server postfix/master[10118]: warning: /usr/libexec/postfix/qmgr: bad command startup -- throttling

Dec 16 15:20:23 server postfix/qmgr[11729]: fatal: scan_dir_push: open directory active: No such file or directory

Dec 16 15:20:24 server postfix/master[10118]: warning: process /usr/libexec/postfix/qmgr pid 11729 exit status 1

Dec 16 15:20:24 server postfix/master[10118]: warning: /usr/libexec/postfix/qmgr: bad command startup -- throttling

Dec 16 15:21:12 server postfix/pickup[11761]: fatal: scan_dir_push: open directory maildrop: No such file or directory

Dec 16 15:21:13 server postfix/master[10118]: warning: process /usr/libexec/postfix/pickup pid 11761 exit status 1

Dec 16 15:21:13 server postfix/master[10118]: warning: /usr/libexec/postfix/pickup: bad command startup -- throttling

Dec 16 15:21:15 server postfix/showq[11763]: fatal: open lock file pid/unix.showq: cannot create file exclusively: No such file or directory

Dec 16 15:21:16 server postfix/master[10118]: warning: process /usr/libexec/postfix/showq pid 11763 exit status 1

Dec 16 15:21:16 server postfix/master[10118]: warning: /usr/libexec/postfix/showq: bad command startup -- throttling

Dec 16 15:21:24 server postfix/qmgr[11769]: fatal: scan_dir_push: open directory active: No such file or directory

Dec 16 15:21:25 server postfix/master[10118]: warning: process /usr/libexec/postfix/qmgr pid 11769 exit status 1

Dec 16 15:21:25 server postfix/master[10118]: warning: /usr/libexec/postfix/qmgr: bad command startup -- throttling

Dec 16 15:22:16 server postfix/showq[11805]: fatal: open lock file pid/unix.showq: cannot create file exclusively: No such file or directory

Dec 16 15:22:17 server postfix/master[10118]: warning: process /usr/libexec/postfix/showq pid 11805 exit status 1

Dec 16 15:22:17 server postfix/master[10118]: warning: /usr/libexec/postfix/showq: bad command startup -- throttling

Dec 16 15:22:25 server postfix/qmgr[11811]: fatal: scan_dir_push: open directory active: No such file or directory

Dec 16 15:22:26 server postfix/master[10118]: warning: process /usr/libexec/postfix/qmgr pid 11811 exit status 1

Dec 16 15:22:26 server postfix/master[10118]: warning: /usr/libexec/postfix/qmgr: bad command startup -- throttling

Dec 16 15:23:12 server postfix/pickup[11836]: fatal: scan_dir_push: open directory maildrop: No such file or directory

Dec 16 15:23:13 server postfix/master[10118]: warning: process /usr/libexec/postfix/pickup pid 11836 exit status 1

Dec 16 15:23:13 server postfix/master[10118]: warning: /usr/libexec/postfix/pickup: bad command startup -- throttling

Dec 16 15:23:17 server postfix/showq[11838]: fatal: open lock file pid/unix.showq: cannot create file exclusively: No such file or directory

Dec 16 15:23:18 server postfix/master[10118]: warning: process /usr/libexec/postfix/showq pid 11838 exit status 1

Dec 16 15:23:18 server postfix/master[10118]: warning: /usr/libexec/postfix/showq: bad command startup -- throttling

Dec 16 15:23:26 server postfix/qmgr[11844]: fatal: scan_dir_push: open directory active: No such file or directory

Dec 16 15:23:27 server postfix/master[10118]: warning: process /usr/libexec/postfix/qmgr pid 11844 exit status 1

Dec 16 15:23:27 server postfix/master[10118]: warning: /usr/libexec/postfix/qmgr: bad command startup -- throttling

Dec 16 15:24:18 server postfix/showq[11870]: fatal: open lock file pid/unix.showq: cannot create file exclusively: No such file or directory

Dec 16 15:24:19 server postfix/master[10118]: warning: process /usr/libexec/postfix/showq pid 11870 exit status 1

Dec 16 15:24:19 server postfix/master[10118]: warning: /usr/libexec/postfix/showq: bad command startup -- throttling

Dec 16 15:24:27 server postfix/qmgr[11878]: fatal: scan_dir_push: open directory active: No such file or directory

Dec 16 15:24:28 server postfix/master[10118]: warning: process /usr/libexec/postfix/qmgr pid 11878 exit status 1

Dec 16 15:24:28 server postfix/master[10118]: warning: /usr/libexec/postfix/qmgr: bad command startup -- throttling

Dec 16 15:25:12 server postfix/pickup[11903]: fatal: scan_dir_push: open directory maildrop: No such file or directory

Dec 16 15:25:13 server postfix/master[10118]: warning: process /usr/libexec/postfix/pickup pid 11903 exit status 1

Dec 16 15:25:13 server postfix/master[10118]: warning: /usr/libexec/postfix/pickup: bad command startup -- throttling

Dec 16 15:25:19 server postfix/showq[11986]: fatal: open lock file pid/unix.showq: cannot create file exclusively: No such file or directory

Dec 16 15:25:20 server postfix/master[10118]: warning: process /usr/libexec/postfix/showq pid 11986 exit status 1

Dec 16 15:25:20 server postfix/master[10118]: warning: /usr/libexec/postfix/showq: bad command startup -- throttling

Dec 16 15:25:28 server postfix/qmgr[11992]: fatal: scan_dir_push: open directory active: No such file or directory

Dec 16 15:25:29 server postfix/master[10118]: warning: process /usr/libexec/postfix/qmgr pid 11992 exit status 1

Dec 16 15:25:29 server postfix/master[10118]: warning: /usr/libexec/postfix/qmgr: bad command startup -- throttling

Dec 16 15:26:20 server postfix/showq[12019]: fatal: open lock file pid/unix.showq: cannot create file exclusively: No such file or directory

Dec 16 15:26:21 server postfix/master[10118]: warning: process /usr/libexec/postfix/showq pid 12019 exit status 1

Dec 16 15:26:21 server postfix/master[10118]: warning: /usr/libexec/postfix/showq: bad command startup -- throttling

Dec 16 15:26:29 server postfix/qmgr[12024]: fatal: scan_dir_push: open directory active: No such file or directory

Dec 16 15:26:30 server postfix/master[10118]: warning: process /usr/libexec/postfix/qmgr pid 12024 exit status 1

Dec 16 15:26:30 server postfix/master[10118]: warning: /usr/libexec/postfix/qmgr: bad command startup -- throttling

Dec 16 15:27:12 server postfix/pickup[12048]: fatal: scan_dir_push: open directory maildrop: No such file or directory

Dec 16 15:27:13 server postfix/master[10118]: warning: process /usr/libexec/postfix/pickup pid 12048 exit status 1

Dec 16 15:27:13 server postfix/master[10118]: warning: /usr/libexec/postfix/pickup: bad command startup -- throttling

Dec 16 15:27:21 server postfix/showq[12085]: fatal: open lock file pid/unix.showq: cannot create file exclusively: No such file or directory

Dec 16 15:27:22 server postfix/master[10118]: warning: process /usr/libexec/postfix/showq pid 12085 exit status 1

Dec 16 15:27:22 server postfix/master[10118]: warning: /usr/libexec/postfix/showq: bad command startup -- throttling

Dec 16 15:27:30 server postfix/qmgr[12101]: fatal: scan_dir_push: open directory active: No such file or directory

Dec 16 15:27:31 server postfix/master[10118]: warning: process /usr/libexec/postfix/qmgr pid 12101 exit status 1

Dec 16 15:27:31 server postfix/master[10118]: warning: /usr/libexec/postfix/qmgr: bad command startup -- throttling

Dec 16 15:28:04 server postfix/postfix-script[12220]: warning: group or other writable: /Library/Server/Mail/Data/mta

Dec 16 15:28:04 server postfix/master[12233]: fatal: bind 127.0.0.1 port 25: Address already in use

Dec 16 15:29:15 server postfix[12296]: error: to submit mail, use the Postfix sendmail command

Dec 16 15:29:15 server postfix[12296]: fatal: the postfix command is reserved for the superuser

Dec 16 15:36:21 server postfix/postfix-script[13267]: warning: group or other writable: /Library/Server/Mail/Data/mta

Dec 16 15:36:21 server postfix/master[13280]: fatal: bind 127.0.0.1 port 25: Address already in use

Dec 16 15:37:08 server postfix/postfix-script[13371]: warning: group or other writable: /Library/Server/Mail/Data/mta

Dec 16 15:39:42 server postfix/postfix-script[13585]: warning: group or other writable: /Library/Server/Mail/Data/mta

Mac mini, OS X Server

Posted on Dec 16, 2015 8:11 AM

Close

Q: OSX postfix Server  will not start - help!

  • All replies
  • Helpful answers

  • by MrHoffman,

    MrHoffman MrHoffman Dec 16, 2015 1:13 PM in response to 255044
    Level 6 (15,612 points)
    Mac OS X
    Dec 16, 2015 1:13 PM in response to 255044

    Get a backup of the disk, so that — if any of the following fails, or if the disk itself is failing — you have a copy of the data.

     

    This is likely more than permissions, but try a permissions repair and a volume repair.

     

    Some of what is shown implies that Postfix is partially started, and partially failed.

     

    What I'd try here: create one or two copies — back ups — of this disk out to external devices and disconnect and set those copies aside, install a clean copy of 10.7.5 on an external scratch disk, install Server.app on that, boot that, and migrate in the settings from this OS X Server disk configuration.

     

    Otherwise, there are discussions around about accessing the mail store directly.   Off the top, I don't recall where that mail store is located.  On most of the recent Server.app releases, I'd look around under /library/server/mail for this, though.  Probably in /library/server/mail/data/mail/users

  • by davidh,

    davidh davidh Dec 17, 2015 5:35 AM in response to MrHoffman
    Level 4 (1,890 points)
    Dec 17, 2015 5:35 AM in response to MrHoffman

    Probably also /Library/Server/Mail/Data/mail  as in 10.8 and 10.9 server, IIRC

     

    Op has cross-posted to spiceworks, and has yet to reply there or here.
    http://community.spiceworks.com/topic/1346391-osx-server-mail-postfix-help?page= 1

  • by 255044,Solvedanswer

    255044 255044 Dec 17, 2015 10:19 PM in response to 255044
    Level 1 (0 points)
    Dec 17, 2015 10:19 PM in response to 255044

    I am also asking this question on spiceworks - http://community.spiceworks.com/topic/1346391-osx-server-mail-postfix-help?page= 1#entry-5335098

     

    In the end i solved it myself - however my info i posted here was missing something!

     

    It was to do with the SSL certificate.

     

    Dovecot logs show under the system log  and not in the email log (weird).

     

    doveconf: Fatal: Error in configuration file /etc/dovecot/dovecot.conf: ssl enabled, but ssl_cert not set

     

    Once i disabled SSL dovecot would start again allowing me to access the mail and extract the messages.

     

    I hope someone else finds this useful - when troubleshooting dovecot do not look in the email log... go to system instead!