HT202848: OS X Server: Upgrade and migration from Mavericks or Mountain Lion

Learn about OS X Server: Upgrade and migration from Mavericks or Mountain Lion
kedmans13

Q: Mail service on the OS X Server 4.0 works only locally

I updated my server to Yosemite and bought the next version of OS X SERVER 4.0.

At first glance, everything was as it should, until I noticed that I have new messages until the time when the server is updated. Then I myself sent a letter from the mailbox iCloud, but has not received a new mail.

Went into the mail settings on the server and see a message:

"Available on your local network at Server.local"

 

I once again set up e-mail in the section "Domains", but the service is still only available locally.

Снимок экрана 2014-10-18 в 11.25.02 AM.png

 

Messages from these mailboxes can I send. I get a letter, if it is sent to a mailbox that is configured on the same server, but if I send a letter from another server, it does not come any letters.

 

Снимок экрана 2014-10-18 в 11.36.06 AM.png

 

Снимок экрана 2014-10-18 в 11.37.47 AM.png

Снимок экрана 2014-10-18 в 11.37.57 AM.png

 

maping ports configured correctly.

 

How to make sure that the service has been available on the Internet and was able to receive emails from any servers?

Mac mini (Late 2012), OS X Yosemite (10.10), OS X SERVER 4.0

Posted on Oct 18, 2014 1:46 AM

Close

Q: Mail service on the OS X Server 4.0 works only locally

  • All replies
  • Helpful answers

