Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  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:
env TCPREMOTEIP= ./rblsmtpd -r \
  " relay problem - see \
  <>" \
  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: relay problem - see <>

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:

rblsmtpd -r server_args = /usr/sbin/rblsmtpd -r \
" relay problem - see \
<>" \
...(snip rest of qmail stuff)
In this situation, the 'base' variable ends up containing:


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:
rblsmtpd -r server_args = /usr/sbin/rblsmtpd -r \
"" \
...(snip rest of qmail stuff)
Then the variable contains:


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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 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 > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:56 AM.

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