550 relay not permitted

dreamline

Verified User
Joined
Dec 3, 2005
Messages
108
Hi all,
I'm kinda new to DA and my debian distribution, so don't shoot me for being stoopid.. LOL..

Anyways, after doing an install I lost my exim.conf, so i followed the instructions on this site to do a restore, however at this point I still have a problem with sending a mail to my domain....

If i sent a mail to for instance: info@<domainname> then i get the following response:
Code:
This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

  info@<domain>
    SMTP error from remote mailer after RCPT TO:<info@domainname>:
    host mail.<domain>.com [85.92.128.177]: 550 relay not permitted

I hope someone can tell me how to activate the relay since that's the only thing that's giving me problems after the restore...

Thanks for any help... :D

Edit: Did read some threads about restoring exim.conf and setting up the Mail account, but that didn't help, still have the same problem.. :(
 
Last edited:
K, i got a little further right now.. Instead of 550 relay not permitted, I get a 550 Unknown user now... :) So if i send an email to for instance [email protected] then it returns the mail with User unkown...

I've followed all instructions I could find here, but nothing seems to work.. I hope someone can help me out.. :)
 
Last edited:
Yes, i tried:
http://files.directadmin.com/services/exim.conf
and
http://files.directadmin.com/services/exim4.conf

But still the same error.. :(

Right now i'm using the exim4.conf file..

If i look into my main.log file then i see the following:
Code:
2005-12-04 06:44:18 H=smtp.xxxx.nl (smtp-1.xxxx.nl) [IPaddress] F=<[email protected]> rejected RCPT <[email protected]>: Unrouteable address

And this is the return mail i get:
Code:
SMTP error from remote mailer after RCPT TO:<[email protected]>:
    host mail.xxxx.com [IPAddress]:
    550 unknown user
It's driving me nuts, been working since yesterday for about 16 hours straight up to fix it.... :( Probably you can tell my knowledge of debian is at it's minimum.. LOL
 
Last edited:
Make sure that the user exists, it sounds like your system cannot find that user in that domain (either as a real user, virtual user or forwarder).
 
Well, meanwhile i'm back to square 1.. I once again get relay not permitted, so i called tech support from my provider to fix the problem for a nice figure per hour... LOL

Weird thing is that mail to a user is sent (through PHP) however if i direct it at xxx@<mydomain> i get the 550 relay not permitted.. Followed all the instructions found here but without any result... :(

Been at it for 2 days now and haven't figured it out yet, so time to call in the specialists... :)

Too bad I can't run DA on my local machine to fully figure it out... :)
 
You don't need DA on your local machine to work out problems with email or even apache or any other non-DA package. It is a stock exim package configured to look for certain files in the same place DA expects them. The only application that you are prevented from running on your local computer is DA itself, and that is not where your problem is.

As far as a good exim.conf, I woud look at the on jlasman created, and can be found here.

Since you don't give us real domains, or email addresses, it is hard to tell if you have something configured wrong. Try going to dnsreport.com and see if it finds a problem with your domain. It could be that your domain doesn't have reverse dns configured, but again without actual domain names, this is just a shot in the dark.
 
After running your domain through dnsreport.com, I see a couple of things that should be looked at. I see the following error being returned when attempting to check your email server:
Code:
553 sorry, that domain isn't in my list of allowed rcpthosts (#5.5.3 - chkuser)
This error comes from qmail not from exim. Make sure you are running exim and not qmail (I am guessing it is running the qmail that was install with the OS). Qmail is not configured to understand the DA methods of defining virtual domains. You might want to remove qmail (rpm -ev qmail) to make sure it doesn't start on the server.
 
That's weird, cause if you try 2be2gether.com then it says relay not allowed... And it's on the same machine... :(

Should be fixed now. Did change some settings and it's back to relay not permitted...

Because i fiddled so much, it's possible that it changed regularly since i was trying to fix my problem. :D
 
Last edited:
According to dnsreport.com I see:
Code:
Your 2 MX records are:
10 mail.ratemycreation.com. [TTL=3600] IP=85.92.129.33 [TTL=3600] [NL]
20 mx20.pcextreme.nl. [TTL=3600] IP=85.234.133.32 (No Glue) [TTL=543] [UK]
But when I do an nslookup for mail.ratemycreation.com from my server I get 85.92.128.177 as the IP address. Perhaps the IP address was changed recently and hasn't propagated yet.
 
Last edited:
OK, it looks like you are getting closer. dnsreport is now using the correct MX server. A 550 relay not permitted, could come from the fact that the session is not authorized, for example a username and password sent before sending the email.
 
That's the weird thing.. I am setting ip's in DA and i have a place at my provider to set IPs.. Basically if i recover DNS settings at my providers place you will see the IP 85.92.129.33, i figured that should be set to my servers IP, so i changed it to my servers IP...

Hope that was a good choice.. LOL..

Sofar it's been very confusing... Guess i got a lot to learn about *nix.. LOL

K i got this far, and i've been a coupla times, could the problem now be that my hostname is wrong?

K, i gotta get to work soon, so i'll have my webhost solve my problem...

Thanks for all the help toml.. I appreciate it.... :)

I'll check the settings after my webhost fixed everything and make a backup systemwide just to be sure... :)

Guess configuring exim isn't as easy as the alfabet.. LOL
 
Last edited:
Finally my webhost solved the problem... It seemed that eventually exim3, exim4 and a DA exim was installed on my system... Basically what they did was remove all exims download the latest DA one and install it.. Everything worked fine according to my webhost after that..

:)
 
Back
Top