curriebwoi

Q: OSX mail server not working after upgrade to 10.8.1

I updated my mini-mac running OSX server to 10.8.1 and now I am having problems with the mail server.  It just stopped working.  I checked the log files and this is what it has returned:

 

Aug 28 09:24:40 limcoserver.limcoengineering.com postfix/trivial-rewrite[25261]: warning: harsh:/Library/Server/Mail/Config/postfix/virtual_domains: table lookup problem

Aug 28 09:24:40 limcoserver.limcoengineering.com postfix/trivial-rewrite[25261]: warning: virtual_alias_domains lookup failure

Aug 28 09:24:40 limcoserver.limcoengineering.com postfix/smtpd[25256]: warning: hash:/Library/Server/Mail/Config/postfix/smtpdreject is unavailable. open database /Library/Server/Mail/Config/postfix/smtpdreject.db: No such file or directory

Aug 28 09:24:40 limcoserver.limcoengineering.com postfix/smtpd[25256]: warning: hash:/Library/Server/Mail/Config/postfix/smtpdreject: table lookup problem

Aug 28 09:24:50 limcoserver.limcoengineering.com postfix/smtpd[25256]: warning: hash:/Library/Server/Mail/Config/postfix/smtpdreject is unavailable. open database /Library/Server/Mail/Config/postfix/smtpdreject.db: No such file or directory

Aug 28 09:24:50 limcoserver.limcoengineering.com postfix/smtpd[25256]: warning: hash:/Library/Server/Mail/Config/postfix/smtpdreject: table lookup problem

Aug 28 09:26:28 limcoserver.limcoengineering.com postfix/postscreen[25317]: warning: cannot connect to service private/smtpd: Connection refused

 

The mail server log is reporting the following error

 

Aug 28 09:26:22 limcoserver.limcoengineering.com log[25134]: anvil: Warning: Killed with signal 15 (by pid=1 uid=0 code=unknown 0)

Aug 28 09:26:22 limcoserver.limcoengineering.com log[25134]: imap-login: Warning: Killed with signal 15 (by pid=1 uid=0 code=unknown 0)

Aug 28 09:26:22 limcoserver.limcoengineering.com log[25134]: auth: Warning: Killed with signal 15 (by pid=1 uid=0 code=unknown 0)

Aug 28 09:26:22 limcoserver.limcoengineering.com log[25134]: log: Warning: Killed with signal 15 (by pid=1 uid=0 code=unknown 0)

Aug 28 09:26:22 limcoserver.limcoengineering.com push_notify[24372]: terminating mail notification services (SIGTERM)

 

From the look it seems like the database table maybe corrupted, and I would like to find out how if anyone has this problem.  It seems like eveytime there is an update on ML, there is some resultant problems with one or more of the services on OSX server.

Mac mini, OS X Server

Posted on Aug 28, 2012 7:44 AM

Close

Q: OSX mail server not working after upgrade to 10.8.1

  • All replies
  • Helpful answers

