procmail
[Top] [All Lists]

Is this just a bad idea? How do you write to a lmtp socket?

2003-01-21 18:35:44
I have been looking for the proper way to configure sendmail to use procmail
as a local mailer and filter messages globally and then dump them into
cyrus' /var/imap/socket/lmtp. While this seems a sensible thing to do, I
seem incapable of locating anyone else who has both accomplished it AND put
the configuration on the web or on a mail list.
I'm running cyrus-imapd-2.1.9, procmail-3.22_1, sendmail-8.12.7 and at the
end of
sendmail.cf I have:

Mlocal,         P=/usr/local/bin/procmail, F=lsDFMAw5:/|@qSPfhn9,
S=EnvFromL/HdrFromL, R=EnvToL/HdrToL,
                T=DNS/RFC822/X-Unix,
                A=procmail -Y -a $h -d $u
Mprog,          P=/bin/sh, F=lsDFMoqeu9, S=EnvFromL/HdrFromL,
R=EnvToL/HdrToL, D=$z:/,
                T=X-Unix/X-Unix/X-Unix,
                A=sh -c $u

Mcyrusv2,       P=[IPC], F=lsDFMnqXzA@/:|m,
                S=EnvFromSMTP/HdrFromL, R=EnvToL/HdrToL, E=\r\n,
                T=DNS/RFC822/SMTP,
                A=FILE /var/imap/socket/lmtp

my procmailrc is:

# File: Procmail.global

PATH=/usr/bin:/usr/local/bin:/usr/local/cyrus/bin
SHELL=/bin/sh
DELIVER=/usr/local/cyrus/bin/deliver
SPAM=/dev/null
LOG=/var/log/procmail.log
VERBOSE=ON
# Make a backup copy off all incoming mail (comment the next entry
# out ounce you've finished testing procmail integration)
:0 ic
| $DELIVER -a $CYRUSUSER -m user.$CYRUSUSER.backup


:0:$CYRUSUSER.lock
| $DELIVER -a $CYRUSUSER -m user.$CYRUSUSER

Since I have made prcmail the local mailer, I still receive mail, but its'
not being delivered by procmail. I can manually send a file into procmail
via a pipe and see evidence of it being processed in the log, but the
message is not delivered as expected.

procmail: [44511] Sun Jan 19 22:35:21 2003
procmail: Assigning "LASTFOLDER=/usr/local/cyrus/bin/deliver -a -hansc m
user.hansc.backup"
procmail: Executing
"/usr/local/cyrus/bin/deliver,-a,-hansc,m,user.hansc.backup"
procmail: Locking ".lock"
procmail: Executing "/usr/local/cyrus/bin/deliver,-l,-a,hansc,-m,user.hansc"
procmail: Assigning "LASTFOLDER=/usr/local/cyrus/bin/deliver -l -a hansc -m
user.hansc"
procmail: Unlocking ".lock"
From root(_at_)siff(_dot_)datamatrix(_dot_)com Fri Nov  8 03:01:54 2002
 Subject: siff.datamatrix.com security run output
  Folder: /usr/local/cyrus/bin/deliver -l -a hansc -m user.hansc
2360


What I believe is that I need to make a change to "A=FILE
/var/imap/socket/lmtp" and aim the output into procamil, which would in turn
process any recipes and write its output to /var/imap/socket/lmtp. Can
someone tell me how to do this or why it is not agood idea to do it this
way, please?

Hans Christensen


_______________________________________________
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>