Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > OS X > Mac OS X Server, Xserve, and Networking

Reply
 
Thread Tools Search this Thread Display Modes
Old Feb 19, 2013, 05:36 PM   #1
aicul
macrumors 6502a
 
Join Date: Jun 2007
Location: no cars, only boats
setting up OSX server email

Hi,

I'm trying to setup the email for my OSX server.

I have it send out emails correctly (but since I use a relay server that does not really use my server).

Incomming emails are all bounced back with the following message :

111.111.111.111 does not like recipient.
Remote host said: 554 5.7.1 <user@mydomain.com>: Relay access denied
Giving up on 111.111.111.111.

I did some digging and found that this may occur if the mx record for the domain points to the server running DirectAdmin and the domain isn't hosted on that server.

Problem is I have no idea how to fix this, and where the MX records are stroed.

Any advice welcome
__________________
I twitter as icotcot (actually I got bored and stopped twittering)
aicul is offline   0 Reply With Quote
Old Feb 20, 2013, 09:08 AM   #2
robvas
macrumors 68000
 
Join Date: Mar 2009
Location: USA
Are you configured to accept mail for your domain? Quick google search show:

Postfix: 554 Relay access denied
Let's say you have a user who can't receive e-mail. Each time they send a message to the server, this pops up in the mail logs:

postfix/smtpd[23897]: NOQUEUE: reject: RCPT from remotemailserver.com[10.0.0.2]: 554 <user@domain.com>: Relay access denied; from=<user@otherdomain.com> to=<user@domain.com> proto=ESMTP helo=<remotemailserver.com>

This is happening because Postfix is receiving e-mail for a domain for which it doesn't expect to handle mail. Add the domains to the mydestination parameter in /etc/postfix/main.cf:

mydestination = domain.com, domain2.com, domain3.com
If you have a lot of domains to add, create a mydomains hash file and change the mydestination parameter:

mydestination = hash:/etc/postfix/mydomains
Create /etc/postfix/mydomains:

localhost OK
localmailserver.com OK
domain.com OK
Then run:

# postmap /etc/postfix/mydomains
This will create the hash file (mydomains.db) within /etc/postfix. If you've just added the directive to the main.cf, run postfix reload. However, if the directive was already there, but you just adjusted the mydomains and ran postmap, then there is nothing left to do.
robvas is offline   0 Reply With Quote
Old Feb 20, 2013, 04:43 PM   #3
aicul
Thread Starter
macrumors 6502a
 
Join Date: Jun 2007
Location: no cars, only boats
I have to be honest Robvas, I read your response and sat down in front of my server.

Here I noticed the log files were empty, so I checked the setting for the log files and noticed they were set to record "critical" only.

I said to myself, set them to something less extreme, do a test and start from there.

So I set the log to "Notice", saves and did a Stop/Start of the mail service. Then sent a test email.

There big surprise the mail went thru. Crazy

Anyway, must have been my mail service hung somehow.

I did however check the setting you suggested and these are there insofar as the mydestination goes.

So a big thankyou for the advice, it helped, and got me back operational.

----------

And come to think of it, I should have tried the Stop/Start before posting.

Silly me
__________________
I twitter as icotcot (actually I got bored and stopped twittering)
aicul is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > OS X > Mac OS X Server, Xserve, and Networking

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
OSX server email push Arkangil Mac OS X Server, Xserve, and Networking 27 Jul 8, 2014 03:10 AM
Help setting up a network for video editing using OSX Server theglobalfund Mac OS X Server, Xserve, and Networking 5 Nov 28, 2012 09:38 PM
Setting up OSX 10.8 server and get an error - invalid DNS name, help? hankkosovo Mac OS X Server, Xserve, and Networking 2 Aug 10, 2012 05:32 PM
Actualizing my mini server to OSX server ecapdeville Mac OS X Server, Xserve, and Networking 3 Jul 25, 2012 10:54 PM
Does setting up an iCloud email (@me/@icloud.com) replace your Apple ID's email? benguild iCloud and Apple Services 5 Jul 19, 2012 03:28 PM

Forum Jump

All times are GMT -5. The time now is 01:47 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC