Re: [vchkpw] SpamAssassin + vpopmail
- you *can* set up a 5 minute cron job that cp -f .qmail-default.WHAT_I_WANT .qmail-default That wouldn't be the solution, because different users may use different ways to handle bounces and that would get lost then. I'm no programmer or h4x0r, may anyone tell if it's possible to do a cronjob with some shellscript like this: if in .qmail-default exists | preline /usr/bin/spamc -f -u $EXT@$HOST then exit else add | preline /usr/bin/spamc -f -u $EXT@$HOST into beginning? Thanks, Juergen
[vchkpw] mysql or ldap?
Hi.. I have just installed qmail and want to use it as independent from /etc/passwd file. For this reason, I have downloaded vpopmail. I need suggestions from experienced qmail users before installing it. Should I used LDAP or MYSQL or what..? Any help would be appreciated.. Thanks..
Re: [vchkpw] Re: How to take back up
Hi Peter I know how take file system backup by useing dump , tar etc., but i want to know that there is a possiblity to excat data backup for all domain . pleae Mahesh Hello Mahesh,On Wednesday, February 19, 2003 at 7:37:04 AM you wrote (at least inpart): I am useing vqmail+vpopmal+sqwebmail, it is running fine i am satisfy with this but, i don't know how to take back, to take back we have migrate mysql or we have to take entair file system backup , if it is require to migrate mysql database , Please guide me any one Please search the archive for "backup", it's been answered a dozenstimes.-- Best regardsPeter PalmreutherI'd give my right arm to be ambidextrous. - GRAFFITIDo you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, and more
Re: [vchkpw] Re: How to take back up
I know how take file system backup by useing dump , tar etc., but i want to know that there is a possiblity to excat data backup for all domain . pleae How is dump/afio/tar/etc not an exact backup? I suppose if you wanted to have the state such that it never changed (not really useful for Maildirs, but I digress) you could use LVM and take an LVM snapshot. Regards, Andrew
Re: [vchkpw] Re: How to take back up
Mahesh, there are a variety of things you'll want to back up. One of the most important, time consuming, and disk hogging, will be the mail storage. This is usually located under /home/vpopmail/domains. If you're running a backend database for authentication, you'll also want to back that up. If you arent, the authentication files will be backed up when you tar the domains directory. You will also want to back up qmail's control files, and the qmail's user directory. There might be more depending upon your system, but that should get the stuff that's critical. Mahesh wrote: Hi Peter I know how take file system backup by useing dump , tar etc., but i want to know that there is a possiblity to excat data backup for all domain . pleae Mahesh Hello Mahesh, On Wednesday, February 19, 2003 at 7:37:04 AM you wrote (at least in part): I am useing vqmail+vpopmal+sqwebmail, it is running fine i am satisfy with this but, i don't know how to take back, to take back we have migrate mysql or we have to take entair file system backup , if it is require to migrate mysql database , Please guide me any one Please search the archive for backup, it's been answered a dozens times. -- Best regards Peter Palmreuther I'd give my right arm to be ambidextrous. - GRAFFITI Do you Yahoo!? Yahoo! Tax Center http://rd.yahoo.com/finance/mailtagline/*http://taxes.yahoo.com/ - forms, calculators, tips, and more -- mailto:[EMAIL PROTECTED] Matt Brookings - Chief Technical Officer Inter7 Internet Technologies, Inc. www.inter7.com - 847-492-0470 Prices at http://www.inter7.com/prices
Re: [vchkpw] SQL based alias in vpopmail table
I cant think of a situation off the top of my head that this would cause problems in other than passwords getting confused on the user-end between the two user entries. Iain wrote: Hi, I have a situation where I would like users to be able to login to check mail with a different username to their email address. What I thought about doing was copying the users entry in the vpopmail table and just changing the username. e.g.: user:domain.com:$1$phS3B0$5EkQY3SYejdzRF4klHXOv.:0:0:user:/home/vpopmail/domains/domain.com/user:NULL:password alias::$1$phS3B0$5EkQY3SYejdzRF4klHXOv.:0:0:user:/home/vpopmail/domains/domain.com/user:NULL:password Can anyone see any problems with doing things this way? cheers, Iain. -- mailto:[EMAIL PROTECTED] Matt Brookings - Chief Technical Officer Inter7 Internet Technologies, Inc. www.inter7.com - 847-492-0470 Prices at http://www.inter7.com/prices
[vchkpw] no mysql tables after Vpopmail install
I don't have any vpopmail related tables in my Mysql vpopmail database after installation. I discovered that during the install of vpopmail I typo'd the vpopmail password I wanted to use in the mysql db. I assume that as a result of that error that the tables didn't created properly. I've tried rerunning the `make install` and `make install-strip` with all my passwords aligned and db access verified, but no soup. I can't find a schema dump for the vpopmail tables by Googling either. What should I do? (please be kind with that sort of question ;-) ) THANKS! Dave.
Re: [vchkpw] no mysql tables after Vpopmail install
As long as the permissions are correct, and you allow CREATE permission to the id/password you put in vmysql.h, then the tables will auto-create when you run the system, i.e. create a domain. Thanks, Brian I don't have any vpopmail related tables in my Mysql vpopmail database after installation. I discovered that during the install of vpopmail I typo'd the vpopmail password I wanted to use in the mysql db. I assume that as a result of that error that the tables didn't created properly. I've tried rerunning the `make install` and `make install-strip` with all my passwords aligned and db access verified, but no soup. I can't find a schema dump for the vpopmail tables by Googling either. What should I do? (please be kind with that sort of question ;-) ) THANKS! Dave.
[vchkpw] install courier-imap and vpopmail
I have installed vpopmail.5.2.1 and now I try to installed courier-imap. And In the installation I have a bug because a vpopmail library is not present. Does anyone know this problem ? Thanks a lot,
Re: [vchkpw] install courier-imap and vpopmail
- Original Message - From: Viviane Correge [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 20, 2003 6:08 AM Subject: [vchkpw] install courier-imap and vpopmail I have installed vpopmail.5.2.1 and now I try to installed courier-imap. And In the installation I have a bug because a vpopmail library is not present. Does anyone know this problem ? Thanks a lot, Please either search the archives for the solution or provide better clues as to where your problem is. Some output of the errors your getting would be useful if this question wasn't asked so often here that I can probably guess what it is. --Doug
Re: [vchkpw] no mysql tables after Vpopmail install
Thanks to the lists' advice to make distclean and reconfig and recompile was great! HOWEVER, something laying around (maybe not vpopmail?) is generating this 'maillog' entry (Redhat linux 7.3): Feb 20 08:32:07 (edited hostname) imapd: could not connect to mysql update server Access denied for user: 'root@localhost' (Using password: YES) This is blocking authentication requests. Above this error in the log are the correct username and password values coming from the running checkpassword (or vchkpw?) I've checked the vpopmail mysql tables, they're all square after I did vadddomain and vadduser. Obviously most of vpopmail knows how to talk to the mysql db as the vpopmail defined user (which isn't root) Knowing that I screwed up the initial install and then recompiled from clean, is there an obvious place to see if the username/password is misdefined elsewhere? I appreciate the help! Dave (again) -- Original Message -- From: Brian Kolaci [EMAIL PROTECTED] Reply-To: Brian Kolaci [EMAIL PROTECTED] Date: Thu, 20 Feb 2003 08:44:51 -0500 (EST) As long as the permissions are correct, and you allow CREATE permission to the id/password you put in vmysql.h, then the tables will auto-create when you run the system, i.e. create a domain. Thanks, Brian I don't have any vpopmail related tables in my Mysql vpopmail database after installation. I discovered that during the install of vpopmail I typo'd the vpopmail password I wanted to use in the mysql db. I assume that as a result of that error that the tables didn't created properly. I've tried rerunning the `make install` and `make install-strip` with all my passwords aligned and db access verified, but no soup. I can't find a schema dump for the vpopmail tables by Googling either. What should I do? (please be kind with that sort of question ;-) ) THANKS! Dave.
Re: [vchkpw] no mysql tables after Vpopmail install
On Thursday 20 February 2003 09:41, David Richardson wrote: Thanks to the lists' advice to make distclean and reconfig and recompile was great! HOWEVER, something laying around (maybe not vpopmail?) is generating this 'maillog' entry (Redhat linux 7.3): Feb 20 08:32:07 (edited hostname) imapd: could not connect to mysql update server Access denied for user: 'root@localhost' (Using password: YES) Not too sure about the history behind this thread, but I know that if you change anything in vpopmail and recompile, you'll have to recompile Courier-IMAP too. Of coarse, you may not be using courier-imap. In that case, what are you using, and how are you authenticating? (Direct MySQL? vpopmail auth module? etc...) This is blocking authentication requests. Above this error in the log are the correct username and password values coming from the running checkpassword (or vchkpw?) I've checked the vpopmail mysql tables, they're all square after I did vadddomain and vadduser. Obviously most of vpopmail knows how to talk to the mysql db as the vpopmail defined user (which isn't root) Knowing that I screwed up the initial install and then recompiled from clean, is there an obvious place to see if the username/password is misdefined elsewhere? I appreciate the help! Dave (again) -- Original Message -- From: Brian Kolaci [EMAIL PROTECTED] Reply-To: Brian Kolaci [EMAIL PROTECTED] Date: Thu, 20 Feb 2003 08:44:51 -0500 (EST) As long as the permissions are correct, and you allow CREATE permission to the id/password you put in vmysql.h, then the tables will auto-create when you run the system, i.e. create a domain. Thanks, Brian I don't have any vpopmail related tables in my Mysql vpopmail database after installation. I discovered that during the install of vpopmail I typo'd the vpopmail password I wanted to use in the mysql db. I assume that as a result of that error that the tables didn't created properly. I've tried rerunning the `make install` and `make install-strip` with all my passwords aligned and db access verified, but no soup. I can't find a schema dump for the vpopmail tables by Googling either. What should I do? (please be kind with that sort of question ;-) ) THANKS! Dave. -- Jesse Guardiani, Systems Administrator WingNET Internet Services, P.O. Box 2605 // Cleveland, TN 37320-2605 423-559-LINK (v) 423-559-5145 (f) http://www.wingnet.net We are actively looking for companies that do a lot of long distance faxing and want to cut their long distance bill by up to 50%. Contact [EMAIL PROTECTED] for more info.
Re: [vchkpw] Postgres in 5.3.16 - I see it, how do I enable it?
1.) CVS I strongly agree. The development snapshots are nice and all but for those of us who are trying to hack on it CVS would be a real boon. Especially with the new website design that thends to hide what I'd call the CVS snapshot versions. 2.) Actually reading their own mailing lists. I do believe they do this currently, although I imagine that it is not a top priority for them as they, as pretty much all of us, are out to make money. If it is becoming inter7's policy to give these lists a (much?) lower priority, then it should be labelled as such -- a user-supported mailing list hosted by inter7, rather than what it comes across as now -- a user/devel mailing list in which the developers and mainters are active participants. I don't like to make a nuisance of myself by CC:ing people directly when I know that they're subscribed to the list -- if they're not responding, it's because they're either too busy or disinterested at the time. Either way though, it'd be nice to have some kind of indication of the level of maintainer interest/activity in the lists. Regards, Andrew
Re: [vchkpw] no mysql tables after Vpopmail install
Woo hoo! Recompile of Courier did the trick! (minor snafu, must 'make' Courier as root now to have rights to the libs in /home/vpopmail/lib) Thanks gang, this has been a long, hard journey. Finally working: qmail w/patches, courier, vpopmail, mysql 3.23, smtp-auth. I'm off to try SSL auth. Thanks again! Dave. -- Original Message -- From: Jesse Guardiani [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date: Thu, 20 Feb 2003 09:46:16 -0500 On Thursday 20 February 2003 09:41, David Richardson wrote: Thanks to the lists' advice to make distclean and reconfig and recompile was great! HOWEVER, something laying around (maybe not vpopmail?) is generating this 'maillog' entry (Redhat linux 7.3): Feb 20 08:32:07 (edited hostname) imapd: could not connect to mysql update server Access denied for user: 'root@localhost' (Using password: YES) Not too sure about the history behind this thread, but I know that if you change anything in vpopmail and recompile, you'll have to recompile Courier-IMAP too. Of coarse, you may not be using courier-imap. In that case, what are you using, and how are you authenticating? (Direct MySQL? vpopmail auth module? etc...) This is blocking authentication requests. Above this error in the log are the correct username and password values coming from the running checkpassword (or vchkpw?) I've checked the vpopmail mysql tables, they're all square after I did vadddomain and vadduser. Obviously most of vpopmail knows how to talk to the mysql db as the vpopmail defined user (which isn't root) Knowing that I screwed up the initial install and then recompiled from clean, is there an obvious place to see if the username/password is misdefined elsewhere? I appreciate the help! Dave (again) -- Original Message -- From: Brian Kolaci [EMAIL PROTECTED] Reply-To: Brian Kolaci [EMAIL PROTECTED] Date: Thu, 20 Feb 2003 08:44:51 -0500 (EST) As long as the permissions are correct, and you allow CREATE permission to the id/password you put in vmysql.h, then the tables will auto-create when you run the system, i.e. create a domain. Thanks, Brian I don't have any vpopmail related tables in my Mysql vpopmail database after installation. I discovered that during the install of vpopmail I typo'd the vpopmail password I wanted to use in the mysql db. I assume that as a result of that error that the tables didn't created properly. I've tried rerunning the `make install` and `make install-strip` with all my passwords aligned and db access verified, but no soup. I can't find a schema dump for the vpopmail tables by Googling either. What should I do? (please be kind with that sort of question ;-) ) THANKS! Dave.
Re: [vchkpw] Postgres in 5.3.16 - I see it, how do I enable it?
On Thursday 20 February 2003 09:59, Andrew Kohlsmith wrote: 1.) CVS I strongly agree. The development snapshots are nice and all but for those of us who are trying to hack on it CVS would be a real boon. Especially with the new website design that thends to hide what I'd call the CVS snapshot versions. 2.) Actually reading their own mailing lists. I do believe they do this currently, although I imagine that it is not a top priority for them as they, as pretty much all of us, are out to make money. If it is becoming inter7's policy to give these lists a (much?) lower priority, then it should be labelled as such -- a user-supported mailing list hosted by inter7, rather than what it comes across as now -- a user/devel mailing list in which the developers and mainters are active participants. I thought of another one: 3.) Separation between the developer's mailing list and the user's mailing list. I think that would go a long way toward helping vpopmail developers communicate more effectively. I don't like to make a nuisance of myself by CC:ing people directly when I know that they're subscribed to the list -- if they're not responding, it's because they're either too busy or disinterested at the time. Either way though, it'd be nice to have some kind of indication of the level of maintainer interest/activity in the lists. Regards, Andrew -- Jesse Guardiani, Systems Administrator WingNET Internet Services, P.O. Box 2605 // Cleveland, TN 37320-2605 423-559-LINK (v) 423-559-5145 (f) http://www.wingnet.net We are actively looking for companies that do a lot of long distance faxing and want to cut their long distance bill by up to 50%. Contact [EMAIL PROTECTED] for more info.
[vchkpw] no POP3 with Vpopmail
Hello, i have installed qmail + vpopmail using live wtih Qmail book. before i ve installed vpopmail pop3 worked ok Now if i try Telent 0 110 it sends connection refused. i am very confused becase dont know what can be wrong with my config files I tried to go back to my original configuration before installig vpopmail but it doesnt work either. Help Nassri Abokhalaf
[vchkpw] Re: no POP3 with Vpopmail
Hello Nassri, On Thursday, February 20, 2003 at 6:01:59 PM you wrote (at least in part): i have installed qmail + vpopmail using live wtih Qmail book. before i ve installed vpopmail pop3 worked ok Now if i try Telent 0 110 it sends connection refused. i am very confused becase dont know what can be wrong with my config files I tried to go back to my original configuration before installig vpopmail but it doesnt work either. It's a pure qmail question, so you're on the wrong list, but check 1) if using tcpserver the file given with '-x' if it denies access 2) if using (x)inetd '/etc/host.allow' and '/etc/host.deny' Also have a look at the system logs if there's a reason for denying logged. -- Best regards Peter Palmreuther Like a military school, bits of me keep on passing out.
Re: [vchkpw] no POP3 with Vpopmail
Hi Nassri, Are you running tcpserver? Had the problem before, so please make a ps waux | grep tcpserver and tell us the output. Oliver Etzel, flathousing.com - Original Message - From: ABOKHALAF, Nassri Abdellatif To: [EMAIL PROTECTED] Sent: Thursday, February 20, 2003 6:01 PM Subject: [vchkpw] no POP3 with Vpopmail Hello,i have installed qmail + vpopmail using live wtih Qmail book.before i ve installed vpopmail pop3 worked ok Now if i try Telent 0 110 it sends connection refused.i am very confused becase dont know what can be wrong with my config files I tried to go back to my original configuration before installig vpopmail but it doesnt work either.Help Nassri Abokhalaf
RE: [vchkpw] Re: no POP3 with Vpopmail
Thanks Peter, it was in fact a Qmail problem. i forgot to chmod 755 /var/qmail/supervise/qmail-pop3d/run i am sorry for taking your time with such a childish error thanks again nassri -Mensagem original- De: Peter Palmreuther [mailto:[EMAIL PROTECTED]] Enviada: quinta-feira, 20 de Fevereiro de 2003 17:20 Para: ABOKHALAF, Nassri Abdellatif in vpop Assunto: [vchkpw] Re: no POP3 with Vpopmail Hello Nassri, On Thursday, February 20, 2003 at 6:01:59 PM you wrote (at least in part): i have installed qmail + vpopmail using live wtih Qmail book. before i ve installed vpopmail pop3 worked ok Now if i try Telent 0 110 it sends connection refused. i am very confused becase dont know what can be wrong with my config files I tried to go back to my original configuration before installig vpopmail but it doesnt work either. It's a pure qmail question, so you're on the wrong list, but check 1) if using tcpserver the file given with '-x' if it denies access 2) if using (x)inetd '/etc/host.allow' and '/etc/host.deny' Also have a look at the system logs if there's a reason for denying logged. -- Best regards Peter Palmreuther Like a military school, bits of me keep on passing out.
Re: [vchkpw] Postgres in 5.3.16 - I see it, how do I enable it?
Hi, everyone. Just wanted to clear a few things up :) As far as CVS is concerned, Inter7's development team is not the largest. I tried to make the case for CVS some time ago, but it isnt looking as if it will fly. If you're interested in new development on vpopmail, take a look on www.shupp.org. I know Bill is working on patches here and there. Im aware of a postgres module, but Im not sure how up to date it is. Quite a few of our vpopmail modules came about due to client demands and funding. So, put simply, if we dont have funding, and we dont need it, someone else might need to put it together. I know that just about all of the techs, and developers over here follow the mailing list. Myself, I dont read every single thread, and I dont always have time to help everyone out on the smaller issues, but we do make a shared attempt to support the mailing lists we host. Having a development list is a good idea. Although, this mailing list *WAS* meant to not only be a support forum, but also a place to send patches. If you do submit a patch, please do not be offended if you receive no reply, or receive a late one. We do go over all patches we see on the list. However, we cannot accept all of them, as they stand, into future releases, and we dont always have the time to respond about the status of every patch. Posting the patch to the mailing list allows others who would like to use the patches to install them without waiting for us. Jesse Guardiani wrote: On Thursday 20 February 2003 09:59, Andrew Kohlsmith wrote: 1.) CVS I strongly agree. The development snapshots are nice and all but for those of us who are trying to hack on it CVS would be a real boon. Especially with the new website design that thends to hide what I'd call the CVS snapshot versions. 2.) Actually reading their own mailing lists. I do believe they do this currently, although I imagine that it is not a top priority for them as they, as pretty much all of us, are out to make money. If it is becoming inter7's policy to give these lists a (much?) lower priority, then it should be labelled as such -- a user-supported mailing list hosted by inter7, rather than what it comes across as now -- a user/devel mailing list in which the developers and mainters are active participants. I thought of another one: 3.) Separation between the developer's mailing list and the user's mailing list. I think that would go a long way toward helping vpopmail developers communicate more effectively. I don't like to make a nuisance of myself by CC:ing people directly when I know that they're subscribed to the list -- if they're not responding, it's because they're either too busy or disinterested at the time. Either way though, it'd be nice to have some kind of indication of the level of maintainer interest/activity in the lists. Regards, Andrew -- mailto:[EMAIL PROTECTED] Matt Brookings - Chief Technical Officer Inter7 Internet Technologies, Inc. www.inter7.com - 847-492-0470 Prices at http://www.inter7.com/prices
Re: [vchkpw] vpopmail and SpamAssassin
On Sunday, February 2, 2003, at 05:26 AM, Gabriel Ambuehl wrote: Hello, I just finished hacking SpamAssassin support into vdelivermail. Basically, you need to have the spamd Daemon of the spamassassin package running on port 783 (standard port for it) thru which all messages smaller than 300k are filtered which means they get the SpamAssassin score (and nothing else!) added to their headers like: X-SpamAssassin-Score: 8.6/5.0 By default, the filtering is turned off so people who don't want to use it won't note much difference. For the others, if spamd isn't running, all messages will get delivered unchanged. To enable the functionality, pass --enable-spamassassing=y to configure. There's one remaining bug: the size parameter of Maildir++ won't get updated accordingly, I suppose this could be solved by stat()ing the file at the end and then renaming it, thoughts? Anyway, you can get the tarball at http://www.buz.ch/software Gabriel, I have done some testing on this patch. There were a few minor problems that were easily fixed (configure.in typos), but I noticed that there is no FALLBACK support. So when I take down spamd, vdelivermail crashes. I don't have time to add that, but if you can, I'll retest the patch for integration. Also, does this patch allow for user defined preferences? Regards, Bill Shupp
[vchkpw] domain quotas (updated)
I've made one change to the patch below, which is the same one I posted yesterday. This patch makes public the following two functions in maildirquota.c: int readdomainquota(const char *dir, long *sizep, int *cntp); int readuserquota(const char* dir, long *sizep, int *cntp); These two functions read the current Maildir++ quota usage for a domain/user given the domain or user directory. It *adds* to the current values pointed to by sizep cntp the size/msgcount used by the specified domain/user. They return 0 on success, -1 on failure. errno would be set to EAGAIN if the contents of the directory changed during the calculation. In short, the attached patch enforces the quota limits specified in the qmailadmin-limits file/table in the vdelivermail program. I figured it might be better to expose the above two functions as well, therefore the updated patch. Thanks, Brian - Begin Forwarded Message - Since there's been alot of hype about domain quotas, I've put my changes in the attached patch file. This will patch vpopmail-5.3.16 (maildirquota.c and vdelivermail.c). There's a new file vqmaillocal.c that apparently doesn't use Maildir++ quotas, so I didn't touch that. The CPU usage is negligible (I saw 0-20 ms). With this patch, another function is added to maildirquota.c called domain_over_maildirquota() that extracts the domain info from the given end-user Maildir and returns 1 if the domain is already at/over quota, or the new message would exceed the domains quota. Note that this patch *only* enforces Maildir++ quotas (both size and count), and not system quotas. The diskquota parameter of the vlimits structure is in MB (NOT BYTES), and the maxmsgcount parameter specifies the max messages for the whole domain. If either value is less than or equal to 0, it is treated as unlimited. Ken/Bill - I've been running this for about a month now with the published vlimits API and it seems to work well with little CPU overhead. All deliveries still seem to be under 1 second. I've stripped out the system quotas implementation and made it simply Maildir++ quota compliant. Thanks, Brian - End Forwarded Message - Common subdirectories: vpopmail-5.3.16/attic and vpopmail-5.3.16.new/attic Common subdirectories: vpopmail-5.3.16/cdb and vpopmail-5.3.16.new/cdb Common subdirectories: vpopmail-5.3.16/contrib and vpopmail-5.3.16.new/contrib Common subdirectories: vpopmail-5.3.16/convert and vpopmail-5.3.16.new/convert Common subdirectories: vpopmail-5.3.16/doc and vpopmail-5.3.16.new/doc Common subdirectories: vpopmail-5.3.16/ldap and vpopmail-5.3.16.new/ldap diff -c vpopmail-5.3.16/maildirquota.c vpopmail-5.3.16.new/maildirquota.c *** vpopmail-5.3.16/maildirquota.c Wed Oct 23 15:53:36 2002 --- vpopmail-5.3.16.new/maildirquota.c Wed Feb 19 17:55:36 2003 *** *** 29,34 --- 29,35 #include errno.h #include time.h #include sys/uio.h + #include vlimits.h #include maildirquota.h #include config.h *** *** 46,51 --- 47,54 long xtra_size, int xtra_cnt, int *percentage); static int docount(const char *, time_t *, off_t *, unsigned *); + int readdomainquota(const char *dir, long *sizep, int *cntp); + int readuserquota(const char* dir, long *sizep, int *cntp); int deliver_quota_warning(const char *dir); #define NUMBUFSIZE 60 *** *** 55,60 --- 58,253 #define MDQUOTA_COUNT 'C' /* Total number of messages in maildir */ + /* bk: add domain limits functionality */ + int domain_over_maildirquota(const char *userdir) + { + struct statstat_buf; + int ret_value = 0; + char *domdir=(char *)malloc(strlen(userdir)+1); + char *p; + char domain[256]; + unsigned long size = 0; + unsigned long maxsize = 0; + int cnt = 0; + int maxcnt = 0; + struct vlimits limits; + + if (fstat(0, stat_buf) == 0 S_ISREG(stat_buf.st_mode) + stat_buf.st_size 0) + { + + /* locate the domain directory */ + strcpy(domdir, userdir); + if ((p = strstr(domdir, /Maildir/)) != NULL) + { + while (*(--p) != '/') + ; + *(p+1) = '\0'; + } + + /* locate the domainname */ + while (*(--p) != '/') + ; + strncpy(domain, ++p, sizeof(domain)); + if ((p = strchr(domain, '/')) != NULL) + *p = '\0'; + + /* get the domain quota */ + if (vget_limits(domain, limits)) + { + free(domdir); + return 0; + } + + /* convert from MB to bytes */ + maxsize = limits.diskquota * 1024 * 1024; + maxcnt = limits.maxmsgcount; + + /* get the domain usage */
Re: [vchkpw] Postgres in 5.3.16 - I see it, how do I enable it?
On Wednesday, February 19, 2003, at 08:33 PM, Andrew Kohlsmith wrote: Anyone? There must be some developmental work going on with it or it wouldn't have been in the tarball. I am willing to help work on it but I need some help getting over this initial hurdle (cleanly). Nice, responsive list. :-/ Attached is a patch to 5.3.16 which will get vpgsql to actually work (seems to work right for auth and relay, have NOT extensively tested it yet) -- I have not included the configure script changes since they were really nasty and I'm sure there is a better way. ATM the database, user and password are all hardcoded, and I did not change the existing ability to create the database if it doesn't already exist. That seems like a really nasty thing to allow -- basically you are granting the vpopmail database user full access to the vpopmail table where it would seem more prudent to only allow inserts, updates and deletes. (not create/drop). Anyway. Another nasty is that the database notification daemon will spit its info out to the network (i.e. anyone accessing vchkpw) -- I will include a fix for that soon as well as some general cleanups and any other bus I find. I hope to do some more extensive testing, including clear passwords and open relay in the next few days. Adding domains/users and authenticating definately is working though, and the tables seem to be updating correctly for relay and lastauth. Andrew, Are you sure this diff is against 5.3.16? It does not apply to my copy, or the one on Inter7's devel page (which should be the same). Thanks, Bill Shupp
Re: [vchkpw] Postgres in 5.3.16 - I see it, how do I enable it?
Are you sure this diff is against 5.3.16? It does not apply to my copy, or the one on Inter7's devel page (which should be the same). bah... I looked at the diff and saw ^Ms at the end of all the lines so I stripped them out. Attached is a fixed version that *does* apply. Regards, Andrew vpopmail-5.3.16-postgreschanges.diff.gz Description: GNU Zip compressed data
Re: [vchkpw] Postgres in 5.3.16 - I see it, how do I enable it?
On Thursday, February 20, 2003, at 11:15 AM, Andrew Kohlsmith wrote: Are you sure this diff is against 5.3.16? It does not apply to my copy, or the one on Inter7's devel page (which should be the same). bah... I looked at the diff and saw ^Ms at the end of all the lines so I stripped them out. Attached is a fixed version that *does* apply. Regards, Andrew Looks great. I've added it to 5.3.17, which I'll post later today. Thanks! Bill Shupp
[vchkpw] 5.3.17
Ken, All: I've posted 5.3.17: ChangeLog: http://shupp.org/patches/vpopmail-ChangeLog Download: http://shupp.org/patches/vpopmail-5.3.17.tar.gz Regards, Bill Shupp
[vchkpw] Questions about vpopmail, vqadmin, and qmail
Hello all, I am trying to get qmail, vqamin, and vpopmail set up and have run into some troubles. I have large questions that I need to ask to help me be able to troubleshoot my problems. 1. I am using mysql. When I install vpopmail, is it supposed to create some tables in the vpopmail database when I run ./configure [ options ] ; make; make install? I am under the impression that it is supposed to. 2. When I ./configure vpopmail, I have chosen not to enable a default domain (because when I did, vchkpw always assumed the user was of this domain). Does this mean that users will be stored in the vpopmail.users table? 3. I have a domain that I am trying to delete via vqadmin but cannot (the web page tells me Failed). I have removed this domain's table from mysql, I have removed this domain from rcpthosts and localdomains. What I really want to do is delete this domain and re-add it. Where else do I need to remove the presense of this domain? I appreciate any help that can be offered. __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/
Re: [vchkpw] Questions about vpopmail, vqadmin, and qmail
Jimmy Gatt wrote: 3. I have a domain that I am trying to delete via vqadmin but cannot (the web page tells me Failed). I have removed this domain's table from mysql, I have removed this domain from rcpthosts and localdomains. What I really want to do is delete this domain and re-add it. Where else do I need to remove the presense of this domain? Im assuming there is a maildir under ~vpopmail/domains/ ??? -- Aj. Systems Administrator / Developer
[vchkpw] Off topic suggestion ....
Hi guys, I have an off topic question and I will appreciate any suggestions. I have vpopmail running, with mysql + spamassassin the question is this. Spamassassin will tag the email message on the Subject [SPAM] only if I create the .qmail-user file and in addition to that if I use pop it does not tag the mail little strange, wonder if anyone has had a similar problem and how they have solved it. BTW, if I have the info in the .qmail-default only it will not work even it will scan the message. Here is my .qmail-default |preline /usr/bin/spamc -f -u $EXT@$HOST |preline maildrop mailfilter |/home/vpopmail/bin/vdelivermail '' bounce-no-mailbox Here is the .qmail-user info: |preline /usr/bin/spamc -f -u $EXT@$HOST /home/vpopmail/domains/xxx.com/prova/Maildir/ Thanks, Remo
Re: [vchkpw] 5.3.17
On Thu, 20 Feb 2003 at 12:10:08, Bill Shupp wrote: Ken, All: I've posted 5.3.17: Thanks for the update! I'm running running vpopmail 5.2.1 and it's been running great for me! I know I need to upgrade to 5.3.x to be able to use SpamAssassin but outside of that is it safe or ok for me to stick with 5.2.1 for the time being? I'm running it with qmail 1.03. Are there any compelling reasons for me to upgrade to the 5.3.x level from 5.2.1? I guess I'm scared of breaking something :) Thanks in advance! Peace. Tom ___ http://jawmail.org/
Re: [vchkpw] 5.3.17
Thanks for the update! I'm running running vpopmail 5.2.1 and it's been running great for me! I know I need to upgrade to 5.3.x to be able to use SpamAssassin but outside of that is it safe or ok for me to stick with 5.2.1 for the time being? I'm running it with qmail 1.03. You don't need 5.3.x to run SpamAssassin -- I've been running 5.2.x with SA for quite some time now (a year?) by using Procmail -- actually the procmail option is better IMO since I can stuff the spam into a separate mailbox for the users, and use SquirrelMail to view the spam folder. Good for integration though, I will admit. Are there any compelling reasons for me to upgrade to the 5.3.x level from 5.2.1? I guess I'm scared of breaking something :) 5.3.x are developmental releases... they shouldn't be used on production servers without fair warning. :-) Regards, Andrew
Re: [vchkpw] Importing my Passwords
Hi, I´m migrating from a Sendmail plataform to Qmail + Vpopmail, and I have an extensive list of users and domains hosted in my server. I don´t want to make all this users to change their passwords. There is a way to import my /etc/passwd list of users and my /etc/master.password list of encrypted passwords to vpopmail format (either cdb or mysql)? You could compile vpopmail with mysql and MD5 support and then run a script on your /etc/shadow file to dump all of the usernames and passwords to the vpopmail database. Or you could enable learned passwords in vpopmail and just dump your usernames with empty passwords to the vpopmail database so when each user pops in, their password is written to the database that way. I used a combination of the two. It was fairly seamless.
Re: [vchkpw] 5.3.17
On Thu, 2003-02-20 at 15:40, Andrew Kohlsmith wrote: Thanks for the update! I'm running running vpopmail 5.2.1 and it's been running great for me! I know I need to upgrade to 5.3.x to be able to use SpamAssassin but outside of that is it safe or ok for me to stick with 5.2.1 for the time being? I'm running it with qmail 1.03. You don't need 5.3.x to run SpamAssassin -- I've been running 5.2.x with SA for quite some time now (a year?) by using Procmail -- actually the procmail option is better IMO since I can stuff the spam into a separate mailbox for the users, and use SquirrelMail to view the spam folder. Or, you can also run it with Qmail-Scanner. Then SpamAssassin will automatically scan every email that comes through qmail. Less customizable than the above..Currently, I just stick the headers in the message, and let the users filter them. Rick Good for integration though, I will admit. Are there any compelling reasons for me to upgrade to the 5.3.x level from 5.2.1? I guess I'm scared of breaking something :) 5.3.x are developmental releases... they shouldn't be used on production servers without fair warning. :-) Regards, Andrew
[vchkpw] 5.3.18
Ken, All: Sorry to do a second release in one day, but I had missed Brian's new virtual domain quota code for 5.3.17. Anyway, I've tested it, and it looks good from here. Please help test: Download: http://shupp.org/patches/vpopmail-5.3.18.tar.gz ChangeLog: http://shupp.org/patches/vpopmail-ChangeLog Cheers, Bill Shupp
[vchkpw] vpopmail, aliases, and () in To:'s
I'm having a bit of difficulty with vpopmail 5.2.1 and aliases in a particular circumstance. I've done some hunting in the archives and even taken a cursory look at the source, but so far have come up empty handed. When mailing people in your address book from MS Outlook (not Express) it's compulsively wanting to put (E-mail) after everyone's real name.. so a To: header in a message winds up looking like To: Some Jerk (E-Mail) [EMAIL PROTECTED] It's annoying and stupid, but in and of it's self is liveable. However, where I'm running into problems is anytime a message sent to our domain with such a header gets processed via a vpopmail alias, vdelivermail seems to be escaping the ()'s with backslashes; The delivered mail now has a header that looks like: To: Some Jerk \(E-Mail\) [EMAIL PROTECTED] This in and of it's self may or may not be bad, but it's definately undesireable when it comes to IMP, which when trying to reply to such a message escapes the \ and winds up with two, and then fails to properly send the mail - but thats a totally separate problem.. but I'm trying to solve this at the root first and then figure out what IMP's problem is. Anyway, this does not happen in normal mail handled by vdelivermail, only if it gets run through an alias. If such a message comes into the system sent to both a regular vpopmail user and an alias, the qmail logs show two deliveries; One to the virtual user and the alias, and then another for the resolution of the alias (with the appropriate note about the valias being processed.) The plain virtual user gets the message with (E-Mail), but the virtual user resolved by the alias gets \(E-Mail\). I've verified that this is happening on the delivery end and narrowed it down to vpopmail, as doing a 'recordio' on the qmail-smtpd session shows the header with no escaped ()'s.. so it's got to be vdelivermail doing something to the headers. So in the end.. 1) Why is this happening? 2) How can I fix it? :) Thanks in advance for any wisdom. | Bob Maple | bobm_at_burner_dot_com | [http] burner.com | | Thom Yorke: Here's to getting hitched, Space Ghost. | SG: Yeah.. Lets drink until our hearts stop.