[vchkpw] Accept and deliver message until mailbox size = quota.

2004-11-29 Thread Sihar
Hello,
 How to accept messages until mailbox size = quota.
 In vpopmail messages will imediately bounce.
  

-- 
Best regards,
 Sihar  mailto:[EMAIL PROTECTED]




[vchkpw] vpopmail.h function vauth_user

2004-11-29 Thread Ferdinand Hackl
hi there,

i try to write a program ( see below ) to provide a command line tool for
checking a userĀ“s pwd with vpopmails function vauth_user. I am a C noob so i
am confused why vauth_user raise an undefinde reference error when i
include vpopmail.h - Do i have to use another vpopmail function for this ?

many thanks for an answer

Ferdinand Hackl


gcc vauth.c -o vauth
/tmp/cckIJsgT.o(.text+0x6d): In function `main':
: undefined reference to `vauth_user'
collect2: ld returned 1 exit status

 vauth.c---

#include stdio.h
#include unistd.h
#include sys/types.h
#include /home/vpopmail/include/vpopmail.h
#include /home/vpopmail/include/vauth.h


#define MAX_BUFF 80

static struct vqpasswd *pw;

int main()
{

   char Username[MAX_BUFF];
   char Domain[MAX_BUFF];
   char Password[MAX_BUFF];

   strcpy (Username, test);
   strcpy (Domain , foo.bar);
   strcpy (Password , test);
   pw = vauth_user( Username, Domain, Password,  );
   return 0;
}



Re: [vchkpw] Custom Maildir Structure

2004-11-29 Thread Robin Bowes
Tom Collins wrote:
On Nov 28, 2004, at 6:59 AM, Robin Bowes wrote:
Can you you point me to a link to this patch -  I can't seem to find 
it on vpopmail.sf.net.

I guess I was mistaken -- the patch never made it to SourceForge.  Here 
it is.  I declined to add it because it runs cp via a system() call.  
I'd prefer to have vpopmail manage the copying itself.
So, basically all that's required is a copy_directory function to 
replace the system call the cp? And you'll accept the patch?

R.
--
http://robinbowes.com


[vchkpw] OpenEFilter doesn't like me anymore

2004-11-29 Thread Bernd
Hi there!

Last week I had to change the LDAP structure on my server on which only
qmail was running, but qmail/clamd/spamassassin didn't like that at all
:-(

Till last week, vpopmail wrote all information to o=server
Now also pureftpd has to find its users in this ldap directory and so I
created ou=ftp and ou=mail.

I reinstalled vpopmail with the new settings and everything works fine.
I can fetch my mails with pop3/imap, send mails and vqadmin writes the
data to ou=domain.com,ou=mail,o=server, but although spamd and clamd are
running, both of them don't filter/scan anything :-(

Can this really be because of the changes I made to the LDAP structure
or do I have to search for my mistake somewhere else?



Thanks and have a nice day

Bernd







Re: [vchkpw] qmail+vpopmail+autoresponder2.0.5

2004-11-29 Thread Jeremy Kitchen
On Friday 26 November 2004 02:23 am, Mariusz Czarnecki wrote:
 Hi all,

 I'm using set of software as in topic.
 I've got line my.domain:my.domain line in virtualdomains file in qmail
 control dir.
 My virual domain is also default domain.
 Reply message going from autorespond has sender address as
 [EMAIL PROTECTED] which is definitely wrong.
 Line included in dotqmail causing autoreply to work contains $ as the
 last sing.
 If I use + instead of $ sign autoreply message goes with empty sender
 address which is also not acceptable for me.

to avoid mail loops, any automated responses should have a null envelope 
sender.

 How to get autorespond working properly, that's mean with correct sender
 address set which should be recipient address of original message indeed.

So say I have one of these autoresponders, and so do you.  You send me an 
email, I autorespond.  You respond to my autoresponse.  I respond to your 
autoresponse to my autoresponse ... etc.

What Problem Are You Trying To Solve?

-Jeremy

-- 
Jeremy Kitchen ++ Systems Administrator ++ Inter7 Internet Technologies, Inc.
  [EMAIL PROTECTED] ++ www.inter7.com ++ 866.528.3530 ++ 815.776.9465 int'l
  kitchen @ #qmail #gentoo on EFnet IRC ++ scriptkitchen.com/qmail
 GnuPG Key ID: 481BF7E2 ++ jabber:[EMAIL PROTECTED]


pgphAifYUs4rF.pgp
Description: PGP signature


Re: [vchkpw] OpenEFilter doesn't like me anymore

2004-11-29 Thread Tom Collins
On Nov 29, 2004, at 7:03 AM, Bernd wrote:
I reinstalled vpopmail with the new settings and everything works fine.
I can fetch my mails with pop3/imap, send mails and vqadmin writes the
data to ou=domain.com,ou=mail,o=server, but although spamd and clamd 
are
running, both of them don't filter/scan anything :-(
If you change your vpopmail configuration and recompile it, make sure 
you recompile EVERYTHING that links to libvpopmail.  This includes 
vqadmin, qmailadmin, courier-imap and possibly other programs.  I'm not 
familiar with how OpenEFilter works, but if it ties into vpopmail, 
you'll have to recompile it.  If it does ldap directly, you might need 
to update it to match your new configuration.

--
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] Custom Maildir Structure

