Re: using RBLSMTPD env var

2000-07-28 Thread Adam McKenna

On Fri, Jul 28, 2000 at 03:30:34PM -0700, Jon Rust wrote:
[...]
 I thought it was supposed to spit out the contents of RBLSMTPD? And no
 553 either. What did I miss? (I tried with both a space after the hyphen
 and without.)

Nope.  If RBLSMTPD is set, rblsmtpd skips the RBL check.

--Adam

 
 jon
 



Re: using RBLSMTPD env var

2000-07-28 Thread Chris, the Young One

On Fri, Jul 28, 2000 at 03:30:34PM -0700, Jon Rust wrote:
!host:~{503} $ telnet mail.vcnet.com 25
!Trying 209.239.239.15...
!Connected to mail.vcnet.com.
!Escape character is '^]'.
!220 rblsmtpd.local
!Connection closed by foreign host.

I presume that the connection didn't get closed immediately. I know
that rblsmtpd closes the connection after 60 seconds. If you issue
SMTP commands, they will all result in error messages (if you need
a quick SMTP reference, see http://cr.yp.to/smtp.html).

Hey, vcnet.com, aren't they those cool people hosting the boycott
Microsoft site? :-)

---Chris K.
-- 
 Chris, the Young One |_ Never brag about how your machines haven't been 
  Auckland, New Zealand |_ hacked, or your code hasn't been broken. It's 
http://cloud9.hedgee.com/ |_ guaranteed to bring the wrong kind of 
 PGP: 0xCCC6114E/0x706A6AAD |_ attention. ---Neil Schneider 



Re: using RBLSMTPD env var

2000-07-28 Thread Jon Rust

On Fri, Jul 28, 2000 at 06:39:18PM -0400, Adam McKenna wrote:
 On Fri, Jul 28, 2000 at 03:30:34PM -0700, Jon Rust wrote:
 [...]
  I thought it was supposed to spit out the contents of RBLSMTPD? And no
  553 either. What did I miss? (I tried with both a space after the hyphen
  and without.)
 
 Nope.  If RBLSMTPD is set, rblsmtpd skips the RBL check.
 
 --Adam

I don't think we're on the same page here. If the environment variable
RBLSMTPD is set to something besides an empty string, it should give an
error code, either 4xx or 5xx depending on command line options, and
whether or not the var starts with a hyphen. It's not doing that.

I quote from the rblsmtpd man page:

"If $RBLSMTPD is set and is empty, rblsmtpd does not block mail.

"Normally, if $RBLSMTPD is set, rblsmtpd uses a 451 error code in its
limited SMTP conversation. This tells legitimate clients to try again
later. It gives innocent relay operators a chance to see the problem,
prohibit relaying, get off the RBL, and get the mail delivered.

"However, if $RBLSMTPD begins with a hyphen, rblsmtpd removes the hyphen
and uses a 553 error code. This tells legitimate clients to bounce the
message immediately."

The last paragraph is what I'm trying to achieve. Any help there?

jon



Re: using RBLSMTPD env var

2000-07-28 Thread Jon Rust

On Sat, Jul 29, 2000 at 10:39:30AM +1200, Chris, the Young One wrote:
 On Fri, Jul 28, 2000 at 03:30:34PM -0700, Jon Rust wrote:
 !host:~{503} $ telnet mail.vcnet.com 25
 !Trying 209.239.239.15...
 !Connected to mail.vcnet.com.
 !Escape character is '^]'.
 !220 rblsmtpd.local
 !Connection closed by foreign host.
 
 I presume that the connection didn't get closed immediately. I know
 that rblsmtpd closes the connection after 60 seconds. If you issue
 SMTP commands, they will all result in error messages (if you need
 a quick SMTP reference, see http://cr.yp.to/smtp.html).

It closes in  1 second.

 Hey, vcnet.com, aren't they those cool people hosting the boycott
 Microsoft site? :-)

That is one of customers, yes. We comp that space to him. :-

jon



Re: using RBLSMTPD env var

2000-07-28 Thread Einar Bordewich

