Sam Varshavchik | 1 Apr 2005 01:02
Gravatar

Re: compilation problem.

kamil kapturkiewicz writes:

> hi
> 
> i tried to compile maildrop, but there is some problem
> 
> when:
> 
> maildrop-1.8.0# ./configure --prefix=/usr/local/maildrop 
> --enable-maildrop-uid=root --enable-maildrop-gid=root 
> --with-etcdir=/usr/local/maildrop/etc 
> --with-ldapconfig=/usr/local/maildrop/etc/maildropldap.config 
> --with-mysqlconfig=/usr/local/maildrop/etc/maildropmysql.config
> 
> then:
> 
> http://153.19.64.154/configure.txt
> 
> ./configure stops in different places, sometimes at numlib sometimes in 
> other.

Looks like you have a hardware problem.  Flaky CPU, or RAM.

Jingkang Zhang | 1 Apr 2005 07:05
Picon
Favicon

The problem of Auto Forward

Hi All,

    I want to forward incoming mail (qmail+maildrop),
in my .mailfilter file like this:
     cc "! address <at> domain.com"
    Return-Path of forwarded mail become
"address <at> domain.com" plus domain of the mail server.It
seems that system add domain of mail server
automatically , it maybe the email address is
invalidated or letter header contains no host message.
For example, mail server is mail.abc.com,  Return-Path
is "Return-Path:<address <at> domain.com <at> mail.abc.com>",
this result in bouncing of some destination mail
server. I try cc "|$SENDMAIL -f $FROM
address <at> domain..." , it doesn't work yet.
    How can I solve it?

_________________________________________________________
Do You Yahoo!?
150万曲MP3疯狂搜,带您闯入音乐殿堂
http://music.yisou.com/
美女明星应有尽有,搜遍美图、艳图和酷图
http://image.yisou.com
1G就是1000兆,雅虎电邮自助扩容!
http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/event/mail_1g/

-------------------------------------------------------
This SF.net email is sponsored by Demarc:
A global provider of Threat Management Solutions.
Download our HomeAdmin security software for free today!
(Continue reading)

Vishaal Golam | 1 Apr 2005 10:32
Picon

multiple ldap attribute

Hi,
	Anyone have any hints to use two (or more) ldap attributes for
the 'mail_attr' directive of maildropldap.conf ?

Explications:
We used, for severals (good) reasons, 'mail' and 'mailAlternateAddress' for our different email addresses:
ldapsearch -LLL -x -b "ou=Users,ou=Personnel,dc=univ-mlv,dc=fr" "(uid=golam)" mail
mailAlternateAddress 
dn: uid=golam,ou=Users,ou=Personnel,dc=univ-mlv,dc=fr
mail: Vishaal.Golam <at> univ-mlv.fr
mailAlternateAddress: golam <at> univ-mlv.fr

But maildrop use only the attribute specified by 'mail_attr'.
How can it matches with 'mailAlternateAddress' too ?

Thanks

-------------------------------------------------------
This SF.net email is sponsored by Demarc:
A global provider of Threat Management Solutions.
Download our HomeAdmin security software for free today!
http://www.demarc.com/info/Sentarus/hamr30
Thorsten Haude | 3 Apr 2005 19:34
Picon

Re: Gone "code-blind". Can someone please spot the error here

Hi,

* Stefan Hornburg wrote (2005-03-30 16:20):
>Try
>
>if ( $RETURNCODE == 0 ) 
>
>to avoid a typical programming error.

In fact, try
    if (0 == $RETURNCODE)
to avoid a typical programming error.

Thorsten
--

-- 
Don't let your sense of morals prevent you from doing what is right.
    - Isaac Asimov
Ed Wildgoose | 5 Apr 2005 18:26

Feature request

2 quick feature requests, or can someone suggest better ways to do this 
in maildrop.

1) I (for example) subscribe to loads of mailing lists and so would like 
to have a generic rule which reads the Mailing list header and dumps 
stuff in a subfolder with the same name (maildir).  However, maildrop 
doesn't seem to autocreate folders when using the "to folder/" syntax 
and so we end up with a bunch of messy and repeated code to check for 
existence of folder, create of folder, etc. 

In a complicated script with a whole bunch of subfolders which is 
supposed to be rolled out to more than one user this gets really messy 
real quick.  It would be nice if maildrop could try to deliver and 
create missing subfolders (even if this was a compile time feature only).

Is there a "subroutine" kind of syntax I could use to at least not 
duplicate this bunch of code each time?  (I can sort of see a way with a 
global var and an include script).

2) My script is spending a whole bunch of time (like most of it) 
dropping into a subshell to do tests to see if folders exist.  Would it 
be worth extending the syntax for maildrop to have an inprocess test for 
folder existence?

Thanks

Ed W

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
(Continue reading)

mouss | 9 Apr 2005 14:01
Picon
Favicon

Re: Feature request

Ed Wildgoose wrote:
> 2 quick feature requests, or can someone suggest better ways to do this 
> in maildrop.
> 
> 1) I (for example) subscribe to loads of mailing lists and so would like 
> to have a generic rule which reads the Mailing list header and dumps 
> stuff in a subfolder with the same name (maildir).  However, maildrop 
> doesn't seem to autocreate folders when using the "to folder/" syntax 
> and so we end up with a bunch of messy and repeated code to check for 
> existence of folder, create of folder, etc.
> In a complicated script with a whole bunch of subfolders which is 
> supposed to be rolled out to more than one user this gets really messy 
> real quick.  It would be nice if maildrop could try to deliver and 
> create missing subfolders (even if this was a compile time feature only).
> 
> Is there a "subroutine" kind of syntax I could use to at least not 
> duplicate this bunch of code each time?  (I can sort of see a way with a 
> global var and an include script).

