Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Step by step guide to configure 10.8 mail server

Looking for a decent guide to walk me through configuring the mail server, testing the configuration, etc. plus the obvious DNS and other configuration necessary to make it work and access it from the outside world.


Any suggestions?

OS X Server, 10.8 Mail Server

Posted on Sep 13, 2012 12:37 PM

Reply
45 replies

Sep 19, 2012 1:21 PM in response to JaimeMagiera

Thanks for all the advice guys.


The 'whois' option tells me the main domain is associated with the name servers at 123-reg but I'm guessing as my local server is set up to check the local DNS first and then refer to the Google DNS I should still be able to see things from a local machine.


> host mail.xyz.com

Host mail.xyz.com not found: 3(NXDOMAIN)


> host xyz.com

xyz.com mail is handled by 0 mail.xyz.com.



The DNS configuration at 123-reg is:


@ MX 10 mail.xyz.com

@ A <my router external IP address>

www A <my router external IP address>


The DNS on my local server is:


mail.xyz.com mailexchanger

www.xyz.com machine

www.xyz.com nameserver


If I hit the 'create an MX record for this hostname' option I get another record that says:


www.xyz.com mailexchanger


What am I missing?

Sep 19, 2012 1:52 PM in response to Mike Edwards

Both an machine and MX should be set in your local DNS at the very least.


mail.xyz.com IN A 123.456.789.123


or, using a CNAME,


mail.xyz.com CNAME somemachine


The MX has to point to an actual machine. Note that really an MX should point to A record, not a CNAME (alias), but it's a common mis-use. You'll actually see a warning in OSX Server's logs about using CNAMES ( "ILLEGAL!").


One thing though, in your local, you're using a CNAME. At the remote DNS, you're using an A record. Pick one method. In the end, you should have...


mail.xyz.com IN A 123.456.789.123

xyz.com mx 10 mail.xyz.com


or...


mail.xyz.com CNAME host.xyz.com

xyz.com mx 10 mail.xyz.com

Sep 19, 2012 1:54 PM in response to JaimeMagiera

OK, my eyes are getting blurry and I'm starting to drift. I'll check back in with your progress in a bit. This discussion sort of highlights my very first post. You really should read up on how this works before proceeding. In some cases, OS X Server works "out of the box" for services. However, what you need requires a little more understanding and planning.

Sep 19, 2012 2:02 PM in response to JaimeMagiera

I read up on it a fair bit but there was clearly a bunch of assumptions both in the "idiot's guide" and the Apple documentation about some of the subtleties.


So I now have the following in Server.app for my local DNS:


mail.xyz.com mailexchanger

mail.xyz.com machine

www.xyz.com machine

www.xyz.com nameserver


In the 123-reg configuration I get:


@ MX 10 mail.xyz.com

@ A <my router external IP address>

www A <my router external IP address>

mail A <my router external IP address>


I tried to enter 'mail.xyz.com A <my router external IP address>' but it always shortens it to just 'mail'.

Sep 19, 2012 2:08 PM in response to Mike Edwards

Yes, I agree that the guides are full of assumptions. I tend to avoid just pointing people to documents like that. It can actually be a disserve because it tells people what steps to follow for a particular end result, but does not provide context or explanation as to how the thing actually works. It doesn't help one understand the overall functionality.


OK, mail should work for you now. Let me know if there are more difficulties.

Sep 19, 2012 2:54 PM in response to JaimeMagiera

Just tried sending mail to that address and get the following 'Undelivered Mail Returned to Sender' message. Any bright ideas:



This is the mail system at host mdfmta004.tbr.inty.net.



I'm sorry to have to inform you that your message could not

be delivered to one or more recipients. It's attached below.



For further assistance, please send mail to postmaster.



If you do so, please include this problem report. You can

delete your own text from the attached returned message.



The mail system



<mike@xyz.com>: host mail.xyz.com[12.34.56.789]

said: 550 5.1.1 <mike@xyz.com>: Recipient address rejected:

User unknown in virtual alias table (in reply to RCPT TO command)

Reporting-MTA: dns; mdfmta004.tbr.inty.net

X-Postfix-Queue-ID: C5DA7A0C07F

X-Postfix-Sender: rfc822; mike@abc.com

Arrival-Date: Wed, 19 Sep 2012 22:48:44 +0100 (BST)



Final-Recipient: rfc822; mike@xyz.com

Original-Recipient: rfc822;mike@xyz.com

Action: failed

Status: 5.1.1

Remote-MTA: dns; mail.xyz.com

Diagnostic-Code: smtp; 550 5.1.1 <mike@xyz.com>: Recipient

address rejected: User unknown in virtual alias table



From: Mike <mike@abc.com>

Subject: Test 456

Date: 19 September 2012 22:48:44 BST

To: "mike@xyz.com" <mike@xyz.com>

Sep 20, 2012 1:32 PM in response to JaimeMagiera

Couple of questions:


i) Why does the recipient of a message only get the email address and not the sender's name alongside it? Is that something that should be set in the alias part?


ii) When I first open Apple Mail on my laptop why does the account I've just set up come up with an error "The server returned the error: The attempt to send data to the server “(null)” failed.". Then when I use the Connection Doctor does it show an error against the SMTP or POP side of things but if I hit 'retest' everything comes up fine?

Nov 11, 2012 1:23 PM in response to Mike Edwards

1) you need to insert the sender's name in the mail client preferences account; It works.

(I have tried to modify info user using Workgroup manager for 10.8 but not useful for this request)


2) don't know but if It can help you, in the mail client full working, at the moment I have:

POP3 domain.local (the mail server OSX), username and password, port 110 plus SSL, APOP

SMTP 127.0.0.1 (testing the mail server OSX in localhost, but strange I have errore if inserted the domain.local itself), username and password, port 25 plus SSL, authentication password basic


At the moment the mail server works, in this configuration:

registered a Domain Name (configured the records A, MX, CNAME in maintainer panel, enabled the DNS service in OSX using the primary and secondary DNS of the ISP), as SMTP in mail server service used the SMTP of the ISP.


Is there now online a well done step by step guide to configure all the mail server options postfix in OSX ? or I can post here many questions about it ?

Step by step guide to configure 10.8 mail server

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.