first Previous Page 3 of 3
  • by curriebwoi,

    curriebwoi curriebwoi Aug 30, 2012 1:30 PM in response to Mark23
    Level 1 (0 points)
    Aug 30, 2012 1:30 PM in response to Mark23

    Mark23,

     

    This is the output from the command line at the terminal

     

    Primary address     = 192.168.10.201

     

     

    Current HostName    = limcoserver.limcoengineering.com

     

     

    The DNS hostname is not available, please repair DNS and re-run this tool.

     

     

    dirserv:success = "success"

     

    I re-installed, but it is apparent that it is using the same config file because I did not remove the data.

  • by Mark23,

    Mark23 Mark23 Aug 30, 2012 1:52 PM in response to curriebwoi
    Level 3 (975 points)
    Aug 30, 2012 1:52 PM in response to curriebwoi

    I urge you to contact your ISP to get your reverse DNS (the mapping of your public ip address to limcoserver.limcoengineering.com sorted out if you haven't already.

     

    When I used a mail server at home I used an Airport Extreme Base Station, what ports have you mapped to your server.

     

    The following output from postconf -n is simply wrong:

    virtual_alias_maps = harsh:/Library/Server/Mail/Config/postfix/virtual_domains

     

    "Harsh" isn't anything no matter how well your server might have worked before.

     

    Scan /Library/Server/Mail/Config/postfix/main.cf for that line and change it to:

    virtual_alias_maps = hash:/Library/Server/Mail/Config/postfix/virtual_domains

     

    Now restart the server. If anything still is wrong, please post the full contents of the /Library/Server/Mail/Config/postfix/main.cf file.

  • by curriebwoi,

    curriebwoi curriebwoi Aug 30, 2012 2:23 PM in response to Mark23
    Level 1 (0 points)
    Aug 30, 2012 2:23 PM in response to Mark23

    Mark23,

     

    Thanks so far for your assistance on this matter, as I have spoke with Apple Support, and still is nowhere near a solution to this problem.

     

    This is my main.cf file:

    #======================================================================

    mydomain = limcoengineering.com

    myhostname = mail.limcoengineering.com

    smtpd_tls_CAfile = /etc/certificates/com.apple.server.apns.alerts.177E90156364FA6CA131512D9060435D 069151E1.chain.pem

    smtpd_tls_key_file = /etc/certificates/com.apple.server.apns.alerts.177E90156364FA6CA131512D9060435D 069151E1.key.pem

    smtpd_tls_cert_file = /etc/certificates/com.apple.server.apns.alerts.177E90156364FA6CA131512D9060435D 069151E1.cert.pem

    always_bcc = admin@limcoengineering.com

     

     

    #======================================================================

    mydomain_fallback = localhost

    message_size_limit = 10485760

    biff = no

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

    smtpd_client_restrictions = permit_mynetworks permit_sasl_authenticated permit

    recipient_delimiter = +

    smtpd_tls_ciphers = medium

    inet_protocols = all

    inet_interfaces = loopback-only

    config_directory = /Library/Server/Mail/Config/postfix

    mydestination = $myhostname, localhost.$mydomain, localhost

    mailbox_transport = dovecot

    smtpd_enforce_tls = no

    smtpd_use_pw_server = yes

    relayhost =

    smtpd_pw_server_security_options = gssapi,login,plain

    smtpd_sasl_auth_enable = yes

    smtpd_helo_required = yes

    content_filter = smtp-amavis:[127.0.0.1]:10024

    smtpd_recipient_restrictions = permit_sasl_authenticated permit_mynetworks reject_unauth_destination

    header_checks = pcre:/Library/Server/Mail/Config/postfix/custom_header_checks

    smtpd_helo_restrictions = reject_invalid_helo_hostname

    smtpd_use_tls = yes

    enable_server_options = yes

    recipient_canonical_maps = hash:/Library/Server/Mail/Config/postfix/system_user_maps

    virtual_alias_maps = hash:/Library/Server/Mail/Config/postfix/$virtual_domain

     

    The logfile from the console is as follows:

    Aug 30 16:13:47 limcoserver.limcoengineering.com postfix/postfix-script[5059]: warning: not owned by _postfix: /Library/Server/Mail/Data/mta/./guid_device_maps.plist

    Aug 30 16:13:49 limcoserver.limcoengineering.com mail_groups[5080]: sleeping for: 1 hour(s)

    Aug 30 16:13:55 limcoserver.limcoengineering.com postfix/smtpd[5110]: error: open database /Library/Server/Mail/Config/postfix/.db: No such file or directory

    Aug 30 16:13:55 limcoserver.limcoengineering.com postfix/trivial-rewrite[5115]: error: open database /Library/Server/Mail/Config/postfix/.db: No such file or directory

    Aug 30 16:13:55 limcoserver.limcoengineering.com postfix/trivial-rewrite[5115]: warning: hash:/Library/Server/Mail/Config/postfix/ is unavailable. open database /Library/Server/Mail/Config/postfix/.db: No such file or directory

    Aug 30 16:13:55 limcoserver.limcoengineering.com postfix/trivial-rewrite[5115]: warning: hash:/Library/Server/Mail/Config/postfix/: table lookup problem

    Aug 30 16:13:55 limcoserver.limcoengineering.com postfix/trivial-rewrite[5115]: warning: virtual_alias_domains lookup failure

    Aug 30 16:13:55 limcoserver.limcoengineering.com postfix/trivial-rewrite[5115]: warning: hash:/Library/Server/Mail/Config/postfix/ is unavailable. open database /Library/Server/Mail/Config/postfix/.db: No such file or directory

    Aug 30 16:13:55 limcoserver.limcoengineering.com postfix/trivial-rewrite[5115]: warning: hash:/Library/Server/Mail/Config/postfix/: table lookup problem

    Aug 30 16:13:55 limcoserver.limcoengineering.com postfix/trivial-rewrite[5115]: warning: virtual_alias_domains lookup failure

  • by Mark23,

    Mark23 Mark23 Aug 31, 2012 4:08 AM in response to curriebwoi
    Level 3 (975 points)
    Aug 31, 2012 4:08 AM in response to curriebwoi

    Sorry, I did change some settings along the way...

    I remember what it was that I did again!

     

    Follow the instructions from the solved answer in this thread:

     

    Mail Service is strangely interrupted

     

    My last part of the /Library/Server/Mail/Config/postfix/main.cf file looks like this

     

    mydomain_fallback = localhost

    message_size_limit = 104857600

    biff = no

    mynetworks = 127.0.0.0/8

    smtpd_client_restrictions = permit_mynetworks permit_sasl_authenticated reject_rbl_client zen.spamhaus.org permit

    recipient_delimiter = +

    smtpd_tls_ciphers = medium

    inet_protocols = all

    inet_interfaces = all

    mydestination = $myhostname, localhost.$mydomain, localhost, domain1.com, domain2.com, $mydomain

    smtpd_use_pw_server = yes

    smtpd_sasl_auth_enable = yes

    content_filter = smtp-amavis:[127.0.0.1]:10024

    smtpd_helo_required = yes

    smtpd_pw_server_security_options = cram-md5,gssapi,login,plain,digest-md5

    header_checks = pcre:/Library/Server/Mail/Config/postfix/custom_header_checks

    smtpd_tls_CAfile = /etc/certificates/*.domain.com.0871AF9FF3A0611D8B10972A4A37FADD0FB8132E.chain.p em

    smtpd_helo_restrictions = reject_invalid_helo_hostname reject_non_fqdn_helo_hostname

    relayhost =

    smtpd_recipient_restrictions = permit_sasl_authenticated permit_mynetworks reject_unauth_destination permit

    smtpd_enforce_tls = no

    smtpd_use_tls = yes

    enable_server_options = yes

    smtpd_tls_key_file = /etc/certificates/*.domain.com.0871AF9FF3A0611D8B10972A4A37FADD0FB8132E.key.pem

    smtpd_tls_cert_file = /etc/certificates/*.domain.com.0871AF9FF3A0611D8B10972A4A37FADD0FB8132E.cert.pe m

    recipient_canonical_maps = hash:/Library/Server/Mail/Config/postfix/system_user_maps

    mydomain = domain.com

    virtual_alias_maps = $virtual_maps

    mailbox_transport = dovecot

    maps_rbl_domains =

    postscreen_dnsbl_sites = zen.spamhaus.org*2

    myhostname = mail.domain.com

    owner_request_special = no

    alias_maps = hash:/etc/aliases

    config_directory = /Library/Server/Mail/Config/postfix

    smtpd_sasl_local_domain = server5.domain.com

    virtual_alias_domains = $virtual_alias_maps

     

    This is a production mail server that works very good indeed and I hope you'll compare and make changes...

  • by curriebwoi,Solvedanswer

    curriebwoi curriebwoi Aug 31, 2012 6:35 PM in response to Mark23
    Level 1 (0 points)
    Aug 31, 2012 6:35 PM in response to Mark23

    Mark23,

     

    Thanks for all your assistance.  I could not deal with the fustration any longer, so I made an image of my hard drive and did a clean recovery to OSX 10.8.1.  Through all this fustration I have learned one valuable lession, never rush to upgrade, because the upgrade may lead to more problems than anticipated.

     

    However, since the clean install I have lost RADIUS on my wireless, and all the documentation I have read coming from Apple is not clear.  Would you so happen to know how this is set up?

  • by Mark23,

    Mark23 Mark23 Sep 1, 2012 1:07 AM in response to curriebwoi
    Level 3 (975 points)
    Sep 1, 2012 1:07 AM in response to curriebwoi
first Previous Page 3 of 3