Dear Sam Varshavchik,

I had previously requested you to look into the maildrop's unusual behavior.
But now I have found out the reason for it. I hope that you would correct
this error.

Situation:
Have "userdb" and virtual email domains. The userdb uses the real linux
user-ID "vmail" to implement all the virtual domains. The local mail
delivery is done by maildrop version-1.3.3. (Postfix is the MTA and
Sqwebmail version-2.1.1 is used for the web based mail access.)

Current Behavior of Maildrop:
The documentation as part of Sqwebmail and Maildrop gives the impression
that if there is a ".mailfilter" file present in the home directory, then it
would be used. But if a ".mailfilter" file is deposited in the home
directory (as specified in the userb) of a virtual email user, then maildrop
won't use it. Instead maildrop is looking for the mailfilter in the
home-directory of the real linux user "vmail".

If a mailfilter file is deposited into the home directory of the real
user-ID "vmail", then this is being used and is in effect specifying a
common filter file for all the virtual email user-IDs. This is weird.

How Maildrop Should Behave:
If userdb is used to obtain the mail delivery information, then Maildrop
should look for the mailfilter in the home directory specified in the
userdb. (And not in the home directory of the real user-ID, here vmail,
using which the userdb is implemented.)

Thanks,
Mathew Simon


-----Original Message-----
From: Mathew Simon [mailto:[EMAIL PROTECTED]]
Sent: Sunday, July 01, 2001 12:35 PM
To: 'Sam Varshavchik'
Subject: RE: Maildrop - Help Needed


Hi Sam,

There is no way postfix MTA (which behaves similar to sendmail in many
aspects) can deliver the mail to "userdb" based mail-directories without the
help of maildrop. In addition, I am using the sendmail-like alias file which
pipe all mails to the command
|/usr/bin/maildrop -d [EMAIL PROTECTED]

So, if a mail appear in virtual domain mail-directory, then it has to be
dropped by the maildrop, since postfix has no way to find out where the
virtual domain user's maildirectory is.

Thanks,
Mathew Simon

-----Original Message-----
From: Sam Varshavchik [mailto:[EMAIL PROTECTED]]
Sent: Sunday, July 01, 2001 9:48 AM
To: Mathew Simon
Subject: Re: Maildrop - Help Needed


Mathew Simon writes:

> Now, the same "test" mails are getting delivered to my "INBOX". And
neither
> I see any messages in the system log. I am quite puzzled. The
> maildrop-ver-1.3.2 was seeing the filter and hence was unable to deliver
the
> mail because I might have given the maildir name improperly.
>
> But the maildrop-version-1.3.3 is not even seeing the mailfilter.

There are no related changes between these two versions.  What's probably
happening is that maildrop may not even be invoked to deliver the mail, and
the mail server saves incoming mail directly into INBOX.

You can try putting something like this into .mailfilter:

echo "Rejected"
EXITCODE=100
exit


This is going to bounce all mail.  Use this to check if maildrop is even
being executed by the mail server.

--
Sam

Reply via email to