[vchkpw] vdelivermail.c patched fo qmail-verh Re: [vchkpw] vpopmail, ezmlm, qmail-verh, and 'local' delivery

2003-12-16 Thread Jake Knobloch
On Tue, 2003-12-16 at 10:35, Tom Collins wrote:
 Yes, vdelivermail handles delivery of the messages.  I thought that 
 qmail-local was still involved though (e.g., the mail was processed by 
 qmail-local and then by vdelivermail).
 
 Are ##L##H replaced by anything?  Maybe the patch only affects the 
 qmail-local code that writes the email out to the directory.
In the headers of messages delivered to a vpopmail address on the same 
server, the headers include the ##L##H.

 Do qmail-remote and qmail-local only make the changes in the headers?  
 I'd think that it could be dangerous to do it in the entire message.
Only the headers, if you include ##L##H in the body of any of the
messages, it is not substituted no matter where it is delivered.
 
 You'd need to look at vdelivermail.c, find where it writes the email 
 out, and add code to replace ##L##H in the headers.  Note that 
 vdelivermail.c is due for an overhaul once we start the 5.5 development 
 series.
I guess a simple look at ~/vpopmail/bin/ and vdelivermail would have
jumped right out at me.
 
 Feel free to add this as a feature request to http://vpopmail.sf.net/.  
 It will be a low priority for developers, but it might eventually get 
 into vpopmail.
If I don't find anyone who has done it already, I will create a 
patch for vdelivermail.c and try to have it included with the qmail-verh
patch.

Thanks!

-- 
Personality can open doors, but only character can keep them open.
--Elmer G. Letterman


signature.asc
Description: This is a digitally signed message part


[vchkpw] Re:?vchkpw]?popmail??dap:?rror?0

2003-12-16 Thread tbsky
hi:
   i just upgrade my old vpopmail to ldap under mandrake linux 9.2.
i try 5.3.30 and now using 5.4.0pre1. i can not reproduce this error.
the only error during migration is that i can not use vadduser to
migrate old password. i must use vmoduer to migrate old password.
i wrote a little script to migrate old vpopmail account to ldap. and
it works fine. but it scares me if there are few people using vpopmail-ldap.
maybe i should use qmail-ldap instead? but i already use vpopmail 2 years,
and it works great. now every service are using ldap, so i hope maybe
vpopmail can catchup...


 - Original Message -
 From: X-Istence [EMAIL PROTECTED]


 Oscar Retana M. wrote:

 
   vadddomain test.com password
  Error: Internal (implementation specific) error 80
 
  Error 80 - 0x50  LDAP_OTHER - Unknown Error - Cool!
 

 Like README.ldap says, its not very common, in fact, we have no active
 commiter for ldap i believe, and its not in any good condition either.
 As far as i know, noone has ever seen that error before.

 Yes, I know there are people out there using the LDAP module,
 but we are really in desperate need of someone to contribute some
 notes showing the steps required to get vpopmail/ldap up and running.

 To try and faultfind this particular error, I would recommend you start
 adding some printf's to the source code (eg vadddomain() in vpopmail.c,
 vauth_adddomain() in vldap.c) to see if you can track down what is
 going wrong.  Or maybe even try strace vadddomain test.com password

 Michael.






[vchkpw] TR: Default failure notice receiver problem ?

2003-12-16 Thread Florent Gilain
Hi all,

As suggested by Mat, i transfert my question to that list.

Anyone can tell me how to do this please ?

thanks a lot

Florent

