tor, 07.10.2004 kl. 12.22 skrev Graeme:
My setup runs on FreeBSD4.10 and uses Exim as the MTA which hands off to
maildrop for local delivery for virtual users. I do this to enforce
maildir quotas and to read user .mailfilter files. Originally the
.mailfilters were used only to deliver to a user's local folders but I
have just added the ability for users to cc to an email address.
Unfortunately maildrop requests to exim in respect of the cc'd mail
address fail and exim generates a "Mail delivery failed" message in
respect of the cc'd email - although the original is delivered correctly.
The .mailfilter rule is:
if (/^Subject:.*MatchText/:h)
{
cc "!ab...@dom2.tld"
}
The exim mainlog shows maildrop returning "1" :
I used to be a 100% Exim 4 man, but moved to Postfix 1 1/2 years ago.
Still, I'll have a stab ...
The above means that maildrop found the match. Has acted on the filter.
2004-10-04 14:09:31 1CESap-000Gs3-5W **
/path/to/vdomains/dom.tld/users/xyz/Maildir/ (xy...@dom.tld)
<xy...@dom.tld>
What is this "/path/to/vdomains/dom.tld/users/xyz/Maildir/"? Is this
literally what you have in Exim's config file? If not, DO NOT OBFUSCATE.
It's senseless when asking for help.
router is "virtual_user"; what's in the router?
transport is "address_courier"; what's in the transport?
: Child process of
address_courier transport returned 1
from command: /path/to/maildrop
DO NOT OBFUSCATE if you wish for help from others. We are not
telepathic.
and the mail delivery failed message contains the filter output:
Matching /^Subject:.*MatchText / against Subject: test MatchText 22
maildrop: Delivering to |/usr/sbin/sendmail -oi ab...@dom2.tld
This account is currently not available.
The maildrop-regexp is O.k. though could better be have written more
explicitly:
/^Subject:[:space:]+MatchText.*/
However, you don't seem to have an alias nor a virtual alias for
ab...@dom2.tld.
For "Postfix sendmail" the "-oi" would be extraneous. "-I" would be
O.k., but probably superfluous. Where does Exim sendmail come into the
picture anyway? As asked, what does your transport look like?
What do your local and virtual aliases look like? Dit you run
'newaliases'?
--Tonni
They love us, don't they, They feed us, won't they