Agarwaen | 3 Jan 2004 17:09
X-Face

Maildrop delivery problem with virtual users


Hello !

I have the following problem : when a mail is delivere to several users in
the local domain (agarwaen.net) or one of the subdomains, only the first
user in alphabetical order receives the mail. It seems that maildrop is
responsible of this (the mail are correctly piped to maildrop by postfix),
but I can't find why !

My setup is Postfix with Maildrop as MDA, using virtual users recorded in
a mySQL database, all this on a FreeBSD 4.8 server (all is compiled from
the ports). All the virtual users function finely, and the server is
running finely for more than 8 months, except for this problem.

Does anybody have a hint or a solution for me ?

--

-- 
        Agarwaƫn
[ http://eargasm.org ] [ electro, goth & industrial webradios directory ]

-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id78&alloc_id371&op=click
Petri Riihikallio | 3 Jan 2004 17:43
Picon

Re: Maildrop delivery problem with virtual users

>I have the following problem : when a mail is delivere to several users in
>the local domain (agarwaen.net) or one of the subdomains, only the first
>user in alphabetical order receives the mail. It seems that maildrop is
>responsible of this (the mail are correctly piped to maildrop by postfix),
>but I can't find why !

Do you have "maildrop_destination_recipient_limit=1" set in your 
main.cf like MAILDROP_README says?
--

-- 
Cheers
Petri

GSM: (+358400 | 0400) 505 939

-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
Eric Persson | 4 Jan 2004 21:58
Gravatar

Re: Enable external execution in embedded mode

Devin Rubia wrote:
> Out of curiousity, how are you delivering then?  If you use -M, then the
> "to" command is disabled as is default delivery as is xfilter.
> Everything that could possibly deliver the message is disabled.  -M is
> just meant to provide filtering services.

Hmm... if "to" is disabled, it seems to work pretty well, I have
to "/webmail/8/4/84deda69dc38c4a39443e9b7a8230018/Maildir/"

at the end of my mailfilter file.

Is this something that is not "supposed" to work?

//Eric

--
5 out of 4 people don't understand fractions.

-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
Christopher Seawood | 3 Jan 2004 06:12

ldap fixes for maildrop

I had to make some changes to maildrop to get it to work with my 
postfix+ldap setup.  The patches can be found at:
http://www.seawood.org/Projects/maildrop/maildrop-1.6.3-courier.patch
http://www.seawood.org/Projects/maildrop/maildrop-1.6.3-nobasedn.patch
.

The first change was to introduce the concept of the mailroot to 
maildrop+ldap in the same fashion that mailroot is used by 
courier_imap+ldap.  If the users' home directory or mail storage 
location is not a fully qualified path, maildrop will prepend mailroot 
to the given relative paths.

The second change was to remove the null check for ldap's basedn.  It 
may not be common place but since we run multiple sites out of our 
repository, we have an empty basedn.

- cls

-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
Info | 5 Jan 2004 10:23

qmail queue

Hi list,

I notice that i have a huge queue.

/service/qmail-send: up (pid 1520) 2907232 seconds
/service/qmail-send/log: up (pid 1524) 2907232 seconds
/service/qmail-smtpd: up (pid 1519) 2907232 seconds
/service/qmail-smtpd/log: up (pid 1526) 2907231 seconds
messages in queue: 560
messages in queue but not yet preprocessed: 0

Going through the queue, i notice that almost all of the mails in the the
queue are junk mails sent out to invalid mailboxes.

I had checked the /var/log/qmail/current

 <at> 400000003ff925b10cd28244 delivery 194018: deferral:
Sorry,_no_mailbox_here_by_that_name._vpopmail_(#5.1.1)/maildrop:_error_writi
ng_to_mailbox./maildrop:_signal_0x19/
 <at> 400000003ff925b10cd2a56c status: local 5/10 remote 0/20
 <at> 400000003ff925bb0ce070ac delivery 194019: deferral:
Sorry,_no_mailbox_here_by_that_name._vpopmail_(#5.1.1)/maildrop:_signal_0x19
/
 <at> 400000003ff925bb0ce097bc status: local 4/10 remote 0/20
 <at> 400000003ff925c01c45349c delivery 194020: deferral:
Sorry,_no_mailbox_here_by_that_name._vpopmail_(#5.1.1)/maildrop:_error_writi
ng_to_mailbox./maildrop:_signal_0x19/
 <at> 400000003ff925c01c455bac status: local 3/10 remote 0/20
 <at> 400000003ff925c216fa2de4 delivery 194021: deferral:
Sorry,_no_mailbox_here_by_that_name._vpopmail_(#5.1.1)/maildrop:_error_writi
(Continue reading)

Eric Persson | 5 Jan 2004 12:26
Gravatar

exitcodes when maildrop delivers?

Hi,

I'm still poking around with the maildrop implementation I asked about 
earlier. It works as it is now, but I like to extend the whole setup 
with more features. :)

What I'm wondering, is the exitcodes that maildrop returns. Are they 
different depending on how the filtering goes. For example, is the 
return code different if the mail is delivered by to or not?

I didnt find anything about this in the man pages, any hints or directions?

Best regards,
	Eric
--
47.5% of all statistics are made up on the spot.

-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
Devin Rubia | 5 Jan 2004 15:06

Re: Enable external execution in embedded mode

On Sun, Jan 04, 2004 at 09:58:27PM +0100, Eric Persson wrote:
> Devin Rubia wrote:
> >Out of curiousity, how are you delivering then?  If you use -M, then the
> >"to" command is disabled as is default delivery as is xfilter.
> >Everything that could possibly deliver the message is disabled.  -M is
> >just meant to provide filtering services.
> 
> Hmm... if "to" is disabled, it seems to work pretty well, I have
> to "/webmail/8/4/84deda69dc38c4a39443e9b7a8230018/Maildir/"
> 
> at the end of my mailfilter file.
> 
> Is this something that is not "supposed" to work?

If it's in your .mailfilter file then it is not being used in embedded
mode.  Embedded mode used files in the .mailfilters directory, not the
.mailfilter file.

The .mailfilter file is used in delivery mode where the "to" command is
most definately allowed.

--

-- 
Devin

-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
(Continue reading)

Devin Rubia | 5 Jan 2004 15:26

Re: exitcodes when maildrop delivers?

On Mon, Jan 05, 2004 at 12:26:18PM +0100, Eric Persson wrote:
> Hi,
> 
> I'm still poking around with the maildrop implementation I asked about 
> earlier. It works as it is now, but I like to extend the whole setup 
> with more features. :)
> 
> What I'm wondering, is the exitcodes that maildrop returns. Are they 
> different depending on how the filtering goes. For example, is the 
> return code different if the mail is delivered by to or not?
> 
> I didnt find anything about this in the man pages, any hints or directions?

$ man maildropfilter
[SNIP]
  OTHER SPECIAL VARIABLES
     The following variables are automatically used  by  maildrop
     when the filter file is being processed:

     EXITCODE
          Return code for maildrop.  When  maildrop  successfully
          delivers  a message, it terminates with this exit code,
          which defaults to 0. When the to or the cc  command  is
          used to deliver the message to an external process, via
          a pipe, maildrop will set this  variable  to  the  exit
          code  of  the  external process. Since maildrop immedi-
          ately terminates after completing the to  command  this
          means  that  maildrop's exit code will be the exit code
          of the external process. If the  to  command  does  not
          deliver  the message to a process you must set EXITCODE
(Continue reading)

Eric Persson | 5 Jan 2004 15:42
Gravatar

Re: Enable external execution in embedded mode

Devin Rubia wrote:
>>Hmm... if "to" is disabled, it seems to work pretty well, I have
>>to "/webmail/8/4/84deda69dc38c4a39443e9b7a8230018/Maildir/"
>>
>>at the end of my mailfilter file.
>>
>>Is this something that is not "supposed" to work?
> 
> 
> If it's in your .mailfilter file then it is not being used in embedded
> mode.  Embedded mode used files in the .mailfilters directory, not the
> .mailfilter file.
> 
> The .mailfilter file is used in delivery mode where the "to" command is
> most definately allowed.

I'm running maildrop with the following:

|preline maildrop -V -M .mailfilter-m1010

from a .qmail file, the -M should be "special embedded mode" according 
to the man pages, or am I wrong?

Thanks for your time Deving, I appreciate you straighting things out. :)

//Eric
--
Help Webaid.se help the world.
http://www.webaid.se

(Continue reading)

Devin Rubia | 5 Jan 2004 16:12

Re: Enable external execution in embedded mode

On Mon, Jan 05, 2004 at 03:42:38PM +0100, Eric Persson wrote:
> Devin Rubia wrote:
> >>Hmm... if "to" is disabled, it seems to work pretty well, I have
> >>to "/webmail/8/4/84deda69dc38c4a39443e9b7a8230018/Maildir/"
> >>
> >>at the end of my mailfilter file.
> >>
> >>Is this something that is not "supposed" to work?
> >
> >
> >If it's in your .mailfilter file then it is not being used in embedded
> >mode.  Embedded mode used files in the .mailfilters directory, not the
> >.mailfilter file.
> >
> >The .mailfilter file is used in delivery mode where the "to" command is
> >most definately allowed.
> 
> I'm running maildrop with the following:
> 
> |preline maildrop -V -M .mailfilter-m1010
> 
> from a .qmail file, the -M should be "special embedded mode" according 
> to the man pages, or am I wrong?
> 
> Thanks for your time Deving, I appreciate you straighting things out. :)

Hmm, in that case, "to" should not work as you _are_ in embedded mode.

<quote>
EMBEDDED MODE
(Continue reading)


Gmane