-Message d'origine-
De : Mat Kovach [mailto:[EMAIL PROTECTED]
Envoye : mardi 16 decembre 2003 18:11
A : [EMAIL PROTECTED]
Objet : RE: Default failure notice receiver problem ?


Florent Gilain writes:
  I tryed to create a
  /export/home/vpopmail/domains/mydomain.com/.qmail-postmaster file
containing
  [EMAIL PROTECTED] in order to forward all the mails to [EMAIL PROTECTED],
but i
  didn't worked.

You should check the documentation for vpopmail.  I'm positive (but
can't remember how) that you can setup the postmaster account to
forward mail to another user.  It is a function available in vpopmail.

Might want to forward this to the vpopmail list.

---
Mat




RE: [vchkpw] TR: Default failure notice receiver problem ?

2003-12-16 Thread Florent Gilain
hi all,

I finally found, thanks to Shane :

Just have to create a .qmail file containing [EMAIL PROTECTED] in the
postmaster home directory instead of domain root directory...

Florent

-Message d'origine-
De : Florent Gilain [mailto:[EMAIL PROTECTED]
Envoye : mardi 16 decembre 2003 18:19
A : Mailing List Vchkpw
Objet : [vchkpw] TR: Default failure notice receiver problem ?


Hi all,

As suggested by Mat, i transfert my question to that list.

Anyone can tell me how to do this please ?

thanks a lot

Florent

-Message d'origine-
De : Mat Kovach [mailto:[EMAIL PROTECTED]
Envoye : mardi 16 decembre 2003 18:11
A : [EMAIL PROTECTED]
Objet : RE: Default failure notice receiver problem ?


Florent Gilain writes:
  I tryed to create a
  /export/home/vpopmail/domains/mydomain.com/.qmail-postmaster file
containing
  [EMAIL PROTECTED] in order to forward all the mails to [EMAIL PROTECTED],
but i
  didn't worked.

You should check the documentation for vpopmail.  I'm positive (but
can't remember how) that you can setup the postmaster account to
forward mail to another user.  It is a function available in vpopmail.

Might want to forward this to the vpopmail list.

---
Mat





[vchkpw] deferral: can_not_open_new_email_file_errno=2_file

2003-12-16 Thread Ashvin Savani (arckid)








Hi,



I am getting this error and thats why qmail queue is
flooded. What I did is I tried to move the default directory of logging account
(~vpopmail/domains/domain/account/Maildir [i.e. ./Maildir in .qmail]) to
/hdd/mail/domain/account/Maildir/ because of low discspace on 1st
directory.



I guess its permission issue .. I already applied following
commands



Chown R vpopmail.vchkgrp /hdd/mail

Chmod 700 /hdd/mail



=== log error ===



@40003fdec8552f865414 delivery 4919: deferral:
can_not_open_new_email_file_errno=2_file=/hdd/mail/heubach-india.com/avinashi/Maildir/tmp/1071564875.3819.avinashi.heubach-india.com,S=1672/system_error/



=== log error / ===





Regards,

Ashvin Savani (arckid) 

Team Macromedian
(Flash + ( MX || Com || 
Remoting))  (PHP  MySQL) Developer










[vchkpw] vchkpw +remote mysql +fail auth

2003-12-16 Thread Hélio Rubens Kamogawa
Hi People!

I have 1 machine named mail01. This machine runs:
- MySQL (vpopmail database)
- POP (vpopmail 5.3.30)
- SMTP-AUTH (qmail 1.03 + http://members.elysium.pl/brush/) using vchkpw
to do the smtp-authentication.
- Imap (Courier)
- Webmail

Everything works fine, but I have to set up a 2nd machine that will  do 
only smtp. This machine (smtp01) should contain:
- vpopmail 5.3.30 - to use vchkpw on smtp-auth. Vpopmail mysql 
configuration points to mail01's mysql 
- SMTP-AUTH (qmail 1.03 + http://members.elysium.pl/brush/) using vchkpw

My problem is: when I don't have the domain created locally on smtp01 
the authentication fails. For example:
If I create the domain foo.com on mail01, vchkpw auth for foo.com on 
smtp01 fails.
If I create foo.com on smtp01, vchkpw auth for foo.com on smtp01 works.

Can you tell me if vchkpw looks for any local structure on 
~vpopmail/domains/  or something like that?


Regards,

Helio Rubens Kamogawa
Central Server
http://www.centralserver.com.br
[EMAIL PROTECTED]
+55 41 324-1993



Re: [vchkpw] vchkpw +remote mysql +fail auth

2003-12-16 Thread Tom Collins
[This isn't a developer question, so I'm only responding on the user's 
list, vchkpw.]

On Tuesday, December 16, 2003, at 12:48  PM, Hélio Rubens Kamogawa 
wrote:
Can you tell me if vchkpw looks for any local structure on
~vpopmail/domains/  or something like that?
Mirror the following files from mail01 to smtp01 and you should be fine.

/var/qmail/control/rcpthosts, morercpthosts, morercpthosts.cdb

Don't mirror control/virtualdomains, users/assign, or users/cdb, as 
that will result in qmail trying to deliver the mail on smtp01 instead 
of forwarding it to mail01.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/



[vchkpw] Imap and pop3 problem

2003-12-16 Thread Ross Davis - DataAnywhere.net
I have configured my new server with pop3 and courier imap.  I built the
server within the last week with the latest version from source forge.
I am using maildrop to drop my spam email into a .Spam imap folder and
this works great as I have a folder that is visible from sqwebmail.
That works great.  

On my pc (using outlook 2002) I have added one pop3 account to pull the
mail from my inbox off onto my machine and another Imap account that I
can use to monitor my spam folder.  This is really nice concept wise
except I am getting an error about 20% of the time when I check my
email.  If I remove the Imap account I do not get the error.  Outlook
checks both accounts at the same time and there is no way to stop that.
I tried everything.  

I think the problem is that imap and pop3 are conflicting with each
other when checking the same account at the same time.  Anyone else
tried this or know of a solution?


Ross Davis
DataAnywhere.net
250-470-9192 

ChaletsOnline.com is coming soon
Don't you deserve a vacation!
 




Re: [vchkpw] Imap and pop3 problem

2003-12-16 Thread foo
Ross Davis - DataAnywhere.net [EMAIL PROTECTED] wrote:
 On my pc (using outlook 2002) I have added one pop3 account to pull
 the mail from my inbox off onto my machine and another Imap account
 that I can use to monitor my spam folder.  This is really nice
 concept wise except I am getting an error about 20% of the time when
 I check my email.  If I remove the Imap account I do not get the
 error.  Outlook checks both accounts at the same time and there is
 no way to stop that. I tried everything.

 I think the problem is that imap and pop3 are conflicting with each
 other when checking the same account at the same time.  Anyone else
 tried this or know of a solution?

Incorrect.  The problem is courier-imap only allows a small amount of imap
connections per IP, and outlook and outlook express both open several
connections at a time, and the IMAP server is killing the extra connections.

Find your 'imapd' file, (default /usr/lib/courier-imap/etc), and find the
MAXPERIP variable.  Raise it.






[vchkpw] failure with catchall accounts with vpopmail+sqlspamassassin+maildrop+squirrelmail configuration

2003-12-16 Thread Myron Davis
I've got a mostly working system w/ squirrelmail + spamassassin and users
being able to modify settings in spamassassin through squirrelmail
(spamassassin grabs it's configuration data from spamassassin).

I have vpopmail set with spamhandling controlled through
/var/lib/vpopmail/etc/mailfilter

 /var/lib/vpopmail/etc/mailfilter 
import EXT
import HOST

SHELL=/bin/sh
VHOME=`/var/lib/vpopmail/bin/vuserinfo -d [EMAIL PROTECTED]

VPOP=$VHOME/Maildir/
if ( no such user =~ /$VHOME/:d )
{
VDOMHOME=`/var/lib/vpopmail/bin/vdominfo -d $HOST`
VPOP3=`cat $VDOMHOME/.qmail-default | cut -f4 -d' '`
VPOP=$VPOP3/Maildir/
EXT=`echo $VPOP3|cut -f7 -d'/'`
}
USERDEFINEDSPAMSTATUS = 0;

USERDEFINEDSPAMSTATUS=`grep spamc /var/www/data/[EMAIL PROTECTED]
/dev/null 2/dev/null|wc -l`

# run through SpamAssassin (if less than the specified size)
if ( $SIZE  262144 )
{
   if ( $USERDEFINEDSPAMSTATUS == 0 )
   {
   exception {
  xfilter /usr/bin/spamc -f -u [EMAIL PROTECTED]
   }
   }
}

exception {
include /var/www/data/[EMAIL PROTECTED]
}
exception {
to $VPOP
}

--- /var/lib/vpopmail/etc/mailfilter ---

The above script grabs all custom filter settings dropped by spamassassin
and works fine, EXCEPT in the following circumstances:

you have a catchall and you send a message to the catchall, then it
executes the script except $EXT (and also possibly $HOST is wrong if it is
a aliased domain) as vpopmail does not bother to change that variable.

Question is should vpopmail be changed so that the $EXT and $HOST reflects
the domain and user the mail is being delivered too, or should it stay
with what the site the mail is trying to be delivered too.

In case of a forward to the real address the above script works perfectly.

-Myron






Re: [vchkpw] skel

2003-12-16 Thread Raboo



hmm, not shure, but i think, download a copy of the 
CVS, make a copy of it, in one of the copies you edit the source, after that, 
you do diff -ruN edited-source... original-source... 
skel.patch¨


as i said, I think... i'm not realy "that" in to 
it

  - Original Message - 
  From: 
  David Winkler 
  
  To: vpopmail list 
  Sent: Tuesday, December 16, 2003 7:03 
  AM
  Subject: Re: [vchkpw] skel
  
  
  I have this done already actually. Tom sent me a 
  link to some great copy code.
  I'm having some problems with the diff however, 
  but I'll get it uploaded to
  the patch system on sourceforge as soon as I am able.
  
  If someone could tell me the best way to do a diff against CVS I would 
  be
  greatfull.
  
  Thanks!
  
  David
  
- Original Message - 
From: 
X-Istence 
To: David Winkler 
Cc: vpopmail list 
Sent: Monday, December 15, 2003 5:50 
PM
Subject: Re: [vchkpw] skel
David Winkler wrote: 
I'm planning on rewriting it correctly. At the time I really hadn't
considered the implications of how it worked, and the fact that
it isn't really cross platform.

I'll submit another with a more secure, cross platform diff, as soon
as I am able against whatever is current in cvs at the time.

Thanks!

David

- Original Message - 
From: "Raboo Treed" [EMAIL PROTECTED]
To: "vpopmail list" [EMAIL PROTECTED]
Sent: Thursday, November 06, 2003 6:25 PM
Subject: Re: [vchkpw] skel


  
  
A root compromise of the system isn't the only thing one has to worry
about. I'd be pretty pissed if someone inserted something into my skel
that resulted in all of my email being duplicated and sent to someone
else. Using cp when you could just copy the files in C in a secure
manner is just silly. Its also less efficient, as an added bonus.
  
Exploitable just isn't safe enough. I've disagreed with Tom about the
level of paranoia required (see the password/salt generation thread),
but in this case he's absolutely right about requiring more than the
current patch supplies.
  Who will be our saviour and take on the task to make the patch secure and
worthy to be a part of vpopmail future releases

( P.S. sorry Nick if you've recived the message twice 
I pressed the wrong reply button at first )




  I hate to bring old messages back up, but i would 
like such an option. Seeing as using it with spamassassin to auto add some 
standard settings would make a really good way to get users acustomed to 
spamassassin and how it can help them with their spam problem, also it would 
help out administrators.About other people editing it, well just be 
smart about it, chmod the files correctly, and dont allow any user other 
than vpopmail/root to write/edit files in the 
  directory.X-Istence


Re: [vchkpw] failure with catchall accounts with vpopmail+sqlspamassassin+maildrop+squirrelmail configuration

2003-12-16 Thread foo
Myron Davis [EMAIL PROTECTED] wrote:
 The above script grabs all custom filter settings dropped by
 spamassassin and works fine, EXCEPT in the following circumstances:

 you have a catchall and you send a message to the catchall, then it
 executes the script except $EXT (and also possibly $HOST is wrong if
 it is a aliased domain) as vpopmail does not bother to change that
 variable.

This is typical.  Mainly because any and all mailfilter filters grab the
address the mail is being sent to, NOT what vpopmail is forwarding the mail
to.  Because spamassassin does not know what vpopmail is, there's currently
no way around this that I know of.

The problem I'm having is spamassassin is creating user preferences files
for users that don't exist (because of what I just explained, and a
catchall).


-Robertson





[vchkpw] .qmail files for addresses with periods

2003-12-16 Thread Joe Cooke



This one's an easy one but I need to take care of 
it fairly quickly.

I've got vpopmail 5.2.1 configured for my domain 
without a problem and have all of my nonexistent users forward into a catchall 
maildir. There are a couple addresses that I would like to immediately 
bounce due to them being targeted / previously used. One of these contains 
a period in the name, such as:

[EMAIL PROTECTED]

I have a .qmail file created for [EMAIL PROTECTED] that is named ..qmail-foo. 
I also created .qmail-foo.bar which also should bounce the mail back. The 
problem is, is that qmail/vpopmail isn't detecting it for some reason and the 
mail is being delivered into the main "catchall".

Something I'm doing wrong, or is there a special 
way to handle addresses with periods in the beginning of the 
addresses?

-JC


Re: [vchkpw] .qmail files for addresses with periods

2003-12-16 Thread foo



 This one's an easy one but I need to take care of it fairly 
quickly.  I've got vpopmail 5.2.1 configured for my domain 
without a problem and have all of my nonexistent users forward into a 
catchall maildir. There are a couple addresses that I would like to 
immediately bounce due to them being targeted / previously used. 
One of these contains a period in the name, such as: 
  [EMAIL PROTECTED]  I have a .qmail file 
created for [EMAIL PROTECTED] that is named ..qmail-foo. I also 
created .qmail-foo.bar which also should bounce the mail back. The 
problem is, is that qmail/vpopmail isn't detecting it for some reason 
and the mail is being delivered into the main 
"catchall".   Something I'm doing wrong, or is 
there a special way to handle addresses with periods in the beginning of 
the addresses? 
Not sure if this will work, but you can try:

Create a pop account for the user you're looking to bounce 
mail for, then in that users directory, create a .qmail file with:

| /path/to/vdelivermail '' bounce-no-mailbox

May not be thebest way, but it may work..



Re: [vchkpw] failure with catchall accounts with vpopmail+sqlspamassassin+maildrop+squirrelmail configuration

2003-12-16 Thread Myron Davis
I currently have spamassassin set up to grab all users info from sql, and
I have not had any problems with spamassassin and user preference files,
except I did have the problem with vpopmail earlier for non-existent
users.

As you can see in my mailfilter script that I step right past that problem
by doing the following

snip of mailfilter
VHOME=`/var/lib/vpopmail/bin/vuserinfo -d [EMAIL PROTECTED]

VPOP=$VHOME/Maildir/
if ( no such user =~ /$VHOME/:d )
{
VDOMHOME=`/var/lib/vpopmail/bin/vdominfo -d $HOST`
VPOP3=`cat $VDOMHOME/.qmail-default | cut -f4 -d' '`
VPOP=$VPOP3/Maildir/
EXT=`echo $VPOP3|cut -f7 -d'/'`
}
USERDEFINEDSPAMSTATUS = 0;
USERDEFINEDSPAMSTATUS=`grep spamc /var/www/data/[EMAIL PROTECTED]
/dev/null 2/dev/null|wc -l`
# run through SpamAssassin (if less than the specified size)
if ( $SIZE  262144 )
{
   if ( $USERDEFINEDSPAMSTATUS == 0 )
   {
   exception {
  xfilter /usr/bin/spamc -f -u [EMAIL PROTECTED]
   }
   }
}

exception {
include /var/www/data/[EMAIL PROTECTED]
}

/snip of mailfilter

by that I seem to have gotten around creating preference files for users.
I currently have all user preferences stored in sql and squirrelmail
configured to update spamassassin prefences in sql.

one caveat, I have not figured out how to move the bayesian filters into
sql as of yet.  And I don't imagine I'm going to be able to without
modifying the code.

As you can see in my above script before spamassassin runs I run a
vuserinfo and check for a no such user, I then if there exists no user, I
then ask qmail-default if this is a catch-all account, if so then what is
the user of that account, then read the information from there.

Since I now know who it is really going to by sleuthing around I should be
able to modify $EXT and $HOST variable for spamassassin.

Thanks!

-Myron

 This is typical.  Mainly because any and all mailfilter filters grab the
 address the mail is being sent to, NOT what vpopmail is forwarding the
 mail
 to.  Because spamassassin does not know what vpopmail is, there's
 currently
 no way around this that I know of.

 The problem I'm having is spamassassin is creating user preferences files
 for users that don't exist (because of what I just explained, and a
 catchall).


 -Robertson








Re: [vchkpw] .qmail files for addresses with periods

2003-12-16 Thread Joe Cooke



Good point there. That's probably the fastest 
solution right now, but there should be a "cleaner" way that I'm most likely 
missing.

Thanks!

-JC

  - Original Message - 
  From: 
  [EMAIL PROTECTED] 
  
  To: [EMAIL PROTECTED] 
  Sent: Tuesday, December 16, 2003 9:00 
  PM
  Subject: Re: [vchkpw] .qmail files for 
  addresses with periods
  
   This one's an easy one but I need to take care of it fairly 
  quickly.  I've got vpopmail 5.2.1 configured for my domain 
  without a problem and have all of my nonexistent users forward into a 
  catchall maildir. There are a couple addresses that I would like to 
  immediately bounce due to them being targeted / previously used. 
  One of these contains a period in the name, such as: 
[EMAIL PROTECTED]  I have a .qmail file 
  created for [EMAIL PROTECTED] that is named ..qmail-foo. I also 
  created .qmail-foo.bar which also should bounce the mail back. 
  The problem is, is that qmail/vpopmail isn't detecting it for some 
  reason and the mail is being delivered into the main 
  "catchall".   Something I'm doing wrong, or 
  is there a special way to handle addresses with periods in the 
  beginning of the addresses? 
  Not sure if this will work, but you can try:
  
  Create a pop account for the user you're looking to bounce 
  mail for, then in that users directory, create a .qmail file 
with:
  
  | /path/to/vdelivermail '' bounce-no-mailbox
  
  May not be thebest way, but it may work..
  


Re: [vchkpw] failure with catchall accounts with vpopmail+sqlspamassassin+maildrop+squirrelmail configuration

2003-12-16 Thread foo
Myron Davis [EMAIL PROTECTED] wrote:
 VHOME=`/var/lib/vpopmail/bin/vuserinfo -d [EMAIL PROTECTED]
 
 VPOP=$VHOME/Maildir/
 if ( no such user =~ /$VHOME/:d )
 {
 VDOMHOME=`/var/lib/vpopmail/bin/vdominfo -d $HOST`
 VPOP3=`cat $VDOMHOME/.qmail-default | cut -f4 -d' '`
 VPOP=$VPOP3/Maildir/
 EXT=`echo $VPOP3|cut -f7 -d'/'`
 }
 USERDEFINEDSPAMSTATUS = 0;
 USERDEFINEDSPAMSTATUS=`grep spamc /var/www/data/[EMAIL PROTECTED]
 /dev/null 2/dev/null|wc -l`
 # run through SpamAssassin (if less than the specified size)
 if ( $SIZE  262144 )
 {
if ( $USERDEFINEDSPAMSTATUS == 0 )
{
exception {
   xfilter /usr/bin/spamc -f -u [EMAIL PROTECTED]
}
}
 }
 
 exception {
 include /var/www/data/[EMAIL PROTECTED]
 }

That's actually not a bad idea.  I may have to give that a shot - thanks.

-Robertson





Re: [vchkpw] skel

2003-12-16 Thread Tom Collins
On Monday, December 15, 2003, at 11:03  PM, David Winkler wrote:
I have this done already actually. Tom sent me a link to some great copy code.
I'm having some problems with the diff however, but I'll get it uploaded to
the patch system on sourceforge as soon as I am able.
 
If someone could tell me the best way to do a diff against CVS I would be
greatfull.

You can probably just diff against a download of 5.4.0-pre1 (or 5.4.0-pre2 when it's released later this week).

diff -ruN vpopmail-5.4.0-pre2/ vpopmail-withskel/

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/ 
Info on the Sniffter hand-held Network Tester: http://sniffter.com/



Re: [vchkpw] .qmail files for addresses with periods

2003-12-16 Thread Tom Collins
On Tuesday, December 16, 2003, at 06:48  PM, Joe Cooke wrote:
I've got vpopmail 5.2.1 configured for my domain without a problem and have all of my nonexistent users forward into a catchall maildir.  There are a couple addresses that I would like to immediately bounce due to them being targeted / previously used.  One of these contains a period in the name

Replace the period with a : and you're set.

.qmail-foo:bar

Use a single comment # to blackhole the email.
Bounce it with a single line like this:

|/var/qmail/bin/bouncesaying 'Invalid account'

By the way, vpopmail 5.2.2 includes lots of bug fixes over 5.2.1.  We're also close to releasing a stable 5.4.0.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/ 
Info on the Sniffter hand-held Network Tester: http://sniffter.com/



Re: [vchkpw] deferral: can_not_open_new_email_file_errno=2_file

2003-12-16 Thread Tom Collins
On Tuesday, December 16, 2003, at 11:09  AM, Ashvin Savani (arckid) wrote:
@40003fdec8552f865414 delivery 4919: deferral: can_not_open_new_email_file_errno=2_file=/hdd/mail/heubach-india.com/avinashi/Maildir/tmp/1071564875.3819.avinashi.heubach-india.com,S=1672/system_error/

You need to have 'tmp', 'cur' and 'new' directories in the Maildir directory.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/ 
Info on the Sniffter hand-held Network Tester: http://sniffter.com/



Re: [vchkpw] Re:?[vchkpw]?vpopmail?+?ldap:?Error?80

2003-12-16 Thread Tom Collins
On Tuesday, December 16, 2003, at 04:37  PM, [EMAIL PROTECTED] wrote:
but it scares me if there are few people using vpopmail-ldap.
maybe i should use qmail-ldap instead? but i already use vpopmail 2 
years,
and it works great. now every service are using ldap, so i hope maybe
vpopmail can catchup...
Actually, we have no idea how many people are using LDAP.  None of the 
current developers use it, so we can't do much testing.

If it's working, then there's no need to stop using it.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/



Re: [vchkpw] failure with catchall accounts with vpopmail+sqlspamassassin+maildrop+squirrelmail configuration (solution)

2003-12-16 Thread Myron Davis
I have solved my own problem, the following script enables maildrop and
vpopmail to properly process catchall accounts.

It was really simple actually all I needed to do was generate a brand new
$VHOME (and $EXT and $HOST) based on the scripts sleuthing so maildrop
could read it properly from squirrelmail.

I was on the right track before but just didn't finish it completely it
looks like.

If anybody wants to clean up the script and optimize it that would be great.

-Myron

-- /var/lib/vpopmail/etc/mailfilter --

import EXT
import HOST

SHELL=/bin/sh
VHOME=`/var/lib/vpopmail/bin/vuserinfo -d [EMAIL PROTECTED]

VPOP=$VHOME/Maildir/
if ( no such user =~ /$VHOME/:d )
{
VDOMHOME=`/var/lib/vpopmail/bin/vdominfo -d $HOST`
VPOP3=`cat $VDOMHOME/.qmail-default | cut -f4 -d' '`
VPOP=$VPOP3/Maildir/
EXT=`echo $VPOP3|cut -f7 -d'/'`
HOST=`/var/lib/vpopmail/bin/vdominfo -n $HOST`
VHOME=`/var/lib/vpopmail/bin/vuserinfo -d [EMAIL PROTECTED]
}
USERDEFINEDSPAMSTATUS = 0;

USERDEFINEDSPAMSTATUS=`grep spamc /var/www/data/[EMAIL PROTECTED]
/dev/null 2/dev/null|wc -l`
# run through SpamAssassin (if less than the specified size)
if ( $SIZE  262144 )
{
   if ( $USERDEFINEDSPAMSTATUS == 0 )
   {
   exception {
  xfilter /usr/bin/spamc -f -u [EMAIL PROTECTED]
   }
   }
}

exception {
include /var/www/data/[EMAIL PROTECTED]
}

exception {
to $VPOP
}








 Myron Davis [EMAIL PROTECTED] wrote:
 VHOME=`/var/lib/vpopmail/bin/vuserinfo -d [EMAIL PROTECTED]

 VPOP=$VHOME/Maildir/
 if ( no such user =~ /$VHOME/:d )
 {
 VDOMHOME=`/var/lib/vpopmail/bin/vdominfo -d $HOST`
 VPOP3=`cat $VDOMHOME/.qmail-default | cut -f4 -d' '`
 VPOP=$VPOP3/Maildir/
 EXT=`echo $VPOP3|cut -f7 -d'/'`
 }
 USERDEFINEDSPAMSTATUS = 0;
 USERDEFINEDSPAMSTATUS=`grep spamc /var/www/data/[EMAIL PROTECTED]
 /dev/null 2/dev/null|wc -l`
 # run through SpamAssassin (if less than the specified size)
 if ( $SIZE  262144 )
 {
if ( $USERDEFINEDSPAMSTATUS == 0 )
{
exception {
   xfilter /usr/bin/spamc -f -u [EMAIL PROTECTED]
}
}
 }

 exception {
 include /var/www/data/[EMAIL PROTECTED]
 }

 That's actually not a bad idea.  I may have to give that a shot - thanks.

 -Robertson