On 10/15/01 10:36 AM, Jonathan Giles sat at the `puter and typed:
Hello:
I am trying to setup FreeBSD 4.3 with procmail and cyrus imap and
having considerable trouble with cyrus deliver.
Using a procmailrc I pipe the mail to deliver like this:
:0 w
| /usr/local/cyrus/bin/deliver -e -a $LOGNAME -m user.$LOGNAME
and get an error 65 each time. error 65 seems to be a data format
error, and that error comes from deliver.
I have searched around different lists, usergroups, faqs, and have not
found an answer to this problem that works for me. It seems other
people get it to work, so I must be doing something wrong. Please help
me out with a clue or two, as I would love to get cyrus imap working,
but can't let go of procmail.
Try setting your /etc/procmailrc up to look more like this:
########################################################################
LOGNAME = $1
EXTENSION = $2
PATH=$1/bin:/usr/bin:/bin:/usr/local/bin:.
SHELL=/bin/sh
MAILDIR=/usr/local/cyrus
LOGFILE=/var/log/procmail_log
DEFAULT=$HOME/
VERBOSE=yes
# Place any antispam or other universal filters here. Don't
# write to files or pipe to programs unless you are ABSOLUTELY
# SURE you know what you are doing!
# this enables automated procmail recipe creation for users;
# roll your own tool to allow creation of procmail recipes on a
per-user
# basis and place them there, but don't let users edit their own
recipes
INCLUDERC=/home/$1/.procmailrc
:0 Bfhw
* H ?? !^Lines:
* 1^1 ^.*$
* -1^0 ($)($)^^
| /usr/local/bin/formail -Y -f -A "Lines: $="
:0 w
* EXTENSION ?? .
| /usr/local/cyrus/bin/deliver -q -m "$EXTENSION" -- "$LOGNAME"
# Only if there was no extension do we try this
:0 wE
| /usr/local/cyrus/bin/deliver -q -- "$LOGNAME"
# Whichever one we tried, failed
EXITCODE = $?
HOST
########################################################################
Keep the last 2 recipes and the last 2 lines here the same - Unless
you need to modify paths, of course. The Lines recipe you might want
to axe out, I can't really be sure of it's accuracy in my current
setup - worked like a charm with RH 6.2/Cyrus 1.6.24.
This will deliver to a subfolder if sendmail is set up correctly and
if the message is sent to user+subfolder(_at_)yoursever(_dot_)net(_dot_) This
is what
I use with 2.0.16 on FreeBSD 4.4, I used it very briefly on 4.3, and I
used it on RH 6.2 with Cyrus 1.6.24.
The logfile I have defined is set writable to the cyrus user and group
specified in /etc/mail/sendmail.mc so that all logged activity is in
one place.
You might also want to search the Cyrus mail list archives for a
message I posted a short while ago - end of Sept, I think, subject
something about a FAQ. I detailed my setup from Sendmail thru
deliver. It should be very helpful.
HTH
Lou
--
Louis LeBlanc leblanc(_at_)acadia(_dot_)ne(_dot_)mediaone(_dot_)net
Fully Funded Hobbyist, KeySlapper Extrordinaire :)
http://acadia.ne.mediaone.net Ô¿Ô¬
Pound for pound, the amoeba is the most vicious animal on earth.
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail