RE: [vchkpw] I can not telnet 127.0.0.1 25 .Connection closed b y foreign hos t
Peter.. I have recompied vpopmail and got the following configuration output. After the vpopmail authentication, I can see the modification date of /etc/tcp.smtp.cdb gets changed. So, there seeems to be no problem with the database update. The command output of /home/vpopmail/bin/clearopensmtp 21 /dev/null ; $? gives 0 (null) . And the tcp.smtp.tmp.xxx files are no more generated, probably this was caused by the failure of opening the wrong tcp.smtp.cdb yesterday. Thank you for your valuable help. Danke schon.. Chuss Ihsan --- vpopmail directory = /home/vpopmail uid = 589 gid = 589 ip alias = OFF --enable-ip-alias-domains=n (default) address extentions = OFF --enable-qmail-ext=n (default) roaming users = ON --enable-roaming-users=y tcpserver file = /etc/tcp.smtp open_smtp file = /home/vpopmail/etc/open-smtp user quota = OFF --enable-defaultquota=NOQUOTA default table optimization = many domains --enable-many-domains=y default auth module = cdb default system passwords = OFF --enable-passwd=n default file locking = ON --enable-file-locking=y default file sync = OFF --enable-file-sync=n default disable vdelivermail fsync auth logging = ON --enable-auth-logging=y default mysql logging = OFF --enable-mysql-logging=n default clear passwd = ON --enable-clear-passwd=y (default) valias processing = OFF --enable-valias=n pop syslog = log everything, including passwords in errors --enable-logging=v default domain = --enable-default-domain= auth inc = -Icdb auth lib = -Original Message- From: Peter Palmreuther [mailto:[EMAIL PROTECTED] Sent: Monday, March 03, 2003 7:49 PM To: [EMAIL PROTECTED] Subject: Re: [vchkpw] I can not telnet 127.0.0.1 25 .Connection closed b y foreign hos t Hi _hsan, Please don't CC me ... doesn't mean Please don't answer on-list.. On Mon, 3 Mar 2003 18:10:04 +0200 _hsan Turkmen [EMAIL PROTECTED] wrote: [full quote because answering to the list to a mail not directed there] Thanks Peter.. The problem was that I accidentally chaged -x /etc/tcp.smtp.cdb portion of the script as -x /etc/tcp.smtp. It is fixed now by your valuable help.I wonder why my ~vpopmail/etc/ folder has many temporary files and 40 * * * * /home/vpopmail/bin/clearopensmtp 21 /dev/null line in crontab does not clear temporary files. (Another awkward question again). I guess it was becouse of the above failure..right?. -rw-r--r--1 vpopmail vchkpw 25 Mar 3 14:54 inc_deps -rw-r--r--1 vpopmail vchkpw 32 Mar 3 14:54 lib_deps -rw-r--r--1 vpopmail vchkpw 60 Mar 3 17:40 open-smtp -rw-r--r--1 root root0 Mar 3 17:52 open-smtp.lock -rw-r--r--1 root root0 Mar 3 16:19 open-smtp.tmp.1318 -rw-r--r--1 root root0 Mar 3 16:30 open-smtp.tmp.1341 -rw-r--r--1 root root0 Mar 3 16:40 open-smtp.tmp.1660 -rw-r--r--1 root root0 Mar 3 16:50 open-smtp.tmp.1662 -rw-r--r--1 root root0 Mar 3 17:00 open-smtp.tmp.1691 -rw-r--r--1 root root0 Mar 3 17:11 open-smtp.tmp.1717 -rw-r--r--1 root root0 Mar 3 17:21 open-smtp.tmp.1745 -rw-r--r--1 root root0 Mar 3 17:31 open-smtp.tmp.1747 -rw-r--r--1 root root0 Mar 3 17:42 open-smtp.tmp.1860 -rw-r--r--1 root root0 Mar 3 17:52 open-smtp.tmp.2509 -rw-r--r--1 vpopmail vchkpw 95 Mar 2 05:12 tcp.smtp Thanks for your help.. I don't think a run every 40 minutes cron is the primary reason for every 10 minutes created files. But OTOH the file names look like those clearopensmtp uses. I'd suggest you: 1.) Tell us the _complete_ configure line used for compiling vpopmail, for us being able to figure out what .cdb file clearopensmtp tries to re-create. 2.) run 'clearopensmtp' on command line and tell us potential output and the result of 'clearopensmtp 21 /dev/null; echo $?' for us being able to see if clearopensmtp states it ran successfully. -- Peter
RE: [vchkpw] Qmail+vpopmail+PostgreSQL
Bill, Sorry it took so long. Work kept getting in the way. Here's a link to my PostgreSQL files that I'm currently using in production. I've also included the stuff that Nels provided so I could compile it in using configure. Hopefully you can work it into something for the next development build. Things have been a little quieter the last couple days. I should have time to test as well. http://www.cot.net/~charlieb/vpopmail/ The 16k file contains all I *think* you need to make it work. Just in case, I've included a compressed and uncompressed directory structure of my build tree. Thanks, Charlie -Original Message- From: Andrew Kohlsmith [mailto:[EMAIL PROTECTED] Sent: Saturday, February 22, 2003 4:54 AM To: [EMAIL PROTECTED] Subject: Re: [vchkpw] Qmail+vpopmail+PostgreSQL I've read some previous messages in the archive, regarding the possibility of using PostgreSQL as a vpopmail backend. I hate to admit it, I haven't understood a thing. Is the vpgsql module active by default ? There's no ./configure argument for that, as in MySQL's case. I really can't find my way through this. Would anyone be so kind to provide me with a little howto on this matter ? Thanks in advance. You may want to check your computer's date, it's not 1969. Postgres support is still experimental. I have been contributing a few patches in the last week or so on the latest development builds in order to enable it. Postgres support's been in there for a long long time, but it was never finished nor was it fully functional. I _think_ I have everything but logging done now. 5.3.18 has my code, but you need to hack the makefile to get it to work. 5.3.19 should have it enable-able from ./configure. Regards, Andrew
Re[2]: [vchkpw] maildrop problem with vpopmail
Hello Gregor, Monday, March 3, 2003, 4:45:03 PM, you wrote: GL At 12:44 03/03/2003, you wrote: Hi, I have maildrop, spamassa, avir, and KAV, when I put |maildrop to .qmail-default for domain I get error @40003e6399702d9e6dbc status: local 0/10 remote 0/20 @40003e639c712d9618ec starting delivery 51: msg 1623022 to local [EMAIL PROTECTED] @40003e639c712d964f9c status: local 1/10 remote 0/20 @40003e639c712e478e9c delivery 51: deferral: maildrop:_Changing_to_/home/vpopmail/maildrop:_Invalid_home_directory_permiss ions_-_world_writable./ but I check all directory has permision 600 for that domain, and i dont have dire /home/vpopmail/maildrop , just /home/vpopmail/domains/... GL Where's your mailfilter file with the rules and what permissions has it got? GL What you probably want to do is to specify the file that holds the GL mailfilter rules on the command line GL i.e. GL | /usr/local/bin/maildrop /var/vpopmail/domains/mailfilter GL Make sure the mailfilter file is owned by vpopmail.vchkpw and has GL permission 600 GL Not sure if this solves the problem, but it definitely works here (vpopmail GL version 5.3.8) GL - Gregor thnx , it works, damm last time it worked normalway, duno why have to exactly set path to maildroprc file ;( but now its fine, thank you a lot ;)) miki -- Best regards, Petermailto:[EMAIL PROTECTED]
Re: [vchkpw] vchkpw instead of checkpassword for SMTP AUTH
Hi Jeremy, On Mon, 3 Mar 2003 22:35:10 -0500 Jeremy Price [EMAIL PROTECTED] wrote: k... more info... i'm getting the following line in my logs Mar 3 21:41:21 bvbweb vpopmail[16113]: vchkpw: vpopmail user not found [EMAIL PROTECTED]:24.161.112.141 which stands to reason why i'm not getting authed wassup with the ip address? The IP-Addresse should be the one you're connecting from. To the reason why user is not found: Is qmail-smtpd running as either user 'root' or 'vpopmail'? -- Peter
Re: [vchkpw] I can not telnet 127.0.0.1 25 .Connection closed b yforeign hos t
Hi _hsan, On Tue, 4 Mar 2003 10:01:24 +0200 _hsan Turkmen [EMAIL PROTECTED] wrote: After the vpopmail authentication, I can see the modification date of /etc/tcp.smtp.cdb gets changed. So, there seeems to be no problem with the database update. The command output of /home/vpopmail/bin/clearopensmtp 21 /dev/null ; $? gives 0 (null) . And the tcp.smtp.tmp.xxx files are no more generated, probably this was caused by the failure of opening the wrong tcp.smtp.cdb yesterday. Seems everything is correct now. Thanks for your positive feedback, so we have another closed file in the archive and another confirmation that doing things the right way makes it work as expected :-) -- Peter
Re: [vchkpw] Quotas
Hi Rick, it's a small bug in the quota patch of last official qmailadmin versions(I did not suppose Inter7 integrate patches without trying them, but that happens sometimes). diff -u qmailadmin-1.0.10/util.c qmailadmin-1.0.10-pooled2/util.c --- qmailadmin-1.0.10/util.cFri Jan 24 23:25:31 2003 +++ qmailadmin-1.0.10-pooled2/util.cTue Feb 18 18:37:55 2003 @@ -272,7 +272,10 @@ if (quota == NULL) { return 1; } if (tmp = atol(quota)) { tmp *= 1048576; } else { return 1; } - sprintf(returnval, %-2.2lf, tmp); + sprintf(returnval, %-2.0lf, tmp); return 0; } This should solve it. Tonino At 03/03/03 03/03/03 -0600, Rick Romero wrote: On Mon, 2003-03-03 at 09:52, Rick Romero wrote: I wanted to mention that when using qmailadmin-1.12 and vpopmail-5.3.18, if I set the quota from qmailadmin to 100MB, the quota is set to 100483292.00 (I'm just guessing on the bytes, but you get the idea). For some reason, I belive the .00 makes vdelivermail bounce email saying the user is over quota. Using vsetuserquota to set the actual # of bytes works fine though. Ok, so here's the code in vpopmail.c (right at the end): char *format_maildirquota(const char *q) { int i; int per_user_limit; static char tempquota[500]; /* translate the quota to a number, or leave it */ i = strlen(q) - 1; tempquota[0] = '\0'; /* make sure tempquota is 0 length */ if(strstr(q, ,) == NULL q[i] != 'S') { per_user_limit = atol(q); for(i=0;q[i]!=0;++i) { if ( q[i] == 'k' || q[i] == 'K' ) { per_user_limit = per_user_limit * 1024; snprintf(tempquota, 500, %dS, per_user_limit); break; } if ( q[i] == 'm' || q[i] == 'M' ) { per_user_limit = per_user_limit * 1048576; sprintf(tempquota, %dS, per_user_limit); break; } } Maybe this isn't the problem... but if per_user_int is initialized as an int, should atol be atoi? Though, supposedly atol() should stop 'converting' at the period anyways.. Maybe it's crashing? Rick [EMAIL PROTECTED] Interazioni di Antonio Nati http://www.interazioni.it [EMAIL PROTECTED]
[vchkpw] maildrop problem with vpopmail
Hi, I am trying to get spamassassin working with vpopmail and maildrop. Right now, it works if mail is being sent to existing addresses. But if mail is being sent to a non-existing address I get the following error: @40003e649e122424c8e4 delivery 555: deferral: Message_start_at_0_bytes,_envelope_sender=vpopmail/maildrop:_Attempting_/etc/maildroprc/maildrop:_Filtering_through_`/home/vpopmail/bin/[EMAIL PROTECTED]/maildrop:_Filtering_through_xfilter_/usr/bin/[EMAIL PROTECTED]/Matching_/^X-Spam-Flag:_*YES/_against_Received:_(qmail_22847_invoked_from_network);_4_Mar_2003_10:10:11_-/Not_matched./Matching_/^X-Spam-Flag:_*YES/_against_Received:_from_mailrelay1.kpn.net_(194.151.226.98)__by_0_with_SMTP;_4_Mar_2003_10:10:11_-/Not_matched./Matching_/^X-Spam-Flag:_*YES/_against_Received:_from_[193.172.11.241]_(helo=wfwin3.wetterskipfryslan.nl)_by_mailrelay1.kpn.net_with_esmtp_(Exim_3.36_#1)[EMAIL PROTECTED];_Tue,_04_Mar_2003_11:05:24_+0100/Not_matched./Matching_/^X-Spam-Flag:_*YES/_against_Received:_by_wfwin3_with_Internet_Mail_Service_(5.5.2653.19)_id_G2MMPRL3;_Tue,_4_Mar_2003_11:10:09_+0100/Not_matched./Matching_/^X-Spam-Flag:_*YES/_against_Message-ID:_[EMAIL PROTECTED]/Not_matched./Matching_/^X-Spam-Flag:_*YES/_against_From:_Metselaar,_J.M._[EMAIL PROTECTED]/Not_matched./Matching_/^X-Spam-Flag:_*YES/_against_To:_'[EMAIL PROTECTED]'_[EMAIL PROTECTED]/Not_matched./Matching_/^X-Spam-Flag:_*YES/_against_Subject:_fdsgsdfg/Not_matched./Matching_/^X-Spam-Flag:_*YES/_against_Date:_Tue,_4_Mar_2003_11:08:33_+0100_/Not_matched./Matching_/^X-Spam-Flag:_*YES/_against_MIME-Version:_1.0/Not_matched./Matching_/^X-Spam-Flag:_*YES/_against_X-Mailer:_Internet_Mail_Service_(5.5.2653.19)/Not_matched./Matching_/^X-Spam-Flag:_*YES/_against_Content-Type:_multipart/alternative;_boundary=_=_NextPart_001_01C2E236.035E0580/Not_matched./maildrop:_Delivering_to_/Maildir/maildrop:_Unable_to_create_a_dot-lock./ @40003e649e12242666f4 status: local 0/10 remote 0/20 My .qmail-default looks like this: # cat .qmail-default | maildrop -V 3 /etc/maildroprc | /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox (the -V 3 was added for extra logging) Does anybody know what's wrong? Thanks in advance! - Jasper ___
Re: [vchkpw] maildrop problem with vpopmail
At 12:53 04/03/2003, you wrote: Hi, I am trying to get spamassassin working with vpopmail and maildrop. Right now, it works if mail is being sent to existing addresses. But if mail is being sent to a non-existing address I get the following error: [...] My .qmail-default looks like this: # cat .qmail-default | maildrop -V 3 /etc/maildroprc | /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox (the -V 3 was added for extra logging) Does anybody know what's wrong? What you want to do is check whether the recipient even exists before you scan for mail. I've gone to quite some trouble doing so. I've patched vuserinfo to exit with error code 10 when the user doesn't exist. patch in vuserinfo.c to vexit(10) if ( (mypw = vauth_getpw( User, Domain )) == NULL ) { if ( Domain[0] == 0 || strlen(Domain)==0) { printf(no such user [EMAIL PROTECTED], User, DEFAULT_DOMAIN); } else { printf(no such user [EMAIL PROTECTED], User, Domain); } // change vexit // vexit(-1); vexit(10); } Then I do the following: VHOME=`/var/vpopmail/bin/vuserinfo -d [EMAIL PROTECTED] VHOMECODE=$RETURNCODE if ($VHOMECODE eq 10) { echo 'Sorry, no mailbox here by that name. vpopmail (#5.1.1)' EXITCODE=100 exit } all this right at the beginning before any spam or virusscan. - Gregor
Re[2]: [vchkpw] maildrop problem with vpopmail
At 09:06 04/03/2003, you wrote: thnx , it works, damm last time it worked normalway, duno why have to exactly set path to maildroprc file ;( but now its fine, thank you a lot ;)) miki No problem... not exactly sure why you'd want | /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox in the .qmai-default. This way isn't mail always delivered to the mailbox, even if it's spam or a virus? You should do this inside the mailfilter like VPOP=| /var/vpopmail/bin/vdelivermail '' bounce-no-mailbox and then the last thing you do in the mailfilter after all your other checks: exception { to $VPOP exit }
[vchkpw] feature request OT qmailadmin
HI guys I know this is OT but is there a way that you may know to have quota setting configuration only on specific domains? Maybe just specifying the option in the .qmailadmin settings. THANKS, REMO
[vchkpw] pop3 not authenticate any users
hi ppl i have two virtual domains. i have pop3 and imap installed on my system.Imap authenticate the all users of both virtual domains . But pop3 not authenticate the any users i can't understand why he do that.. here is the error which i get... telnet 0 110 Trying 0.0.0.0... Connected to 0. Escape character is '^]'. +OK [EMAIL PROTECTED] user [EMAIL PROTECTED] +OK pass zafar -ERR authorization failed Connection closed by foreign host. wait for reply thanks zafar
[vchkpw] add domain based on a system user
Hi, I have installed qmail+qmailadmin+sqwebmail and assigned OS quota to a user test.Then, I have added a domain using option -u user (sets the uid/gid based on a user in /etc/passwd) #./vadddomain -u test xyz.com the command works well and the domain is added into the /home/test/domains directory. But when I login in to qmailadmin/sqwebmail it shows Invalid Login. Whats wrong? Plz. help me... Manish Jain -- MANISH JAIN Centre for Development of Advanced Computing (Ministry of Communication IT) Anusandhan Bhawan C-56/1, Sector - 62, Noida - 201307 (U.P.) Ph.: 0120-2402551 to 60 (Ext.-803/718)