Mail Server suddenly stopped working

My mail server has stopped working, and I can't figure out why. This is a brand new MacMini with the latest Maverics Server (preinstalled) that I just setup last month. (We migrated from an Xserve running 10.6.) Up to this point, mail has worked flawlessly.
This afternoon I used the Server app to create a new user. I then went about setting them up for ssh access and installing a public/private keypair (this is for a git repository). Around the same time, my mail server simply stopped working. As far as I know, no other configuration changes were made.
When I go into the Mail service in the Server app the status perpetually says "Starting...". The 'postfix status' command says that postfix is not running. I've checked every log and error file, and I can only find three anomolies:
The SMTP log file reports:
Feb 11 01:31:06 mail.gloaming.com postfix/postmap[7152]: warning: /Library/Server/Mail/Data/scanner/amavis/local_domains.db: duplicate entry: "mail.gloaming.com"
This warning has been logged before, several weeks earlier, so I assume it's not a serious problem.
The other warning is:
Feb 11 00:10:49 mail.gloaming.com postfix/postfix-script[23141]: warning: not owned by _postfix: /Library/Server/Mail/Data/mta/./guid_device_maps.plist
Other threads seem to indicate that this warning is benign.
The only other problem that looks really suspicious (to me) is in the system.log:
Feb 11 01:22:52 mail.gloaming.com ocspd[4947]: ERROR: unable to get the receiver data from the DB!
I'm not sure what that means, but it doesn't sound good.
Some threads point a finger at the virus and junk mail scanners. If I disable all mail filtering, the mail server status will finally change to "Serving mail at mail.gloaming.com". But it isn't. All attempts to get mail from the server are refused.
(Oh, and I've restarted the server several times.)
The postconf command tells me that the postfix system isn't accepting outside connections:
inet_interfaces = loopback-only
So it would appear that Server is setting this. Any attempt to change it back to "= all" fails, as the server software overwrites it with "= loopback-only" at its first possible opportunity. (Editing the main.cf file and reloading postfix doesn't fix it either.)
Here's the really strange part. The server just started do this today. I recovered a backup of the main.cf file from yesterday and diffed it with the one that's not working:
mail:postfix root# diff /Library/Server/Mail/Config/postfix/main.cf /Users/admin/Desktop/main.cf
675c675
< inet_interfaces = loopback-only
> inet_interfaces = all
682c682
< smtpd_helo_restrictions = reject_non_fqdn_helo_hostname reject_invalid_helo_hostname
> smtpd_helo_restrictions = reject_invalid_helo_hostname reject_non_fqdn_helo_hostname
692c692
< mydestination = $myhostname, localhost.$mydomain, localhost, mail.gloaming.com
> mydestination = $myhostname, localhost.$mydomain, localhost, mail.gloaming.com, $mydomain
712d711
< postscreen_dnsbl_sites = zen.spamhaus.org*2
As you can see, the Server software has deliberatly started setting inet_interfaces to loopback-only and I can't figure out how to get it to set it back to "all".
Some of the other threads have suggested "wipe and reinstall", but I've spent three weeks setting up this sever and shipping it to a co-location facility—starting over really isn't an option.
I'd really just want to know why the Server software is suddently configuring the mail server so it won't receive any mail!

The mystery continues.
This morning, I decided to take a fresh look at what's going on by recovering a backup copy of my entire /Library/Server/Mail/Config directory from last month. Looking at the item capture list, it shows that none of the files in my Mail/Config directory have changed since late last month.
Here are the disturbing changes.
In Server/Mail/Config/dovecot/dovecot.conf, there is one different line.
working:
     protocols = imap pop3 lmtp sieve
now:
     protocols = lmtp sieve
So clearly, the server doesn't think we should be running IMAP or POP. Which is probably the root of the problem.
In Server/Mail/Config/postfix/mail.cf, there are a number of minor/cosmetic differences, but the problematic ones appear to be
working:
     inet_interfaces = all
     mydestination = $myhostname, localhost.$mydomain, localhost, mail.gloaming.com, $mydomain
now:
     inet_interfaces = loopback-only
     mydestination = $myhostname, localhost.$mydomain, localhost, mail.gloaming.com
Again, this configuration would imply that there are no public mail services.
Some other odd change occured in the Server/Mail/Config/postfix/main.cf file
working:
     smtpd     pass  -       -       n       -       -       smtpd
     pickup    fifo  n       -       n       60      1       pickup
          -o content_filter=smtp-amavis:[127.0.0.1]:10024
now:
     smtpd     pass  -       -       n       -       -       smtpd
          -o receive_override_options=no_address_mappings
     pickup    fifo  n       -       n       60      1       pickup
          -o content_filter=
Reading through some other posts, I also found another inexplicable change reported by other users having similar problems. The /System/Library/LaunchDaemons/org.postfix.master.plist suddenly changed.
working:
    <key>OnDemand</key>
    <false/>
    <key>ProgramArguments</key>
    <array>
        <string>master</string>
        <string>-c</string>
        <string>/Library/Server/Mail/Config/postfix</string>
    </array>
now:
    <key>OnDemand</key>
    <true/>
    <key>ProgramArguments</key>
    <array>
        <string>master</string>
        <string>-c</string>
        <string>/Library/Server/Mail/Config/postfix</string>
        <string>-e</string>
        <string>60</string>
    </array>
The postfix service is now "OnDemand" with a new, and myserious, "-e 60" option added. (I can find no documentation for an -e option in the postfix control tool.)
Ultimately, I "fixed" the problem by restoring the backup copy of my entire /Library/Server/Mail/Config folder, the /System/Library/LaunchDaemon/org.postfix.master.plist file, and immedately restarting the server. The mail servers started and everything appears to be normal.
But this whole experience has made me very learly of the Server app. Why did these configuration changes occur? What settings or circumstances caused them to spontaniously change to an, essentually, unusable state? I'm now afriad of making any changes via Server.app for fear it will decide I shouldn't have a working mail server again.
If anyone has any insights, I'd ver very interested in hearing them.
Message was edited by: James Bucanek

Similar Messages

  • Mail 2.1.3 Outgoing Mail Server suddenly stop working

    Recently I had some problems every time I send an email, but I would restart Mail and the emails on the outbox folder would send after a few seconds. Now is not sending at all. "Can not send massage using the server smtpout...." This server is the same and has not been change so I don't understand why is not working. Please help!!!

    Both my husband and I are having the same problem, and it's not just the account situation. I am having a ton of difficulty sending. I keep hitting the "Try with selected server" until it sends. And in actuality EVERYTHING is slower and ponderous on the whole machine. Typing is bad. Internet seems slower. Honestly, I'm upset about it. I still have a few months of Apple Care and will call tomorrow, but I think Apple wants me to get rid of my laptop for the latest model. Anyway, two questions: 1. Is there anything else I can do to fix this mail problem? 2. What do you think: Do I need to buy a new machine? Or is everything crashing? Oh drat. I hate this.

  • New mail sound suddenly stopped working

    I assigned a 'new mail sound' (wav file) and for no apparent reason suddenly stopped working. Anyone else experienced this ?

    This sometimes happens to me too, as well as my alerts with iChat. I have to restart the computer and that fixes it for me. Hope that is the case with you as well.
    Christine

  • KMS Server suddenly stopped working

    Our 2008R2 KMS server suddenly stopped licencing Office 2010 (it still works with licencing Windows 7).  It now returns a 0xC004F038 error code, which is insufficient activations.  From the slgmr below, you can see we have 38 activations,
    more than enough.  Any idea why this might have started?
    Microsoft (R) Windows Script Host Version 5.8
    Copyright (C) Microsoft Corporation. All rights reserved.
    Name: Windows Server(R), ServerStandard edition
    Description: Windows Operating System - Windows Server(R), VOLUME_KMS_R2_B channel
    Partial Product Key: XXXXX
    License Status: Licensed
    Key Management Service is enabled on this machine
        Current count: 38
        Listening on Port: 1688
        DNS publishing enabled
        KMS priority: Normal
    Key Management Service cumulative requests received from clients
        Total requests received: 2555
        Failed requests received: 33
        Requests with License Status Unlicensed: 0
        Requests with License Status Licensed: 1788
        Requests with License Status Initial grace period: 198
        Requests with License Status License expired or Hardware out of tolerance: 1
        Requests with License Status Non-genuine grace period: 0
        Requests with License Status Notification: 535

    Ah, thank you, I didn't realize that.  Here is the Office portion of the output from the command you gave me.  Is 5 not the minimum activations needed for Office?:
    Name: Microsoft Office 2010, KMSHost edition
    Description: Microsoft Office 2010 KMS, VOLUME_KMS channel
    Activation ID: bfe7a195-4f8f-4f0b-a622-cf13c7d16864
    Application ID: 59a52881-a989-479d-af46-f275c6370663
    Extended PID: 55041-00096-199-375179-03-1033-7601.0000-1682013
    Installation ID: 016082730353865763072083984322936963508984260551632263
    Processor Certificate URL: http://go.microsoft.com/fwlink/?LinkID=88342
    Machine Certificate URL: http://go.microsoft.com/fwlink/?LinkID=88343
    Use License URL: http://go.microsoft.com/fwlink/?LinkID=88345
    Product Key Certificate URL: http://go.microsoft.com/fwlink/?LinkID=88344
    Partial Product Key: XXXXX
    License Status: Licensed
    Remaining Windows rearm count: 4
    Trusted time: 2/24/2014 9:37:31 AM
    Key Management Service is enabled on this machine
        Current count: 5
        Listening on Port: 1688
        DNS publishing enabled
        KMS priority: Normal
    Key Management Service cumulative requests received from clients
        Total requests received: 12379
        Failed requests received: 0
        Requests with License Status Unlicensed: 0
        Requests with License Status Licensed: 11968
        Requests with License Status Initial grace period: 12
        Requests with License Status License expired or Hardware out of tolerance: 389
        Requests with License Status Non-genuine grace period: 0
        Requests with License Status Notification: 10
    Yes, 5 is minimum threshold for Office KMS.
    Do you have exactly 5 Office KMSclients, or more?
    The current_count will stop incrementing at double the minimum (in this case 5 x 2 = 10)
    This KMShost should be working fine. You should check the event logs on the KMShost, and also on the Office client.
    Don
    (Please take a moment to "Vote as Helpful" and/or "Mark as Answer", where applicable.
    This helps the community, keeps the forums tidy, and recognises useful contributions. Thanks!)

  • TS3276 my e mail has suddenly stopped working

    my e mail suddenly stopped working , having been receiving messages all morning

    Maybe this thread will help. You can also look at other threads with the same problem by using the "More Like This" box.
    https://discussions.apple.com/message/19949268#19949268
    I hope this helps.

  • Mail Service Suddenly Stopped Working

    Mail server on Mac Mini 10.6 server stopped receiving and sending mail. I get the following message bounced back when I sent an email to one of my accounts:
    Message-id: <[email protected]>
    Date: Wed, 25 Apr 2012 21:00:21 -0700
    From: "Me" <[email protected]>
    To: Me <[email protected]>
    Subject: test 4/25 9:00pm
    Your message cannot be delivered to the following recipients:
    Recipient address: [email protected]
    Reason: Remote SMTP server has rejected address
    Diagnostic code: smtp;554 5.7.1 <[email protected]>: Relay access denied
    Remote system: dns;mydomain.com (TCP|17.172.204.240|63215|xxx.xx.xxx.xx|25) (server.mydomain ESMTP Postfix)
    Original-envelope-id: [email protected]
    Reporting-MTA: dns;st11p01mm-asmtp005.mac.com (tcp-daemon)
    Arrival-date: Thu, 26 Apr 2012 04:00:04 +0000 (GMT)
    Original-recipient: rfc822;[email protected]
    Final-recipient: rfc822;[email protected]
    Action: failed
    Status: 5.7.1 (Remote SMTP server has rejected address)
    Remote-MTA: dns;mydomain.com
    (TCP|17.172.204.240|63215|xxx.xx.xxx.xx|25)
    (server.mydomain ESMTP Postfix)
    Diagnostic-code: smtp;554 5.7.1 <[email protected]>: Relay access denied
    I have read quite a few posts about similar issues but none of them have helped. My DNS, Mail, and Web Services all appear to be configured properly in Server Admin. Any thoughts or ideas how to fix this mess?
    Thanks

    Thanks for your help, MrHoffman. I have narrowed down a problem (though I don't know if it is THE problem.) In checking my DNS settings, I ran the -checkhostname command in terminal. It gave me the following response:
    Primary address     = 108.66.223.18
    Current HostName    = server.b-hiveindustries.com
    DNS HostName        = 108-66-223-18.uvs.irvnca.sbcglobal.net
    It gave me instructions on how to change it so that both names match but I ended up with both names being the sbcglobal.net name and NOT my server name. I changed it back to the above configuration before deciding to ask for more help.
    Any thoughts on if this could be my problem or how to fix it?
    I also realized that everything in the email response is public knowledge so here is the complete un-obfuscated email response.
    Your message cannot be delivered to the following recipients:
    Recipient address: [email protected]
    Reason: Remote SMTP server has rejected address
    Diagnostic code: smtp;554 5.7.1 <[email protected]>: Relay access denied
    Remote system: dns;b-hiveindustries.com (TCP|17.172.204.238|34601|108.66.223.18|25) (server.b-hiveindustries.com ESMTP Postfix)
    Original-envelope-id: [email protected]
    Reporting-MTA: dns;st11p01mm-asmtp003.mac.com (tcp-daemon)
    Arrival-date: Thu, 26 Apr 2012 16:40:35 +0000 (GMT)
    Original-recipient: rfc822;[email protected]
    Final-recipient: rfc822;[email protected]
    Action: failed
    Status: 5.7.1 (Remote SMTP server has rejected address)
    Remote-MTA: dns;b-hiveindustries.com
    (TCP|17.172.204.238|34601|108.66.223.18|25)
    (server.b-hiveindustries.com ESMTP Postfix)
    Diagnostic-code: smtp;554 5.7.1 <[email protected]>: Relay access denied

  • HT1338 My prefered out going mail server has stopped working?

    When I try to send Emails From the cloud or Mac Mail I am instructed tochoose anothr outgoing mail server but none of the servers suggested work! HELP!

    OS X Mail: Troubleshooting sending and receiving email messages

  • N 'Mail' my 'Get Mail'  function suddenly stopped working.

    I have ascertained that I have Mail to be downloaded by checking on the Bigpond mail server. The usual 'Mail Activity' bar is not present when I attempt to 'Get Mail'.  I have tried 'Mailbox'  ---. 'Get New Mail' but to no avail.  I would appreciate any help or suggestions.
    ReggyB

    Do a backup, using either Time Machine or a cloning program, to ensure files/data can be recovered. Two backups are better than one. 
    Try setting up another admin user account to see if the same problem continues. If Back-to-My Mac is selected in System Preferences, the Guest account will not work. The intent is to see if it is specific to one account or a system wide problem. This account can be deleted later.
    Isolating an issue by using another user account
    Try booting into the Safe Mode using your normal account.  Disconnect all peripherals except those needed for the test. Shut down the computer and then power it back up after waiting 10 seconds. Immediately after hearing the startup chime, hold down the shift key and continue to hold it until the gray Apple icon and a progress bar appear and again when you log in. The boot up is significantly slower than normal. This will reset some caches, forces a directory check, and disables all startup and login items, among other things. When you reboot normally, the initial reboot may be slower than normal. If the system operates normally, there may be 3rd party applications which are causing a problem. Try deleting/disabling the third party applications after a restart by using the application un-installer. For each disable/delete, you will need to restart if you don’t do them all at once.
    Safe Mode - Mavericks
    Safe Mode - About

  • HT4597 My mail has suddenly stopped working.

    I changed over to icloud a few weeks back and my mail (application) was working fine. All good.
    As of today, my mail (app) account now keeps rejecting my password - although if I log into icloud, my mail is fine.
    I've tried setting up a new account but it rejects this.
    My incoming mail server is listed as mail.me.com

    Welcome to the Apple community.
    Delete your mail account from Mail preferences and set it up again using the Mail Server Information.
    Some users have apparently encountered issues using this information in pre-Lion set ups (I haven't), Roger Wilmut has kindly provided instructions for those who find themselves with this problem.
    Entering iCloud email settings manually in Snow Leopard or Leopard

  • HT4623 My voice mail has suddenly stopped working. A caller just hears ringing for a long tome and then it disconnects. Does anyone know how to get it back or how VM stopped working? Thanks.

    Hi everyone. My voicemail just stopped working. A caller today said they got a message that it was not activated or something like that. When I called it from another phone all I got was ringing for a long time and then a disconnect. I have had this phone for about three months and it has been working until now.
    I updated software and turned the phone off and on again. Any other suggestions? Thanks.
    Joan

    Jneklason wrote:
    ~snip~
    I know this email is confusing and really hard to understand...perhaps now you will know how i've been feeling--lost and confused with all the mis-information, with a hit and miss phone, and out of time with all the 1 1/2 hr to 2 hrs EACH wasted on this issue.
    On top of all this, I can't even find out how to file a complaint with anyone higher up than Customer Service.
    I hate to tell you this, but you didn't write an email. You wrote a discussion post on the Verizon Wireless Community forum which is a public peer to peer forum. Unfortunately since you didn't mark your post as a question, the VZW reps that roam this community won't ever see your post. Before you re-post it, don't. Duplicate posts get removed from the community.
    I see there were several missteps both by the reps and yourself in your post. First you should have insisted on returning the phone within the 14 day return policy period. Second which Samsung Galaxy mini model did you purchase? The S3 mini or the S4 mini? Did you do any research prior to deciding on this device. The reps at that time deflected the easiest course of action, by trying to get you to replace the phone under insurance instead of returning the phone. The Early Edge payment option requires the current phone on the line using the early Edge must be returned to Verizon Wireless. Did you once considered going to a third party site like Swappa to purchase a gently used device for your daughter?

  • My Mail accounts suddenly stopped working and it shows blank Can anyone give me some advise on how to get it working again

    My mail was working up to this afternoon and all of a sudden, it is blank
    I have checked the settings and cannot understand what is wrong
    Any advise please?

    If you haven't done so, try restarting your iPad. Hold down the Sleep / Wake button until you see the red slider then swipe to power off then hold the Sleep / Wake button down until you see the Apple logo.
    If that doesn't help, tap Settings / General / Reset / Reset Network Settings.

  • Mail password suddenly stops working

    For the last week. when I try to get new emails in Mac Mail I have been prompted for the server password but only after about 8pm.  I try the password but it is rejected.  Next morning things are fine, back to normal, no password prompt until after about 8pm.
    Now this is happening all the time and I can't get my emails.
    I have reset the password for my email account and been through the issue with my ISP
    I have checked all the settings, addresses, passwords and other information but I can't resolve this issue.
    I am running Lion 10.7.2
    Any ideas?
    Thank you

    Hi Ralph,
    Thanks for replying.
    Mail has just started to work normaly so I'm smiling just now.
    During the time I have the issue everything else appears normal, the network is fine and the internet works.  I haven't checked the activity monitor but I will do next time I get the problem.
    Dean

  • Push Mail has suddenly stopped working?

    Hi there,
    I purchased my new 5S last Thursday (15th) and set up a new iCloud E-Mail account at the same time. I then proceeded to transfer all my accounts, Facebook ect onto the new E-Mail address. I also set up iCloud on Windows 8 Mail so I would recieve push notifications of new mail.
    The other day I had to reset my laptop back to Windows 7, and on doing so it seems to have messed up Push with my iCloud account. My phone will no longer get push E-Mails and I have to go into the app itself to get E-Mail. I have removed the account, re-added it, reset the device, multiple things. Push is enabled obviously, and I am really at a loss as to what the issue is. Please help!

    Have you tried accessing your email account via a browser to see if your provided might be performing maintenance ?
    If not then you could try closing the Mail app completely and then see if it works when you re-open it : from the home screen (i.e.not with the Mail app 'open' on-screen) double-click the home button to bring up the taskbar, then press and hold any of the apps on the taskbar for a couple of seconds or so until they start shaking, then press the '-' in the top left of the Mail app to close it, and touch any part of the screen above the taskbar so as to stop the shaking and close the taskbar.
    If that doesn't work then you could try a reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.
    Another option is try switching the account off and on in settings : Settings > Mail, Contacts, Calendars , then tap the account on the right and slide/tap Mail to off (it will be Account if it's a pop account ) , tap 'Done' and exit settings and then go back in and slide/tap it back on

  • Mail Rules suddenly stop working - at least some of them!

    I have successfully created a number of Rules in Mail that have worked wonderfully for many months (years!) with no problem.
    Suddenly about a week ago the following happened.
    1. Some messages (with valid rules) just stayed in the In Box and wouldn't transfer automatically to the folder identified in my rules.
    2. Applying Rules to the errant messages sometimes works but others just stubbornly refuse to move
    3. Some messages for which there are valid rules actually end up in mail's Junk folder! And all of these refuse to move when subject to the Apply Rules command.
    I've checked the addresses and they are all valid but for some reason the Rules just don't work in every case. Lots of the other rules work fine.
    I've even deleted the rule in some cases and created a new one using the errant message's address - but I'm still stuck with the same behaviour.
    To add insult to injury of the errant mails (all with the same address)
    a) some stay in the In Box
    b) some transfer to the proper box (in accordance with the Rule) and
    c) some go into junk!
    Weird or what?
    Any ideas?
    MalcW

    OKAY. Did the entire list over again. After reboot and importing all 21273 messages those in orange for junk were still orange. Interestingly, I enabled one mailbox that had been disabled for several days and none of those were orange.
    After thinking this over, here's how a way was found to get all of messages changed from orange to black:
    Open each mail box; hi-light all messages, click format, Click on show fonts and/or click on show colors. Click on black. The go back to the mailbox where All messages are selected and click on that and everything in the box becomes black. Now go back to the color window and with that other "all"
    window selected, chose WHITE and then go to the mailbox and click and all messages are now black.
    Mail has been closed and re-opened several times after that, and all messages in each of the six mailboxes are now the proper color.
    Obviously I will need to set up new rules. Here's where I started:
    Open Mail Preferences, Select Junk Mail, Click to enable junk mail filtering
    and click on When Junk Mail arrives "leave it in my inbox, but indicate it's junk
    and click on each of the following
    Exempt from junk mail filtering
    Sender is in my address book
    Sender is in my previous recipients.
    And as a result, if I click on the ADVANCED option at the bottom the following
    Junk Mail window comes up:
    Description JUNK
    If ALL of following conditions are met:
    sender is not in my previous recipients
    sender is not in my address book
    message is Junk Mail
    Perform the following actions:
    set color of text (box shows orange).
    That's it. I hope that's the best way to 'teach it correctly'!!
    I appreciate the help and hope this assists others.

  • My Mail program suddenly stopped working.

    I have Power PC G5 with OSX 10.4.11 and as of today my mail program just won't open. The window opens and it is empty and I can only force quit. I am running mail version 2.1.3. Everything else seems to work just fine. I have no idea what is going on or what to do about it. Please someone help. I am not computer literate but have had this computer since 2006 and this is the first issue I've had. I've tried restarting but still nothing. the spinny wheel just spins and spins and I can do nothing with the program except force quit.

    Interestingly enough...just the safe boot seemed to correct it without moving those items to the desktop. At first it was blank like before then one email appeared in my inbox then disappeared then they all came back...I don't know what happened but it worked. I restarted the computer in normal mode just to see and all is working again.
    On a side note...this computer seems to "fix itself"...I have an older card reader and was having trouble getting it to mount. It would light up and the usb hub port it was connected to would light on startup but then once the desktop started to load the hub light for the reader would go out and the reader light would blink and blink without managing to mount. I would have to disconnect it and reconnect it a bunch of times until it would eventually mount. I knew the hub was working fine so I figured the reader was just broken, perhaps a loose connection, and was going to pick up a new one...Well, the day before yesterday it just randomly started working again. Very strange, but in a good way I guess...just saved me a couple of $$.
    Again thanks so much.

Maybe you are looking for