'553 sorry, sorry, that domain isn't allowed to relay
I setup a qmail server that can send and receive mail using pine. When I try to use Outlook to send mail, I get the error 553 sorry, sorry, that domain isn't allowed to relay. I have setup a tcp-smtp file. I tried to search for that error but all I get is a response in chinese. I am trying to send to a yahoo.com address and my server name is in my rcpthosts.
This is the tcp.smtp. 192.124.60 is my network, but my clients are on a private 10 network.
0.:allow,RELAYCLIENT=""
127.:allow,RELAYCLIENT=""
192.124.60.:allow,RELAYCLIENT=""
192.124.60.133:allow,RELAYCLIENT=""
Any suggestions?
Guest
Is your pine running on the same machine that's running qmail? You said your clients are on a "private 10 network". If that's so, then you'd want to put this IP into tcp.smtp also.
The line where you have... 192.124.60.133 is unnecessary. The line right before that allows any machines on the 192.124.60 network to relay. The first line is unnecessary. The 127. line takes care of the localhost, which is all you need.
When you get done modifying the tcp.smtp file, you need to run qmailctl cdb to rebuild the tcp.smtp file. Hopefully your qmailctl script is setup to do this properly. If you're in doubt, you should post the "CDB" section of that script here.
Hmmm... well, everything seems to be configured OK so far. Maybe you should post the headers of one of these messages so I can see everything. That error is not a standard response from qmail (as far as I know), so it must be coming from somewhere else. Maybe its from the remote host you're trying to deliver mail to?
I also recommend trying to deliver mail using telnet. This is an excellent way to see exactly what's wrong because you can watch the responses from the remote server.
Try this...
telnet 127.0.0.1 25
Notice there is a space between the ip address and the 25 which is the port number. You should get something like this...
[root@falcon root]# telnet 127.0.0.1 25
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
220 hostname.yourdomain.com ESMTP
helo anything
250 hostname.yourdomain.com
mail from: me@mydomain.com
250 ok
rcpt to: user@yourdomain.net
250 ok
data
354 go ahead
something blah,blah blah
.
250 ok 1090602878 qp 13724
quit
221 hostname.yourdomain.com
Connection closed by foreign host.
The helo, mail from, rcpt to, and data commands are commands you input yourself at the command line. When you're done typing the body of your message (like something, blah, blah etc) just put a single dot and hit enter to end the body section. Then type quit and the connection will be closed. Hopefully you should get all positive responses from your smtp server.
You may also want to run the command /var/qmail/bin/qmail-showctl and post the output here. This will show how you've got everything configured and makes it easier to discuss (and make modifications to) your configuration.
The previous posting was the results I got when I telnetted into the mail server on port 25. I got a successful session when I was on the machine and I telnetted in to 127.0.0.1 25.
Wait a minute.... Ok, first off... You're trying to use SMTP to relay mail to another domain (in this case, yahoo.com). So that telnet session isn't going to work. Sorry for leading you astray on that. I guess I didn't quite understand what you were trying to do (sorry... it being monday and all.)
Looking back at your original post, I see you are wanting to do this using Outlook. Well, you have a few different options. First is to add the IP address of all your people who will relay into the /etc/tcp.smtp file. This can be tedious and annoying to add them all unless you're running a small server.
Another way is to apply the smtp auth patch to qmail. You can google for this patch easily. This means the user will have to go into their outlook settings and put in their usernaeme and password for POP3 as well as smtp. This is fairly easy to install.
Another way is to apply pop-before-smtp which allows a user to authenticate himself using pop3 and they are allowed to relay for a short time. This is a little more difficult to install on its own, but I'm sure you could google for this too.
My recommendation is to chuck it all and install a qmail server that has more options... like those found here...
>> I got a successful session when I was on the machine and I telnetted in to 127.0.0.1 25.
Right... exactly.... this worked because you already told qmail its allowed to relay for the 127.x.x.x address. So when you telnetted into the box itself, relaying was possible. I have to assume you were telnetting into the box (in post #5 above) from anotehr host that isn't covered by your tcp.smtp file.
1) You need to figure out the CORRECT IP of the PC where you were trying to use Outlook to send outgoing email. If you can't figure out your IP, that is irrelevant to qmail.
2) When you post your data here, don't edit it, just copy and paste from the original. Apparently the 553 sorry, sorry, that domain isn't allowed to relay <#5.7.1> was a bad sign where there are duplicated sorry,, which doesn't look like it was from a 3rd party patch at all. Not to mention the modified version allowed to relay instead of in my list of allowed rcpthosts, close to, but not the same as the spamcontrol patch at all.
3) The last line of your tcp.smtp looks odd. You are not allowing anyone without the following line:
I did not edit the error. I just did a pickup. That is why it is such a strange error. There are 2 sorry sorry and it is not an error about rcpthost entries. If it was, the problem is well documented.