RE: [courier-users] Courier-mta as Pre-Processor/Relay

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


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

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-05-2005
Bowie Bailey
 
Posts: n/a
Default RE: [courier-users] Courier-mta as Pre-Processor/Relay

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
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 06:18 AM.


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