Hey Bob...

Don't know if I'm right on this but don't see anyone taking this one, so
I'll give it a shot.

I THINK there is an exception clause which can trap errors in a maildrop
script.

But the real question is why your sendmail call is exiting with an error -
I'd run it from a shell and see if you can duplicate and diagnose...

Then the current behavior wouldn't be a problem unless getting the mail
locally but not forwarding if "ship" is down is an alternative.

m/

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Bob
Vincent
Sent: Saturday, October 04, 2003 10:40 PM
To: [EMAIL PROTECTED]
Subject: [courier-users] How to forward-cc to a remote mailbox?


I have a problem in maildrop where a failed "cc" rule will
also cause a subsequent "to" rule to fail.

I'm running the full courier suite, including
courier-imap and sqwebmail.

In $sysconfdir/courierd, I have

DEFAULTDELIVERY="| $prefix/bin/maildrop"

(where $sysconfdir and $prefix have the usual autoconf meanings)

I have a couple of users who would like a copy of their email
delivered to their work address.

So I had them create a filter rule via sqwebmail, forwarding
all messages of non-zero size to their work address, with the
"and continue filtering" block checked.  This produces the
following maildrop text (names changed to protect the guilty):

##Op:islargerthan
##Header:
##Value:0
##Folder:[EMAIL PROTECTED]
##From:
##PlainString
##Continue
##Name:forward-to-work

if (($SIZE > 0))
{
    cc "| $SENDMAIL -t -f '$FROM' [EMAIL PROTECTED]"
}

to "./Maildir/."

My problem is that the ship.navy.mil server is often down for days at
a time, and as a result, the messages are not getting delivered to the
local inbox.  Apparently, from reading the control files, the
$SENDMAIL process is exiting with an error, and the message is
deferred before the "to" line gets processed.

I think that I once tried writing the filter the other way, so that
the "cc" goes to the local mailbox while the "to" goes to the remote
one, but the effect is even worse.  For every failure in remote
delivery, the local mailbox gets an extra copy of the message.

Can anybody suggest an easy way for my users to instruct courier to
always deliver to the local inbox, and attempt to deliver a copy to
the remote mailbox, as well?


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to