try puting into your tcp.smtp.cdb file
127.0.0.2:allow,RBLSMTPD="-Go away"

then 
telnet 127.0.0.2 25
Trying 127.0.0.2...
Connected to 127.0.0.2.
Escape character is '^]'.
220 rblsmtpd.local
helo test
250 rblsmtpd.local
mail from: [EMAIL PROTECTED]
250 rblsmtpd.local
rcpt to: [EMAIL PROTECTED]
553 Go away

See if that works. Just so you know you are on the right track :)

-- 

IDG New Media Einar Bordewich
Technical Manager  Phone: +47 2336 1420
E-Mail:   [EMAIL PROTECTED]


- Original Message - 
From: "Jon Rust" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Saturday, July 29, 2000 12:53 AM
Subject: Re: using RBLSMTPD env var


 On Sat, Jul 29, 2000 at 10:39:30AM +1200, Chris, the Young One wrote:
  On Fri, Jul 28, 2000 at 03:30:34PM -0700, Jon Rust wrote:
  !host:~{503} $ telnet mail.vcnet.com 25
  !Trying 209.239.239.15...
  !Connected to mail.vcnet.com.
  !Escape character is '^]'.
  !220 rblsmtpd.local
  !Connection closed by foreign host.
  
  I presume that the connection didn't get closed immediately. I know
  that rblsmtpd closes the connection after 60 seconds. If you issue
  SMTP commands, they will all result in error messages (if you need
  a quick SMTP reference, see http://cr.yp.to/smtp.html).
 
 It closes in  1 second.
 
  Hey, vcnet.com, aren't they those cool people hosting the boycott
  Microsoft site? :-)
 
 That is one of customers, yes. We comp that space to him. :-
 
 jon
 




Re: using RBLSMTPD env var

2000-07-28 Thread Chris, the Young One

On Fri, Jul 28, 2000 at 03:53:04PM -0700, Jon Rust wrote:
!  I presume that the connection didn't get closed immediately. I know
!  that rblsmtpd closes the connection after 60 seconds. If you issue
!  SMTP commands, they will all result in error messages (if you need
!  a quick SMTP reference, see http://cr.yp.to/smtp.html).
! 
! It closes in  1 second.

Some possibilities I can see:

1. You invoked rblsmtpd with ``-t 1'' (unlikely, if you said that it
   closed in less than 1 second).

2. End of input.

3. Internal error.

You are using rblsmtpd from ucspi-tcp-0.88, aren't you? (That's the
version whose source I'm reading right now.) Also, when the connection
closes, a line of the form ``end x status yyy'' gets logged: what
value of yyy did you get? (I don't claim that any of this is anything
more than wild guesses---I don't have the magic pill today, sorry. :-))

!  Hey, vcnet.com, aren't they those cool people hosting the boycott
!  Microsoft site? :-)
! 
! That is one of customers, yes. We comp that space to him. :-

Ahh, cool. :-)

---Chris K.
-- 
 Chris, the Young One |_ If you can't afford a backup system, you can't 
  Auckland, New Zealand |_ afford to have important data on your computer. 
http://cloud9.hedgee.com/ |_ ---Tracy R. Reed  
 PGP: 0xCCC6114E/0x706A6AAD |_ 



Re: using RBLSMTPD env var

2000-07-28 Thread Jon Rust

On Sat, Jul 29, 2000 at 11:12:12AM +1200, Chris, the Young One wrote:
 On Fri, Jul 28, 2000 at 03:53:04PM -0700, Jon Rust wrote:
 ! It closes in  1 second.
 
 Some possibilities I can see:
 
 1. You invoked rblsmtpd with ``-t 1'' (unlikely, if you said that it
closed in less than 1 second).

Ah yes. '-t 2' actually. Guess I really should have timed it before
claiming  1. :-/ Damnit. So it was just timing out the connection
before it got a chance to say "553 yada yada yada." I did a copy and
paste of HELO, mail from, etc and it did give the 553 error message.

Thanks. I gotta go increase that 2 second timeout. What was I thinking?!

jon