[milters] Archive

Lists Index Date Thread Search

Article: 262
From: Quentin Campbell
Date: 2010-01-20 06:56:19 -0500
Subject: RE: RE: wimp

>-----Original Message-----
>From: milters@milter.info [mailto:milters@milter.info] On Behalf Of
>Anthony Howe
>Sent: 20 January 2010 11:28
>To: milters@milter.info
>Subject: [milters] RE: wimp
>
>On 20/01/2010 09:39, Anthony Howe whispered from the shadows...:
>> I'm going to setup smrsh on my server and see if I can duplicate the
>> issue. I'll also add some more debugging output and send you a new
>> version to try.
>
>Well I've installed sendmail 8.14.4 (released 30 Dec 2009) and new
>libmilter, installed smrsh, and after some fixing conflicts with old
>versions of smrsh lying about, smrsh and wimp worked happily together.
>
>smrsh does log in maillog types of failures.
>
>I've also created a 0.1.10 with +verbose logging to maillog (Quentin:
>I'll send this direct to you to try).
>
>> I suspect the issue is file permissions, but for some reason your not
>> getting the bounce message back with stderr output in root mailbox.
>I'll
>> send you a version with more logging to maillog instead of stderr.
>
>So standard shell or smrsh with wimp is fine. I suspect that there is a
>permissions issue with the wimp setup to resolve.
[snip]

I was running as user 'root' when I followed the build process for libsnert and wimp that
you describe.

I note that after doing a 'make build' you then say do 'sudo make install'. That implies
that you expect the compilation and build to be done under some other user ID than root
but this is not explicit in your instructions.

Since I was doing everything as root the sudo command had no effect. I simply mention all
this in case it gives you any clue as to the source of any permission issues in my case. 


For the record the binary that is ultimately invoked when you run /usr/sbin/sendmail on
our CentOS 5.3 systems has owner/group and permissions: 

[root@cheviotdb tmp]# ls -l  /usr/sbin/sendmail.sendmail
-rwxr-sr-x 1 root smmsp 775064 Mar 15  2007 /usr/sbin/sendmail.sendmail

Those on smtpf are:

[root@cheviot11 sbin]# ls -l /usr/sbin/smtpf
-r-xr-x--- 1 root smtpf 1278599 Dec 31 11:27 /usr/sbin/smtpf

Those on wimp are:

[root@cheviotdb tmp]# ls -l /usr/local/sbin/wimp
-r-xr-xr-x 1 root daemon 187240 Jan 18 14:38 /usr/local/sbin/wimp

The default 'local' mailer in sendmail.cf is procmail. It is installed on our systems with
owner/group and permissions:

[root@cheviotdb mail]# ls -l /usr/bin/procmail
-rwxr-xr-x 1 root mail 99152 Mar 29  2007 /usr/bin/procmail  

On a CentOS 5.3 system /bin/sh is actually a link top /bin/bash:

[root@cheviotdb mail]# ls -l /bin/sh
lrwxrwxrwx 1 root root 4 Oct 16 12:25 /bin/sh -> bash

[root@cheviotdb mail]# ls -l /bin/bash
-rwxr-xr-x 1 root root 801512 Jan 22  2009 /bin/bash

And finally, a recursive 'ls -l' on /var/wimp shows permissions, etc, currently as:

[root@cheviotdb mail]# ls -lR /var/wimp
/var/wimp:
total 16
drwxrwx--- 2 root daemon 4096 Jan 18 09:06 test
drwxrwx--- 3 root daemon 4096 Jan 19 08:06 wimp-test

/var/wimp/test:
total 12
-rw-r--r-- 1 root root 6671 Jan 18 09:03 config

/var/wimp/wimp-test:
total 48
drwxr-xr-x 2 root root 4096 Jan 20 09:16 articles
-rw-r--r-- 1 root root 6637 Jan 19 08:06 config
-rw-r--r-- 1 root root 6596 Jan 18 12:32 config.FCS
-rw-r--r-- 1 root root   23 Jan 18 13:40 reviewers
-rw-r--r-- 1 root root   19 Jan 18 13:39 users

/var/wimp/wimp-test/articles:
total 64
-rw-r--r-- 1 root root 193 Jan 20 07:48 10
-rw-r--r-- 1 root root 193 Jan 20 09:16 11
-rw-r--r-- 1 root root 193 Jan 18 15:23 5
-rw-r--r-- 1 root root 193 Jan 18 16:30 6
-rw-r--r-- 1 root root 193 Jan 18 16:35 7
-rw-r--r-- 1 root root 193 Jan 19 13:15 8
-rw-r--r-- 1 root root 193 Jan 20 07:29 9
-rw-r----- 1 root root   3 Jan 20 09:16 last-article 

I hope the above info is of assistance.

Quentin


Lists Index Date Thread Search