2004-11-29 Thread Tom Collins
On Nov 29, 2004, at 5:19 AM, Robin Bowes wrote:
Tom Collins wrote:
On Nov 28, 2004, at 6:59 AM, Robin Bowes wrote:
Can you you point me to a link to this patch -  I can't seem to find 
it on vpopmail.sf.net.
I guess I was mistaken -- the patch never made it to SourceForge.  
Here it is.  I declined to add it because it runs cp via a system() 
call.  I'd prefer to have vpopmail manage the copying itself.
So, basically all that's required is a copy_directory function to 
replace the system call the cp? And you'll accept the patch?
Yes.  Absolutely.  Maybe a configuration option for the location of the 
directory, but that isn't a huge deal.

I'd like to see it use the default Maildir creation if the skel 
directory doesn't exist (or isn't readable) and copy the skel directory 
(which will need to contain Maildir (or .maildir) and its subdirs new, 
cur and tmp) if it does exist.

--
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] incorrect usage reporting

2004-11-29 Thread Gajen Anandamuruga








Hi list



I am using vpopmail 5.4.6 with IMP



Even though I delete all the mails form the IMP web
interface of some users and checked the mailbox usage by "vuserinfor [EMAIL PROTECTED]'
it shows a fix size like 15 or 16 % and not zero%



When this happen only for certain mailboxes.



Please help



Thanks

Gajen









This e-mail may contain confidential and/or privileged information.

If you are not the intended recipient or have received this e-mail in error, please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden. 




Re: [vchkpw] Custom Maildir Structure

2004-11-29 Thread Robin Bowes
Tom Collins wrote:
On Nov 29, 2004, at 5:19 AM, Robin Bowes wrote:
So, basically all that's required is a copy_directory function to 
replace the system call the cp? And you'll accept the patch?

Yes.  Absolutely.  Maybe a configuration option for the location of the 
directory, but that isn't a huge deal.

I'd like to see it use the default Maildir creation if the skel 
directory doesn't exist (or isn't readable) and copy the skel directory 
(which will need to contain Maildir (or .maildir) and its subdirs new, 
cur and tmp) if it does exist.
This should be configurable - if you've got an infrastructure that 
relies on a particular mailbox structure then you want to know if it 
doesn't get created correctly when a user is added.

Also, I envisage allowing different skel dirs per domain, i.e. look in 
domain/etc/skel first, then vpopmail home/etc/skel, then create the 
default Maildir structure.

R.
--
http://robinbowes.com


Re: [vchkpw] vpopmail.h function vauth_user

2004-11-29 Thread Tom Collins
On Nov 29, 2004, at 4:29 AM, Ferdinand Hackl wrote:
gcc vauth.c -o vauth
You need to include the libraries:
gcc -Wall -o auth auth.c `cat /home/vpopmail/etc/lib_deps`
#include /home/vpopmail/include/vpopmail.h
#include /home/vpopmail/include/vauth.h
You don't need to include vauth.h.  The path to vpopmail.h should be in 
quotes.

--
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] incorrect usage reporting

2004-11-29 Thread shadowplay.net
Title: Message




try 
sending the account another message.
maildirquota is normally only updated on 

receipt of new mail.

kenneth gf brown
shadowplay.net


  
  -Original Message-From: Gajen 
  Anandamuruga [mailto:[EMAIL PROTECTED] Sent: November 29, 
  2004 12:19To: [EMAIL PROTECTED]Subject: [vchkpw] 
  incorrect usage reporting
  
  Hi 
  list
  
  I am using vpopmail 5.4.6 with IMP
  
  Even though I delete all the mails 
  form the IMP web interface of some users and checked the mailbox usage by 
  "vuserinfor [EMAIL PROTECTED]' it shows a 
  fix size like 15 or 16 % and not zero%
  
  When this happen only for certain 
  mailboxes.
  
  Please 
  help
  
  Thanks
  Gajen__ 
  NOD32 1.935 (20041126) Information __This message was checked 
  by NOD32 antivirus system.http://www.nod32.com
  This e-mail may contain confidential and/or 
  privileged information.
  If you are not the intended recipient or have 
  received this e-mail in error, please notify the sender immediately and 
  destroy this e-mail. Any unauthorised copying, disclosure or distribution of 
  the material in this e-mail is strictly forbidden. 



Re: [vchkpw] Custom Maildir Structure

2004-11-29 Thread Tom Collins
On Nov 29, 2004, at 10:56 AM, Robin Bowes wrote:
Also, I envisage allowing different skel dirs per domain, i.e. look in 
domain/etc/skel first, then vpopmail home/etc/skel, then create 
the default Maildir structure.
Consider domain/@skel/ as the source.  Using domain/etc/skel causes 
problems if someone wants to use skel as an email address or mailing 
list.  Since a username can't have @ in it, it should be a safe 
directory character to use.

That also got me to thinking about how bigdir support means it's not 
possible to have one-letter email addresses/lists.  By using @a, @b, 
@c, etc. as the directory names, any email address would be possible.

--
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] killed email

