10 Replies Latest reply: Mar 31, 2009 6:40 PM by countermike
countermike Level 1 Level 1 (0 points)
Hi ,
I was setting up my mails server , and I have ticked the boxes " Enable SMTP " , Allow incoming mail Under the Settings > General tab in the server admin , and then restarted my mail services , but its fist shows SMTP starting up.... and then goes to SMTP stopped .....,

how do I get this to work , please help as im really new to mac osx servers . ( I have been following the lynda.com video tutorials to set up the server)

thank you .

MacPro , Macpro (server) , iMac , Macbook Pro, MacBok Air, Mac OS X (10.5.6)
  • countermike Level 1 Level 1 (0 points)
    Also here is the
    log for the SMTP if that helps

    ar 29 00:04:02 macsrv postfix/master[34214]: fatal: fifo_listen: remove public/pickup: Permission denied
    Mar 29 00:04:12 macsrv postfix/master[34215]: fatal: fifo_listen: remove public/pickup: Permission denied
    Mar 29 00:04:22 macsrv postfix/master[34217]: fatal: fifo_listen: remove public/pickup: Permission denied
    Mar 29 00:04:32 macsrv postfix/master[34218]: fatal: fifo_listen: remove public/pickup: Permission denied
    Mar 29 00:04:42 macsrv postfix/master[34237]: fatal: fifo_listen: remove public/pickup: Permission denied
    Mar 29 00:04:52 macsrv postfix/master[34238]: fatal: fifo_listen: remove public/pickup: Permission denied
    Mar 29 00:05:03 macsrv postfix/master[34249]: fatal: fifo_listen: remove public/pickup: Permission denied
    Mar 29 00:05:13 macsrv postfix/master[34250]: fatal: fifo_listen: remove public/pickup: Permission denied
    Mar 29 00:05:23 macsrv postfix/master[34252]: fatal: fifo_listen: remove public/pickup: Permission denied
    Mar 29 00:05:33 macsrv postfix/master[34253]: fatal: fifo_listen: remove public/pickup: Permission denied
    Mar 29 00:05:43 macsrv postfix/master[34272]: fatal: fifo_listen: remove public/pickup: Permission denied
    Mar 29 00:05:53 macsrv postfix/master[34273]: fatal: fifo_listen: remove public/pickup: Permission denied
    Mar 29 00:06:03 macsrv postfix/master[34290]: fatal: fifo_listen: remove public/pickup: Permission denied
    Mar 29 00:06:13 macsrv postfix/master[34291]: fatal: fifo_listen: remove public/pickup: Permission denied
    Mar 29 00:06:19 macsrv postfix/postfix-script[34298]: fatal: the Postfix mail system is not running
    Mar 29 00:06:21 macsrv postfix/postsuper[34318]: fatal: scandirpush: open directory defer: Permission denied
  • admilon Level 1 Level 1 (10 points)
    the log tells you, what's the problem ...
    try repairing your permissions.
    that will probably do the trick

    cheers
    -mat
  • countermike Level 1 Level 1 (0 points)
    oh.. well i changed the permission and restarted the mails service , it now shows SMTP running.
    but when i try to setup a client ( Mail account ) , it shows
    The SMTP server "hostname.domainname.com" failed. make sure the username and password is correct, then continue.

    but im 100% sure the user details are correct

    oh well.. also initially my POP and Imap was not working so i did the following for it to work , will this be an effect of that ??

    -
    sudo -s
    (enter your admin password)
    mkdir -p /var/spool/imap
    chown -R _cyrus:mail /var/spool /imap
    mkdir -p /var/imap
    /usr/bin/cyrus/tools/mkimap
    chown -R _cyrus:mail /var/imap
    /usr/bin/cyrus/bin/reconstruct -i
    serveradmin stop mail
    serveradmin start mail
    exit
    -

    Message was edited by: countermike
  • admilon Level 1 Level 1 (10 points)
    did you run sudo diskutil repairpermissions / ?
    or did you run disutility from the gui from the startup DVD?

    just changing the permissions on the one or other file/directory probably won't be sufficient enough.

    Pop and IMAP you need to get the mails with your mail client.
    obviously you screwed something up.

    good luck
    -mat
  • countermike Level 1 Level 1 (0 points)
    yer I did sudo diskutil repairpermissions /
    but still the same problem

    is there a way i can start the mail services form the beginning again ?

    as this is the log i get for SMTP


    Mar 29 11:11:37 macsrv postfix/master[54540]: fatal: fifo_listen: remove public/pickup: Permission denied
    Mar 29 11:11:47 macsrv postfix/master[54546]: fatal: fifo_listen: remove public/pickup: Permission denied
    Mar 29 11:11:57 macsrv postfix/master[54547]: fatal: fifo_listen: remove public/pickup: Permission denied
    Mar 29 11:12:07 macsrv postfix/master[54554]: fatal: fifo_listen: remove public/pickup: Permission denied
    Mar 29 11:12:17 macsrv postfix/master[54555]: fatal: fifo_listen: remove public/pickup: Permission denied
    Mar 29 11:12:27 macsrv postfix/master[54556]: fatal: fifo_listen: remove public/pickup: Permission denied
    Mar 29 11:12:38 macsrv postfix/master[54569]: fatal: fifo_listen: remove public/pickup: Permission denied
    Mar 29 11:12:48 macsrv postfix/master[54574]: daemon started -- version 2.4.3, configuration /etc/postfix
    Mar 29 11:14:50 localhost postfix/master[40]: daemon started -- version 2.4.3, configuration /etc/postfix
  • countermike Level 1 Level 1 (0 points)
    I stopped all the service and restarted my server , and start all my services.. and un-ticked the SSL on mail services.

    then tried to connect form a client " it still says username and password incorrect"

    the Logs ....

    SMTP


    Mar 29 12:34:07 macsrv postfix/postfix-script[1739]: fatal: the Postfix mail system is not running
    Mar 29 12:34:08 macsrv postfix/master[1783]: daemon started -- version 2.4.3, configuration /etc/postfix
    Mar 29 12:41:18 macsrv postfix/master[1783]: terminating on signal 15
    Mar 29 12:41:18 macsrv postfix/postfix-script[1951]: fatal: the Postfix mail system is not running
    Mar 29 12:41:24 macsrv postfix/postfix-script[2019]: fatal: the Postfix mail system is not running
    Mar 29 12:41:27 macsrv postfix/master[2064]: daemon started -- version 2.4.3, configuration /etc/postfix
    Mar 29 12:42:10 macsrv postfix/tlsmgr[2079]: warning: no entropy source specified with parameter tlsrandomsource
    Mar 29 12:42:10 macsrv postfix/tlsmgr[2079]: warning: encryption keys etc. may be predictable
    Mar 29 12:42:10 macsrv postfix/smtpd[2078]: connect from unknown[172.16.18.26]
    Mar 29 12:42:10 macsrv postfix/smtpd[2078]: disconnect from unknown[172.16.18.26]
    Mar 29 12:46:36 macsrv postfix/master[2064]: terminating on signal 15
    Mar 29 12:46:38 macsrv postfix/postfix-script[2126]: fatal: the Postfix mail system is not running
    Mar 29 12:46:38 macsrv postfix/master[2170]: daemon started -- version 2.4.3, configuration /etc/postfix
    Mar 29 12:49:22 macsrv postfix/smtpd[2211]: connect from unknown[172.16.18.26]
    Mar 29 12:49:22 macsrv postfix/smtpd[2211]: lost connection after EHLO from unknown[172.16.18.26]
    Mar 29 12:49:22 macsrv postfix/smtpd[2211]: disconnect from unknown[172.16.18.26]
    Mar 29 12:49:22 macsrv postfix/smtpd[2211]: connect from unknown[172.16.18.26]



    MAIL ACCESS LOG :


    Mar 13 15:04:13 macsrv idled[1230]: can't read mailboxes file
    Mar 29 12:50:21 macsrv master[2186]: exiting on SIGTERM/SIGINT
    Mar 29 12:50:21 macsrv master[2226]: getrlimit: max processes limit set to cur=2500 max=2500
    Mar 29 12:50:21 macsrv master[2226]: process started
    Mar 29 12:50:21 macsrv master[2227]: about to exec /usr/bin/cyrus/bin/ctl_cyrusdb
    Mar 29 12:50:31 macsrv master[2237]: getrlimit: max processes limit set to cur=2500 max=2500
    Mar 29 12:50:31 macsrv master[2237]: process started
    Mar 29 12:50:31 macsrv master[2238]: about to exec /usr/bin/cyrus/bin/ctl_cyrusdb
    Mar 29 12:50:31 macsrv ctl_cyrusdb[2238]: verifying cyrus databases
    Mar 29 12:50:32 macsrv ctl_cyrusdb[2238]: skiplist: recovered /var/imap/mailboxes.db (2 records, 472 bytes) in 1 second
    Mar 29 12:50:32 macsrv ctl_cyrusdb[2238]: skiplist: recovered /var/imap/annotations.db (0 records, 144 bytes) in 0 seconds
    Mar 29 12:50:35 macsrv ctl_cyrusdb[2238]: done verifying cyrus databases
    Mar 29 12:50:35 macsrv master[2241]: about to exec /usr/bin/cyrus/bin/idled
    Mar 29 12:50:35 macsrv master[2237]: nodename nor servname provided, or not known, disabling sieve
    Mar 29 12:50:35 macsrv master[2237]: Cyrus POP/IMAP Server v2.3.8 ready for work
    Mar 29 12:50:35 macsrv master[2243]: about to exec /usr/bin/cyrus/bin/ctl_cyrusdb
    Mar 29 12:50:35 macsrv ctl_cyrusdb[2243]: checkpointing cyrus databases
    Mar 29 12:50:35 macsrv ctl_cyrusdb[2243]: archiving database file: /var/imap/annotations.db
    Mar 29 12:50:35 macsrv ctl_cyrusdb[2243]: archiving log file: /var/imap/db/log.0000000001
    Mar 29 12:50:35 macsrv ctl_cyrusdb[2243]: archiving database file: /var/imap/mailboxes.db
    Mar 29 12:50:35 macsrv ctl_cyrusdb[2243]: archiving log file: /var/imap/db/log.0000000001
    Mar 29 12:50:35: --- last message repeated 1 time ---
    Mar 29 12:50:35 macsrv ctl_cyrusdb[2243]: done checkpointing cyrus databases
    Mar 29 12:50:35 macsrv master[2237]: process 2243 exited, status 0




    if that helps . please need help
  • admilon Level 1 Level 1 (10 points)
    you have different problems here.
    With ssl and tls, settings are wrong.
    In main.cf this is probably missing: tlsrandomsource = /dev/urandom

    the other problem is user/password.
    reset the password amd login with the username and correct password.

    good luck
    -mat
  • countermike Level 1 Level 1 (0 points)
    Hi Mat,

    I think im gonna clean install the server and start form the beginning,
    will comeback to you if I have any problems,

    Once again thank you for all for the help provided here .

    Mike
  • pterobyte Level 6 Level 6 (10,910 points)
    I do not see any SSL issues here.

    Try this:
    sudo postfix set-permissions

    Next, download and install mailbfr from here: http://osx.topicdesk.com/tools/ and issue:
    sudo mailbfr -o
    sudo mailbfr -f

    HTH,
    Alex
  • countermike Level 1 Level 1 (0 points)
    thanks Alex

    All work now .