LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-05-2003, 05:25 AM   #1
T.J. Systems
LQ Newbie
 
Registered: Jul 2003
Location: Chicago, IL
Posts: 3

Rep: Reputation: 0
How to use rblsmtpd 'RSS' patch with xinetd?


I am unable to get the rblsmtpd updated with the 'RSS' patch to work properly using xinetd.

The patch is properly applied and works fine when tested at the command prompt:
Code:
env TCPREMOTEIP=192.203.178.107 ./rblsmtpd -r \
  "sbl.spamhaus.org:Open relay problem - see \
  <http://www.mail-abuse.org/cgi-bin/nph-rss?%IP%>" \
  echo whoops
This example works properly (i.e. the custom error is returned and not the word 'whoops').

In the above example, the 'base' variable in rblsmtpd contains:

sbl.spamhaus.org:Open relay problem - see <http://www.mail-abuse.org/cgi-bin/nph-rss?%IP%>

rblsmtpd then proceeds to test the RBL and return the custom error message as indicated in the 'RSS' settings.

After a little tinkering, I believe it is because the xinted does not properly parse the parameter(s)...

For example, if the xinetd smpt section contains:

Code:
rblsmtpd -r server_args = /usr/sbin/rblsmtpd -r \
"sbl.spamhaus.org:Open relay problem - see \
<http://www.mail-abuse.org/cgi-bin/nph-rss?%IP%>" \
...(snip rest of qmail stuff)
In this situation, the 'base' variable ends up containing:

"sbl.spamhaus.org:Open

Which, sends rblsmtpd into a not very nice state, and basically accepting no e-mail (i.e. time-out).

Additionally, it is not only the space issue, but also the leading quote. You will note that the quotes are stripped when tested at the command-prompt level, but are part of the variable when triggered by xinted. If a single word is specified as the message:
Code:
rblsmtpd -r server_args = /usr/sbin/rblsmtpd -r \
"sbl.spamhaus.org:test_text" \
...(snip rest of qmail stuff)
Then the variable contains:

"sbl.spamhaus.org:test_text"

In this situation rblsmtpd does not fail, however it does not check the RBL server either (i.e. no mail bounced).

Naturally, in a single word situation, the quotes are not necesairy, and if removed in the example above, the RBL is checked and messages are bounced with the single word as the error (i.e. test_text). However, this is not very usefull, and defeats the whole 'rss' patch idea.

Also, the lines were broken into short peices for the post, but tested as a single long lines at the command-prompt as well as in xinetd.

Just curious if anyone running xinetd has be able to use the 'rss' patch?

Any suggestions would be greatly appreciated.

[RedHat 7.2-i386/rblsmtpd v0.88/qmail v1.03/xinetd v2.3.9]

Last edited by T.J. Systems; 07-05-2003 at 05:28 AM.
 
  


Reply



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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to patch 2.6.11.7 kernel with Reiser4 mm patch SlackwareInAZ Slackware 9 04-26-2005 06:33 AM
How to Install patch-o-matic(a iptables patch) on redhat 9? itebooks Linux - Security 1 07-23-2004 08:51 AM
debian-patch-debianlogo w/2.6.5 kernel-patch-lpp Outabux Debian 11 05-20-2004 01:21 PM
How to Apply patch for Mass Storage device to work? (uss725-2.4.20-rc2.patch) cevjr Linux - Hardware 3 04-20-2004 11:14 PM
Xinetd dead --xinetd dead but pid file exists hillxy Linux - General 1 04-15-2004 02:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration