[vchkpw] Numeric Domains
hello list, i am posting in this list for the first time, am running qmail on my mail server. Have installed it according to qmr instructions and is working abs. fine. i am stuck with a problem. how to add numeric domains to vpopmail. i am using vpopmail - 5.4.9 with postgreSQL 8.0 as an backend. i am trying to enable a domain 1stclass.com on my qmail server but as i try that it gives me an error. # ./vadddomain 1stclass.com Please enter password for postmaster: enter password again: vpgsql: error creating table '1stclass_com': ERROR: syntax error at or near 1 at character 14 Error. Failed while attempting to add domain to auth backend Error: no auth connection # i tried adding a table manually to the vpopmail db but it also gave the same error. is is possible to add any domain starting with a numeric value ?? Sandeep
Re: [vchkpw] Numeric Domains
wait for couple ofweek i will figure out ur problem.Sandeep Agarwal [EMAIL PROTECTED] wrote: hello list, i am posting in this list for the first time, am running qmail on mymail server. Have installed it according to qmr instructions and isworking abs. fine.i am stuck with a problem. how to add numeric domains to vpopmail. i am using vpopmail - 5.4.9 with postgreSQL 8.0 as an backend. i amtrying to enable a domain "1stclass.com" on my qmail server but as itry that it gives me an error.# ./vadddomain 1stclass.comPlease enter password for postmaster:enter password again:vpgsql: error creating table '1stclass_com': ERROR: syntax error ator near "1" at character 14Error. Failed while attempting to add domain to auth backendError: no auth connection#i tried adding a table manually to the vpopmail db but it also gavethe same error.is is possible to add any domain starting with a numeric value ??SandeepEither i want everything or nothing. Yahoo! Sports Rekindle the Rivalries. Sign up for Fantasy Football
[vchkpw] Change Hardquota
Im trying to change what the default hard quota is set to in my qmail/vpopmail install. I have changed all the users but I want to make sure that when new users are added they have the new larger quota settings. Any help on how to do this would be appreciated Thanks Derek
RE: [vchkpw] Change Hardquota
there are three things to consider: - current users: edit them with ./vmoddomlimits http://qmailwiki.inter7.com/Vpopmail#vmoddomlimits or ./vmoduser http://qmailwiki.inter7.com/Vpopmail#vmoduser - new users for existing domains: edit the file: /home/vpopmail/domains/DOMAIN.COM/.qmailadmin-limits - defaults for new domains: edit the file: /home/vpopmail/etc/vlimits.default Hope this helps, Elger Postema Van: Derek Storvik [mailto:[EMAIL PROTECTED] Verzonden: woensdag 22 juni 2005 17:33 Aan: vchkpw@inter7.com Onderwerp: [vchkpw] Change Hardquota I'm trying to change what the default hard quota is set to in my qmail/vpopmail install. I have changed all the users but I want to make sure that when new users are added they have the new larger quota settings. Any help on how to do this would be appreciated Thanks Derek
[vchkpw] New project: tcpblocker 1.0
New project: tcpblocker 1.0 Tcpblocker is for sites that want to limit the number of times an IP address can connect to a tcpserver controlled service such as smtp. Each time tcpblock runs, it counts how many connections were made per client IP. If an IP exceeds the configurable, maximum number of connections within the configurable time period, tcpblock outputs a standard deny line that can be used to build a tcp.smtp style file. Combined with a cron job and a run script, tcpblocker can be configured to fit into just about any qmail or tcpserver installation. Project page: http://www.inter7.com/?page=tcpblocker Ken Jones inter7.com
[vchkpw] SENDER_NOCHECK Question
Does SENDER_NOCHECK=1 in tcp.smtp mean that all aspects of chkuser get bypassed when coming from that specific IP? I've been trying to implement this feature and having trouble getting any entry in tcp.smtp to bypass the chkuser rules. My current tcp.smtp is 127.:allow,RELAYCLIENT= 192.168.0.:allow,RELAYCLIENT=,SENDER_NOCHECK=1 x.x.x.x:allow,RELAYCLIENT=,SENDER_NOCHECK=1 If I send to a bogus recipient from one of those IPs I still get the typical chkuser response that recipient doesn't exist. I guess I would have expected it to bypass chkuser and bounce telling me that user doesn't exist. Is this incorrect logic? Thanks. Anthony
[vchkpw] authdaemond and MySQL server has gone away
I have been having a strange issue with authdaemond ever since it split into a seperate auth port. I am running FreeBSD 5.4, net-qmail, vpopmail, Courier-IMAP, and using a mysql backend to vpopmail. The only authentication package I use or need is the vchkpw. Most or all of these are pretty late versions of these programs. Well, what seems to be the problem is during a server *reboot* 1. authdaemond boots up, using an rc.d script (FreeBSD's autoexec files) 2. I think this is before mysql is loaded. 3. auth requests come in to the IMAP server almost immediately. 4. ALL AUTHs FAIL until I do the following. When I get to the root shell a few hours later, I can get AUTHs working by restarting the daemons (I frantically restart imap, authdaemond, and mysql). But, by the way, the authdaemond script is broken, and I have to stop and start it (typing /usr/local/etc/rc.d/courier-authdaemond.sh restart only stops the daemon). At this stage, all AUTHs now work! Yeah! But what is going on? During the AUTH failures, nobody can login, and everyone has to retype their mail passwords (Mozilla, for example, resets the IMAP password) Here is what mysql logs said. Notice, it appears that mysql started *AFTER* the first AUTH attempt. 050601 02:28:45 mysqld started 050601 2:28:49 InnoDB: Started; log sequence number 0 43740 /usr/local/libexec/mysqld: ready for connections. Version: '4.1.11' socket: '/tmp/mysql.sock' port: 3306 FreeBSD port: mysql-server-4.1.11_1 Here is my mail and debug log. I tried to put in spaces just to show different user login attempts. Jun 1 02:28:40 ibm authdaemond: modules=authvchkpw, daemons=5 Jun 1 02:28:40 ibm authdaemond: Installing libauthvchkpw Jun 1 02:28:40 ibm authdaemond: Installation complete: authvchkpw Jun 1 02:28:41 ibm imapd: Connection, ip=[192.168.0.11] Jun 1 02:28:41 ibm authdaemond: received auth request, service=imap, authtype=login Jun 1 02:28:41 ibm authdaemond: authvchkpw: trying this module Jun 1 02:28:41 ibm authdaemond: vchkpw: user does not exist Jun 1 02:28:41 ibm authdaemond: authvchkpw: REJECT - try next module Jun 1 02:28:41 ibm authdaemond: FAIL, all modules rejected Jun 1 02:28:41 ibm imapd: LOGIN FAILED, user=test, ip=[192.168.0.11] Jun 1 02:28:42 ibm pop3d: Connection, ip=[192.168.0.18] Jun 1 02:28:42 ibm authdaemond: received auth request, service=pop3, authtype=login Jun 1 02:28:42 ibm authdaemond: authvchkpw: trying this module Jun 1 02:28:42 ibm authdaemond: vchkpw: user does not exist Jun 1 02:28:42 ibm authdaemond: authvchkpw: REJECT - try next module Jun 1 02:28:42 ibm authdaemond: FAIL, all modules rejected Jun 1 02:28:42 ibm pop3d: LOGIN FAILED, user=tester, ip=[192.168.0.18] Jun 1 02:28:44 ibm pop3d: Connection, ip=[192.168.0.17] Jun 1 02:28:44 ibm authdaemond: received auth request, service=pop3, authtype=login Jun 1 02:28:44 ibm authdaemond: authvchkpw: trying this module Jun 1 02:28:44 ibm authdaemond: vchkpw: user does not exist Jun 1 02:28:44 ibm authdaemond: authvchkpw: REJECT - try next module Jun 1 02:28:44 ibm authdaemond: FAIL, all modules rejected Jun 1 02:28:44 ibm pop3d: LOGIN FAILED, user=ppp, ip=[192.168.0.17] Jun 1 02:28:44 ibm imapd: Connection, ip=[127.0.0.1] Jun 1 02:28:44 ibm imapd: LOGOUT, ip=[127.0.0.1] Jun 1 02:28:45 ibm pop3d: Connection, ip=[192.168.0.9] Jun 1 02:28:45 ibm authdaemond: received auth request, service=pop3, authtype=login Jun 1 02:28:45 ibm authdaemond: authvchkpw: trying this module Jun 1 02:28:45 ibm authdaemond: vchkpw: user does not exist Jun 1 02:28:45 ibm authdaemond: authvchkpw: REJECT - try next module Jun 1 02:28:45 ibm authdaemond: FAIL, all modules rejected Jun 1 02:28:45 ibm pop3d: LOGIN FAILED, user=, ip=[192.168.0.9] Jun 1 02:28:46 ibm imapd: Disconnected, ip=[192.168.0.11], time=5 Jun 1 02:28:46 ibm pop3d: Connection, ip=[192.168.0.6] Jun 1 02:28:46 ibm authdaemond: received auth request, service=pop3, authtype=login Jun 1 02:28:46 ibm authdaemond: authvchkpw: trying this module Jun 1 02:28:46 ibm authdaemond: vchkpw: user does not exist Jun 1 02:28:46 ibm authdaemond: authvchkpw: REJECT - try next module Jun 1 02:28:46 ibm authdaemond: FAIL, all modules rejected Jun 1 02:28:46 ibm authdaemond: vmysql: sql error[3]: MySQL server has gone away Jun 1 02:28:46 ibm pop3d: LOGIN FAILED, user=jjj, ip=[192.168.0.6] Jun 1 02:28:47 ibm pop3d: Disconnected, ip=[192.168.0.18] Jun 1 02:28:49 ibm pop3d: Disconnected, ip=[192.168.0.17] Jun 1 02:28:50 ibm pop3d: Disconnected, ip=[192.168.0.9] Jun 1 02:28:51 ibm pop3d: Connection, ip=[192.168.0.21] Jun 1 02:28:51 ibm authdaemond: received auth request, service=pop3, authtype=login Jun 1 02:28:51 ibm authdaemond: authvchkpw: trying this module Jun 1 02:28:51 ibm authdaemond: authvchkpw: sysusername=null, sysuserid=89, sysgroupid=89, homedir=/usr/local/vpopmail/domains/aaa.com/ccc, [EMAIL PROTECTED], fullname=ccc, maildir=null, quota=null,
[vchkpw] authdaemond memory leak?
I just looked at how many times per day authdaemond logs this: received auth request it is around 6000 to 7000 times per day. That's about one every 12 seconds or so. Not a heavy use. In fact, I may have one bad auth per day, so all of those are successful. But I have noticed that the daemons are slowly increasing their memory usage without bounds. They are starting to cause the server to use swapfile space. Here is output from top: PID USERNAME PRI NICE SIZERES STATE C TIME WCPU CPU COMMAND 75331 root40 292M 13444K select 1 9:48 0.00% 0.00% authdaemond 75332 root 960 292M 13532K select 1 9:47 0.00% 0.00% authdaemond 75329 root40 2128K88K select 1 0:06 0.00% 0.00% authdaemond #date ; ls -l /var/run/authdaemond/ Wed Jun 22 20:43:50 CDT 2005 total 2 -rw-r--r-- 1 root courier 6 Jun 12 09:13 pid -rw--- 1 root courier 0 Jun 12 09:13 pid.lock srwxrwxrwx 1 root courier 0 Jun 12 09:13 socket (Ten days and 586 MB of memory hogging! Ouch. And that is 270MB resident.) Now, the reason I am only running two daemons should be obvious!! I saw how much memory each one used, and I looked for ways to reduce it. So I only run two now. Anyway, does anyone know of a memory leak detector that could find such a problem? As far as I know, a previous version of authdaemon had no such issue, but I upgraded around May 21, 2005 using the latest in the FreeBSD ports tree. I only see one change since that date, but that was specific to FreeBSD and the startup script (rc.d). (That may be good, because there was a bug in the restart of the one I got in May). So it seems like I have the 0.56 of the auth package, and I believe that is current. Thanks for your help, Billy