Data Leung | 2 Aug 10:29 2007
Picon

Maildrop & .mailfilter problems .

Dear List,
      Here is my testing enviorment .
      Maildrop-2.0.4
      Courier-imap 4.1.3
      postfix-2.2.10-1.1.el4 " run as virtual domain style & i had been 
create a user / group name as vmail "
      openldap-2.2.13-7.4E

I complie maildrop like this.
======================================
tar jxfv maildrop-2.0.4.tar.bz2
cd maildrop-2.0.4
/configure --prefix=/usr/local/maildrop
--enable-sendmail=/usr/sbin/sendmail
--enable-trusted-users=root,vmail,postfix,daemond --enable-syslog=1
--enable-maildirquota --enable-maildrop-uid=502 --enable-maildrop-gid=502
--with-dirsync --enable-maildirquota ; make ; make install
cp /usr/local/maildrop/bin/maildrop /usr/bin/
cp /usr/local/maildrop/bin/maildirmake /usr/bin/
chown root:vmail /usr/bin/maildrop
chmod u+s /usr/bin/maildrop
vi /usr/local/maildrop/etc/maildropldap.cf
vi /home/vmail/domains/.mailfilter
chown vmail:vmail /home/vmail/domains/.mailfilter
chmod 600 /home/vmail/domains/.mailfilter
vi /etc/postfix/master.cf
" insert this "
maildrop  unix  -       n       n       -       -       pipe
flags=DRhu user=vmail argv=/usr/bin/maildrop /home/vmail/domains/.mailfilter 
-w 80 -d ${recipient}
(Continue reading)

Sam Varshavchik | 2 Aug 13:04 2007

Re: Maildrop & .mailfilter problems .

Data Leung writes:

> Here is my problems :
> Then I try to send e-mail by using telnet localhost SMTP.
> And i found that maildrop didn't read .mailfilter rules set. " Since I 
> didn't found my own mailbox didn't have any IMAP subfolder appear.  At the 
> same time there didn't get any log appear in /home/vmail/ (  my mailfilter 
> had been specifiec a maildir.log in /home/vmail )
> 
> IF I running like this :
> cat /etc/redhat-release | sudo -u vmail maildrop -V -d data <at> test.com
> It's work and it shows that it could run /home/vmail/.mailfilter
> 
> 
> Is there any anyone know what's the problems is it ?
> Anyway I could debug where i get the problems ?
> Hope somebody else could help .

If Postfix is not invoking mailrop to deliver mail, you should ask for help 
on the Postfix mailing list.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
(Continue reading)

Data Leung | 2 Aug 14:04 2007
Picon

Re: Maildrop & .mailfilter problems .

Dear Sam ,
        Many thanks for your fast responding .
Did you mean this happening because of postfix miss-config instead of 
maildrop miss-config ?

Thanks .

>From Data

>From: Sam Varshavchik <mrsam <at> courier-mta.com>
>To: courier-maildrop <at> lists.sourceforge.net
>Subject: Re: [maildropl] Maildrop & .mailfilter problems .
>Date: Thu, 02 Aug 2007 07:04:40 -0400
>
>Data Leung writes:
>
>>Here is my problems :
>>Then I try to send e-mail by using telnet localhost SMTP.
>>And i found that maildrop didn't read .mailfilter rules set. " Since I 
>>didn't found my own mailbox didn't have any IMAP subfolder appear.  At the 
>>same time there didn't get any log appear in /home/vmail/ (  my mailfilter 
>>had been specifiec a maildir.log in /home/vmail )
>>
>>IF I running like this :
>>cat /etc/redhat-release | sudo -u vmail maildrop -V -d data <at> test.com
>>It's work and it shows that it could run /home/vmail/.mailfilter
>>
>>
>>Is there any anyone know what's the problems is it ?
>>Anyway I could debug where i get the problems ?
(Continue reading)

Data Leung | 2 Aug 14:14 2007
Picon

Re: Maildrop & .mailfilter problems .

Dear Sam ,
       Many thanks for your fast responding .
Did you mean this happening because of postfix miss-config instead of 
maildrop miss-config ?

Thanks .

>From Data

>From: "Data Leung" <data_leung <at> hotmail.com>
>To: mrsam <at> courier-mta.com, courier-maildrop <at> lists.sourceforge.net
>Subject: Re: [maildropl] Maildrop & .mailfilter problems .
>Date: Thu, 02 Aug 2007 20:04:32 +0800
>
>Dear Sam ,
>         Many thanks for your fast responding .
>Did you mean this happening because of postfix miss-config instead of
>maildrop miss-config ?
>
>Thanks .
>
> >From Data
>
>
> >From: Sam Varshavchik <mrsam <at> courier-mta.com>
> >To: courier-maildrop <at> lists.sourceforge.net
> >Subject: Re: [maildropl] Maildrop & .mailfilter problems .
> >Date: Thu, 02 Aug 2007 07:04:40 -0400
> >
> >Data Leung writes:
(Continue reading)

Sam Varshavchik | 3 Aug 00:19 2007

Re: Maildrop & .mailfilter problems .

Data Leung writes:

> Dear Sam ,
>         Many thanks for your fast responding .
> Did you mean this happening because of postfix miss-config instead of 
> maildrop miss-config ?

