Sam Varshavchik wrote:
> Gordon Messmer writes:
>
> > Bowie Bailey wrote:
> > >
> > > If this is the case, how can you ever have a CC instruction in the
> > > .mailfilter without causing this problem? Even if the user's
> > > account is only over quota for an hour or so, there will still be
> > > three or four deliveries to the CC in that time.
> >
> > Deliver to the user's mailbox first, and CC once that's successfully
> > completed.
>
> Well, you have to use CC to deliver the mailbox copy as well, and the
> forwarding command gets changed to the TO.
>
> Furthermore, the forwarding command should also be enclosed in an
> exception {} block, so that a forwarding failure does not cause the
> same problem.
Wouldn't that cause two copies of the message to appear in the mailbox
when the forwarding fails?
CC "./Maildir/"
exception {
TO "[EMAIL PROTECTED]"
}
If the TO command fails, execution will drop below the exception
block. Since there has not been a successful delivery instruction,
Maildrop will deliver to the mailbox again by default.
To avoid this problem, you would need something like this to
explicitly end delivery if the forwarding fails.
CC "./Maildir/"
exception {
TO "[EMAIL PROTECTED]"
}
EXITCODE = 0
exit
Or am I missing something?
Of course, as I understand it, the TO command as a forward to an email
address should not fail as long as the mail server is working properly
and the message is not rejected by a courierfilter. It would simply
be accepted as a new message into the queue and then a DSN would be
generated if it could not be delivered. The only exception I can
think of is if you are trying to deliver to an unknown user in a local
domain.
--
Bowie
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users