Mail Server Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationMail Server Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 21st, 2004, 10:16 AM
csross csross is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 105 csross User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 56 m 28 sec
Reputation Power: 5
'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?

Reply With Quote
  #2  
Old October 21st, 2004, 03:19 PM
Donboy's Avatar
Donboy Donboy is offline
The Evil Monkey
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 220 Donboy User rank is Private First Class (20 - 50 Reputation Level)Donboy User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 6 h 38 m 10 sec
Reputation Power: 6
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.

Reply With Quote
  #3  
Old October 25th, 2004, 01:20 PM
csross csross is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 105 csross User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 56 m 28 sec
Reputation Power: 5
Pine is running on the same machine as qmail. I added the line into tcp.smtp and ran the qmailctl cdb, with no change.

127.:allow,RELAYCLIENT=""
10.1.1.:allow,RELAYCLIENT=""
192.123.60.:allow,RELAYCLIENT=""


Here is the section of code for cdb.

;;
cdb)
tcprules /etc/tcp.smtp.cdb /etc/tcp.smtp.tmp < /etc/tcp.smtp
chmod 644 /etc/tcp.smtp.cdb
echo "Reloaded /etc/tcp.smtp."
;;

Reply With Quote
  #4  
Old October 25th, 2004, 02:18 PM
Donboy's Avatar
Donboy Donboy is offline
The Evil Monkey
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 220 Donboy User rank is Private First Class (20 - 50 Reputation Level)Donboy User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 6 h 38 m 10 sec
Reputation Power: 6
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.

Reply With Quote
  #5  
Old October 25th, 2004, 03:09 PM
csross csross is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 105 csross User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 56 m 28 sec
Reputation Power: 5
This was the output.

220 mail5.pulver.com ESMTP
helo christine
220 mail5.pulver.com
mail from: cross@pulver.cm
250 ok
rcpt to: cross@yahoo.com
553 sorry, sorry, that domain isn't allowed to relay <#5.7.1>




I am able to send mail to the same yahoo account using pine if I am logged in. When I tried to use Helo as the first line, I got unimplements.

How can I set that up more descriptive logging? I don't believe rcpthosts doesn't come into play here.
----------------------------------------
Here is the output from showctl

[root@mail5 control]# /var/qmail/bin/qmail-showctl
qmail home directory: /var/qmail.
user-ext delimiter: -.
paternalism (in decimal): 2.
silent concurrency limit: 509.
subdirectory split: 23.
user ids: 501, 502, 505, 0, 504, 506, 507, 508.
group ids: 501, 502.

badmailfrom: (Default.) Any MAIL FROM is allowed.

bouncefrom: (Default.) Bounce user name is MAILER-DAEMON.

bouncehost: (Default.) Bounce host name is mail5.pulver.com.

concurrencylocal: (Default.) Local concurrency is 10.

concurrencyremote: (Default.) Remote concurrency is 20.

databytes: (Default.) SMTP DATA limit is 0 bytes.

defaultdomain: Default domain name is pulver.com.

defaulthost: (Default.) Default host name is mail5.pulver.com.

doublebouncehost: (Default.) 2B recipient host: mail5.pulver.com.

doublebounceto: (Default.) 2B recipient user: postmaster.

envnoathost: (Default.) Presumed domain name is mail5.pulver.com.

helohost: (Default.) SMTP client HELO host name is mail5.pulver.com.

idhost: (Default.) Message-ID host name is mail5.pulver.com.

localiphost: (Default.) Local IP address becomes mail5.pulver.com.

locals:
Messages for mail5.pulver.com are delivered locally.

me: My name is mail5.pulver.com.

percenthack: (Default.) The percent hack is not allowed.

plusdomain: Plus domain name is pulver.com.

qmqpservers: (Default.) No QMQP servers.

queuelifetime: (Default.) Message lifetime in the queue is 604800 seconds.

rcpthosts:
SMTP clients may send messages to recipients at mail5.pulver.com.

morercpthosts: (Default.) No effect.

morercpthosts.cdb: (Default.) No effect.

smtpgreeting: (Default.) SMTP greeting: 220 mail5.pulver.com.

smtproutes: (Default.) No artificial SMTP routes.

timeoutconnect: (Default.) SMTP client connection timeout is 60 seconds.

timeoutremote: (Default.) SMTP client data timeout is 1200 seconds.

timeoutsmtpd: (Default.) SMTP server data timeout is 1200 seconds.

virtualdomains: (Default.) No virtual domains.

defaultdelivery: I have no idea what this file does.

concurrencyincoming: I have no idea what this file does.

[root@mail5 control]#

Reply With Quote
  #6  
Old October 25th, 2004, 03:14 PM
csross csross is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 105 csross User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 56 m 28 sec
Reputation Power: 5
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.

Reply With Quote
  #7  
Old October 25th, 2004, 03:42 PM
Donboy's Avatar
Donboy Donboy is offline
The Evil Monkey
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 220 Donboy User rank is Private First Class (20 - 50 Reputation Level)Donboy User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 6 h 38 m 10 sec
Reputation Power: 6
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...

http://sylvestre.ledru.info/howto/howto_qmail_vpopmail.php
www.qmailrocks.org

These are a lot more work, but well worth the effort.

Reply With Quote
  #8  
Old October 25th, 2004, 03:45 PM
Donboy's Avatar
Donboy Donboy is offline
The Evil Monkey
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 220 Donboy User rank is Private First Class (20 - 50 Reputation Level)Donboy User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 6 h 38 m 10 sec
Reputation Power: 6
>> 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.

Reply With Quote
  #9  
Old October 26th, 2004, 07:46 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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:

:allow

Reply With Quote
  #10  
Old October 26th, 2004, 08:47 AM
csross csross is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 105 csross User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 56 m 28 sec
Reputation Power: 5
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.

Reply With Quote
  #11  
Old October 26th, 2004, 05:39 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Where did you download your qmail and how did you install it? Any patches?

Without hacking/patching qmail-smtpd.c, there is absolutely NO WAY it would generate such error as 553 sorry, sorry, that domain isn't allowed to relay <#5.7.1>. Once again, NO WAY.

Reply With Quote
  #12  
Old October 27th, 2004, 07:41 AM
csross csross is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 105 csross User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 56 m 28 sec
Reputation Power: 5
I went to qmails site and downloaded it. I didn't do qmailrocks.org. That is the error I get.

Reply With Quote
  #13  
Old October 27th, 2004, 02:18 PM
Donboy's Avatar
Donboy Donboy is offline
The Evil Monkey
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 220 Donboy User rank is Private First Class (20 - 50 Reputation Level)Donboy User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 6 h 38 m 10 sec
Reputation Power: 6
I stand by my earlier statement...

You should either install the smtp auth patch or build yourself a better mail server.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationMail Server Help > '553 sorry, sorry, that domain isn't allowed to relay


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support |