Well, you have apparently proven that if you invoke maildrop correctly, the 
right thing happens. Therefore, the logical conclusion is that maidrop is 
not being invoked properly, by Postfix. It's probably some configuration 
issue, so it sounds like running your Postfix config by the postfix mailing 
list is the best way to find out what's not set correctly.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Courier-maildrop mailing list
Courier-maildrop <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/courier-maildrop
Data Leung | 3 Aug 17:50 2007
Picon

Re: Maildrop & .mailfilter problems .

Dear Sam ,
       I found something special that's may be a hints could find out what 
cause the maildrop can't be run .mailfilter  on my machine.

       please take a look the test shown as below.

Test 1:
cat /etc/issue | sudo -u vmail maildrop -V -d data.leung <at> test.com
maildrop: Unable to open filter file, errno=2.

Test 2 :
cat /etc/issue | sudo -u vmail maildrop -V 6  -d data.leung <at> test.com
< result is all right >

for these two test. .mailfilter also locate in 
/home/vmail/domains/.mailfilter

By the way . What's the different between -V 6 & -V under CMD enviorment ?

Thanks .

>From Data Leung .

>From: Sam Varshavchik <mrsam <at> courier-mta.com>
>To: courier-maildrop <at> lists.sourceforge.net
>Subject: Re: [maildropl] Maildrop & .mailfilter problems .
>Date: Thu, 02 Aug 2007 18:19:56 -0400
>
>Data Leung writes:
>
(Continue reading)

Sam Varshavchik | 4 Aug 00:58 2007

Re: Maildrop & .mailfilter problems .

Data Leung writes:

> Dear Sam ,
>        I found something special that's may be a hints could find out what 
> cause the maildrop can't be run .mailfilter  on my machine.
> 
>        please take a look the test shown as below.
> 
> Test 1:
> cat /etc/issue | sudo -u vmail maildrop -V -d data.leung <at> test.com
> maildrop: Unable to open filter file, errno=2.
> 
> Test 2 :
> cat /etc/issue | sudo -u vmail maildrop -V 6  -d data.leung <at> test.com
> < result is all right >
> 
> for these two test. .mailfilter also locate in 
> /home/vmail/domains/.mailfilter
> 
> By the way . What's the different between -V 6 & -V under CMD enviorment ?

Only additional log messages.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
(Continue reading)

Alex Chekholko | 6 Aug 06:34 2007

postfix virtual_mailbox_maps?

Hi all,

How exactly does one configure maildrop to know the mappings specified
in the postfix virtual_mailbox_maps file?  I followed the
postfix+maildrop howto:

http://www.postfix.org/MAILDROP_README.html

but the result is:

Aug  5 21:51:39 hostname postfix/pipe[3088]: 23066246EE:
to=<postmaster <at> hostname>, relay=maildrop, delay=0, status=bounced (user
unknown. Command output: Invalid user specified. )

Manually, same result:

[root <at> rimumail new]# cat /tmp/email |maildrop -V 5 -d postmaster
Invalid user specified.

Mail delivery and everything works great until I add the lines
maildrop_destination_recipient_limit = 1
virtual_transport = maildrop

My configuration is just as in that howto;
main.cf:

...
virtual_alias_maps = hash:/etc/postfix/virtual
virtual_mailbox_domains = firstname_lastname.com
firstname2_lastname2.com firstname3_lastname3.com
(Continue reading)

Tony Earnshaw | 6 Aug 07:17 2007
Picon

Re: postfix virtual_mailbox_maps?

Alex Chekholko skrev, on 06-08-2007 06:34:

> How exactly does one configure maildrop to know the mappings specified
> in the postfix virtual_mailbox_maps file?  I followed the
> postfix+maildrop howto:
> 
> http://www.postfix.org/MAILDROP_README.html

Don't! Don't configure virtual maidirs in Postfix. Have Postfix hand off 
to maildrop in master.cf:

maildrop        unix            -       n       n       -       -       pipe
         flags=DRhu user=vmail
         argv=/usr/bin/maildrop -w 80 -d ${user} ${sender} ${recipient}
    ${extension} ${user}

Keep

maildrop_destination_recipient_limit = 1
maildrop_destination_concurrency_limit = 1

in main.cf

Instead of vmail use your own global, virtual user.

Configure Courier authlib to support virtual maildirs and a virtual, 
global user. Here's an example for ldap; if you're using pam, SQL or 
userdb your configuration will be different:

LDAP_URI                ldapi://%2fvar%2frun%2fslapd%2fldapi/, 
(Continue reading)

Tony Earnshaw | 6 Aug 08:53 2007
Picon

Re: postfix virtual_mailbox_maps?

Tony Earnshaw skrev, on 06-08-2007 07:17:

[...]

> maildrop        unix            -       n       n       -       -       pipe
>          flags=DRhu user=vmail
>          argv=/usr/bin/maildrop -w 80 -d ${user} ${sender} ${recipient}
>     ${extension} ${user}

Oh yes, and you'll have to have at least one entry for this in your 
transport map:

localhost               maildrop:
my-mailserver.tld	maildrop:

If it's to be a hash file, don't forget to postmap it.

--Tonni

--

-- 
Tony Earnshaw
Email: tonni at hetnet dot nl

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/

Gmane