Page 1 Next
  • by toop68,

    toop68 toop68 Oct 18, 2014 3:50 AM in response to kedmans13
    Level 1 (32 points)
    Servers Enterprise
    Oct 18, 2014 3:50 AM in response to kedmans13

    it seems a fu.. up from the update in my server also the .local appears in my mail settings. But i am able to use mail. all connections are working and mail is flowing. so do not be mislead by the .local in your server app

  • by kedmans13,

    kedmans13 kedmans13 Oct 18, 2014 4:20 AM in response to toop68
    Level 1 (7 points)
    Servers Enterprise
    Oct 18, 2014 4:20 AM in response to toop68

    unfortunately I only works well outgoing mail. incoming mail from other mail servers does not come.

     

    you have used one or multiple Domains on the server?

  • by toop68,

    toop68 toop68 Oct 18, 2014 6:45 AM in response to kedmans13
    Level 1 (32 points)
    Servers Enterprise
    Oct 18, 2014 6:45 AM in response to kedmans13

    i am using 3 virtual domains and they seem to work as they should

  • by TheWarden666,

    TheWarden666 TheWarden666 Oct 18, 2014 2:48 PM in response to kedmans13
    Level 1 (0 points)
    Oct 18, 2014 2:48 PM in response to kedmans13

    I am having the same problem.

     

    Everything worked fine before upgrading my mac mini to Yosemite and Server App 4.0.

     

    Fetchmail shows the messages being forwarded to the accounts but no messages show up when I check the accounts using Mail.....

  • by Jan.Nahody,

    Jan.Nahody Jan.Nahody Oct 19, 2014 2:10 AM in response to kedmans13
    Level 1 (0 points)
    Oct 19, 2014 2:10 AM in response to kedmans13

    I am having same same issue.
    But I have done a clean install with 10.10 and OS X Server 4.0.
    The error occurred every where. The Websites, Wiki, Mail, etc.
    After playing little bit around the other services work now fine, only the mail service is still listening only on local.
    No idea why?

  • by Tim_McManus,

    Tim_McManus Tim_McManus Oct 19, 2014 9:19 AM in response to kedmans13
    Level 2 (159 points)
    Mac OS X
    Oct 19, 2014 9:19 AM in response to kedmans13

    A couple of things happen during the upgrade:  Your domain name changes, and you have to go back and fix it; and there is a display bug where services are listed as using server.local instead of server.example.com.  This is a known bug, I reported it to Apple during beta, and I am not sure why it persists.  However, although the display is wrong, try this to verify settings:

     

    Go into Terminal and type:  sudo serveradmin settings mail

     

    That will list all of the settings for your mail server.  Using serveradmin versus the Server.app might be a better way to manage some of the more advanced settings.  You can get more information about serveradmin by typing:  man serveradmin

  • by kedmans13,

    kedmans13 kedmans13 Oct 21, 2014 3:05 AM in response to Tim_McManus
    Level 1 (7 points)
    Servers Enterprise
    Oct 21, 2014 3:05 AM in response to Tim_McManus

    Hi, thanks for the answer.

    tell me, and what options / properties should pay attention and change .

     

    I did not find the value that is displayed "server.local" in Server.app.

     

    found here are now options :

    mail: postfix: add_whitelist_domain: _array_index: 0 = "Mac-mini.local"

    mail: postfix: add_whitelist_domain: _array_index: 1 = "********************.com"

  • by Tim_McManus,

    Tim_McManus Tim_McManus Oct 21, 2014 4:17 AM in response to kedmans13
    Level 2 (159 points)
    Mac OS X
    Oct 21, 2014 4:17 AM in response to kedmans13

    These values are important:

     

    mail:postfix:host_whitelist:_array_index:0 = "ns.100greenwood.net"

    mail:postfix:host_whitelist:_array_index:1 = "mail.100greenwood.net"

    mail:postfix:domains:_array_index:0:name = "100greenwood.net"

    .

    .

    .

    mail:postfix:mydomain = "100greenwood.net"

    mail:postfix:enable_list_server = yes

    mail:postfix:mydestination:_array_index:0 = "localhost"

    mail:postfix:mydestination:_array_index:1 = "$mydomain"

     

    Also in Terminal, type: hostname

     

    That should show you the name of your host.  Then type this command:  sudo changeip -checkhostname

     

    It should give you a result of:  dirserv:success = "success"

     

    If it doesn't then you have a hostname issue.  The section above that refers to mail:postfix:mydestination:_array_index:0 = "localhost" uses the variable localhost to find your local server.  If there is a name mismatch between them, bad things will happen.  Make sure you change everything to the Internet (not the *.local) address so it routes properly.

  • by kedmans13,

    kedmans13 kedmans13 Oct 22, 2014 11:47 PM in response to Tim_McManus
    Level 1 (7 points)
    Servers Enterprise
    Oct 22, 2014 11:47 PM in response to Tim_McManus

    hi.

    wait the weekend, when there is no incoming messages and try to do it. I hope this will solve my problem. thank you

  • by dboals,

    dboals dboals Oct 29, 2014 1:01 PM in response to kedmans13
    Level 1 (0 points)
    Oct 29, 2014 1:01 PM in response to kedmans13

    Ok, This looks similar to the problem I am having.   I was only able to send and receive email through the SMTP server if the destination address was a virtual domain. Any email going to the primary server domain rejected all incoming emails.  I tried turning off all greylisting and spam filtering, etc to no avail. 

     

    I was finally able to get it to work for the primary domain by editing:

     

    /Library/Server/Mail/Config/postfix/main.cf

     

    I had to COMMENT OUT the following line as so:

     

    #smtpd_require_virtual_map = yes

     

    I assume you could also just set the value to no.

     

    I could not find any documentation via a google search on this particular postfix setting "smtpd_require_virtual_map".  And with that I am not sure if this is the correct way to fix the problem.  There may be a better way to fix this problem and if so I would like to know it.

     

    Dan

  • by dboals,

    dboals dboals Nov 3, 2014 8:12 AM in response to dboals
    Level 1 (0 points)
    Nov 3, 2014 8:12 AM in response to dboals

         Ok my suggesting above only works for "real" accounts on the primary domain of the server.  If you are using any virtual email addresses on the primary domain this doesn't work.  Virtual email addresses on the primary domain are still a problem.   virtual email addresses on Virtual domains work fine.

     

     

         kedmans13 did you get your system to work?  I am still struggling with this.

  • by SylvainChalifoux,

    SylvainChalifoux SylvainChalifoux Nov 4, 2014 5:13 AM in response to kedmans13
    Level 1 (0 points)
    Nov 4, 2014 5:13 AM in response to kedmans13

    I am having same same issue.

    Somebody found a workaround ?

  • by kedmans13,

    kedmans13 kedmans13 Nov 6, 2014 11:54 AM in response to dboals
    Level 1 (7 points)
    Servers Enterprise
    Nov 6, 2014 11:54 AM in response to dboals

    hi

    Previous message for some reason do not send.

    I am still struggling with this.

  • by SylvainChalifoux,

    SylvainChalifoux SylvainChalifoux Dec 8, 2014 7:04 AM in response to kedmans13
    Level 1 (0 points)
    Dec 8, 2014 7:04 AM in response to kedmans13

    I read this post Configure postfix to accept inbound mail only from Google

    and my problem is done !

    Thanks !

Page 1 Next