7 messages in net.sourceforge.lists.courier-usersRe: [courier-users] filtering and for...
FromSent OnAttachments
sysa...@sunet.com.auOct 27, 2006 3:59 pm 
sysa...@sunet.com.auOct 27, 2006 4:01 pm 
Jay LeeOct 28, 2006 9:23 am 
sysa...@sunet.com.auOct 30, 2006 12:22 am 
Jay LeeOct 30, 2006 6:25 am 
Gordon MessmerOct 30, 2006 4:00 pm 
Alessandro VeselyOct 31, 2006 3:14 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [courier-users] filtering and forwarding mail to another server helpActions...
From:Jay Lee (jl@pbu.edu)
Date:Oct 30, 2006 6:25:01 am
List:net.sourceforge.lists.courier-users

On Mon, October 30, 2006 3:22 am, sysa@sunet.com.au wrote:

sysa@sunet.com.au wrote:

Hi all. We're trying to set up a courier mail server that will filter all e-mail, and add SpamAssassin headers, and then forward on to another mail server. We also have all our users in LDAP. We can't get it to work, and any general tips would be appreciated.

General tip, why do you need a second mail system for this?

The load on the other server was too high, and this is a simple way of separating things.

OK.

Postfix could just call maildrop itself which would be responsible for

calling

SA and filtering.

I've got courier calling maildrop, and maildrop calls SA and filtering. But the problem is, after it's been through maildrop, I want it sent on to another computer. I'm using postfix for that (see maildrop rule below), which then forwards to another server. If I can get courier to do this instead of postfix, I'd be happier, but I couldn't see a way to do it.

----- exception { to "|/usr/sbin/sendmail.postfix -t" }

Huh? Why not just have maildrop send the message? You can use

to "addr@otherserver.com"

I use something more complex like this:

import SENDMAIL import SENDER import LOCAL to '|$SENDMAIL -f "$SENDER" -i "$LOC@otherserver.com"'

so that the secondary server can also see the original sender. I have this in my /etc/courier/maildroprc file and it saves me the trouble of creating a forwarding rule per user.

Jay