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