[vchkpw] [SPAM] valias line that pipes into vdelivermail again breaks delivery valias documentation lax
Hi Guys, I've been a Qmail users since Peter Samuel at SLUG.org.au did his talk a long long time ago. Now down to business. I have an issue with vpopmail failing with virtualmin, a webmin spin off.. http://www.virtualmin.com/node/22970 Basically what happening is this, virtualmin is configuring |/var/vpopmail/bin/vdelivermail user@domain for aliases and it's breaking. Why it's breaking I don't exactly know why, because according to the valias code pipes are supported. I seek confirmation on the mysql implementation of vmail aliases. * multiple aliases for the same domain are supported (true) * if qmail extensions are used (user-ext@domain) in aliases they will be used INSTEAD of the user's alias (?) * qmail extensions are supported on aliases if there is not a better match (see above) ? how do qmail extensions on aliases flow through to the user accounts ? * pipes are supported (true) (see caveat) * &forwarding is supported - in order to support non-standard email naming conventions i.e. dot qmail compliancy (true?) * mbox delivery is not supported (true) * if no hostname is provided on alias it will use /var/qmail/control/defaultdelivery (true? seems to be using /var/qmail/bin/qmail-inject at some point noenvhost is ignored) * aliases are processed before users (true) * if the database is down, a soft delivery delay occurs (true) * mail loops for valiases only are detected (true) (not for user accounts bouncing back to a valias??) * delivery to maildir folders are supported if the full path is specified (true) * delivery to maildir folders are supported for relative paths in relation to vpopmail's home directory defined in /etc/passwd (true?) i.e. ./domains/ hiled.biz/user/.maildir/ is prepended by vpopmail's home directory * a maildir folder needs a ./ or a / at the beginning of the line to be processed (true/false?) * anything else that should go into the readme file thats not there I do hope some people can look at that virtualmin ticket to theorize why vdelivermail doesn't like calling itself to do another delivery. The issue doesn't affect me, it's just that some other setup's and indeed virtualmin's non-sql-backend setups are all doing it this way. It did take day to hunt down, but finally my pain is over (i never thought of checking the valias database) I'm also petitioning virtualmin to be fixed fixed to work with gentoo's defacto .maildir defaultdelivery standard for qmail. They had hardcoded ./Maildir in their source. Speaking of the maildrop patch for virtualmin, I don't like it in it's current form. It's messy. I think that vpopmail should support this setup instead. 1) If a domain is not owned by vpopmail:vckpwd/vpopmail still configure /var/qmail/users/assign to use uid/gid 89 (vpopmail) - see below, this should be configured by a #ifdef MAILDROP 2) Add maildrop to your system as SUID with it set up that vpopmail is a trusted user. --configure-trusted-users=x,y,z,vpopmail in maildrop configure script. [ Due to the amount of personal information vpopmail system could release, it should be pretty locked down anyway if any system administrator is worth his salt.] 3) I patched vdelivermail to spawn vpopmail in LDA mode. --- vdelivermail.c.orig2012-08-03 06:51:43.397294158 + +++ vdelivermail.c2012-08-03 07:56:38.802799846 + @@ -409,7 +409,7 @@ #ifdef MAILDROP if ( limits.disable_maildrop==0 && vpw!=NULL && !(vpw->pw_gid & NO_MAILDROP) ) { -sprintf(maildrop_command, "| preline %s", MAILDROP_PROG); +sprintf(maildrop_command, "| preline %s -a -d %s@%s", MAILDROP_PROG, TheUser, TheDomain); run_command(maildrop_command); DeleteMail = 1; return(0); This way maildrop sets up the home directory, the maildir directory and the appropriate user ID tself. You can still have site-wide configuration by /etc/maildroprc 4) To make point #3 working you need courier-authlib working. They have just recently the removed vpopmail authentication backend. However SQL / LDAP or whatever vpopmail uses can be queried. Here is an an example for mysql. /etc/courier/authlib/authmysqlrc: #address of mysql server MYSQL_SERVERlocalhost #login for mysql MYSQL_USERNAME vpopmail #password for mysql MYSQL_PASSWORD secret # of course i don't use the default password ^%% #path to mysql socket MYSQL_SOCKET/var/run/mysqld/mysqld.sock #mysql port #MYSQL_PORT 3306 #mysql options (leave alone) MYSQL_OPT 0 #name of mysql database MYSQL_DATABASE vpopmail MYSQL_USER_TABLEvpopmail #mysql charset to use MYSQL_CHARACTER_SET utf8 #default domain to use, when no domain is supplied by user DEFAULT_DOMAIN hiled.biz #MYSQL_CRYPT_PWFIELD pw_passwd #MYSQL_CLEAR_PWFIELDpw_clear_passwsd #MYSQL_LOGIN_FIELD CONCAT(pw_name, '
Fwd: [vchkpw] Re: Courier IMAP or other IMAP serves...
+1 , Dovecot is a very good and flexible server, and its authors are much less haughty than courier-imap's ones. And yes, CI officially doesn't support vpopmail any more... Dovecot does have a config mode for use with vpopmail... Message original Suject: [vchkpw] Re: Courier IMAP or other IMAP serves... Date: Mon, 21 Jun 2010 15:51:37 -0700 De: Eric Shubert Répondre à: vchkpw@inter7.com Organisation: Eric Shubert & Associates Pour: vchkpw@inter7.com I'll 2nd that. Dovecot performs much better, and is quite reliable. -- -Eric 'shubes' Rick Romero wrote: > > I think Dovecot (www.dovecot.org) is the more popular POP/IMAP server > these days. > > Rick > > Quoting "Den Arion" : > >> >> >> >> Hi to everyone...I just came back to work with linux server. In the >> past, many years I worked with linux and I installed vpopmail and >> courier-imap. The last week I downloaded/installed >> qmail/vpopmail/courier-auth/courier imap. I have problems login to the >> IMAP server and searching for information I found that the module >> vchkpw was not in the list or the documentation. I tried to use other >> IMAP servers recommended but I had problems compiling but any way... I >> questions are:Does it work the current version of courier imap >> (4.8.0)?If not, is there some way to patch it?What other options are >> for imap server and vpopmail? >> Regards >> >> __m___m__ >> ||(O O)|| >> ||(~)|| >> >> >> >> >> >> > > > > > > > !DSPAM:4c20128832712081917637!
Re: [vchkpw] vpopmail clear password
No! Passwords are encrypted by a 1-way method... Too bad... april majd a écrit : > Hi, > > I have vopmail/qmail on a server and it shows passwords encrypted in > vpasswd files. I would like to see the passwords, if I recompile > vpopmail(and upgrade too) with the clear password option, will I be > able to see the passwords that are previously encrypted. > > Thank you. > !DSPAM:4b7f5f4732711485189820!
[vchkpw] Oracle module
Hi all, I'm new to the list but not to vpopmail ; I've been using it for a long time in its cdb and mysql flavours.. Last night, I started building it with Oracle support, since it was reported "functional" in the (shrt) README.oracle ... Just to be honest : pain in the a (Don't flame, go on :-) ) Lots of mistakes, compile errors, linker errors, typos, missing parts of code and just obscure behaviours all the way long I think the biggest problem is, this module has been ignored for months by the community (and thus never aligned with the main code), as connecting Oracle to open source mail solutions was quite rare, as stated, I guess. This may be less evident now, with free Oracle distributions (XE). Well, at least, yesterday, there was someone needing it. Anyway, this morning I'm quite proud of saying, "He it works!" I have written a procedure of my 8-hour journey, what I changed, what I added, etc. , and thought it may be of some use to other people. So first, if anyone here has Oracle in mind, I may directly assist, or maybe someone could direct me on how to have my changes merged into the project as a new contribution? Let me say. Take care, Cyril' (Config : RHEL 5, Oracle XE with InstantClient 11.2) (And I'm french btw! Hope this is readeable) !DSPAM:4b4c6bd532711219310518!
Re: [vchkpw] chkuser on relay server , part II
On Mon, 15 Jan 2007, David Chaplin-Loebell wrote: > Miki wrote: > > >- so after spending weekend over google ;) I want kindly ask TONIX if > >he is willing to add smal feature into chkuser 2.0.8, I have idea > >something like > >CHECK_EXTERNAL_FILE = 0/1 > >EXTERNAL_FILE = /bla/bla/list.txt (or even cdb) > > > I second this request-- having this functionality in chkuser would save > me a world of trouble. > > David > I have been off the list for a few days and missed this discussion. We have 3 E-Mail servers, 2 of which are backup MX's and 1 master, I wrote a small chkuser-style-server on the master server and a chkuser-style-client for both the MX's. This for us works perfectly and no files have to be migrated from the master to the backup's. The server is very simple (it does not actually use chkuser, but just chkuser style functionality), and the client communicates with this server to validate destination addresses. The client is called using a qmail-check-recipient patch (not sure where it came from, I might have even written it). It may be possible to write the server to use chkuser and have clients on the relay machines.
Re: [vchkpw] The future of valias & other topics
On Mon, 8 Jan 2007, John Simpson wrote: > On 2007-01-08, at 0602, [EMAIL PROTECTED] wrote: > > > > Attached is a patch for 5.4.18 to enable alias line removal > > from .qmail > > based aliases and the implementation of alias line removal using the > > valias command line program. > > > > Am I meant to be posting patches here (such as my previous double free > > problem in vpalias.c) or to another list ? > > > > here is fine, but you should probably start a new thread instead of > "replying" your message into the middle of an existing one. > Ok, noted. I replied in the middle of the existing thread/message because of the mention of 'Complete alias handling' by Rick (not so complete without the ability to remove an alias line using vpalias.c), although I did take on board his comment about 'Full support is available in cdb and MySQL back ends', no harm intended.
Re: [vchkpw] The future of valias & other topics
> First a quick review of the new features added to the 5.4.18 release: > > o The option of running a script each time a user or domain is added, > deleted or modified. This can be used for sending notification > messages, maintaining a list of valid users and what ever else you may > need to do. See README.onchange > > o Complete alias handling. With this version you can add an address to > an alias, delete an address from an alias, delete an entire alias, or > delete all aliases from a domain. That pretty much takes care of all > the possibilities for unordered aliases. Full support is available in > cdb and MySQL back ends. The MySQL code can be used as a template for > other back ends. > Attached is a patch for 5.4.18 to enable alias line removal from .qmail based aliases and the implementation of alias line removal using the valias command line program. Am I meant to be posting patches here (such as my previous double free problem in vpalias.c) or to another list ? diff -uPr vpopmail-5.4.18.orig/configure vpopmail-5.4.18/configure --- vpopmail-5.4.18.orig/configure 2006-12-31 04:41:21.0 + +++ vpopmail-5.4.18/configure 2007-01-05 09:21:29.0 + @@ -6620,19 +6620,19 @@ 1*|y*|Y*) echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6 -if test "$USE_SQL" != 1 -then -{ { echo "$as_me:$LINENO: error: valias option is only supported in the SQL authentication modules" >&5 -echo "$as_me: error: valias option is only supported in the SQL authentication modules" >&2;} - { (exit 1); exit 1; }; } -else +#if test "$USE_SQL" != 1 +#then +#{ { echo "$as_me:$LINENO: error: valias option is only supported in the SQL authentication modules" >&5 +#echo "$as_me: error: valias option is only supported in the SQL authentication modules" >&2;} +# { (exit 1); exit 1; }; } +#else VALIAS=1 cat >>confdefs.h <<_ACEOF #define VALIAS $VALIAS _ACEOF -fi +#fi ;; *) echo "$as_me:$LINENO: result: no" >&5 diff -uPr vpopmail-5.4.18.orig/valias.c vpopmail-5.4.18/valias.c --- vpopmail-5.4.18.orig/valias.c 2006-12-19 21:02:47.0 + +++ vpopmail-5.4.18/valias.c2007-01-05 09:21:29.0 + @@ -37,8 +37,9 @@ #define VALIAS_SELECT 0 #define VALIAS_INSERT 1 -#define VALIAS_DELETE 2 -#define VALIAS_NAMES 3 +#define VALIAS_REMOVE 2 +#define VALIAS_DELETE 3 +#define VALIAS_NAMES 4 int AliasAction; int AliasExists; @@ -116,6 +117,23 @@ } break; + case VALIAS_REMOVE: + /* check to see if it already exists */ + AliasExists = 0; + tmpalias = valias_select( Alias, Domain ); + while (tmpalias != NULL ) { + if (strcmp (tmpalias, AliasLine) == 0) AliasExists = 1; + tmpalias = valias_select_next(); + } + if (AliasExists) { + valias_remove( Alias, Domain, AliasLine ); + } else { + fprintf (stderr, "Error: alias %s -> %s does not exist.\n", + Email, AliasLine); + vexit(-1); + } + break; + case VALIAS_DELETE: valias_delete( Alias, Domain ); break; @@ -136,6 +154,7 @@ printf(" -s ( show aliases, can use just domain )\n"); printf(" -d ( delete alias )\n"); printf(" -i alias_line (insert alias line)\n"); + printf(" -r alias_line (remove alias line)\n"); printf("\n"); printf("Example: valias -i [EMAIL PROTECTED] [EMAIL PROTECTED]"); printf(" (adds alias from [EMAIL PROTECTED] to [EMAIL PROTECTED]"); @@ -154,7 +173,7 @@ memset(AliasLine, 0, sizeof(AliasLine)); AliasAction = VALIAS_SELECT; - while( (c=getopt(argc,argv,"vnsdi:")) != -1 ) { + while( (c=getopt(argc,argv,"vnsr:di:")) != -1 ) { switch(c) { case 'v': printf("version: %s\n", VERSION); @@ -165,6 +184,10 @@ case 's': AliasAction = VALIAS_SELECT; break; + case 'r': + AliasAction = VALIAS_REMOVE; + snprintf(AliasLine, sizeof(AliasLine), "%s", optarg); + break; case 'd': AliasAction = VALIAS_DELETE;
[vchkpw] Vpopmail 5.4.18 bug
Hi, There is a bug in 5.4.18 of Vpopmail where if you (as a programmer) call valias_select_all() twice in the same program on a domain that has no aliases, the second one (for me) gets a glibc double free error and aborts. This occurs when using file based valias functions (vpalias.c). You can get it to break by using vpopmaild and using list_alias on a domain with no aliases. Patch attached. Regards Drew diff -uPr vpopmail-5.4.18.orig/vpalias.c vpopmail-5.4.18/vpalias.c --- vpopmail-5.4.18.orig/vpalias.c 2006-12-19 21:02:47.0 + +++ vpopmail-5.4.18/vpalias.c 2007-01-04 14:25:15.0 + @@ -305,10 +305,13 @@ } } } -if (num_names < max_names) { +if (num_names < max_names && num_names > 0) { new_names = realloc( names, num_names * sizeof(char *) ); if (new_names != NULL) names = new_names; +} else if (num_names == 0) { + free(names); + names = NULL; } if (mydir!=NULL) {
Re: [vchkpw] Custom Fields ?
The user directory and the corresponding Maildir is created by vdelivermail if it does not exist (make_user_dir(...) in vpopmail.c called from vdelivermail.c) and does not depend on the backend. On Wed, 13 Dec 2006, Joshua Megerman wrote: > On Wednesday 13 December 2006 01:47, Rick Widmer wrote: > > Joshua Megerman wrote: > > > In my experience, as long as you add new fields AFTER the existing > > > vpopmail fields, you shouldn't have any problems. > > > > The order of the fields in the table should not matter. I believe > > vpopmail always uses explicit lists, so as long as you provide all of > > the required fields it should be happy. > > > OK, I just looked at the MySQL code (the backend I use, and therefore am > familiar with) and you're correct. I don't know if that changed since > sometime in 5.3.x, when I first played with extending the DB, but at this > point it looks like the columns are explicitly stated in order for all > relevant SQL queries, so the order in the DB shouldn't matter. Just don't > change the order in the query without changing the code - that I know for > certain :) > > > I believe vdelivermail has support for creating the Maildir for a user > > when the first email comes in. All you have to do is create the > > database entry and wait for a message. (Maybe the one sent by John's > > onchange patch.) I may be wrong, I use cdb. > > > I believe you are correct - the user dir doesn't get created until the first > attempt by vpopmail to either read or write to it (e.g., deliver a message, > check via pop3, etc.). I don't think this depends on the backend, as every > backend stores the location of the user dir effectively the same way. > > Josh >
Re: [vchkpw] .vpopmail-* instead of .qmail-*
On Tue, 12 Dec 2006, Tom Collins wrote: > On Dec 12, 2006, at 9:36 PM, Rick Widmer wrote: > > Qmailadmin should read .vpopmail files before .qmail files and > > delete the .qmail file if it exists when the .vpopmail file is > > written. Effectively the files will be renamed as they are edited. > > Maybe there needs to be a ./configure option to disable the new > > file name. > > > > What do you think? > > If we go with that, should the user's .qmail file become .vpopmail- > default? > If the decision is to go with .vpopmail files then I agree that the user's .qmail file should be called .vpopmail (not .vpopmail-default though, this would only get used for recipient addresses that contain an extension). So the situation should be that if you disabled the functionality in the patch I provided (by NOT providing --enable-qmail-ext on the configure command line) vdelivermail will look for a single .vpopmail (currently .qmail) file in the users directory, otherwise (if --enable-qmail-ext WAS provided on the configure command line) vdelivermail will try and resolve a .vpopmail[-extension][-default] file. If my reading of whats required is correct AND the decision to move from .qmail[-extension][-default] to .vpopmail[-extension][-default] is made then the patch attached to this email should do the trick. It does still fallback to .qmail files in both instances (depending on --enable-qmail-ext) for backwards compatibility and easy migration. > I think that it should be a configure option in vpopmail that > cascades into QmailAdmin. We'll need to make it clear to the admin > enabling the feature that they need to update their QmailAdmin as well. > Agreed. > -- > Tom Collins - [EMAIL PROTECTED] > Certified Rabbit Semiconductor Consultant based in Napa, California > > > diff -uPr vpopmail-5.4.17.orig/vdelivermail.c vpopmail-5.4.17/vdelivermail.c --- vpopmail-5.4.17.orig/vdelivermail.c 2006-06-29 20:36:43.0 +0100 +++ vpopmail-5.4.17/vdelivermail.c 2006-12-13 07:06:23.0 + @@ -62,6 +62,7 @@ #ifdef QMAIL_EXT /* the User with '-' and following chars out if any */ char TheUserExt[AUTH_SIZE]; +char TheExt[AUTH_SIZE]; #endif #define FILE_SIZE 156 @@ -217,6 +218,11 @@ vexit(EXIT_BOUNCE); } +strncpy(TheExt, &TheUser[i+1], AUTH_SIZE); +for (i = 0; (TheExt[i] != 0); i++) { + if (TheExt[i] == '.') TheExt[i] = ':'; +} + #endif vget_assign(TheDomain, TheDomainDir, sizeof(TheDomainDir), &TheDomainUid, &TheDomainGid); @@ -700,16 +706,50 @@ chdir(dir); +#ifdef QMAIL_EXT /* format the file name */ -if ( (fs = fopen(".qmail","r")) == NULL ) { +if (strlen(TheExt)) { +strcpy(tmpbuf,".vpopmail-"); +strcat(tmpbuf,TheExt); +if ( (fs = fopen(tmpbuf,"r")) == NULL ) { +strcpy(tmpbuf,".qmail-"); +strcat(tmpbuf,TheExt); + if ( (fs = fopen(tmpbuf,"r")) == NULL ) { +for (i=strlen(TheExt);i>=0;--i) { +if (!i || TheExt[i-1]=='-') { +strcpy(tmpbuf,".vpopmail-"); +strncat(tmpbuf,TheExt,i); +strcat(tmpbuf,"default"); +if ( (fs = fopen(tmpbuf,"r")) != NULL) { +break; +} +strcpy(tmpbuf,".qmail-"); +strncat(tmpbuf,TheExt,i); +strcat(tmpbuf,"default"); +if ( (fs = fopen(tmpbuf,"r")) != NULL) { + break; +} +} +} +} +} +} else { +if ( (fs = fopen(".vpopmail","r")) == NULL) { +fs = fopen(".qmail","r"); +} +} +#else +if ( (fs = fopen(".vpopmail","r")) == NULL) { +fs = fopen(".qmail","r"); +} +#endif +/* no .qmail file at all */ +if (fs == NULL ) { /* no file, so just return */ return(-1); } -/* format a simple loop checker name */ -snprintf(tmpbuf, sizeof(tmpbuf), "[EMAIL PROTECTED]", TheUser, TheDomain); - /* read the file, line by line */ while ( fgets(qmail_line, sizeof(qmail_line), fs ) != NULL ) { if (*qmail_line == '#') { @@ -722,14 +762,6 @@ if (qmail_line[i] == '\n') qmail_line[i] = 0; } -/* simple loop check, if they are sending it to themselves - * then skip this line - */ -if ( strcmp( qmail_line, tmpbuf) == 0 ) continue; -/* check for &[EMAIL PROTECTED] as well */ -if ((*qmail_line == '&') && (strcmp (qmail_line + 1, tmpbuf) == 0)) -continue; - deliver_mail(qmail_line, ""); return_value = 1;
Re: [vchkpw] 5.4.17 patches
Remo, I did have a look at doing this a while ago by dumping a file into the new users Maildir/new directory, but then got into having to write a templating system for the dumped email so gave up. I guess I could have another look at this if its really wanted. On Tue, 12 Dec 2006, Remo Mattei wrote: > ALl those patches sound great what about the patch that will create a > greeting when you create a user? I just want to check and see if there > was included > > Thanks, > Remo > > Rick Widmer wrote: > > > > > > [EMAIL PROTECTED] wrote: > > > > > > > > Nice. > > > > > > Very nice! > > > > > > Very nice! > > > > > > > > Next we need the ability to guarantee the order of the lines in both > > .qmail and SQL back ends... > > > > > > > > I'm not so sure about most. I use cdb, and so does everyone else that > > uses the Shupp toaster as written. > > > > > > > > THANKS! > > > > > > > > I have mixed feelings about this. I'm sure Charles Cazabon on the qmail > > list would rejoice if we did this. On the other hand we seem to be > > moving towards having all the functionality of .qmail files built into > > vdelivermail, which would also take care of his objections. > > > > The best solution would probably be to read both .vpopmail and .qmail > > files in the user directories, and start naming files executed by > > vdelivermail .vpopmail. I'd like to see this patch... > > > > > > I hope to find some time this weekend. There are a number of features > > I've wished for for quite some time... > > > > THANKS! > > Rick > > > > !DSPAM:457eb765325881607328526! > > >
Re: [vchkpw] 5.4.17 patches
Rick, As requested I have attached the .qmail and .vpopmail files in the user directory patch. I do not use this patch but created it a little while ago incase I did want to migrate to using .vpopmail files. As far as I can remember the order of name resolution is as follows :- 1) .qmail-{extension} - Open if exists 2) .vpopmail-{extension} - Open if exists 3) Chop the end off the extension (back to the last '-') 4) .qmail-{extension}-default - Open if exists 5) .vpopmail-{extension}-default - Open if exists 6) Loop back to 3 until the extension is empty 7) If no file got opened from 1-6 then just bail, otherwise follow the instructions in the opened file. You do still need to combine this patch with the deleiveredto patch (from my previous email) to get it all to work properly. As far as maintaining the order in .qmail file using valias, I am pretty sure that they are maintained in .qmail files. As far as the SQL is concerned I am not sure (I don't use SQL), do you want me to look into this ? On Tue, 12 Dec 2006, Rick Widmer wrote: > > > [EMAIL PROTECTED] wrote: > > > > Patches attached :- > > 1) vpopmail-5.4.13-dot-qmail.patch - Implements .qmail-extension > (etc) > in the users directory. > > Nice. > > > 3) vpopmail-5.4.17-valias.patch - Changes to valias to remove SQL only > > restriction and implement alias line removal. > > Very nice! > > > 4) vpopmail-5.4.17-vpopmaild.patch - Implements list_alias and > > list_lists commands using the new valias code. > > Very nice! > > > > As far as the second patch goes, it just implements what I think is a > > missing feature from the commandline 'valias', and that is the ability to > > remove a line from an alias (either .qmail file or SQL backend). This > > patch also removes the SQL only restriction. > > Next we need the ability to guarantee the order of the lines in both > .qmail and SQL back ends... > > > > I know most of the community only want to use SQL backends, I however do > > not, so I have been patching vpopmail for a while now so the file backend > > works. > > I'm not so sure about most. I use cdb, and so does everyone else that > uses the Shupp toaster as written. > > > > While scanning the vpopmaild.c code, I noticed a comment in there that the > > list_alias and list_lists commands needed re-writing to use the new valias > > code, this is what I have done. This removes the need for the bkscandir > > function (although that patch does not remove it). Also the output of > > these commands does not display the leading .qmail (as the old commands > > did), this is probably correct for both file and SQL backends. > > THANKS! > > > > Note: I also have a patch which is the same as 1) but does not call the > > files in the users .qmail, instead calls them .vpopmail files. I > > personaly prefer .qmail files so vpopmail looks like a qmail installation > > as far as users are concerned. > > I have mixed feelings about this. I'm sure Charles Cazabon on the qmail > list would rejoice if we did this. On the other hand we seem to be > moving towards having all the functionality of .qmail files built into > vdelivermail, which would also take care of his objections. > > The best solution would probably be to read both .vpopmail and .qmail > files in the user directories, and start naming files executed by > vdelivermail .vpopmail. I'd like to see this patch... > > > If there are any bugs in these patches, please let me know. > > I hope to find some time this weekend. There are a number of features > I've wished for for quite some time... > > THANKS! > Rick > diff -uPr vpopmail-5.4.13.orig/vdelivermail.c vpopmail-5.4.13/vdelivermail.c --- vpopmail-5.4.13.orig/vdelivermail.c 2005-09-02 19:47:29.0 +0100 +++ vpopmail-5.4.13/vdelivermail.c 2005-12-16 21:39:15.0 + @@ -62,6 +62,7 @@ #ifdef QMAIL_EXT /* the User with '-' and following chars out if any */ char TheUserExt[AUTH_SIZE]; +char TheExt[AUTH_SIZE]; #endif #define FILE_SIZE 156 @@ -217,6 +218,11 @@ vexit(EXIT_BOUNCE); } +strncpy(TheExt, &TheUser[i+1], AUTH_SIZE); +for (i = 0; (TheExt[i] != 0); i++) { + if (TheExt[i] == '.') TheExt[i] = ':'; +} + #endif vget_assign(TheDomain, TheDomainDir, sizeof(TheDomainDir), &TheDomainUid, &TheDomainGid); @@ -697,16 +703,48 @@ chdir(dir); +#ifdef QMAIL_EXT /* format the file name */ -if ( (fs = fopen(".qmail","r")) == NULL ) { +if (strlen(TheExt)) { +strcpy(tmpbuf,".qmail-"); +str
Re: [vchkpw] 5.4.17 patches
Tom, The first patch implements .qmail-extension files (and also the -default variations). This is useful for me because it means that any special delivery rules created for a user can all be put in the users own directory, when the user is deleted all the special rules go aswell. As far as the second patch goes, it just implements what I think is a missing feature from the commandline 'valias', and that is the ability to remove a line from an alias (either .qmail file or SQL backend). This patch also removes the SQL only restriction. I know most of the community only want to use SQL backends, I however do not, so I have been patching vpopmail for a while now so the file backend works. While scanning the vpopmaild.c code, I noticed a comment in there that the list_alias and list_lists commands needed re-writing to use the new valias code, this is what I have done. This removes the need for the bkscandir function (although that patch does not remove it). Also the output of these commands does not display the leading .qmail (as the old commands did), this is probably correct for both file and SQL backends. Patches attached :- 1) vpopmail-5.4.13-dot-qmail.patch - Implements .qmail-extension (etc) in the users directory. 2) vpopmail-5.4.13-deliveredto.patch - Some changes to how the Delivered-To: header line is inserted into an E-Mail, this patch is needed to handle E-Mails delivered using the above patch (maildir_to_email can return a blank result). 3) vpopmail-5.4.17-valias.patch - Changes to valias to remove SQL only restriction and implement alias line removal. 4) vpopmail-5.4.17-vpopmaild.patch - Implements list_alias and list_lists commands using the new valias code. Note: I also have a patch which is the same as 1) but does not call the files in the users .qmail, instead calls them .vpopmail files. I personaly prefer .qmail files so vpopmail looks like a qmail installation as far as users are concerned. If there are any bugs in these patches, please let me know. On Mon, 11 Dec 2006, Tom Collins wrote: > On Dec 11, 2006, at 3:25 AM, [EMAIL PROTECTED] wrote: > > I have a patch for implementing personal .qmail files (.qmail files > > inside > > the user directory and not just in the domain directory), I also > > have a > > variation on this patch to name these .vpopmail files. > > > > I also have a patch which implements alias line removal in valias.c > > (-r > > flag), removal of SQL aliases only and adding alias line removal in > > vpalias.c (function valias_remove()). > > > > I also have a patch which changes vpopmaild.c to use the new valias > > code > > (as requested in vpopmaild.c - as a comment). > > > > Does anyone want these patches - I did not want to litter the list > > with > > them. I had sent the first one to the list before which while it > > provoked a discussion got forgotten. I find them all VERY useful. > > We're definitely interested. I maintain the 5.4 releases, and have > 5.4.18 waiting to be released. It includes a lot of changes by Rick > Widmer, and patches by Peter Pentchev. > > I'm not sure I understand the first one though -- vdelivermail and > qmailadmin already support a .qmail file in the user's directory. > Are you talking about .qmail-extension files? > > -- > Tom Collins - [EMAIL PROTECTED] > Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/ > QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/ > > > diff -uPr vpopmail-5.4.13.orig/vdelivermail.c vpopmail-5.4.13/vdelivermail.c --- vpopmail-5.4.13.orig/vdelivermail.c 2005-09-02 19:47:29.0 +0100 +++ vpopmail-5.4.13/vdelivermail.c 2005-12-16 15:53:29.0 + @@ -62,6 +62,7 @@ #ifdef QMAIL_EXT /* the User with '-' and following chars out if any */ char TheUserExt[AUTH_SIZE]; +char TheExt[AUTH_SIZE]; #endif #define FILE_SIZE 156 @@ -217,6 +218,11 @@ vexit(EXIT_BOUNCE); } +strncpy(TheExt, &TheUser[i+1], AUTH_SIZE); +for (i = 0; (TheExt[i] != 0); i++) { + if (TheExt[i] == '.') TheExt[i] = ':'; +} + #endif vget_assign(TheDomain, TheDomainDir, sizeof(TheDomainDir), &TheDomainUid, &TheDomainGid); @@ -697,16 +703,36 @@ chdir(dir); +#ifdef QMAIL_EXT /* format the file name */ -if ( (fs = fopen(".qmail","r")) == NULL ) { +if (strlen(TheExt)) { +strcpy(tmpbuf,".qmail-"); +strcat(tmpbuf,TheExt); +if ( (fs = fopen(tmpbuf,"r")) == NULL ) { +for (i=strlen(TheExt);i>=0;--i) { +if (!i || TheExt[i-1]=='-') { +strcpy(tmpbuf,".qmail-"); +strncat(tmpbuf,TheExt,i); +
[vchkpw] 5.4.17 patches
I have a patch for implementing personal .qmail files (.qmail files inside the user directory and not just in the domain directory), I also have a variation on this patch to name these .vpopmail files. I also have a patch which implements alias line removal in valias.c (-r flag), removal of SQL aliases only and adding alias line removal in vpalias.c (function valias_remove()). I also have a patch which changes vpopmaild.c to use the new valias code (as requested in vpopmaild.c - as a comment). Does anyone want these patches - I did not want to litter the list with them. I had sent the first one to the list before which while it provoked a discussion got forgotten. I find them all VERY useful.
Re: [vchkpw] Unable to log into pop3 accounts
Jeremy, No unfortunately it didnt. Regards .. Leonard - Original Message - From: Jeremy Kitchen To: vchkpw@inter7.com Sent: Friday, June 09, 2006 12:41 PM Subject: Re: [vchkpw] Unable to log into pop3 accounts
Re: [vchkpw] Unable to log into pop3 accounts
Remeo, Referring to: Bill's Linux Qmail Toaster? I will bookmark it and so i guess maybe i should unmerge vpopmail also? or just compare the setup, etc to whats in this guide? Thanks! Regards .. Leonard Original Message From: Remo Mattei To: vchkpw@inter7.com Sent: Friday, June 09, 2006 11:35 AM Subject: Re: [vchkpw] Unable to log into pop3 accounts I would use shupp.org guide very good. you will need to adjusted a little for your gentoo box. I have done that while back and it works well. remo Leonard Vpopmail wrote: Remo and folks, For the time being i decided to remove qmail-pop3d from the svscan run and just run with imap-pop3 .. i dont use vpopmail learning; never heard of it either :) So this will suit the need and is still safe, no risks so i'm content with this .. No i will go ahead and eventually remove Gentoo's install of qmail, but is there a guide anywhere OFF Gentoos website to blend together Qmail with vpopmail? Is Gentoo's vpopmail of to run with the lwq qmail install? I appreciate all your help thus far. PS i realize that this topic didnt belong here and thank you for not kicking my teeth in for it :) Regards, Leonard Regards .. Leonard Original Message From: Remo Mattei To: vchkpw@inter7.com <mailto:vchkpw@inter7.com> Sent: Friday, June 09, 2006 11:23 AM Subject: Re: [vchkpw] Unable to log into pop3 accounts I would use qmail-pop3 because if you want to use vpopmail learning password for example.. you will not be able to use it with imap-pop3 Just my 2 cents.. remo Leonard Vpopmail wrote: Ok .. So after stopping svscan and starting ipmap/pop3, I was able to login and pop3 with no problems.. Maybe I should remove the qmail-pop3d and use the imap-pop3 .. Any suggestions other then tearing this box apart just now? Id like to end the week of easy and attack this next week... Lenny .. -Original Message- From: Jeremy Kitchen [mailto:[EMAIL PROTECTED] Sent: Thursday, June 08, 2006 9:05 PM To: vchkpw@inter7.com <mailto:vchkpw@inter7.com> Subject: Re: [vchkpw] Unable to log into pop3 accounts On Thursday 08 June 2006 16:32, Leonard Vpopmail wrote: did you restart the service after increasing the softlimit? whoa that's looking suspiciously like gentoo's qmail ebuilds. If this is the case, stop now before you get yourself too confused. remove gentoo's qmail ebuilds and go to www.lifewithqmail.org <http://www.lifewithqmail.org> gentoo's qmail ebuilds are absolutely horrid, and should not be used, by anyone. I am a gentoo user, so don't think I'm just spouting some anti-gentoo propoganda. that's not right... take that /bin/true out of there. *sigh* this is why I hate those ebuilds. -Jeremy
Re: [vchkpw] Unable to log into pop3 accounts
Remo and folks, For the time being i decided to remove qmail-pop3d from the svscan run and just run with imap-pop3 .. i dont use vpopmail learning; never heard of it either :) So this will suit the need and is still safe, no risks so i'm content with this .. No i will go ahead and eventually remove Gentoo's install of qmail, but is there a guide anywhere OFF Gentoos website to blend together Qmail with vpopmail? Is Gentoo's vpopmail of to run with the lwq qmail install? I appreciate all your help thus far. PS i realize that this topic didnt belong here and thank you for not kicking my teeth in for it :) Regards, Leonard Regards ..Leonard Original Message From: Remo MatteiTo: vchkpw@inter7.comSent: Friday, June 09, 2006 11:23 AMSubject: Re: [vchkpw] Unable to log into pop3 accounts> I would use qmail-pop3 because if you want to use vpopmail learning> password for example.. you will not be able to use it with imap-pop3> > Just my 2 cents..> remo> Leonard Vpopmail wrote:>> Ok ..>> >> So after stopping svscan and starting ipmap/pop3, I was able to>> login and pop3 with no problems..>> >> Maybe I should remove the qmail-pop3d and use the imap-pop3 ..>> >> Any suggestions other then tearing this box apart just now? Id like>> to end the week of easy and attack this next week...>> >> Lenny ..>> >> -Original Message->> From: Jeremy Kitchen [mailto:[EMAIL PROTECTED]>> Sent: Thursday, June 08, 2006 9:05 PM>> To: vchkpw@inter7.com>> Subject: Re: [vchkpw] Unable to log into pop3 accounts>> >> On Thursday 08 June 2006 16:32, Leonard Vpopmail wrote:>> >> >> did you restart the service after increasing the softlimit?>> >> >> >> whoa that's looking suspiciously like gentoo's qmail ebuilds.>> >> If this is the case, stop now before you get yourself too confused.>> >> remove gentoo's qmail ebuilds and go to www.lifewithqmail.org>> >> gentoo's qmail ebuilds are absolutely horrid, and should not be>> used, by anyone. I am a gentoo user, so don't think I'm just>> spouting some anti-gentoo propoganda.>> >> >> >> that's not right... take that /bin/true out of there.>> >> *sigh* this is why I hate those ebuilds.>> >> -Jeremy
RE: [vchkpw] Unable to log into pop3 accounts
Ok .. So after stopping svscan and starting ipmap/pop3, I was able to login and pop3 with no problems.. Maybe I should remove the qmail-pop3d and use the imap-pop3 .. Any suggestions other then tearing this box apart just now? Id like to end the week of easy and attack this next week... Lenny .. -Original Message- From: Jeremy Kitchen [mailto:[EMAIL PROTECTED] Sent: Thursday, June 08, 2006 9:05 PM To: vchkpw@inter7.com Subject: Re: [vchkpw] Unable to log into pop3 accounts On Thursday 08 June 2006 16:32, Leonard Vpopmail wrote: > Hello Rick, > > I raised soflimit and gave it a go; no dice telnetting .. did you restart the service after increasing the softlimit? > qmaill2969 0.0 0.0 1244 288 ?S13:26 0:00 > /usr/bin/multilog t s250 n10 /var/log/qmail/qmail-pop3d > root 8547 0.0 0.0 1440 484 ?S19:08 0:00 > /usr/bin/tcpserver -p -v -H -R -l 0 -x /etc/tcprules.d/tcp.qmail-pop3.cdb whoa that's looking suspiciously like gentoo's qmail ebuilds. If this is the case, stop now before you get yourself too confused. remove gentoo's qmail ebuilds and go to www.lifewithqmail.org gentoo's qmail ebuilds are absolutely horrid, and should not be used, by anyone. I am a gentoo user, so don't think I'm just spouting some anti-gentoo propoganda. > -c 20 0.0.0.0 pop3 /var/qmail/bin/qmail-popup mydomain.com > /var/vpopmail/bin/vchkpw pcns.mydomain.com /var/vpopmail/bin/vchkpw > /bin/true /var/qmail/bin/qmail-pop3d that's not right... take that /bin/true out of there. *sigh* this is why I hate those ebuilds. -Jeremy -- Jeremy Kitchen ++ [EMAIL PROTECTED] http://www.pirate-party.us/ -- defend your rights
RE: [vchkpw] Unable to log into pop3 accounts
Jeremy, Yes I restarted the services, always do since I still use the "qmailctl" script from my original qmail install. I was afraid you would suggest this :( No I know your not bashing anything; ive heard the same before. I had qmail setup on this box just as expressed on that site and then one day I decided to do it the Gentoo way and should have never did it .. So I will remove that /bin/true comment, but how deep should I go to remove the gentoo ebuilds? Just a simple emerge -C qmail-vpopmail? Is there nothing I can try without having to interrupt my environment just to get pop3 to work? What in your opinion may be some lingering bugs that you know of? Thanks again folks, really appreciated. Regards, Leonard Bernstein -Original Message- From: Jeremy Kitchen [mailto:[EMAIL PROTECTED] Sent: Thursday, June 08, 2006 9:05 PM To: vchkpw@inter7.com Subject: Re: [vchkpw] Unable to log into pop3 accounts On Thursday 08 June 2006 16:32, Leonard Vpopmail wrote: > Hello Rick, > > I raised soflimit and gave it a go; no dice telnetting .. did you restart the service after increasing the softlimit? > qmaill2969 0.0 0.0 1244 288 ?S13:26 0:00 > /usr/bin/multilog t s250 n10 /var/log/qmail/qmail-pop3d > root 8547 0.0 0.0 1440 484 ?S19:08 0:00 > /usr/bin/tcpserver -p -v -H -R -l 0 -x /etc/tcprules.d/tcp.qmail-pop3.cdb whoa that's looking suspiciously like gentoo's qmail ebuilds. If this is the case, stop now before you get yourself too confused. remove gentoo's qmail ebuilds and go to www.lifewithqmail.org gentoo's qmail ebuilds are absolutely horrid, and should not be used, by anyone. I am a gentoo user, so don't think I'm just spouting some anti-gentoo propoganda. > -c 20 0.0.0.0 pop3 /var/qmail/bin/qmail-popup mydomain.com > /var/vpopmail/bin/vchkpw pcns.mydomain.com /var/vpopmail/bin/vchkpw > /bin/true /var/qmail/bin/qmail-pop3d that's not right... take that /bin/true out of there. *sigh* this is why I hate those ebuilds. -Jeremy -- Jeremy Kitchen ++ [EMAIL PROTECTED] http://www.pirate-party.us/ -- defend your rights
RE: [vchkpw] Unable to log into pop3 accounts
Hello Rick, I raised soflimit and gave it a go; no dice telnetting .. As for services and who its running as .. #ps waux | grep pop3 root 2965 0.0 0.0 1228 280 ?S13:26 0:00 supervise qmail-pop3d qmaill2969 0.0 0.0 1244 288 ?S13:26 0:00 /usr/bin/multilog t s250 n10 /var/log/qmail/qmail-pop3d root 8547 0.0 0.0 1440 484 ?S19:08 0:00 /usr/bin/tcpserver -p -v -H -R -l 0 -x /etc/tcprules.d/tcp.qmail-pop3.cdb -c 20 0.0.0.0 pop3 /var/qmail/bin/qmail-popup mydomain.com /var/vpopmail/bin/vchkpw pcns.mydomain.com /var/vpopmail/bin/vchkpw /bin/true /var/qmail/bin/qmail-pop3d root 8649 0.0 0.0 1432 512 pty/s1 S+ 19:14 0:00 grep pop3 Oddly enough, I don't have a vchkpw group .. Is this the correct output? Regards, Leonard -Original Message- From: Rick Macdougall [mailto:[EMAIL PROTECTED] Sent: Thursday, June 08, 2006 7:17 PM To: vchkpw@inter7.com Subject: Re: [vchkpw] Unable to log into pop3 accounts Leonard Vpopmail wrote: > Jeremy, > > Tell me about those generic errors huh .. :) > > As for doing it externally .. I tried it.. even on my Smartphone and imagine > they passed the corny generics to those devices also :P > > So its almost as the services aren't running. It's not ports or anything; > I'm sure of this, I went through it totally. > > Telnetting with the login info; right after the pass I get "connection > closed" > > What else should I look at? See if you are running with a soft limit and see if you are running the service with the correct uid and gid (vpopmail:vchkpw). Regards, Rick
RE: [vchkpw] Unable to log into pop3 accounts
Jeremy, Tell me about those generic errors huh .. :) As for doing it externally .. I tried it.. even on my Smartphone and imagine they passed the corny generics to those devices also :P So its almost as the services aren't running. It's not ports or anything; I'm sure of this, I went through it totally. Telnetting with the login info; right after the pass I get "connection closed" What else should I look at? Regards, Leonard. -Original Message- From: Jeremy Kitchen [mailto:[EMAIL PROTECTED] Sent: Thursday, June 08, 2006 6:10 PM To: vchkpw@inter7.com Subject: Re: [vchkpw] Unable to log into pop3 accounts On Thursday 08 June 2006 13:07, Leonard Vpopmail wrote: > #Log onto incoming mail server (POP3): Outlook could not logon to the > incoming mail server(POP3). Please verify the settings for User Name, > Password and E-mail fields. gotta love outhouse's vague error messages. > #Mail logs show: Jun 8 12:34:35 [vpopmail] vchkpw-pop3: (PLAIN) login > success [EMAIL PROTECTED]:192.168.2.1 > So all seems well, but it isn't. The mailbox does exist and the tcpserver > is running on 110. Port is open and I'm a little lost . :-( try testing the account with telnet: telnet localhost 110 user username pass password list retr 1 also, try testing this from outside as well, in case there is a firewall or port forwarding issue. -Jeremy -- Jeremy Kitchen ++ [EMAIL PROTECTED] http://www.pirate-party.us/ -- defend your rights
[vchkpw] Unable to log into pop3 accounts
Hello List, I have a simple situation, I'm just unsure as to how to correct it J I have an environment that uses primarily IMAP in a Qmail/Vpopmail platform. Today I needed to assign a pop3 account and its seemed well until trying to log into the pop3 account. Mail can be sent by the user using the pop3 account, but not receiving .. The error in Outlook is the generic as always: #Log onto incoming mail server (POP3): Outlook could not logon to the incoming mail server(POP3). Please verify the settings for User Name, Password and E-mail fields. #Mail logs show: Jun 8 12:34:35 [vpopmail] vchkpw-pop3: (PLAIN) login success [EMAIL PROTECTED]:192.168.2.1 So all seems well, but it isn’t. The mailbox does exist and the tcpserver is running on 110. Port is open and I'm a little lost . L Anyone have any ideas? Thanks in advance J Lenny
[vchkpw] Per user .qmail files patch for 5.4.15
Just in case anyone was using them attached are the patches for 5.4.15 to enable per-user .qmail files. I use per user .qmail files in a live environment so have to do these patch files anyway. diff -uPr vpopmail-5.4.15.orig/vdelivermail.c vpopmail-5.4.15/vdelivermail.c --- vpopmail-5.4.15.orig/vdelivermail.c 2005-11-19 16:24:22.0 + +++ vpopmail-5.4.15/vdelivermail.c 2006-03-14 15:51:31.0 + @@ -62,6 +62,7 @@ #ifdef QMAIL_EXT /* the User with '-' and following chars out if any */ char TheUserExt[AUTH_SIZE]; +char TheExt[AUTH_SIZE]; #endif #define FILE_SIZE 156 @@ -217,6 +218,11 @@ vexit(EXIT_BOUNCE); } +strncpy(TheExt, &TheUser[i+1], AUTH_SIZE); +for (i = 0; (TheExt[i] != 0); i++) { + if (TheExt[i] == '.') TheExt[i] = ':'; +} + #endif vget_assign(TheDomain, TheDomainDir, sizeof(TheDomainDir), &TheDomainUid, &TheDomainGid); @@ -698,14 +704,34 @@ chdir(dir); /* format the file name */ -if ( (fs = fopen(".qmail","r")) == NULL ) { - -/* no file, so just return */ -return(-1); +#ifdef QMAIL_EXT +if (strlen(TheExt)) { + strcpy(tmpbuf,".qmail-"); + strcat(tmpbuf,TheExt); + if ( (fs = fopen(tmpbuf,"r")) == NULL ) { + for (i = strlen(TheExt);i>=0;i--) { + if (!i || TheExt[i-1]=='-') { + strcpy(tmpbuf,".qmail-"); + strncat(tmpbuf,TheExt,i); + strcat(tmpbuf,"default"); + if ( (fs = fopen(tmpbuf,"r")) != NULL ) { + break; + } + } + } + } +} else { + fs = fopen(".qmail","r"); } +#else +fs = fopen(".qmail","r"); +#endif -/* format a simple loop checker name */ -snprintf(tmpbuf, sizeof(tmpbuf), "[EMAIL PROTECTED]", TheUser, TheDomain); +/* no .qmail file at all */ +if (fs == NULL) { + /* no file, so just return */ + return(-1); +} /* read the file, line by line */ while ( fgets(qmail_line, sizeof(qmail_line), fs ) != NULL ) { @@ -719,14 +745,6 @@ if (qmail_line[i] == '\n') qmail_line[i] = 0; } -/* simple loop check, if they are sending it to themselves - * then skip this line - */ -if ( strcmp( qmail_line, tmpbuf) == 0 ) continue; -/* check for &[EMAIL PROTECTED] as well */ -if ((*qmail_line == '&') && (strcmp (qmail_line + 1, tmpbuf) == 0)) -continue; - deliver_mail(qmail_line, ""); return_value = 1; diff -uPr vpopmail-5.4.15.orig/vdelivermail.c vpopmail-5.4.15/vdelivermail.c --- vpopmail-5.4.15.orig/vdelivermail.c 2006-03-14 15:51:31.0 + +++ vpopmail-5.4.15/vdelivermail.c 2006-03-14 15:59:07.0 + @@ -505,6 +505,7 @@ FILE *fs; char tmp_file[256]; char maildirquota[80]; + char *email; /* This is a comment, ignore it */ if ( *address == '#' ) return; @@ -603,15 +604,19 @@ } #endif + /* Get the email address from the maildir */ + email = maildir_to_email(address); + /* Set the Delivered-To: header */ -if ( strcmp( address, bounce) == 0 ) { +if ( strcmp( address, bounce ) == 0 || +strcmp( email, "" ) == 0 ) { snprintf(DeliveredTo, sizeof(DeliveredTo), "%sDelivered-To: [EMAIL PROTECTED]", getenv("RPLINE"), TheUser, TheDomain); } else { snprintf(DeliveredTo, sizeof(DeliveredTo), "%sDelivered-To: %s\n", getenv("RPLINE"), -maildir_to_email(address)); +email); } switch (deliver_to_maildir (address, DeliveredTo, 0, message_size)) {
[vchkpw] Re: vpopmail-5.4.13
I could not figure out why only MySQL can now be used for valias only, so I just created a patch to 5.4.13 to remove this check (I still use valias in the form of .qmail files). Patch attached. diff -uPr vpopmail-5.4.13.orig/configure vpopmail-5.4.13/configure --- vpopmail-5.4.13.orig/configure 2005-09-17 00:37:34.0 +0100 +++ vpopmail-5.4.13/configure 2005-10-21 13:45:43.0 +0100 @@ -6584,19 +6584,19 @@ 1*|y*|Y*) echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6 -if test "$USE_MYSQL" != 1 -then -{ { echo "$as_me:$LINENO: error: valias is only supported in the MySQL authentication module" >&5 -echo "$as_me: error: valias is only supported in the MySQL authentication module" >&2;} - { (exit 1); exit 1; }; } -else +#if test "$USE_MYSQL" != 1 +#then +#{ { echo "$as_me:$LINENO: error: valias is only supported in the MySQL authentication module" >&5 +#echo "$as_me: error: valias is only supported in the MySQL authentication module" >&2;} +# { (exit 1); exit 1; }; } +#else VALIAS=1 cat >>confdefs.h <<_ACEOF #define VALIAS $VALIAS _ACEOF -fi +#fi ;; *) echo "$as_me:$LINENO: result: no" >&5
Re: [vchkpw] listing over-quota users
but wait, there is more!. :) in squirrelmail try moving a big email from inbox to some folder. open that folder and delete the email. quota usage won't change as it should. effectively, deletion from any folder other than INBOX will not change quota usage. there is plenty of inconsistencies like that all over the place. I realized that taking care of quota recalculation and other maintenance activities should be performed via scripts. -- Igor On Fri, Mar 11, 2005 at 04:06:41PM -0500, Charles Sprickman wrote: -> On Fri, 11 Mar 2005 [EMAIL PROTECTED] wrote: -> -> >this is a listing of a sample Maildir directory on my server. it has all -> >these files and directories that have to do with courier IMAP. while -> >they don't take much in some cases, sometimes they can take a couple of -> >percent from the overall quota. in addition there are two directories -> >(IMAP folders) .Junk (where all spam is forwarded) and .Trash (courier -> >IMAP/squirrelmail default trash +folder). -> -> Doh! Now I see why I'm off so much. I forgot about .Trash not being -> counted. I'll have to revamp things to account for that. -> -> Thanks! -> -> Charles -> -> -> >-- -> >Igor -> > -> > -> >On Thu, Mar 10, 2005 at 07:26:10PM -0500, Charles Sprickman wrote: -> >-> On Wed, 9 Mar 2005 [EMAIL PROTECTED] wrote: -> >-> -> >-> >this method is of course fast and dirty, but it might not work for -> >-> >everyone out there. -> >-> > -> >-> >the best aproach is to write a perl script that runs queries on a -> >-> >database, gets path to a user's mailbox on the server, uses File::Find -> >-> >to include only files in Maildir/cur and Maildir/new as well as -> >-> >:subfolders:/cur and :subfolders:/new with the exception of trash -> >-> >folders. that should give a much clearer picture. in addition it can -> >-> >scale better. -> >-> -> >-> I have something similar, but it's not very generic, so I don't know if -> >-> anyone would be interested. I've added a few fields to the vpopmail -> >table -> >-> to record when they first hit quota so I can get a report (quick php -> >page) -> >-> of who's over and for how long. -> >-> -> >-> To get usage, I'm just hitting the user's homedir with du, can you -> >comment -> >-> a bit on why I would need to count only the mail? There shouldn't -> >really -> >-> be anything of note in the user's directory besides the mail... -> >-> -> >-> It is quite interesting to see how much the "real" usage (provided by -> >du) -> >-> can differ from the maildirsize info. -> >-> -> >-> Charles -> >-> -> >-> >-- -> >-> >Igor -> >-> > -> >-> > -> >-> >On Wed, Mar 09, 2005 at 08:08:10AM -0800, Charles J. Boening wrote: -> >-> >-> Here's what I do. I don't have too many domains or users do it -> >doesn't -> >-> >-> take too long. -> >-> >-> -> >-> >-> du -sk /home/vpopmail/domains/*/*/Maildir > /tmp/maildirusage && du -> >-sk -> >-> >-> /home/vpopmail/domains/*/*/*/Maildir >> /tmp/maildirusage && cat -> >-> >-> /tmp/maildirusage | sort -n | tail -n50 | sort -n -r | mail -s "Mail -> >-> >-> User Quota" -> >-> >-> -> >-> >-> -> >-> >-> This only gets the top 50 users. You can change it easily. I don't -> >-> >-> think it would be very efficient for multiple domains. In that -> >case you -> >-> >-> may want to break it up into a run for each domain. -> >-> >-> -> >-> >-> I'd definitely like to see something more efficient :) -> >-> >-> -> >-> >-> -> >-> >-> Charlie -> >-> >-> -> >-> >-> -> >-> >-> -> >-> >-> -> >-> >-> -> >-> >-> From: Tanmaya Anand [mailto:[EMAIL PROTECTED] -> >-> >-> Sent: Tuesday, March 08, 2005 11:44 PM -> >-> >-> To: vchkpw@inter7.com -> >-> >-> Subject: [vchkpw] listing over-quota users -> >-> >-> -> >-> >-> -> >-> >-> -> >-> >-> Hi -> >-> >-> -> >-> >-> I need to list all over-quota users on the system for all -> >-> >-> domains. -> >-> >-> Can anyone help me with some similiar perl / shell script to -> >get -> >-> >-> this done. -> >-> >-> -> >-> >-> Regards, -> >-> >-> Tanmaya -> >-> >-> -> >-> >-> -> >-> >-> -> >-> >-> <http://clients.rediff.com/signature/track_sig.asp> -> >-> >-> -> >-> >-> -> >-> > -> >
Re: [vchkpw] listing over-quota users
what I have set up might be a little different from you have, but take a look at this: # ls -al total 26 drwx-- 12 vpopmail vchkpw 536 Nov 29 10:23 . drwx-- 3 vpopmail vchkpw 128 Sep 28 17:23 .. -rw--- 1 vpopmail vchkpw 775 Sep 18 2003 bincimap-cache -rw--- 1 vpopmail vchkpw 67 Jul 28 2003 bincimap-subscribed -rw--- 1 vpopmail vchkpw 56 Sep 18 2003 bincimap-uidvalidity drwxr-xr-x 2 vpopmail vchkpw 72 Aug 18 2004 courierimaphieracl drwx-- 2 vpopmail vchkpw 48 Nov 17 11:06 courierimapkeywords -rw-r--r-- 1 vpopmail vchkpw 58 Sep 24 2003 courierimapsubscribed -rw-r--r-- 1 vpopmail vchkpw 61 Nov 29 10:23 courierimapuiddb drwx-- 2 vpopmail vchkpw 112 Nov 29 10:29 cur drwx-- 6 vpopmail vchkpw 256 Aug 18 2004 .Drafts drwxr-xr-x 6 vpopmail vchkpw 224 Nov 15 17:12 .Junk -rw--- 1 vpopmail vchkpw 18 Mar 11 00:32 maildirsize drwx-- 2 vpopmail vchkpw 1120 Mar 5 03:05 new drwx-- 6 vpopmail vchkpw 256 Aug 18 2004 .Sent drwx-- 6 vpopmail vchkpw 224 Aug 18 2004 .test drwx-- 2 vpopmail vchkpw 48 Mar 5 03:05 tmp drwx-- 6 vpopmail vchkpw 328 Sep 13 12:42 .Trash this is a listing of a sample Maildir directory on my server. it has all these files and directories that have to do with courier IMAP. while they don't take much in some cases, sometimes they can take a couple of percent from the overall quota. in addition there are two directories (IMAP folders) .Junk (where all spam is forwarded) and .Trash (courier IMAP/squirrelmail default trash +folder). when you use squirrelmail to delete an email, it gets forwarded to .Trash, and maildirsize file is changed to not count this email +against quota. in addition, spam can quickly fill .Junk and the user will not be able to receive good email messages. so, the policy in my +place is to count only good email that sits anywhere but .Junk and .Trash. Also, to prevent users from having gigantic number of messages in +these two directories - there is a script that deletes anything that's older than 7 days in these two directories. -- Igor On Thu, Mar 10, 2005 at 07:26:10PM -0500, Charles Sprickman wrote: -> On Wed, 9 Mar 2005 [EMAIL PROTECTED] wrote: -> -> >this method is of course fast and dirty, but it might not work for -> >everyone out there. -> > -> >the best aproach is to write a perl script that runs queries on a -> >database, gets path to a user's mailbox on the server, uses File::Find -> >to include only files in Maildir/cur and Maildir/new as well as -> >:subfolders:/cur and :subfolders:/new with the exception of trash -> >folders. that should give a much clearer picture. in addition it can -> >scale better. -> -> I have something similar, but it's not very generic, so I don't know if -> anyone would be interested. I've added a few fields to the vpopmail table -> to record when they first hi
Re: [vchkpw] listing over-quota users
this method is of course fast and dirty, but it might not work for everyone out there. the best aproach is to write a perl script that runs queries on a database, gets path to a user's mailbox on the server, uses File::Find to include only files in Maildir/cur and Maildir/new as well as :subfolders:/cur and :subfolders:/new with the exception of trash folders. that should give a much clearer picture. in addition it can scale better. -- Igor On Wed, Mar 09, 2005 at 08:08:10AM -0800, Charles J. Boening wrote: -> Here's what I do. I don't have too many domains or users do it doesn't -> take too long. -> -> du -sk /home/vpopmail/domains/*/*/Maildir > /tmp/maildirusage && du -sk -> /home/vpopmail/domains/*/*/*/Maildir >> /tmp/maildirusage && cat -> /tmp/maildirusage | sort -n | tail -n50 | sort -n -r | mail -s "Mail -> User Quota" -> -> -> This only gets the top 50 users. You can change it easily. I don't -> think it would be very efficient for multiple domains. In that case you -> may want to break it up into a run for each domain. -> -> I'd definitely like to see something more efficient :) -> -> -> Charlie -> -> -> -> -> -> From: Tanmaya Anand [mailto:[EMAIL PROTECTED] -> Sent: Tuesday, March 08, 2005 11:44 PM -> To: vchkpw@inter7.com -> Subject: [vchkpw] listing over-quota users -> -> -> -> Hi -> -> I need to list all over-quota users on the system for all -> domains. -> Can anyone help me with some similiar perl / shell script to get -> this done. -> -> Regards, -> Tanmaya -> -> -> -> <http://clients.rediff.com/signature/track_sig.asp> -> ->
Re: [vchkpw] SpamAssassin spam NOT detected.
this is vpopmail mailing list. spamassasin has its own. http://wiki.apache.org/spamassassin/MailingLists -- Igor On Wed, Mar 02, 2005 at 04:51:22PM +0200, Samir Noshy wrote: -> Hi Everybody, -> -> Do anyone know why that spam not marked as spam ? -> -> I know that the score less than the required score that I specified, how can -> I make the autolearn of this type of messages to be yes not no i.e. -> (autolearn= "ham", or "spam") ? -> -> -> -> The Message spam headers: -> .. -> .. -> .. -> -> X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on qmail -> X-Spam-Level: ** -> X-Spam-Status: No, score=2.5 required=4.0 tests=DRUGS_ERECTILE, -> FROM_ENDS_IN_NUMS,SUBJECT_DRUG_GAP_C autolearn=no version=3.0.2 -> -> -> -> Thanks and Best Regards. -> -> Samir Noshy -> -> ->
Re: [vchkpw] User is over quota (whithout beeing over quota)
> Do note quote me on this, but i _believe_ the way to fix this is to > remove the quota file, and it should be rebuild on the next delivery. > Yes. It solved the problem. every night i run a 30 20 * * * find /var/vpopmail/domains -name maildirsize -exec rm -f {} \; from cron to remove the maildirsize files. They are growing corrupted during the time. Why i didn't applied the qmail-pop3d patch: The patch file, netqmail-maildir++.patch*, which was supposed to fix the problem, caused qmail-pop3d to duplicate the messages when the pop3 clients were trying to download them from the server. So i had to keep using the original version of the qmail-pop3d binary. Thank you, bruno. * the autor of qmail-maildir++.patch sent me this new patch called netqmail- maildir++.patch to be installed over the netqmail package. - Este e-mail foi enviado pelo Webmail Plugway http://www.plugway.com.br
[vchkpw] User is over quota (whithout beeing over quota)
Hi guys, My users are reporting me they are receiving a warning message that they are over their user quota, but they know they are not over quota. Do you know some issue related to maildir quotas and vpopmail? I know about the qmail-pop3d-maildirquota.patch.gz file. In fact i've applied it over qmail but i started receiving duplicated (or triplicated, or more) messages on that server, so i had to backup to my old unpatched qmail binaries. Any comment/idea? Thank you, Bruno Negrao - Este e-mail foi enviado pelo Webmail Plugway http://www.plugway.com.br
[vchkpw] Clearopensmtp with sql
Hi guys im using a mysql table to story the ips that used for pop before smtp.. the Table is named "relay" when i do a clearopenrelay,.. no ip is deleted and no tcp.smtp.cdb file is recreated any idea? im using qmail vpopmail 5.4.1
[vchkpw] Segment Fault Clearopenrelay
hi guys, im using qmail,vpopmail 5.4.0 and psql. Im using pop before Smtp but it don't work.. The Ips get in the Database in a Table called relay but the table is not readed ( i think so) by tcpserver so it knows who is allowed to send email. When i do a '/var/qmail/vpopmail/bin/clearopensmtp' i get a 'Segment Fault'. i have monitor it with strace .. Here is what i get: lx0007:~# strace /var/qmail/vpopmail/bin/clearopensmtp execve("/var/qmail/vpopmail/bin/clearopensmtp", ["/var/qmail/vpopmail/bin/clearopensmtp"], [/* 15 vars */]) = 0 uname({sys="Linux", node="lx0007", ...}) = 0 brk(0) = 0x8057b28 open("/etc/ld.so.preload", O_RDONLY)= -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=12776, ...}) = 0 old_mmap(NULL, 12776, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40014000 close(3)= 0 open("/usr/lib/libpq.so.3", O_RDONLY) = 3 read(3, "[EMAIL PROTECTED]"..., 1024) = 1024 fstat64(3, {st_mode=S_IFREG|0644, st_size=81764, ...}) = 0 old_mmap(NULL, 80896, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40018000 mprotect(0x4002b000, 3072, PROT_NONE) = 0 old_mmap(0x4002b000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x13000) = 0x4002b000 close(3)= 0 open("/lib/libcrypt.so.1", O_RDONLY)= 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320\t\0"..., 1024) = 1024 fstat64(3, {st_mode=S_IFREG|0644, st_size=19136, ...}) = 0 old_mmap(NULL, 182044, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4002c000 mprotect(0x40031000, 161564, PROT_NONE) = 0 old_mmap(0x40031000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x4000) = 0x40031000 old_mmap(0x40032000, 157468, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40032000 close(3)= 0 open("/lib/libc.so.6", O_RDONLY)= 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\30\222"..., 1024) = 1024 fstat64(3, {st_mode=S_IFREG|0755, st_size=1153784, ...}) = 0 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40059000 old_mmap(NULL, 1166560, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4005a000 mprotect(0x4016d000, 40160, PROT_NONE) = 0 old_mmap(0x4016d000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x113000) = 0x4016d000 old_mmap(0x40173000, 15584, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40173000 close(3)= 0 open("/usr/lib/libssl.so.0.9.6", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\260\215"..., 1024) = 1024 fstat64(3, {st_mode=S_IFREG|0644, st_size=182084, ...}) = 0 old_mmap(NULL, 182848, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40177000 mprotect(0x401a1000, 10816, PROT_NONE) = 0 old_mmap(0x401a1000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x2a000) = 0x401a1000 close(3)= 0 open("/usr/lib/libcrypto.so.0.9.6", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\240\36"..., 1024) = 1024 fstat64(3, {st_mode=S_IFREG|0644, st_size=771908, ...}) = 0 old_mmap(NULL, 783840, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x401a4000 mprotect(0x40256000, 54752, PROT_NONE) = 0 old_mmap(0x40256000, 45056, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xb2000) = 0x40256000 old_mmap(0x40261000, 9696, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40261000 close(3)= 0 open("/usr/lib/libkrb5.so.3", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\260\360"..., 1024) = 1024 fstat64(3, {st_mode=S_IFREG|0644, st_size=348068, ...}) = 0 old_mmap(NULL, 347616, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40264000 mprotect(0x402b7000, 7648, PROT_NONE) = 0 old_mmap(0x402b7000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x53000) = 0x402b7000 close(3)= 0 open("/lib/libresolv.so.2", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\300\'\0"..., 1024) = 1024 fstat64(3, {st_mode=S_IFREG|0644, st_size=56480, ...}) = 0 old_mmap(NULL, 65312, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x402b9000 mprotect(0x402c6000, 12064, PROT_NONE) = 0 old_mmap(0x402c6000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xd000) = 0x402c6000 old_mmap(0x402c7000, 7968, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x402c7000 close(3)= 0 open("/lib/libnsl.so.1", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 ;\0\000"..., 1024) = 1024 fstat64(3, {st_mode=S_IFREG|0644, st_size=69472, ...}) = 0 ol
Re: [vchkpw] vpopmail with SA
Hi im using that howto for that: http://www.google.de/search?q=cache:MxZQmN41SL0J:sylvestre.ledru.info/howto/howto_qmail_spamassassin_with_pref.php+spamassassin+support+in+vpopmail&hl=de&ie=UTF-8 it works very good here .. but you must use qmail-scanner 1.16 for that. There is no patch aviable vor Version 1.20 Bye Am Do, den 05.02.2004 schrieb Jean um 13:23: > Hi, > > I just installed SpamAssassin in my vpopmail installation, with maildrop. > The thing is that the sample script (provided everywhere, including SA > distribution), uses the following command lines to get the users home dir: > > VHOME=`/var/vpopmail/pop/bin/vuserinfo -d [EMAIL PROTECTED] > > First, the path is not the default vpopmail installation (/home/vpopmail), > but I can live with that :P > > The problem is that the [EMAIL PROTECTED] variable provided by .qmail provides the > information in the form of "virtualhost-virtual_user"@domain. > So, for my [EMAIL PROTECTED] it provides: > [EMAIL PROTECTED] > > I'm using pretty much the default settings for everything, and i guess this > is the normal behaviour of qmail. Just wondering if i'm missing something > obvious or anyone has got around that. I am temporary using my full email on > the 'vuserinfo -d' command instead of the variables, but I didnt want to go > that way for each user. > > In case it matters, i'm using the latest stable version (vpopmail 5.4.0) > with netqmail-1.04, and the latest SA (2.63). > > thanks in advance! > > Jw. >
[vchkpw] vpopmail and postgresql error on valias
hi guys.. im getting a error when i try to create an alias on vpopmail 5.4.0.. im getting : lx0007:/usr/src/vpopmail-5.4.0# /var/qmail/vpopmail/bin/valias -i [EMAIL PROTECTED] [EMAIL PROTECTED] vpgsql:sql error[n]:ERROR: parser: parse error at or near "(" at character 112 vpgsql: sql error[j]: ERROR: Relation "valias" does not exist vpgsql:sql error[n]:ERROR: parser: parse error at or near "(" at character 112 vpgsql: sql error[k]: ERROR: Relation "valias" does not exist any idea ?
[vchkpw] stopping mail by domains and ips
Hello .. what would be the best way to block certain domain names or ips i guess from sending mail .. like is there a way to stop it at smtp connections? rather then receiving the message, it being for no one in my domain, qmail creating a bounce, and the bounce bouncing? In my search i found the following .. ftp://ftp.pipeline.com.au/pipeint/sources/linux/WebMail/qmail-badmailfrom-badrcptto.patch.txt My question is would i apply this patch the same way as indicated with vpopmail, which is: patch < ../qmail-badmailfrom-badrcptto.patch.txt Or would i have to apply something within the vpopmail home? Or is it best to just use /var/qmail/badmailfrom? thanks .. Regards
[vchkpw] Spamassassin + qmail + vpopmail + procmail + courier-imapd + squirrelmail + qmail-scanner + clamav
Hello list .. I tried the gentoo list with this problem, but no luck .. I have finally taken the shot at trying to get this working .. What is working? Qmail, vpopmail, courier-imapd, qmail-pop3d and squirrelmail, qmail-scanner, clamav(minor problems) this all works ... what I am trying to involve now is procmail and spamassassin there really isn't much documentation to get this all working especially under gentoo .. but I don't think there is much to configure with either of these packages .. .. so I was wondering if I'd get any help here .. I think that vpopmail being involved is what is confusing me .. most have the $HOME as /home/USER/.maildir well with vpopmail I have it as .. /var/vpopmail/domains/USER/Maildir/ and from there it is new, cur, etc .. also I do not see this X-Spam file anywhere? any help is appreciated .. thanks ..
[vchkpw] Bug in 5.3.20
After pulling my hair out attempting to figure out why password learning did not work, I looked at vchkpw.c to see what the problem was. It appears someone left a #ifdef FOOB write before password learning effectively disabling that feature. I simply removed the ifdef and recompiled and it worked. Just thought I should let someone know. --- vchkpw.c-orig Tue Aug 5 15:55:53 2003 +++ vchkpw.cTue Aug 5 16:04:03 2003 @@ -403,7 +403,6 @@ #endif -#ifdef FOOB #ifdef ENABLE_LEARN_PASSWORDS /* check for a valid vpopmail passwd field */ if ( vpw->pw_passwd==NULL||vpw->pw_passwd[0]==0) { @@ -420,7 +419,6 @@ TheName, IpAddr, LogLine); vchkpw_exit(15); } -#endif #endif
Re: [vchkpw] Re: smtp-auth
On Thu, 2002-10-24 at 15:35, Kit Halsted wrote: > > Somebody flame me if I'm wrong, but IIRC vpopmail 5.2.1 will not work > with SMTP-AUTH & Eudora. Eudora requires CRAM-MD5, so vpopmail 5.3.6 > looks like the minimum version for your requirements. (5.3.9 is up on > the dev page, 5.3.11 is the most current that I know of, 5.3.6 is > probably long gone.) Hrm, in researching more about my problem (vpopmail using the IP of the mail _client_ as the domain to authenticate against). I came across an interesting thread on the google groups. The type of error I'm encountering is this, BTW: Oct 24 12:06:36 kareem vpopmail[411]: vchkpw: vpopmail user not found testuser@:10.1.2.101 Is this the author of this post correct in saying that 5.2.1 has known bugs with respect to smtp-auth? http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&threadm=1L1c9.304668%24UU1.54038%40sccrnsc03&rnum=1&prev=/groups%3Fq%3D%2522vchkpw:%2Bvpopmail%2Buser%2Bnot%2Bfound%2522%26hl%3Den%26lr%3D%26ie%3DUTF-8%26oe%3DUTF-8%26selm%3D1L1c9.304668%2524UU1.54038%2540sccrnsc03%26rnum%3D1 I downloaded and installed vpopmail 5.3.9, but I'm still running into the same problem. Anyone have any ideas? Thanks, Bill
RE: [vchkpw] smtp-auth
On Wed, 2002-10-23 at 08:30, Clayton Weise wrote: > How do you startup qmail-smtpd? Hi Clayton, thanks for the reply. Tunc Gunergun noted that this behaviour is symptomatic of running qmail-smtpd without a hostname after it. Is that what you were thinking? But how does this effect the other vpopmail domains on that box if at all? I'll post my smtpd 'run' below (sorry for the poor formatting): --- #!/bin/sh . /usr/share/qmail/run-functions # If rblsmtpd is installed, process rbltimeout rbldomains, and antirbldomains if [ -x /usr/bin/rblsmtpd ]; then readdefault domains antirbldomains "" for domain in $domains; do rblopts="$rblopts -a $domain" done readdefault domains rbldomains "" for domain in $domains; do rblopts="$rblopts -r $domain" done readdefault timeout rbltimeout 60 if [ -n "$rblopts" ]; then rbl="/usr/bin/rblsmtpd -t $timeout $rblopts" fi fi # Start daemons. readdefault concurrency concurrencysmtpd 20 readdefault ulimitdata ulimitdata 200 exec \ softlimit -m $ulimitdata \ envuidgid qmaild \ tcpserver -DRUvX -c "$concurrency" -l "`head -1 /var/qmail/control/me`" \ -x /etc/tcpcontrol/smtp.cdb 0 smtp \ fixcrio $rbl qmail-smtpd /usr/local/vpopmail/bin/vchkpw /bin/true --- Thanks again for the reply, Bill
RE: [vchkpw] smtp-auth
On Thu, 2002-10-24 at 10:17, Clayton Weise wrote: > Yes, that's what I was referring to. The FQDN is there only for MD5-CRAM if > my memory serves correct. It is not actually used in any way for > authenticating the username. It's there for a challenge-response system. > The fact that it's missing from your startup would be why it wouldn't work > (or, work for any username/password combination in that case). Hrm, well, I'm presuming that in place of the FQDN, you can simply put in an IP address? This box is just in the testing phase so I've put the IP in for the host name. But now, rather than accept anything, it's refusing everything. I know the passwd that I'm testing with is good (I can verify it in my ~vpopmail/domains//vpasswd file), but it's just not giving me any love. The non-informative Evolution error message doesn't help at all either, so upon sniffing the network, I can see I'm getting a "535 authorization failed (#5.7.0)" error. Anyone have ideas on this one? Could it possibly that that whatever's trying to access ~vpopmail/bin/vchkpw isn't able to due to permission problems? Hmmm... Thanks again, Bill
RE: [vchkpw] smtp-auth
On Thu, 2002-10-24 at 11:10, Clayton Weise wrote: > Just stick your hostname in place of the IP address. I don't think an IP > will work.. I've never tried it though ;). Hrm, well, this is quite strange. It's taking the IP from which I'm trying to send the mail and putting that in place of the hostname of the domain that I'm trying to send from, which of course fails. For example, I'm trying to send an email to my personal email address from through that box but it's taking the internal IP of the machine that I'm sending it from: --- Oct 24 11:58:14 kareem vpopmail[337]: vchkpw: vpopmail user not found testuser@:10.1.2.101 --- So my workstation has an IP of 10.1.2.101, but I'm trying to send the email to my real email address using the account of '[EMAIL PROTECTED]'. This is vpopmail 5.2.1 -- I don't know if it has issues or not, but I've never heard of or seen this before. Thanks again, Bill
RE: [vchkpw] smtp-auth
On Wed, 2002-10-23 at 08:30, Clayton Weise wrote: > How do you startup qmail-smtpd? Hi Clayton, thanks for the reply. Tunc Gunergun noted that this behaviour is symptomatic of running qmail-smtpd without a hostname after it. Is that what you were thinking? But how does this effect the other vpopmail domains on that box if at all? I'll post my smtpd 'run' below (sorry for the poor formatting): --- #!/bin/sh . /usr/share/qmail/run-functions # If rblsmtpd is installed, process rbltimeout rbldomains, and antirbldomains if [ -x /usr/bin/rblsmtpd ]; then readdefault domains antirbldomains "" for domain in $domains; do rblopts="$rblopts -a $domain" done readdefault domains rbldomains "" for domain in $domains; do rblopts="$rblopts -r $domain" done readdefault timeout rbltimeout 60 if [ -n "$rblopts" ]; then rbl="/usr/bin/rblsmtpd -t $timeout $rblopts" fi fi # Start daemons. readdefault concurrency concurrencysmtpd 20 readdefault ulimitdata ulimitdata 200 exec \ softlimit -m $ulimitdata \ envuidgid qmaild \ tcpserver -DRUvX -c "$concurrency" -l "`head -1 /var/qmail/control/me`" \ -x /etc/tcpcontrol/smtp.cdb 0 smtp \ fixcrio $rbl qmail-smtpd /usr/local/vpopmail/bin/vchkpw /bin/true --- Thanks again for the reply, Bill
Re: [vchkpw] smtp-auth
On Tue, 2002-10-22 at 13:19, Tunc Gunergun wrote: > i think there is a problem with smtp-auth`s new version (0.31) Version > 0.30 is working very well. Has anybody tried the new version (0.31)? Yes, actuall, I'm having a problem with 0.31, but I don't know if it's due to this patch or something else. I've rebuilt bruceg's qmail RPM ( http://untroubled.org/qmail+patches/ ) and have updated it to use 0.31, but it appears that it's accepting mail even when prompted for the required username and password, you give it fudged values, i.e. a user account and passwd that I _know_ are invalid. It happily accepts these and sends out this mail -- not quite the sort of authentication I'd like :) Are you also seeing this behaviour with 0.31? Bill
Re: [vchkpw] Vpopmail Quota Warning
On Mon, 2002-10-21 at 19:54, Martin Chung wrote: > Hi, > > I am using vpopmail 5.2.1 and I did not modify the quota warning percentage (default >is 90%). When the quota reach or above 90%, a warning email will be sent to that user >and I found that there is a file called "quotawarn" created in the Maildir directory. >However, even I pop all emails out, that file will not be removed and no more quota >warning email will be sent if that user reach warning level again. > Do I need to make a cron job remove this file? Actually, could I ask a simple question? What is the syntax for the '--enable-defaultquota=' flag when configuring vpopmail? To set a quota of 500Mb, is it '--enable-defaultquota=500M'? I guess I just don't know if the 'M' is necessary and the help on configure isn't explicitly clear. Thanks in advance, Bill
[vchkpw] Re: more roaming user problems
Hi, I just tried what Alfredo described in his message without success (I still have to manually modify tcp.smtp to relay), any sugestion will be appreciated. MCA Alfredo Perez escribió: > This is an old e-mail i found Perhaps it will help > > > > BEGIN HERE - > On Friday, February 8, 2002, at 09:35 AM, Nicolas DEFFAYET wrote: > >> How do you use it with courier-imap ? >> Because pop before smtp don't work, the user can't send a mail. > > This really should be put in the FAQ. Ken, how about adding this: > > Question: How do I get Courier-IMAP use vpopmail's "roaming users"? > > Answer: Follow these steps > > 1. Make sure vpopmail is compiled with --enable-roaming-users=y > 2. Courier-IMAP doesn't detect roaming users in the vpopmail library > correctly, so force it by doing something like this just before > compiling: > export CFLAGS="-DHAVE_OPEN_SMTP_RELAY" > 3. compile courier-imap with --without-authdaemon --with-authvchkpw > 4. Make sure you run your imap server as the same user as your pop > server (so open-smtp and tcp.smtp have the same ownership). man > couriertcpd for details, but you will change /usr/lib/courier- > imap/libexec/imapd.rc something like this: > > Change this line: > /usr/lib/courier-imap/libexec/couriertcpd -address=$ADDRESS \ > > To: > /usr/lib/courier-imap/libexec/couriertcpd -address=$ADDRESS \ > -user=vpopmail -group=vchkpw \ > > > > Regards, > > Bill Shupp > END HERE -
[vchkpw] Re: more roaming user problems
Regis; I am having the same problem as you, only that I use courier-imap's pop3-ssl... I included the following lines in my vpopmail configuration: --enable-roaming-user=y --enable-tcpserver-file=/home/vpopmail/etc/tcp.smtp --enable-relay-clear-minutes=60 I run qmail-smtpd with the following line (from lifewithqmail but with the path to tcp.smtp modified: exec /usr/local/bin/softlimit -m 400 /usr/local/bin/tcpserver -v -R -l 0 -x /home/vpopmail/etc/tcp.smtp.cdb -c "$MAXSMTPD" -u "$QMAILUID" -g "$NOFILESGID" 0 smtp /home/qmail/bin/qmail-smtpd 2>&1 I have the following files in /home/vpopmail/etc: -rw-rw-r--1 vpopmail vchkpw 83 Sep 25 19:13 tcp.smtp -rw-rw-r--1 vpopmail vchkpw 2179 Sep 25 22:40 tcp.smtp.cdb ...and I still only relay when I manually modify the tcp.smtp! I am lost, please... if anyone has ideas about this I will be very grateful =/ Thank you... Miguel rm escribió: > After several months of getting by with sqwebmail for remote users, > we've decided to add the "enable roaming users" option. It seemed > simple enough in reading the docs and the archive messages on this > subject. But I seem to have missed something. > > My configure line is: > ./configure --enable-roaming-user=y > --enable-tcpserver-file=/home/vpopmail/etc/tcp.smtp > --enable-relay-clear-minutes=60 --enable-mysql-logging=y > --enable-clear-passwd=y --enable-incdir=/usr/include > --enable-libdir=/usr/lib --enable-mysql=y --enable-mysql-replication=y > --enable-valias=y > > I modified the smtp run file to use the correct path to > /home/vpopmail/etc/tcp.smtp - originally I used the "life with qmail" > example - so the modified file looks like this: > > #!/bin/sh > QMAILDUID=`id -u qmaild` > NOFILESGID=`id -g qmaild` > MAXSMTPD=`cat /var/qmail/control/concurrencyincoming` > LOCAL=`head -1 /var/qmail/control/me` > if [ -z "$QMAILDUID" -o -z "$NOFILESGID" -o -z "$MAXSMTPD" -o -z > "$LOCAL" ]; then > echo QMAILDUID, NOFILESGID, MAXSMTPD, or LOCAL is unset in > echo /var/qmail/supervise/qmail-smtpd/run > exit 1 > fi > exec /usr/local/bin/softlimit -m 400 \ > /usr/local/bin/tcpserver -v -R -l "$LOCAL" -x > /home/vpopmail/etc/tcp.smtp.cdb -c "$MAXSMTPD" \ > -u "$QMAILDUID" -g "$NOFILESGID" 0 smtp > /var/qmail/bin/qmail-smtpd 2>&1 > > I copied the tcp.smtp and the tcp.smtp.cdb file from /etc into > /home/vpopmail/etc > > I also tried to add > /dev/null & at the end of the smtp run file, as > shown in the FAQ example; but when I add that - the smtp server won't > start. > > In any event - remote logins keep getting the error message "recipient > not in allowed rcpt hosts" when they try to send mail. > > Any ideas on what I've missed here? > > Thanks, > > Regis > > > >
[vchkpw] roaming users don't work
Hello, I'm having problems with roaming users, I am using vpopmail5.2.1 and courier-imap1.5.3, i compiled vpopmail with: --enable-roaming-users=y --enable-tcpserver-file=/home/vpopmail/etc/tcp.smtp --enable-relay-clear-minutes=60 ..but it just doesn't seem to work, i mean... i cannot relay unless I modify /etc/tcp.smtp (and then creating tcp.smtp.cdb) manually... any ideas? /home/vpopmail/etc/tcp.smtp and /home/vpopmail/etc/tcp.smtp are always empty... i followed the lifewithqmail instructions to install and run qmail so i am running smtp and stuff with the following line: exec /usr/local/bin/softlimit -m 400 /usr/local/bin/tcpserver -v -R -l 0 -x /etc/tcp.smtp.cdb -c "$MAXSMTPD" -u "$QMAILUID" -g "$NOFILESGID" 0 smtp /home/qmail/bin/qmail-smtpd 2>&1 ...on /service/qmail-smtp/run script. anyone can help me?? please, i am lost =/ Thank you. Miguel.
Access To "All" Mailboxes
Hello. Just want to ask if there is an available feature that allows a certain user (say postmaster) to view the contents of a particular mailbox. I have a lot of users that are not able to log in because they have reached the quota. When this happens, they can only see a black screen and can't do anything anymore. If I am able to access their mailbox, then I can delete some mails for them to free up some space. With this feature, I may now give this responsibility to our support staff. Thanks and more power.
Quota Config
Hello to all. Just want to share this one... I sent a letter to the list yesterday regarding my quota problem. I'm running vpopmail 5.0 with qmail 1.03 and qmailadmin 0.88. I was using vsetuserquota user@domain 300 to set a 3MB quota for a certain user. Well it was not working. But then I tried '3MB' instead of 300 and now it's working fine. Don't know if it really was the solution but that was the only change that I have made.
Information about qmail and mrtg?
Hi, would u tell me where I could get the information about qmail and mrtg? Thanks.
Re: For you xxSQL users...
Thanks for your information. Would u tell me some information about ur design? I am going to create a mail cluster to support 300k users.I need your help. Thanks. - Original Message - From: "Joe Modjeski" <[EMAIL PROTECTED]> To: "Gang Liu" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, October 15, 2001 3:48 AM Subject: Re: For you xxSQL users... > I am using RedHat 7.1 stock kernel. The NFS is pretty stable. With the > exception of the roaming users. With the amount of concurrency that I run > the file has a hard time being updated and if the file can't be updated the > POP session crashes. Not a problem with vpopmail or NFS. So my next step > is to use the patched version of tcpserver to pull the relays from a > database. > > Now also as a point my NFS is running on a private network. So each box > uses 2 interfaces one for NFS stuff alone and the other to handle all the > service requests. This is completly by design becuase all of the software > runs off of the NFS mount. The only thing that is local to the individual > servers is a stripped base RedHat installation and qmail's queue directory. > > Joe Modjeski > > - Original Message - > From: "Gang Liu" <[EMAIL PROTECTED]> > To: "Joe Modjeski" <[EMAIL PROTECTED]> > Sent: Saturday, October 13, 2001 10:20 PM > Subject: Re: For you xxSQL users... > > > > Hi, > > I used linux NFS before(linux-2.2.17, redhat 6.2).But the linux box > may crash.Would u tell me whick version kernel you are using?Do u think it > is fit for production now? > > Thanks. > > > > - Original Message - > > From: "Joe Modjeski" <[EMAIL PROTECTED]> > > To: "Troy Settle" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> > > Sent: Sunday, October 14, 2001 6:14 AM > > Subject: Re: For you xxSQL users... > > > > > > > I had 5000+ users on a FreeBSD server. Just merged that onto 4 Linux > boxes > > > and added another ~4000 users. No problems here. Except that NFS sucks > > > worse on FreeBSD than Linux. > > > > > > BTW, Has anyone played with a "Coda super server"(as the docs call > them)? > > > I would like to use coda but I am kinda leary about the initial load of > the > > > metadata. Anyone using Coda to share out a 160Gig volume?? > > > > > > Thanks, > > > Joe Modjeski > > > > > > - Original Message - > > > From: "Troy Settle" <[EMAIL PROTECTED]> > > > To: <[EMAIL PROTECTED]> > > > Sent: Saturday, October 13, 2001 9:21 AM > > > Subject: For you xxSQL users... > > > > > > > > > > > > > > I'd like to hear (successes and failures) from people who've tried > using > > > one > > > > of the SQL modules with thousands of users and 10's of thousands of > > > messages > > > > per day. > > > > > > > > How about 10's of thousands of users and 100's of thousands of > messages > > > per > > > > day? > > > > > > > > Which SQL server are you using, what OSes, etc... > > > > > > > > TIA, > > > > > > > > -- > > > > Troy Settle > > > > Pulaski Networks > > > > 540.994.4254 - 866.477.5638 > > > > http://www.psknet.com > > > > > > > > > > > > > > > > > > > > > >
need SMTP AUTH information
Hi, I use vpopmail 5.0 and qmail-1.0.3.Where can I find information about SMTP Auth with vpopmail? Thanks. regards,
Re: Need help for mail cluster
- Original Message - From: "Christian Wiese" <[EMAIL PROTECTED]> To: "vpopmail" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, September 27, 2001 9:15 PM Subject: Re: Need help for mail cluster > Hi, > > 1. I would use MySQL, but you should also consider LDAP for storing user accounts. I have used LDAP beforce.It was LDAP 1.2.11 using pth.Because pth is user-space thread lib, so we can not use SMP box to improve performce.And I think OpenLADP isn't very reliable. MySQL has connections limit.How can I walk around this?Does vpopmail use Connection Pool? > 2. NFS shouldn't be a big problem if you're using the maildir format, but I would >take a look at CODA. Thanks. > > Greetings, > > Christian > > vpopmail schrieb: > > > Hi, > > I want to setup a mail cluster to support about 300k pop users.I will use >qmail-1.03 with patches and vpopmail 5.0.But I have some questions about NFS, CDB and >MySQL. > > 1. Which is better to store user accounts, cdb or mysql? I need a reliable >mailbox.I do not use pop before smtp. > > > > 2. Can I use FreeBSD or Linux as NFS file server? Is NFS Solution reliable? > > > > Thanks for any information. > > > > Regards, > > > > Gang Liu > >
Need help for mail cluster
Hi, I want to setup a mail cluster to support about 300k pop users.I will use qmail-1.03 with patches and vpopmail 5.0.But I have some questions about NFS, CDB and MySQL. 1. Which is better to store user accounts, cdb or mysql? I need a reliable mailbox.I do not use pop before smtp. 2. Can I use FreeBSD or Linux as NFS file server? Is NFS Solution reliable? Thanks for any information. Regards, Gang Liu
vpopmail-4.9.10 + courier-1.3.10 + solaris 7 = need help
Hello list -- I am in the middle of compiling (trying to anyways) courier-imap-1.3.10 with vpopmail-4.9.10 (and qmail of course) on an e250 running solaris7. For vpopmail I used the following configure options and everything seemed to go ok (its installed and working): (vpopmail is configured to authenticate off a mysql db) .../configure --prefix=/opt/vpopmail-4.9.10 \ --enable-mysql=y \ --enable-qmaildir=/opt/qmail \ --enable-qmail-newu=/opt/qmail/bin/qmail-newu \ --enable-qmail-inject=/opt/qmail/bin/qmail-inject \ --enable-qmail-newmrh=/opt/qmail/bin/qmail-newmrh \ --enable-sqlincdir=/opt/mysql/include/mysql/ --enable-sqllibdir=/opt/mysql/lib/mysql \ --enable-roaming-users=y --enable-large-site=y for courier-imap-1.3.10 I used the following options: .../configure --prefix=/opt/courier-1.3.10 \ --with-db=gdbm \ --with-waitfunc=wait3 \ --disable-changepass \ --with-authldap=no \ --with-authpwd=no \ --with-authshadow=no \ --with-authvchkpw=yes \ --with-authpam=yes \ --with-authcram=yes \ --with-authcustom=yes \ --with-authuserdb=yes \ --with-authdaemon=yes \ --with-authdaemonvar=/var/tmp \ --with-authmysql \ --with-mysql-libs=/opt/mysql/include/mysql \f --with-mysql-includes=/opt/mysql/include/mysql In addition I have changed the authlib/configure script and hard coded in the home directory for vpopmail. The configure script completes ok however, when running make I get the following error: gcc -DHAVE_CONFIG_H -I. -I. -I. -I/opt/mysql/include/mysql - I/opt/vpopmail-4.9.10/include -g -O2 -Wall -I.. -I./.. -c authvchkpw.c authvchkpw.c: In function `auth_vchkpw_changepass': authvchkpw.c:142: warning: assignment from incompatible pointer type authvchkpw.c:151: dereferencing pointer to incomplete type authvchkpw.c:151: dereferencing pointer to incomplete type make[1]: *** [authvchkpw.o] Error 1 make[1]: Leaving directory `/export/home/qmail-src/courier-imap- 1.3.10/authlib' make: *** [all-recursive] Error 1 I have checked the FAQ for both vpopmail and courier and have done a search on groups.google.com (deja). Hopefully one of you can help. Please feel free to reply to the list or to me directly. Thanks in advance
Re: I think I did something stupid... ][ The Return of The Luser
On Mon, Jul 09, 2001 at 01:05:46AM +0600, Syed Faruque Ahmed wrote: Thanks for your answer. I hope this mail goes through (the sender is of course wrong): > Sometimes telnet to port 110 on the machine and trying to login using pop3 > commands can produce readable error messages. Why don't you try it to get > some more hints about what the pop server is not able to do; i.e. > (on the same machine) > #telnet 127.0.0.1 110 > (pop3 message) > user "username" > pass "password" > > (robin@mail1):(~)$ telnet localhost 110 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. +OK <[EMAIL PROTECTED]> user [EMAIL PROTECTED] +OK pass PASS +OK list +OK . U...
How to implement smtp auth use pop account
Hello£¬vchkpw£¡ I use qmail+vpopmail+sqwebmail,and want to implement smtp auth use pop account!How can i implement smtp auth and without recompile it.does somebody can give me some suggest?I read qmail homepage hardly,and find lots of solutions but maybe there are not enough simple for work with vpopmail. can you help me? thanks Best Regards vpopmail [EMAIL PROTECTED]
About Quota
Hello£¬vchkpw£¡ I am a newbie with qmail,and use qmail+vpopmail+mysql+sqwebmail.I want to implement quota with email account,there is a quota item in mysql table for every email account,the values is NOQUOTA,i change it use sql in mysql,but the quota seemed to not to work.I run ./configure of vpopmail without --enable-hardquota when i install it.is this the reason ? thanks BTW:I am so sorry to my english is pool.please don't laugh at me.thanks Best Regards vpopmail [EMAIL PROTECTED]
Help!Compile sqwebmail failed.
Hello all, I am a new user for qmail and sqwebmail,and I Compile SqWebMail Failed on my solaris 7 SPARC with vpopmail4.9.6+mysql+qmail 1.03,and get a error message below. first ./configure --with-authvchkpw then edit authlib/Makefile replace CRYTLIBS= lcrypt with CRYTLIBS = -lcrypt -L/usr/lib/mysql -lmysqlclient and edit sewebmail/Makefile replace LIBS = with LIBS = -lcrypt -L/usr/lib/mysql -lmysqlclient. then I run make,get a error message It seemed like some error with open_smtp_relay!!! please help me to solve it! I am very very thanks - gcc -DHAVE_CONFIG_H -I. -I. -I. -I/home/vmail/include -g -O2 -Wall -I.. -I./.. -c authmoduser.c gcc -DHAVE_CONFIG_H -I. -I. -I. -I/home/vmail/include -g -O2 -Wall -I.. -I./.. -c authmoduser2.c gcc -DHAVE_CONFIG_H -I. -I. -I. -I/home/vmail/include -g -O2 -Wall -I.. -I./.. -c authmoduser3.c rm -f libauthmod.a ar cru libauthmod.a authmod.o authmodclient.o authmodfail.o authmoduser.o authmoduser2.o authmoduser3.o ranlib libauthmod.a gcc -DHAVE_CONFIG_H -I. -I. -I. -I/home/vmail/include -g -O2 -Wall -I.. -I./.. -c modauthcustom.c gcc -I/home/vmail/include -g -O2 -Wall -I.. -I./.. -L/home/vmail/lib -o authcustom modauthcustom.o libauthmod.a libauth.a ../md5/libmd5.a -lcrypt -L/usr/lib/mysql -lmysqlclient gcc -DHAVE_CONFIG_H -I. -I. -I. -I/home/vmail/include -g -O2 -Wall -I.. -I./.. -c modauthvchkpw.c gcc -I/home/vmail/include -g -O2 -Wall -I.. -I./.. -L/home/vmail/lib -o authvchkpw modauthvchkpw.o libauthmod.a libauth.a ../md5/libmd5.a -lvpopmail -lm -lcrypt -L/usr/lib/mysql -lmysqlclient Undefined first referenced symbol in file open_smtp_relay libauth.a(preauthvchkpw.o) ld: fatal: Symbol referencing errors. No output written to authvchkpw collect2: ld returned 1 exit status make[1]: *** [authvchkpw] Error 1 make[1]: Leaving directory `/home/teng/sqwebmail/sqwebmail-1.2.4/authlib' make: *** [all-recursive] Error 1 --- -- Best regards, sqwebmail mailto:[EMAIL PROTECTED]
bug in vldap.c
HI KEN: i found a bug in vldap.c : char *ldap_fields[8] = { "uid",/* 0 pw_name */ "userPassword", /* 1 pw_passwd */ "qmailUID", /* 2 pw_uid*/ "qmailGID", /* 3 pw_gid*/ "qmaildomain",/* 4 pw_gecos */ "mailMessageStore", /* 5 pw_dir*/ "mailQuota", /* 6 pw_shell */ "objectclass" /* 7 ldap */ }; seem should add a field to storage name ; char *ldap_fields[9] = { "uid",/* 0 pw_name */ "userPassword", /* 1 pw_passwd */ "qmailUID", /* 2 pw_uid*/ "qmailGID", /* 3 pw_gid*/ "qmaildomain",/* 4 pw_domain */ "cn", /* 5 pw_gecos */ "mailMessageStore", /* 6 pw_dir*/ "mailQuota", /* 7 pw_shell */ "objectclass" /* 8 ldap */ }; relevans to function vauth_adduser upgate: lm[3]->mod_values[0] = malloc(10); sprintf(lm[3]->mod_values[0], "%d", 0); lm[4]->mod_values[0] = strdup(gecos); lm[5]->mod_values[0] = strdup(dir); thanks KEN JONES xie -- ÖлªÍø»ýÉÍÖ®ÂÃ,´ó½±ÈÎÄúÓ®£¡ http://points4u.china.com ²Î¼ÓÍøÉÏÅÄÂô£¬ÃûÈËÇ©ÃûÎïÆ·ÈÎÄãÕù! http://auction4u.china.com
compile error?
hi ken: i use vpopmail4.8.5(ldap1.2.11)+sqwebmail,when i compile sqwebmail , appear error, as same as vpopmail(mysql)+sqwebmail . i konw use mysql ,use : env LIBS="-L/usr/lib/mysql -lmysqlclient" ./configure \ please hele me how to use vpopmail(ldap) +sqwebmail : env LIBS=? ./configure \ Best Regards vpopmail -- ÖлªÍø»ýÉÍÖ®ÂÃ,´ó½±ÈÎÄúÓ®£¡ http://points4u.china.com ²Î¼ÓÍøÉÏÅÄÂô£¬ÃûÈËÇ©ÃûÎïÆ·ÈÎÄãÕù! http://auction4u.china.com
bug in vldap.c
hi! ken thanks to ken jones and inter7! i found a bug in vldap.c, in function vauth_adduser lm[0]->mod_values[0] = strdup(user); lm[1]->mod_values[0] = malloc(slen(crypted) + 7 + 1); snprintf(lm[1]->mod_values[0], slen(crypted) + 7 + 1, "{crypt}%s", crypted); lm[2]->mod_values[0] = malloc(10); if ( apop == USE_POP ) sprintf(lm[2]->mod_values[0], "%d", 1 ); else sprintf(lm[2]->mod_values[0], "%d", 2 ); lm[3]->mod_values[0] = malloc(10); sprintf(lm[3]->mod_values[0], "%d", 0); lm[4]->mod_values[0] = strdup(gecos); lm[5]->mod_values[0] = strdup(dir); i think it may be : lm[4]->mod_values[0] = strdup(domain); but it seem have a other fields to save gecos; thanks! xie -- ÖлªÍø»ýÉÍÖ®ÂÃ,´ó½±ÈÎÄúÓ®£¡ http://points4u.china.com ²Î¼ÓÍøÉÏÅÄÂô£¬ÃûÈËÇ©ÃûÎïÆ·ÈÎÄãÕù! http://auction4u.china.com
please help me!
i use vpopmail4.5.9+ldap1.2.11+qmail1.0.3; this is my slapd.conf: databaseldbm suffix "dc=mydomain, dc=com" rootdn "cn=Manager, dc=mydomain, dc=com" rootpw 123456 directory /usr/local/var/openldap-ldbm this is my vldap.h : #undef OLD_VLDAP #define VLDAP_SERVER "localhost" #define VLDAP_PORT LDAP_PORT #define VLDAP_USER "cn=Manager,dc=mydomain,dc=com " #define VLDAP_PASSWORD "123456" #ifdef OLD_VLDAP #define VLDAP_BASEDN "ou=Subs, o=Inter7" #else #define VLDAP_BASEDN "ou=%s,dc=mydomain,dc=com" #endif but this is not work? why? any ideas? thanks! Best regards! -- ÖлªÍø»ýÉÍÖ®ÂÃ,´ó½±ÈÎÄúÓ®£¡ http://points4u.china.com ²Î¼ÓÍøÉÏÅÄÂô£¬ÃûÈËÇ©ÃûÎïÆ·ÈÎÄãÕù! http://auction4u.china.com -- ÖлªÍø»ýÉÍÖ®ÂÃ,´ó½±ÈÎÄúÓ®£¡ http://points4u.china.com ²Î¼ÓÍøÉÏÅÄÂô£¬ÃûÈËÇ©ÃûÎïÆ·ÈÎÄãÕù! http://auction4u.china.com
how to use ldap?
i use vpopmail4.5.9+ldap1.2.11+qmail1.0.3; this is my slapd.conf: databaseldbm suffix "dc=mydomain, dc=com" rootdn "cn=Manager, dc=mydomain, dc=com" rootpw 123456 directory /usr/local/var/openldap-ldbm this is my vldap.h : #undef OLD_VLDAP #define VLDAP_SERVER "localhost" #define VLDAP_PORT LDAP_PORT #define VLDAP_USER "cn=Manager,dc=mydomain,dc=com " #define VLDAP_PASSWORD "123456" #ifdef OLD_VLDAP #define VLDAP_BASEDN "ou=Subs, o=Inter7" #else #define VLDAP_BASEDN "ou=%s,dc=mydomain,dc=com" #endif but this is not work? why? any ideas? thanks! Best regards! vpopmail 2000.10.28 -- ÖлªÍø»ýÉÍÖ®ÂÃ,´ó½±ÈÎÄúÓ®£¡ http://points4u.china.com ²Î¼ÓÍøÉÏÅÄÂô£¬ÃûÈËÇ©ÃûÎïÆ·ÈÎÄãÕù! http://auction4u.china.com -- ÖлªÍø»ýÉÍÖ®ÂÃ,´ó½±ÈÎÄúÓ®£¡ http://points4u.china.com ²Î¼ÓÍøÉÏÅÄÂô£¬ÃûÈËÇ©ÃûÎïÆ·ÈÎÄãÕù! http://auction4u.china.com
big network
i have a big network ,have 50K users work a domain. i use vpopmail(mysql)+qmail+sqwebmail+nfs. user messages are saved nfs server. this is : /home/vpopmail/domains/mydomain.com/ if i mount /home/xie/vpopmail/domains/mydomains to nfs server , when nfs server disk is overfull, how to save other users messages? if i mount /home/vpopmail/domains/mydomains/0 to nfs1 server, /home/vpopmail/domains/mydomains/1 to nfs2 server. /home/vpopmail/domains/mydomains/2 to nfs3 server. ... this is ok ? any ideas? thanks! Best regards -- ÖлªÍø»ýÉÍÖ®ÂÃ,´ó½±ÈÎÄúÓ®£¡ http://points4u.china.com ²Î¼ÓÍøÉÏÅÄÂô£¬ÃûÈËÇ©ÃûÎïÆ·ÈÎÄãÕù! http://auction4u.china.com
Help!Compile Error.
Hi:all I am a new user,there is a compile error with me! I use solaris 7 Intel,gcc 2.95.2,GNU make, when i run. ./configure --enable-roaming-users=y \ > --enable-mysql=y \ > --enable-sqlincdir=/usr/local/include/mysql \ > --enable-sqllibdir=/usr/local/lib/mysql I get some error: make[2]: *** No rule to make target `cdb/*.o', needed by `libvpopmail.a'. Stop. make[2]: Leaving directory `/root/web/vpopmail-4.9.4' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/root/web/vpopmail-4.9.4' make: *** [all-recursive-am] Error 2 what's matter with me!!!please help me! thanks! __ === ÐÂÀËÃâ·Ñµç×ÓÓÊÏä http://mail.sina.com.cn ÐÂÀËÍƳö°ÂÔ˶ÌÐÅÏ¢ÊÖ»úµã²¥·þÎñ http://sms.sina.com.cn/