Operating System - HP-UX
1825768 Members
2146 Online
109687 Solutions
New Discussion

Re: Problem implementing Procmail for root on 11.00

 
SOLVED
Go to solution
Dave Johnson_1
Super Advisor

Problem implementing Procmail for root on 11.00

I have 2 servers. Server A is configured to forward any email root recieves that does not have the word cron in the subject to a central address (my outlook). I am trying to setup server B the same way. Both are running 11.00 and have identical patches loaded. LL of /.forward, /.procmailrc, /Procmail (directory where the log file and rules for procmail are), /usr/local/bin/procmail, /usr/sbin/sendmail, /usr/bin/mailx show identical configuration. Procmail, sendmail, and mailx all show identical results from what. Grep root /etc/passwd on both shows only the password field is different. Diff A:/etc/mail/sendmail.cf B:/etc/mail/sendmail.cf shows only the DM record is different. On server B if I send mail to a normal user, it follows the contents of that users .forward file. If I send mail to root@B, the .forward file is ignored. An ll -u /.forward shows the accessed date is unchanged.
What am I missing? Why is server B ignoring the .forward file only for root?
-Dave
5 REPLIES 5
Ermin Borovac
Honored Contributor

Re: Problem implementing Procmail for root on 11.00

Please check permissions and ownership on .forward file. .forward file must be owned by a user whose email is being forwarded and it should not be group or world writable.
Arunvijai_4
Honored Contributor

Re: Problem implementing Procmail for root on 11.00

There should be problem with .forward permission, If i am correct, it should be 644.
Also looking at this FAQ may help

http://www.zer0.org/procmail/faq.html

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Dave Johnson_1
Super Advisor

Re: Problem implementing Procmail for root on 11.00

Thanks for the info. I will read the FAQ. FYI here is an ll of the files on server A:
# ll -d /.forward /.procmailrc /Procmail `which procmail` `which sendmail` `which mailx`
-rw-r--r-- 1 root sys 27 Sep 16 13:51 /.forward
-rw-r--r-- 1 root sys 2583 Oct 11 14:22 /.procmailrc
drwxrwxr-x 3 root mail 1024 Oct 5 16:39 /Procmail
-r-xr-xr-x 1 bin bin 163840 Dec 2 1998 /usr/bin/mailx
-rwxr-sr-x 1 root mail 90135 Sep 1 2003 /usr/local/bin/procmail
-r-sr-sr-t 1 root mail 831488 Oct 15 2003 /usr/sbin/sendmail
Here is the ll of the files on server B (the problem one):
# ll -d /.forward /.procmailrc /Procmail `which procmail` `which sendmail` `which mailx`
-rw-r--r-- 1 root sys 27 Sep 16 13:51 /.forward
-rw-r--r-- 1 root sys 2581 Oct 11 14:02 /.procmailrc
drwxrwxr-x 3 root mail 1024 Oct 11 14:38 /Procmail
-r-xr-xr-x 1 bin bin 163840 Dec 2 1998 /usr/bin/mailx
-rwxr-sr-x 1 root mail 90135 Sep 1 2003 /usr/local/bin/procmail
-r-sr-sr-t 1 root mail 831488 Oct 15 2003 /usr/sbin/sendmail
Any other ideas?
-Dave
Ermin Borovac
Honored Contributor
Solution

Re: Problem implementing Procmail for root on 11.00

What about root directory? Please compare listing on both servers.

# ll -d /
Dave Johnson_1
Super Advisor

Re: Problem implementing Procmail for root on 11.00

That was the trick.
# ll -d /
drwxrwxr-x 45 root root 14336 Oct 21 08:00 /
# chmod g-w /
# ll -d /
drwxr-xr-x 45 root root 14336 Oct 21 08:00 /
Now Procmail is working on server B as it is on server A.
THANK YOU!!!!!
-Dave