tcprules fails to make the cdb file

This is a discussion on tcprules fails to make the cdb file within the alt.comp.mail.qmail forums, part of the Mail Servers and Related category; Hi I got this weird problem, suddenly I can't make a rules file with tcprules program. My rules (tcp....


Go Back   Usenet Forums > Mail Servers and Related > alt.comp.mail.qmail

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-13-2004
Lars E. D. Jensen
 
Posts: n/a
Default tcprules fails to make the cdb file

Hi

I got this weird problem, suddenly I can't make a rules file with
tcprules program.

My rules (tcp.smtp file):
127.:allow,RELAYCLIENT=""
:allow,QMAILQUEUE="/package/mail/qscanq/command/qscanq"


Running with strace gives this:

010604:/etc/qmail# strace tcprules /etc/qmail/tcp.smtp.cdb /etc/tcp.smtp

execve("/usr/local/bin/tcprules", ["tcprules",
"/etc/qmail/tcp.smtp.cdb", "/etc/tcp.smtp"], [/* 13 vars */]) = 0
uname({sys="Linux", node="dcmsh010604", ...}) = 0
brk(0) = 0x8052be0
open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=13115, ...}) = 0
old_mmap(NULL, 13115, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40014000
close(3) = 0
open("/lib/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\3 0\222"...,
1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=1153784, ...}) = 0
old_mmap(NULL, 1166560, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40018000
mprotect(0x4012b000, 40160, PROT_NONE) = 0
old_mmap(0x4012b000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED,
3, 0x113000) = 0x4012b000
old_mmap(0x40131000, 15584, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40131000
close(3) = 0
munmap(0x40014000, 13115) = 0
open("/etc/tcp.smtp", O_WRONLY|O_NONBLOCK|O_CREAT|O_TRUNC, 0644) = 3
lseek(3, 2048, SEEK_SET) = 2048
read(0,


Anyone knows what's wrong, the tcprules program just halts and I need to
do a ctrl-z to get out...

Thanks
Lars
Reply With Quote
  #2 (permalink)  
Old 08-13-2004
Dave Sill
 
Posts: n/a
Default Re: tcprules fails to make the cdb file

"Lars E. D. Jensen" <lars@dangvard.dk> writes:

> Running with strace gives this:
>
> 010604:/etc/qmail# strace tcprules /etc/qmail/tcp.smtp.cdb /etc/tcp.smtp
>
> execve("/usr/local/bin/tcprules", ["tcprules",
> "/etc/qmail/tcp.smtp.cdb", "/etc/tcp.smtp"], [/* 13 vars */]) = 0
> uname({sys="Linux", node="dcmsh010604", ...}) = 0
> brk(0) = 0x8052be0
> open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or
> directory)
> open("/etc/ld.so.cache", O_RDONLY) = 3
> fstat64(3, {st_mode=S_IFREG|0644, st_size=13115, ...}) = 0
> old_mmap(NULL, 13115, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40014000
> close(3) = 0
> open("/lib/libc.so.6", O_RDONLY) = 3
> read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\3 0\222"...,
> 1024) = 1024
> fstat64(3, {st_mode=S_IFREG|0755, st_size=1153784, ...}) = 0
> old_mmap(NULL, 1166560, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40018000
> mprotect(0x4012b000, 40160, PROT_NONE) = 0
> old_mmap(0x4012b000, 24576, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_FIXED, 3, 0x113000) = 0x4012b000
> old_mmap(0x40131000, 15584, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40131000
> close(3) = 0
> munmap(0x40014000, 13115) = 0
> open("/etc/tcp.smtp", O_WRONLY|O_NONBLOCK|O_CREAT|O_TRUNC, 0644) = 3
> lseek(3, 2048, SEEK_SET) = 2048
> read(0,
>
>
> Anyone knows what's wrong, the tcprules program just halts and I need
> to do a ctrl-z to get out...


It's waiting for input. Your command should look something like:

tcprules /etc/tcp.smtp.cdb /etc/tcp.smtp.tmp < /etc/tcp.smtp

Or, with LWQ:

qmailctl cdb

--
Dave Sill Oak Ridge National Lab, Workstation Support
Author, The qmail Handbook <http://web.infoave.net/~dsill>
<http://lifewithqmail.org/>: Almost everything you always wanted to know.
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:46 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0