|
|
|
|
||||||
| comp.mail.sendmail Configuring and using the BSD sendmail agent. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
On a CentOS 5 (Final) machine with sendmail-8.13.8-2.el5 installed, I
grabbed the sendmail-8.13.8 source tarball and copied out cidrexpand. When I run it, though, it just sits and does not return to a command prompt. It creates a 0 length output file but does nothing else. I ran a strace, and the last few lines are: stat64("/usr/lib/perl5/5.8.8/constant.pm", {st_mode=S_IFREG|0644, st_size=11279, ...}) = 0 open("/usr/lib/perl5/5.8.8/constant.pm", O_RDONLY|O_LARGEFILE) = 6 ioctl(6, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfc99128) = -1 ENOTTY (Inappropriate ioctl for device) _llseek(6, 0, [0], SEEK_CUR) = 0 read(6, "package constant;\n\nuse strict;\nu"..., 4096) = 4096 _llseek(6, 3050, [3050], SEEK_SET) = 0 _llseek(6, 0, [3050], SEEK_CUR) = 0 close(6) = 0 read(5, ",\"\\n\" if DEBUG;\n\n # If @$x > 1,"..., 4096) = 4096 read(5, "omething with less\n # than 32 b"..., 4096) = 4096 brk(0x9b41000) = 0x9b41000 read(5, " my $t = \'0b0\'; return $t;\n "..., 4096) = 4096 read(5, " }\n $x;\n }\n\n################"..., 4096) = 4096 _llseek(5, 53434, [53434], SEEK_SET) = 0 _llseek(5, 0, [53434], SEEK_CUR) = 0 close(5) = 0 read(4, "ent array, with $a[0] being \"192"..., 4096) = 4096 read(4, "ffix\";\n }\n\n my @p=grep (/."..., 4096) = 4096 brk(0x9b62000) = 0x9b62000 read(4, " my $i;\n\n my @c;\n\n for ($i"..., 4096) = 4096 read(4, ":0000:0000:dead:beef:0002\",\n\"000"..., 4096) = 4096 brk(0x9b83000) = 0x9b83000 read(4, ";\n\n ($isipv6, $n)=_ipv6to4($n"..., 4096) = 2288 close(4) = 0 read(3, "", 4096) = 0 close(3) = 0 fcntl64(0, F_SETFD, 0) = 0 read(0, <unfinished ...> Any idea what's wrong? |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
jnojr@yahoo.com wrote:
> On a CentOS 5 (Final) machine with sendmail-8.13.8-2.el5 installed, I > grabbed the sendmail-8.13.8 source tarball and copied out cidrexpand. > When I run it, though, it just sits and does not return to a command > prompt. > It creates a 0 length output file but does nothing else. I > ran a strace, and the last few lines are: > [...] > read(0, <unfinished ...> > > Any idea what's wrong? Could you post "command line" you use to run cidrexpand? Based on the above cidrexpand waits for input via standard input (STDIN). The cidrexpand perl script reads STDIN unless you give names of input files via command line. you may use "per map" command like below to compile access table: #v+ cd /etc/mail cidrexpand < access | makemap hash access #v- -- [pl>en: Andrew] Andrzej Adam Filip : anfi@priv.onet.pl : anfi@xl.wp.pl Open-Sendmail: http://open-sendmail.sourceforge.net/ Rap music is just computerised crap. I listen to Top of the Pops and after three songs I feel like killing someone. -- George Harrison |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
jnojr@yahoo.com wrote:
> On a CentOS 5 (Final) machine with sendmail-8.13.8-2.el5 installed, I > grabbed the sendmail-8.13.8 source tarball and copied out cidrexpand. > When I run it, though, it just sits and does not return to a command > prompt. It creates a 0 length output file but does nothing else. I > ran a strace, and the last few lines are: > What I use is..... $ cat /usr/sbin/fix-cidr #!/bin/sh /usr/sbin/cidrexpand < /etc/mail/access | makemap -r hash /etc/mail/access I run that after I add any new cidr's. |
|
![]() |
| Outils de la discussion | |
|
|