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" :
2004-10-04 14:09:31 1CESap-000Gs3-5W **
/path/to/vdomains/dom.tld/users/xyz/Maildir/ (xy...@dom.tld)
<xy...@dom.tld> R=virtual_user T=address_courier: Child process of
address_courier transport returned
1 from command: /path/to/maildrop
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.:
Any help would be much appreciated.