This is a discussion on RE: [courier-users] Courier-mta as Pre-Processor/Relay within the Courier-Imap forums, part of the Mail Servers and Related category; From: Jay Lee [mailto:jlee@pbu.edu] > > Bowie Bailey wrote: > > /etc/courier/maildroprc: > > xfilter &...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
From: Jay Lee [mailto:jlee@pbu.edu]
> > Bowie Bailey wrote: > > /etc/courier/maildroprc: > > xfilter "spamc" > > > > $HOME/.mailfilter: > > to "! username@exchangeserver.domian.com" > > You can save yourself the trouble of creating per user .mailfilters and > also keep the original sender by using this in your maildroprc: > > import LOCAL > import SENDER > import SENDMAIL > to '|$SENDMAIL -f "$SENDER" -i "$LOCAL@exchange.domain.com"' > > otherwise, if the exchange server rejects the message for any reason, no > delivery failure will be generated since maildrop by default sets mail > from to blank in newer versions (in most cases this is a good thing as it > prevents loops). Actually, I already found and fixed that problem although I had forgotten to mention it in my reply. I don't do it quite the same way, though. maildroprc: import SENDER SENDMAIL="/usr/lib/courier/bin/sendmail -f \"$SENDER\"" The SENDMAIL variable is automatically used by the TO and CC commands so I don't have to specify everywhere. BTW: What is the "-i" option in your sendmail command? I don't see that one in my man page. The "$LOCAL@exchangeserver.domain.com" construct may work for the original poster, but in my case, I need the per-user stuff for other reasons. Some of the accounts don't go to Exchange, some go to multiple Exchange users, some are forwarded elsewhere. I also have per-user SpamAssassin settings (which I didn't go into in my post) so I can have higher or lower spam thresholds for some users. Bowie ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ courier-users mailing list courier-users@lists.sourceforge.net Unsubscribe: https://lists.sourceforge.net/lists/.../courier-users |