2004-11-29 Thread Jeremy Kitchen
I had to kill this mail... 2.5MB email to the vchkpw mailing list (over 1100 
subscribers) kills our puny 400kbit upstream :(  Please don't send such large 
messages to the list.. it's much better to put them up on a website or 
something and pass out the url.  Some of you may have gotten the message, but 
the rest won't, I had to kill it.

Thanks :)

-Jeremy

-- 
Jeremy Kitchen ++ Systems Administrator ++ Inter7 Internet Technologies, Inc.
  [EMAIL PROTECTED] ++ www.inter7.com ++ 866.528.3530 ++ 815.776.9465 int'l
  kitchen @ #qmail #gentoo on EFnet IRC ++ scriptkitchen.com/qmail
 GnuPG Key ID: 481BF7E2 ++ jabber:[EMAIL PROTECTED]


pgpqzwh9tHdRx.pgp
Description: PGP signature


[vchkpw] vchkpw authentication fails

2004-11-29 Thread John Berliner
I am a web and application developer who has inherited sysadmin duties 
for our school's servers. Thus I'm basically a novice. I have scoured 
the web and mailing lists for clues to solving my problem here, but no 
luck. So here goes:

Our mail services are all working fine, with the exception of a single 
user (the heaviest mail user, by far) who has previously had 
intermittent issues with POPping mail. Now it very rarely succeeds -- 
and currently, does not succeed at all -- in picking up mail. Using any 
POP client, we get authentication errors (vchkpw: password fail in 
maillog).

We are running vpopmail 5.2.1 + qmail 1.03 on a FreeBSD 4.6 server. No 
imap. No inetd/ xinetd, just tcpserver + daemontools...

Can someone please get me pointed in the right direction to 
troubleshooting this one account? I have done /checked the following:

- permissions for this and other accounts all look well
- checked user quota, well under limit
- tried creating a new account, pops OK
- re-assigned a password more times than is reasonable, both via 
vpasswd and vmoduser (crypted and unencrypted)
- rebuilt passwd.cdb using
- restarted qmail
- checked logs, nothing I can see beyond the password fail message in 
maillog.

On manual inspection the Maildir queues seem normal. I am assuming that 
the problem is with vpopmail/vchkpw and not with qmail itself. But any 
and all pointers are welcome.

Thanks in advance,
John Berliner
Live Oak School


Re: [vchkpw] killed email

2004-11-29 Thread Rick Macdougall

Jeremy Kitchen wrote:
I had to kill this mail... 2.5MB email to the vchkpw mailing list (over 1100 
subscribers) kills our puny 400kbit upstream :(  Please don't send such large 
messages to the list.. it's much better to put them up on a website or 
something and pass out the url.  Some of you may have gotten the message, but 
the rest won't, I had to kill it.

Thanks :)
-Jeremy
LOL!
Who sent it ?  Enquiring minds want to know
Regards,
Rick


Re: [vchkpw] killed email

2004-11-29 Thread X-Istence
On Nov 29, 2004, at 3:57 PM, Jeremy Kitchen wrote:
I had to kill this mail... 2.5MB email to the vchkpw mailing list 
(over 1100
subscribers) kills our puny 400kbit upstream :(  Please don't send 
such large
messages to the list.. it's much better to put them up on a website or
something and pass out the url.  Some of you may have gotten the 
message, but
the rest won't, I had to kill it.

Thanks :)
-Jeremy
What email would this be? you did not put in a header, or a title, or 
is the title of the origional mail killed email?

X-Istence


Re: [vchkpw] Custom Maildir Structure

2004-11-29 Thread Eduardo M. Bragatto
Tom Collins wrote:
That also got me to thinking about how bigdir support means it's not 
possible to have one-letter email addresses/lists.  By using @a, @b, @c, 
etc. as the directory names, any email address would be possible.
	I've already though about that and got concerned with it. Are you 
