SMTP Relay denied
apple Verified ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Hi All,
Im trying to setup mail on snow leopard server version 10.6.2 At the moment it is using IMAP and SMTP.
From a users account i can send emails fine. However when trying to receive emails the sender receives the following error:
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; domain.co.uk (TCP|17.148.16.98|59847|86.153.209.12|25) (Server name.local ESMTP Postfix)
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;domain.co.uk
(TCP|17.148.16.98|59847|86.153.209.12|25)
(CoopNetworks-Dev.local ESMTP Postfix)
Diagnostic-code: smtp;554 5.7.1 <[email protected]>: Relay
access denied
Now i don't have any relays setup or so i believe. Relay outgoing messages is not ticked. Under the relay tab none of the three boxes are ticked either.
Im at a bit of a loss now. Any help is really appreciated.
14 replies
Sign in or join Beachball Help to reply.
- 0
Apple Support Community member ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Mail problems like these are notoriously hard to debug without actual domain names because the post doesn't include enough data to identify the problem. Having the domain name would at least allow others to perform basic tests to eliminate or identify common problems.
From your post it sounds like you're sending mail from another account and expecting/hoping it to appear in your mailbox but your server is rejecting it, right?
If that's the case then your server doesn't think it's responsible for the specified domain's mail.
This is where knowing the domain name would really help - we could tell you where to look for (and correct) this setting.
At its simplest level your domain name should be set in the General tab of the Mail settings in Server Admin, but there are other places it could be set, too, especially if you're hosting multiple domains on this server.
- 0
Apple Support Community member ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Hi Camelot,
Thanks for the reply. The domain is mailgate.dynalias.net. This is going to a dynamic IP which is updated via the router.
Yes correct i am sending mail from another account that is not on the same server though.
The domain name is set in the general tab, under the field domain name.
- 0
Apple Support Community member ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Thanks for the reply. The domain is mailgate.dynalias.net.
Well, there's the problem right there.
You're going to have all kinds of problems trying to run mail on a dynamic IP. Not least of which is that you don't own the domain name. Any mail sent to a user @mailgate.dynalias.net is going to go to DynDNS's mail server, not yours.
In this particular case, that error message is coming from their server because their mail server is not configured to accept mail for mailgate.dynalias.net.
Off hand I don't know if DynDNS support MX records (which is what you need to tell other mail servers where to deliver your mail), but even if they do, you're still going to have problems sending mail if you don't have a static IP address.
- 0
Apple Support Community member ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
The reason we are on a dynamic IP is for mail to be tested. Once tested it will be moved onto a static IP. However until the Ip is renewed we Shouldn't have a problem. If this is to cause an issue with setup i can put the server on a Global static IP.
No i agree i don't own the domain name. Again though once working this will be applied to a domain we do own.
You could be on to something with DYNDNS refusing connection:
(Remote SMTP server has rejected address)
Remote-MTA: dns;mailgate.dynalias.net (TCP|17.148.16.90|54724|86.153.209.12|25)
(Development.local ESMTP Postfix)
Diagnostic-code: smtp;554 5.7.1 <[email protected]>: Relay
access deniedRelay access is denied to our SMTP server. However we see the hostname of our server development.local - but would DYN DNS know this?
Yes DYN DNS does support MX records.
Off subject - However i haven't got the foggiest of how you would configure this. Would more than likely be the issue. I believe it has to point to the A record? which would be the IP address that mailgate.dyndns.net is on. However a MX record has to be a hostname so would it be mailgate.dyndns.net?
- 0
Apple Support Community member ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Though that wasn't your goal, the current IP configuration is indistinguishable from that of a spammer.
- 0
Apple Support Community member ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
The goal was to resolve the the relaying error message. And therefore allowing email to function correctly.
This turns out that a MX record requires alteration.
For this second goal to be completed i asked a off subject question from the first goal. Which was how do you configure the MX record correctly.
With this configured the first goal would be completed and the issue resolved.
- 0
Apple Support Community member ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
I've checked the SMTP logs, and found the following.
Mar 22 21:40:27 development.local postfix/anvil[66076]: statistics: max cache size 1 at Mar 22 21:37:06
Mar 22 21:43:03 development.local postfix/smtpd[66205]: connect from asmtpout025.mac.com[17.148.16.100]
Mar 22 21:43:03 development.local postfix/smtpd[66205]: NOQUEUE: reject: RCPT from asmtpout025.mac.com[17.148.16.100]: 554 5.7.1 <[email protected]>: Relay access denied;
from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<asmtpout025.mac.com>
Mar 22 21:43:04 development postfix/smtpd[66205]: disconnect from asmtpout025.mac.com[17.148.16.100]
Mar 22 21:43:48 development postfix/smtpd[66205]: connect from asmtpout025.mac.com[17.148.16.100]
Mar 22 21:43:48 development postfix/smtpd[66205]: NOQUEUE: reject: RCPT from asmtpout025.mac.comThe email is hitting my server and then being rejected. The help so far has been appreciated.
- 0
Apple Support Community member ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
While what you are doing is a very bad idea, adding mailgate.dynalias.net to Server Admin -> Mail -> Settings -> Advanced -> Hosting -> Local Host Aliases will solve this particular issue
- 0
Apple Support Community member ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
That did it. Issue resolved.
The Mx record did need slight alteration when we moved the server over to the live environment.
The fix was to add the domain into the hosting area under server admin > Advanced > Hosting > Local Host Alias.
Thanks for all the help.
- 0
Apple Support Community member ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
I'm having similar problems, i.e., "Relay access denied", albeit not for the reasons stated in the original post.
Applying the 'fix' of adding the local domain name, e.g., myserver.mydomainname.us, to the Hosting -> Include server's domain as local host alias, DOES allow me send e-mails within the domain. However, I can neither send e-mail OUTSIDE of my domain, e.g., [email protected], nor receive e-mail from outside of my domain.
In the former case, it is, once again the "Relay access denied".
In the latter case, the error reads "Recipient address rejected: Service is unavailable".
Not sure what needs to be done for this.
- 0
Apple Support Community member ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
P.S. My ISP says they have no requirement to apply a 'relay' for THEIR activities.
- 0
Apple Support Community member ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Hi Susan,
I too received this error setting up another mail server. It turned out i needed to turn off junk filtering in, settings > filters > enable junk mail filtering.
Daniel
- 0
Apple Support Community member ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
This must be one of those 'features' I hear they're going to correct in v10.6.3....coming soon to a download source near you....I hope....
- 0
Apple Support Community member ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Actually....
....it was that as well as another problem.
I first had to get the server to start accepting SMTP RELAYS from all the DNS IP Addresses associated with my machine. That includes the two used to communicate with my ISP. I also threw in my internal/24 and the IP Address assigned to my domain name by my ISP.
I also set the HOSTING to my server AND "localhost.localdomain".
Afterwards, I was not seeing errors in my logs for SMTP nor IMAP. I was seeing indications of delivery. However, I wasn't seeing e-mail in the INBOX. So I checked the JUNK....SURE ENOUGH....there they all were.
Thanks for the tip on that.
Now, if we could only get this 'feature' fixed.
Then again, have you checked to see if you've been identified as a 'spammer' at Spamhaus.org?
I'm going to check there to see if I've got that kind of problem.
Talking with one of the Apple Techs, there's an indication that it is all too easy to be identified as such and 'blacklisted' from here to the black-hole of Calcutta, going in BOTH directions.