This is a discussion on Re: [courier-users] about /etc/maildroprc and forward within the Courier-Imap forums, part of the Mail Servers and Related category; Cheng Bruce wrote: > > Would you please advise me if it is good enough to run in our > ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Cheng Bruce wrote:
> > Would you please advise me if it is good enough to run in our > company(production) ? There's a number of things I don't understand. > logfile "/home/domains/maildrop.log" > VERBOSE 9 > DEFAULT=$HOME/Maildir > TEST="/usr/bin/test -f" > CUSTOM_FILTER="$HOME/.mailfilter" > if ( /^(To|[Cc][Cc]): .*<(.*)@(.*)>/:h && lookup( $MATCH3, `Cc' is matched case-insensitively, like `To'. Recipients don't need angle brackets: `me <usr@dom>', `(me) usr@dom', or plain `usr@dom' are popular formats. Multiple recipients may be comma separated or on different lines. Recipients mentioned in the headers may not be those that Maildrop is delivering to (e.g. if Bcc had been used.) > "/etc/maildrop/domains.list") ) Perhaps `$TEST -d /home/domains/$MATCH3/backup/Maildir` is easier to maintain. > { > cc "/home/domains/$MATCH3/backup/Maildir/" That drops a copy to the backup directory. It doesn't invoke more scripts, thus no mail loops should result from that. Multiple backup copies may result from multiple deliveries of the same message to multiple recipients. > } > > `$TEST $CUSTOM_FILTER && exit 1 || exit 0` > if ( $RETURNCODE==0) > { > to "$HOME/Maildir" > } > if ( /^Had-Delivered-To: $LOGNAME/:h) > { > echo "This message is looping, it already has my > Had-Delivered-To: Header!" > EXITCODE = 1 > exit > } > xfilter "reformail -A 'Had-Delivered-To: $LOGNAME'" Headers are added to the local (per delivery) copy of this message. > to "$HOME/Maildir" AFAICS the existing .mailfilter is not executed. ------------------------------------------------------------------------- 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=...057&dat=121642 _______________________________________________ courier-users mailing list courier-users@lists.sourceforge.net Unsubscribe: https://lists.sourceforge.net/lists/.../courier-users |