procmail
[Top] [All Lists]

Re: Procmail and Lsoft Listserv

2001-10-18 01:33:15
Jason Luros <jluros(_at_)us(_dot_)checkpoint(_dot_)com> writes:
...
Set up procmail as an intermediary between sendmail and listserv through
the use of /etc/aliases. I have tried using the following in
/etc/aliases
foo-list:         "|IFS=' '&&exec /usr/local/bin/procmail -t
/usr/local/listserv/.procmailrc||exit 75 #foo-list"

You don't need the IFS bit or "#foo-list" with sendmail 8.  More
importantly, note that the above will run procmail as the default user
(daemon?  mailnull?  Whatever the "DefaultUser" option in the sendmail.cf
says).  Finally, since you would rather that procmail return failure
to sendmail than deliver the message to the default user's mailspool,
you should use mailfilter mode (-m):

foo-list:       "|/usr/local/bin/procmail -m /usr/local/listserv/.procmailrc || 
exit 75"

(The -t is superfluous when _any_ failure on procmail's part will result
in the "exit 75" being performed.)


Currently it appears to send, but nothing is written to the procmail
log, and listserv never sees the message. Furthermore, the clone that
appears to be created never gets sent to the address mentioned. All
other mail is working fine. Any help would be greatly appreciated.

Supporting Documentation:
###################################################
/usr/local/listserv/.procmailrc file:
###################################################
VERBOSE=yes
SHELL=/usr/local/bin/bash
MAILDIR=/usr/local/listserv/Mail
PMDIR=/usr/local/listserv/.procmail
LOGFILE=$PMDIR/log

Can the default user write to (and/or create) that file?


...
rc.listserv file:
###################################################
:0:
| /usr/local/bin/lsv_amin -t foo-list
:0 B: * unsubscribe solaris-test.*
| /usr/lib/sendmail listserv(_at_)lists(_dot_)domain(_dot_)com

That's a syntax error, or you accidentally wrapped lines.  It should
be written:

        :0 B:
        * unsubscribe solaris-test
        ! listserv(_at_)lists(_dot_)domain(_dot_)com

Note that if the first recipe succeeds (which it practically always will
since you left off the 'w' flag), then procmail will consider the message
delivered AND STOP.  Perhaps you should put that first recipe last?


...
PS If it's not Lsoft, it's not LISTSERV.

Blah blah blah.  Do you run ads for all the products you use?


Philip Guenther
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>