Jay Lee wrote:
I have Courier-MTA and maildrop configured on a RHEL3 box, everything's
working great. All users are virtual LDAP users, all Maildirs are owned
by an account named vmail. My users are allowed to create server side
filters using a Squirrelmail plugin. In order to autoforward their mail
to another account I have them create a rule like this:
if (/^From:.*/)
{
cc "!anot...@another.domain.com"
}
This seems to work great except for one issue. When maildrop resends the
message to anot...@another.domain.com, it adds this header:
Return-Path: <vma...@myrealdomain.com>
This causes delivery failures, etc to go to vmail (which I have aliased to
postmaster) rather than to the sender. Anything I can do to suppress that
header or maybe I'm just doing things completely the wrong way? Thanks.
Dunno about Courier-MTA, but in Postfix, I wouldn't do this with the
LDA. It's best done in the MTA, as part of the alias lookups for the
recipient. Presumably this is possible in LDAP/Courier-MTA, but a SM
frontend may not be available. One is definitely available if you were
using a SQL backend.