Bluehost.com Web Hosting $6.95

Re: [courier-users] about /etc/maildroprc and forward

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


Go Back   Usenet Forums > Mail Servers and Related > Courier-Imap

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-10-2006
Alessandro Vesely
 
Posts: n/a
Default Re: [courier-users] about /etc/maildroprc and forward

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
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 03:12 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0