I use a perl script to parse a file and create a maildrop filter file 
(that is included by the "main" maildrop file). if interested, mail me.

having maildrop to create folders automatically will make you vulnerable 
to a "random folders creation" attack. I mean, if you just look up some 
header and create a folder automatically, then someone can you send you 
messages with random values (or even real ones) so you'll get a lot of 
folders for MLs you never subscribed to (and that may not exist).

Also, for some MLs, I prefer to have a single folder for a group of 
multiple MLs, while for others (each has too many messages), I prefer to 
(Continue reading)

Ed W | 9 Apr 2005 14:38

Re: Feature request


> I use a perl script to parse a file and create a maildrop filter file 
> (that is included by the "main" maildrop file). if interested, mail me.
>
> having maildrop to create folders automatically will make you 
> vulnerable to a "random folders creation" attack. I mean, if you just 
> look up some header and create a folder automatically, then someone 
> can you send you messages with random values (or even real ones) so 
> you'll get a lot of folders for MLs you never subscribed to (and that 
> may not exist).
>
> Also, for some MLs, I prefer to have a single folder for a group of 
> multiple MLs, while for others (each has too many messages), I prefer 
> to use a folder for each ML.

I agree.  Actually in my case I validate the input.

However, I also have a number of virtual users with a complicated 
maildrop script.  Lets suppose tomorrow I decide to add Spam filtering 
to our services, it them means having to write another script to go 
through and the relevant subfolders to all the virtual accounts.  Much 
easier to be able to just make the script deliver to the new folder and 
have it auto created...

Anyway, I have worked around it by creating a small script which uses a 
global variable, validates it for nasty characters, then creates the 
folder and adds it to the subscribed folder file.  I just include it 
where I need to create a new folder.  Not that fast, but good enough.

Thanks
(Continue reading)

Jonathan Nichols | 9 Apr 2005 23:14
Favicon

Filter on orig_to

Apr  9 12:31:08 mail postfix/pipe[30596]: 4777C75BC1: 
to=<me <at> pedantic.com>, orig_to=<listmail <at> pedantic.com>, relay=maildrop, 
delay=0, status=sent (pedantic.com)

User would like mail going to listmail <at> pedantic.com to go into a 
"listmail" folder.. I'm writing a .mailfilter (I don't have the 
squirrelmail interface for it working yet) and so far, I have this:

if (/^X-Spam-Status:.*Yes/)
{
         to "/home/vmail/pedantic.com/me/.maildir/.Spam/"
}

if ( /^(To|Cc): .*me <at> pedantic.com.*/ )
{
         to "/home/vmail/pedantic.com/me/.maildir/"
}

if ( /^(To|orig_to|Cc): .*listmail <at> pedantic.com.*/ )
{
         to "/home/vmail/pedantic.com/me/.maildir/.listmail"
}

Is the "orig_to" bit wrong? This is one of the very few domains that I 
have allowed wildcards on, too. The user generally does MUA side 
sorting, but wants to use the webmail/server side sorting more these days.

help! :)

thanks
(Continue reading)

Sam Varshavchik | 9 Apr 2005 23:31
Gravatar

Re: Filter on orig_to

Jonathan Nichols writes:

> 
> if ( /^(To|orig_to|Cc): .*listmail <at> pedantic.com.*/ )
> {
>          to "/home/vmail/pedantic.com/me/.maildir/.listmail"
> }
> 
> 
> Is the "orig_to" bit wrong? This is one of the very few domains that I 

That depends whether "orig_to" is one of the headers of the message.

If you don't see an orig_to: header in the message, this is not going to 
accomplish anything.

Jonathan Nichols | 10 Apr 2005 00:04
Favicon

Re: Filter on orig_to

Sam Varshavchik wrote:
> Jonathan Nichols writes:
> 
>>
>> if ( /^(To|orig_to|Cc): .*listmail <at> pedantic.com.*/ )
>> {
>>          to "/home/vmail/pedantic.com/me/.maildir/.listmail"
>> }
>>
>>
>> Is the "orig_to" bit wrong? This is one of the very few domains that I 
> 
> 
> That depends whether "orig_to" is one of the headers of the message.
> 
> If you don't see an orig_to: header in the message, this is not going to 
> accomplish anything.
> 

Sam,
	Thanks for the reply. I got the user to send me headers from one of the 
messages... this user uses "listmail <at> pedantic.com" for all of her 
mailing lists, and just wants them all to go into 1 folder. Thanks again!

Return-Path:
<sentto-8461640-2765-1113081806-listmail=pedantic.com <at> returns.groups.yahoo.com>
Received: from mailgate.pbp.net (mailgate.pbp.net [192.168.10.87])
      by mail.pbp.net (Postfix) with ESMTP id 25928779F5
      for <listmail <at> pedantic.com>; Sat, 9 Apr 2005 14:10:21 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1])
(Continue reading)


Gmane