suggesting a modification to vpopmail's bigdir support?

--
Regards,
Eduardo M. Bragatto.


Re: [vchkpw] vchkpw authentication fails

2004-11-29 Thread X-Istence
On Nov 29, 2004, at 6:33 PM, John Berliner wrote:
I am a web and application developer who has inherited sysadmin duties 
for our school's servers. Thus I'm basically a novice. I have scoured 
the web and mailing lists for clues to solving my problem here, but no 
luck. So here goes:

Our mail services are all working fine, with the exception of a single 
user (the heaviest mail user, by far) who has previously had 
intermittent issues with POPping mail. Now it very rarely succeeds -- 
and currently, does not succeed at all -- in picking up mail. Using 
any POP client, we get authentication errors (vchkpw: password fail 
in maillog).

We are running vpopmail 5.2.1 + qmail 1.03 on a FreeBSD 4.6 server. No 
imap. No inetd/ xinetd, just tcpserver + daemontools...


In the kernel, is UFS_DIRHASH enabled, or whatever the option is? This 
caused a lot of trouble on another server i admin, where it would be so 
slow, that at times login sporadically failed. It is enabled by 
default, and it would be stupid to have been removed, but you never 
know.

If anything see if it is possible to at least upgrade to the last 4.10 
version, as there have been a lot of overall improvements (This is off 
topic BTW)

Thanks in advance,
John Berliner
Live Oak School
Also, when you manually auth using pop3:
telnet localhost 110
user username
pass password
list
What is the output? (Please truncate, if the user has a ton of emails, 
we don't need the entire list)

Or does it die saying can't scan maildir?
Does this only happen for his account, and have you tried to mv the 
Maildir,and then /var/qmail/bin/maildirmake Maildir in the same dir, 
then chowning it to the right user and then trying to login again to 
see if it succeeds then?


X-Istence


Re: [vchkpw] Custom Maildir Structure

2004-11-29 Thread Robin Bowes
Tom Collins wrote:
On Nov 29, 2004, at 10:56 AM, Robin Bowes wrote:
Also, I envisage allowing different skel dirs per domain, i.e. look in 
domain/etc/skel first, then vpopmail home/etc/skel, then create 
the default Maildir structure.

Consider domain/@skel/ as the source.  Using domain/etc/skel causes 
problems if someone wants to use skel as an email address or mailing 
list.  Since a username can't have @ in it, it should be a safe 
directory character to use.
That makes sense.
David Winkler has sent me a version of vpopmail that uses a copytree 
function. When I get time, I'll apply the existing patch, include the 
copytree functionality and vpopmail home/skel and domain/@skel 
support and produce a new patch.

Any preferences as to which source I should patch against? What command 
would you like me to use to make the patch?

That also got me to thinking about how bigdir support means it's not 
possible to have one-letter email addresses/lists.  By using @a, @b, @c, 
etc. as the directory names, any email address would be possible.
I'll leave that to you! :)
R.
--
http://robinbowes.com


Re: [vchkpw] Custom Maildir Structure

2004-11-29 Thread Rick Widmer

Tom Collins wrote:
On Nov 29, 2004, at 5:19 AM, Robin Bowes wrote:
Tom Collins wrote:
On Nov 28, 2004, at 6:59 AM, Robin Bowes wrote:
Can you you point me to a link to this patch -  I can't seem to find 
it on vpopmail.sf.net.
I guess I was mistaken -- the patch never made it to SourceForge.  
Here it is.  I declined to add it because it runs cp via a system() 
call.  I'd prefer to have vpopmail manage the copying itself.

So, basically all that's required is a copy_directory function to 
replace the system call the cp? And you'll accept the patch?

Yes.  Absolutely.  Maybe a configuration option for the location of the 
directory, but that isn't a huge deal.
May I suggest:
~vpopmail/domains/$DOMAIN/.skel   if it exists, else
~vpopmail/skel
That way you can define a system wide default, and override it on a per
domain basis.


Re: [vchkpw] Custom Maildir Structure

2004-11-29 Thread Tom Collins
On Nov 29, 2004, at 6:43 PM, Eduardo M. Bragatto wrote:
That also got me to thinking about how bigdir support means it's not 
possible to have one-letter email addresses/lists.  By using @a, @b, 
@c, etc. as the directory names, any email address would be possible.
	I've already though about that and got concerned with it. Are you 
suggesting a modification to vpopmail's bigdir support?
Yes.  I'm suggesting that we could use directory names outside of the 
user namespace so that you could have bigdir support and one-character 
email addresses at the same time.

It would be difficult to handle existing domains though...  There would 
need to be a lot of directory renaming and updating of the user 
database to pull it off.

--
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/