Hi, The following mail is quite long, and rather newbieish is content. My appologies for sendind such a long mail, but I have been stuck on this problem for several weeks now. I'm trying to get procmail working on my home PC running Linux(2.2)(RedHat6.0). I am having some strange problems getting it to actually do ANYTHING. When I say it won't do anything, it won't do any basic filtering, or even generate a log file! According to the RedHat documentation, Redhat 6.0 uses procmail as the default for local mail delivery. I assumed then that I only need to create a .procmailrc file in my home directory. ========================================================================= /home/mark/.procmailrc PATH=/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin:~/bin:. USER=mark # Set to yes when debugging VERBOSE=yes LOGABSTRACT=all # Pine uses $HOME/mail MAILDIR=$HOME/mail # Directory for storing procmail-related files PMDIR=$HOME/Procmail LOGFILE=$PMDIR/log INCLUDERC=$PMDIR/testing.rc :0: *$ ^Subject:.*test test =========================================================================== When I collect mail with fetchmail, and a mail has test in the subject, it goes to my inbox, but not to the folder test. Pine reports that it is transfering my mail from /var/spool/mail/mark to /home/mark/mbox. I then created a .forward file (although I don't think it's needed). ========================================================================== /home/mark/.forward "|IFS=' ' && exec /usr/bin/procmail -f || exit 75 #mark" ========================================================================== but this did not resolve the problem. I then looked at my setup on my other Linux account at college. This server also uses Redhat6.0, and all I needed to do to get procmail working was create a similiar .procmailrc file as above. works fine. So I took a look at their sendmail setup, and compared my sendmail.cf file to their sendmail.cf file. I found that the setup was quite diffirent, so I rebuilt my .cf file with m4 to the original setup . I then compared the two setups again, and I found them to be almost identical. But it still does not work. =========================================================================== diff sendmail.college sendmail.home 1c1 < # --- > # 18,19c18,19 < ##### built by root(_at_)porky(_dot_)devel(_dot_)redhat(_dot_)com on Mon Apr 19 16:38:44 EDT 1999 < ##### in /usr/src/bs/BUILD/sendmail-8.9.3/cf/cf --- > ##### built by root(_at_)localhost(_dot_)localdomain on Tue Mar 21 10:13:01 GMT 2000 > ##### in /usr/lib/sendmail-cf/cf 91c91 < #Djcompsoc.com --- > #Dj$w.Foo.COM 141c141 < DMcompsoc.com --- > DM 439d435 < Twebserver ========================================================================= I have done some tests to see if procmail is alive at all on my system. If I do: echo "message1" | mail -s "test mail" mark a mail is left in /var/spool/mail/mark. If I then do: procmail .procmailrc < /var/spool/mail/mark the mail is successfully copied to my test folder, but it also remains in /var/spool/mail/mark. So procmail seems to be working fine. I don't understand why it is not working on my .procmailrc file when I collect mail. I have been scanning various procmail websites, newsgroups, FAQs, etc, and it has gotten me this far. However, as a relativley new Linux user I don't understand how sendmail and procmail work together. I am very keen to get procmail working at home. I've found it invaluable at college, so your help would be greatly appreciated. Again, appologies for the long mail. I have also included some other information below which amy be useful in getting to the bottom of this. Best regards, Mark Irvine ========================================================================= Program versions procmail v3.13.1 1999/04/05 sendmail-8.9.3-10 fetchmail-5.0.0-1 ======================================================================== my sendmail.mc file /etc/sendmail.mc divert(-1) dnl This is the macro config file used to generate the /etc/sendmail.cf dnl file. If you modify thei file you will have to regenerate the dnl /etc/sendmail.cf by running this macro config through the m4 dnl preprocessor: dnl dnl m4 /etc/sendmail.mc > /etc/sendmail/cf dnl dnl You will need to have the sendmail-cf package installed for this to dnl work. include(`/usr/lib/sendmail-cf/m4/cf.m4') define(`confDEF_USER_ID',``8:12'') OSTYPE(`linux') undefine(`UUCP_RELAY') undefine(`BITNET_RELAY') define(`confAUTO_REBUILD') define(`confTO_CONNECT', `1m') define(`confTRY_NULL_MX_LIST',true) define(`confDONT_PROBE_INTERFACES',true) define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail') FEATURE(`smrsh',`/usr/sbin/smrsh') FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable') FEATURE(redirect) FEATURE(always_add_domain) FEATURE(use_cw_file) FEATURE(local_procmail) MAILER(procmail) MAILER(smtp) FEATURE(`access_db') FEATURE(`blacklist_recipients') dnl We strongly recommend to comment this one out if you want to protect dnl yourself from spam. However, the laptop and users on computers that do dnl not hav 24x7 DNS do need this. FEATURE(`accept_unresolvable_domains') dnl FEATURE(`relay_based_on_MX') =========================================================================== some extracts from my sendmail.cf file /etc/sendmail.cf ##### ##### SENDMAIL CONFIGURATION FILE ##### ##### built by root(_at_)localhost(_dot_)localdomain on Tue Mar 21 10:13:01 GMT 2000 ##### in /usr/lib/sendmail-cf/cf ##### using ../ as configuration include directory ##### ###################################################################### ###################################################################### ##### @(#)cfhead.m4 8.23 (Berkeley) 10/6/1998 ##### ##### @(#)cf.m4 8.29 (Berkeley) 5/19/1998 ##### ##### @(#)linux.m4 8.7 (Berkeley) 5/19/1998 ##### # # ##### @(#)smrsh.m4 8.8 (Berkeley) 5/19/1998 ##### ##### @(#)virtusertable.m4 8.8 (Berkeley) 10/6/1998 ##### ##### @(#)redirect.m4 8.10 (Berkeley) 5/19/1998 ##### ##### @(#)always_add_domain.m4 8.6 (Berkeley) 5/19/1998 ##### ##### @(#)use_cw_file.m4 8.6 (Berkeley) 5/19/1998 ##### ##### @(#)local_procmail.m4 8.11 (Berkeley) 5/19/1998 ##### ##### @(#)access_db.m4 8.8 (Berkeley) 5/19/1998 ##### ##### @(#)blacklist_recipients.m4 8.9 (Berkeley) 5/19/1998 ##### ##### @(#)accept_unresolvable_domains.m4 8.7 (Berkeley) 5/19/1998 ##### ##### @(#)proto.m4 8.243 (Berkeley) 2/2/1999 ##### # level 8 config file format ----snip ###################################################################### ###################################################################### ##### ##### MAILER DEFINITIONS ##### ###################################################################### ###################################################################### ######################*****############## ### PROCMAIL Mailer specification ### ##################*****################## ##### @(#)procmail.m4 8.11 (Berkeley) 5/19/1998 ##### Mprocmail, P=/usr/bin/procmail, F=DFMSPhnu9, S=11/31, R=21/31, T=DNS/RFC822/X-Unix, A=procmail -Y -m $h $f $u ##################################### ### SMTP Mailer specification ### ##################################### ##### @(#)smtp.m4 8.38 (Berkeley) 5/19/1998 ##### Msmtp, P=[IPC], F=mDFMuX, S=11/31, R=21, E=\r\n, L=990, T=DNS/RFC822/SMTP, A=IPC $h Mesmtp, P=[IPC], F=mDFMuXa, S=11/31, R=21, E=\r\n, L=990, T=DNS/RFC822/SMTP, A=IPC $h Msmtp8, P=[IPC], F=mDFMuX8, S=11/31, R=21, E=\r\n, L=990, T=DNS/RFC822/SMTP, A=IPC $h Mrelay, P=[IPC], F=mDFMuXa8, S=11/31, R=61, E=\r\n, L=2040, T=DNS/RFC822/SMTP, A=IPC $h ----snip ################################################## ### Local and Program Mailer specification ### ################################################## ##### @(#)local.m4 8.30 (Berkeley) 6/30/1998 ##### Mlocal, P=/usr/bin/procmail, F=lsDFMAw5:/|@qSPfhn9, S=10/30, R=20/40, T=DNS/RFC822/X-Unix, A=procmail -Y -a $h -d $u Mprog, P=/usr/sbin/smrsh, F=lsDFMoqeu9, S=10/30, R=20/40, D=$z:/, T=X-Unix, A=sh -c $u ============================================================================