This is a discussion on Re: [courier-users] filtering and forwarding mail to another server within the Courier-Imap forums, part of the Mail Servers and Related category; Jay Lee wrote: > On Mon, October 30, 2006 3:22 am, sysadmin@sunet.com.au wrote: >> I'...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Jay Lee wrote:
> On Mon, October 30, 2006 3:22 am, sysadmin@sunet.com.au wrote: >> 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" } >> ----- That won't work with multiple/bcc recipients. Anyway, calling SA from maildrop is ineffective for multiple remote recipients, because one scans the same message multiple times without the plus of maintaining per-user bayesian data sets in their own home directories. > I use something more complex like this: > > import SENDMAIL > import SENDER > import LOCAL > to '|$SENDMAIL -f "$SENDER" -i "$LOCAL@otherserver.com"' > > so that the secondary server can also see the original sender. (SPF checking should be disabled at the other server.) > I have > this in my /etc/courier/maildroprc file and it saves me the trouble of > creating a forwarding rule per user. Alternatively, it could be invoked from aliasdir/.courier-default in order to apply it to non-local mailboxes only. That way it is possible to migrate to the new server a few users at a time. Non-existing recipients should be refused at rcptfilter stage in any case. A large queue of undeliverable DSNs affect both bandwidth and load. The alternate rcptfilter.c that I posted last Friday might be handy for invoking a procedure that checks the remote (on lan) mailbox before Courier accepts each recipient. ------------------------------------------------------------------------- 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 |
![]() |
| Thread Tools | |
| Display Modes | |
|
|