Re: 0.70ac1 patch

2001-08-01 Thread Oden Eriksson

Ken Jones writes: 

> Oden Eriksson wrote:
>> 
>> Ken Jones writes: 
>> 
>> > Oden Eriksson wrote:
>> >>
>> >> Ken Jones writes:
>> >>
>> >> >
>> >> > I updated the distribution with Bills (Alan Cox?) :) patch and
>> >> > updated the version to 0.70.
>> >> >
>> >> > One change, I put the version in the footer with a link to
>> >> > the qmailadmin page. This might help people looknig for help,
>> >> > we can put a qmailadmin howto/help document on the page.
>> >> >
>> >> > Ken Jones
>> >>
>> >> Wouldn't that be a security risk to send the whole referrer tag like that ?
>> >
>> > http://www.inter7.com/qmailadmin/>qmailadmin 0.71
>> >
>> > What's insecure about that html? 
>> 
>> I guess that one (you?) could check the httpd log and find a referrer like: 
>> 
>> http://mail2.kvikkjokk.net/cgi-bin/qmailadmin/com/showusers?user=postmaster&;
>> time=996688321&dom=kvikkjokk.net& 
>> 
>> And use that to hijack a session to in this example my server. 
>> 
>> Am I wrong?
> 
> Ahh. I understand now. I tested it with my local server here is what
> shows up
> in the http logs: 
> 
> 209.218.8.89 - - [01/Aug/2001:13:07:43 -0500] "GET / HTTP/1.0" 200 639
> 
>"http://127.0.0.1/cgi-bin/qmailadmin/com/showusers?user=postmaster&time=996689170&dom=test.com&";
> "Mozilla/4.77 [en] (X11; U; Linux 2.4.2-2 i586)" 
> 
> So you are right. The referal information contains the authentication
> information.
> But the information can't be used unless the query comes from the same
> IP
> as the machine used to log in. So it is useless.  
> 
> However, some people remove the IP restriction to get around NAT and
> proxy settings. 
> 
> So over all, it is insecure in some cases and not in others. 
> 
> To be on the safe side we should remove the link. 
> 
> Ken Jones

Great! 

I think that Mr. Sam has a clean solution to this problem in sqwebmail, but 
it might only work because of the tables html stuff, I don't know. 

 --
Kindest regards // Oden Eriksson
Kvikkjokk Networks 



Re: Spam on list

2001-11-06 Thread Oden Eriksson

Hmm, I haven't noticed this at all because I block the entire yahoo.com[what 
ever] shit domain.

On Tuesdayen den 6 November 2001 23.37, Brian Ipsen wrote:
> Hi!
>
>  Can someone please take action to get SPAM on this list stopped ?? I just
> got (just quoting header):
>
> Received: (qmail 18532 invoked from network); 6 Nov 2001 22:15:04 -
> Received: from ns1.inter7.com (209.218.8.2)
>   by 0 with SMTP; 6 Nov 2001 22:15:04 -
> Received: (qmail 26024 invoked by uid 511); 6 Nov 2001 22:15:13 -
> Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
> Delivered-To: mailing list [EMAIL PROTECTED]
> Received: (qmail 26012 invoked from network); 6 Nov 2001 22:15:07 -
> X-Sender: [EMAIL PROTECTED]
> From: Mehmet Pomak <[EMAIL PROTECTED]>
> To: "GRUB-1" <[EMAIL PROTECTED]>
> Date: Fri, 07 Dec 2001 18:18:00 +0200
> Subject: ALTERNATiF!
>
> I don't know if the poster of this article is a mamber of the list - but if
> not, then the list is open for non-subscribers to post UCE/SPAM into it...
> That might be why ns1.inter7.com is listed as a blackhole at bl.spamcop.net
>
> /Brian

-- 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
| Oden Eriksson, Deserve-IT Networks, Jokkmokk, Sweden.
| Mandrake Linux release 8.2 (Cooker) for i586
| Current uptime with kernel 2.4.13-2mdksmp: 1day
| cpu0 @ 814.28 bm, fan 4411 rpm, temp +31.0°C
| cpu1 @ 815.92 bm, fan 4500 rpm, temp +30°C



I just stumbled upon this...

2001-11-08 Thread Oden Eriksson

Hi all,

I wonder if you have seen this before:

http://matt.simerson.net/computing/qmail/qmail.toaster1.6.shtml

Briefly it seems to add MySQL support to tcpserver and vpopmail which in turn 
enables pop-before-smtp for the mysql auth module. Pretty cool IMHO.

Or..., is it allready implemented in vpopmail some other way?

(I only use the cdb module myself)

-- 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
| Oden Eriksson, Deserve-IT Networks, Jokkmokk, Sweden.
| Mandrake Linux release 8.2 (Cooker) for i586
| Current uptime with kernel 2.4.13-4mdksmp: 9:18
| cpu0 @ 814.28 bm, fan 4166 rpm, temp +31.0°C
| cpu1 @ 815.92 bm, fan 4066 rpm, temp +30°C



Re: vpopmail Performance testing - Possible tools

2000-07-23 Thread Oden Eriksson

On 21 Jul 2000, at 11:36, Michael Boman wrote:
 
> Matthew Herman wrote:
> 
> [snip]
> 
> > SMTPTest (Performs a mail delivery test)
> > 
> > PopTest (Performs a pop3 query and return true or false if
> > successful.) http://www.stalker.com/MailTests/
> 
> Has anyone manage to compile these tools under Linux? If so, what is
> needed to be done?

yep, just do:

cc -o POPTest POPTest.cpp
and you're there

the smtp test almost set my hdd on fire..., nice tool :-)

--

Oden Eriksson, MCSE+CNE+Linux
Operation and Maintenance Engineer, Iquity Systems AB

Webhosting: http://www.kvikkjokk.com
Tel: +46 8 626 55 34
Mobile: +46 70 346 43 02



Re: errors in Courier IMAP install

2000-07-23 Thread Oden Eriksson

On 23 Jul 2000, at 0:31, TD wrote:

> Hi.  I just installed vpomail 4.8.  and I am trying now to install
> courier-imap-0.36a.  I am getting the following  error when I run make
> on the courier-imap source.  I dont see the function vclose in any of
> the vpopmail source.  Is it possible I have the wrong version? Can
> anyone tell me where I can find the correct version.  I downloaded
> this one from inter7.com website.
> 
> thanks !!!
> 
> cc  -I/disk02/vpopmail/include -g -O2 -Wall -I.. -I./..
> -L/disk02/vpopmail/l ib  -o authvchkpw  modauthvchkpw.o libauthmod.a
> libauth.a ../md5/libmd5.a -lvpopmail -lm -lcrypt
> libauth.a(preauthvchkpw.o): In function `auth_vchkpw_pre':
> /disk01/blue/courier-imap-0.36a/authlib/preauthvchkpw.c:75: undefined
> reference to `vclose' make[1]: *** [authvchkpw] Error 1 make[1]:
> Leaving directory `/disk01/blue/courier-imap-0.36a/authlib' make: ***
> [all-recursive] Error 1

try the newest version of vpopmail (4.8.5) then this error will 
disappear.
--

Oden Eriksson, MCSE+CNE+Linux
Operation and Maintenance Engineer, Iquity Systems AB

Webhosting: http://www.kvikkjokk.com
Tel: +46 8 626 55 34
Mobile: +46 70 346 43 02



Re: vqsignup-0.3 first public release available

2000-10-20 Thread Oden Eriksson

On 19 Oct 2000, at 12:26, Ken Jones wrote:

> The first public release of vqsignup-0.3 is availble at
> http://www.inter7.com/vqsignup
> 
> vqsignup is a C based cgi program that enables people on the 
> internet to signup for email accounts on your qmail, vpopmail system.
> 
> It's the first public release, so it's not documented very well,
> nor is it super easy to install. But it works for us ;]

Nice Ken, but it doesn't work for me... I'm getting:

"Sorry, that domain isn't available for signup.  Please try again."

Whatever I do...

(I even made a file in /etc/welcome/mydomain.ext)
--

Oden Eriksson, MCSE+CNE+Linux
Operation and Maintenance Engineer, Iquity Systems AB

Webhosting: http://www.kvikkjokk.com
Tel: +46 8 626 55 34
Mobile: +46 70 346 43 02



Re: Inter7 introduces new software: vQregister

2001-02-24 Thread Oden Eriksson

[EMAIL PROTECTED] writes:

> vQregister is new web-based signup CGI that

Very neat!

What about to port qmailadmin to php?

--
Kindest regards // Oden Eriksson



a nasty bug

2001-02-25 Thread Oden Eriksson

Hi there,

I found there is no way to totally "disable admin email" and "default
domain".

Problem: The tools segfaults because I do not have what "hostname" picks up
during the configure stage in my mysql database. I can't even add that
domain with the vadddomain thingy. The only way around is to add a domain I
do have, as the "admin email" and "default domain" into the config.h file
and recompile. This is bad.

Using vpopmail v4.9.9


--
Kindest regards // Oden Eriksson



[vchkpw] mysql login/passwd/database in a flatfile

2003-08-06 Thread Oden Eriksson
Hi.

I just have to clarify this, the following links are actually two different 
patches that I have found:

http://sourceforge.net/tracker/index.php?func=detail&aid=778502&group_id=85937&atid=577801
http://sourceforge.net/tracker/index.php?func=detail&aid=778503&group_id=85937&atid=577801

And as a side note this one should be applied:

http://sourceforge.net/tracker/index.php?func=detail&aid=784024&group_id=85937&atid=577800


Cheers.
-- 
Regards // Oden Eriksson, Deserve-IT.com



Re: [vchkpw] mysql login/passwd/database in a flatfile

2003-08-14 Thread Oden Eriksson
torsdagen den 7 augusti 2003 01.34 skrev Tom Collins:
> On Wednesday, August 6, 2003, at 01:46  AM, Oden Eriksson wrote:
> > I just have to clarify this, the following links are actually two
> > different
> > patches that I have found:
> >
> > http://sourceforge.net/tracker/
> > index.php?func=detail&aid=778502&group_id=85937&atid=577801
> > http://sourceforge.net/tracker/
> > index.php?func=detail&aid=778503&group_id=85937&atid=577801
>
> (patches related to moving mysql connection info to an external file)
>
> I like the first one, as it is a simpler file format (quicker to
> read/parse), but I'm hesitant to include it at this point.  I'd like to
> release a new stable version of vpopmail to replace the current 5.2.1
> release before adding this change and testing it.
>
> Then again, making the change now before we go stable would be good as
> well.  Maybe after I get the 5.3.24 release out I'll try adding it for
> the 5.3.25 release.

Cool. I would like that a lot.

BTW. I have a pretty huge archive online with djb related software and 
patches, maybe you'll find something old/new/interesting in there, it's at:

http://www.deserve-it.com/sw/patches/

> > And as a side note this one should be applied:
> >
> > http://sourceforge.net/tracker/
> > index.php?func=detail&aid=784024&group_id=85937&atid=577800
>
> (patch related to 'extern int errno' declaration)
>
> I've applied it to 5.3.24.  Thanks.

Thanks Tom for controlling this, it's highly appreciated.

-- 
Regards // Oden Eriksson, Deserve-IT.com



Re: [vchkpw] doublebounces non-.qmail-default | /var/vpopmail/bin/vdelivermail '' delete

2003-08-14 Thread Oden Eriksson
torsdagen den 14 augusti 2003 20.34 skrev Tom Walsh:
> Just put a comment in the .qmail or .qmail-username file... no need to
> invoke vdelivermail when you are going to throw it to /dev/null anyways...
>
> I have an account created on my mail server named null...
>
> in his .qmail file I have
>
> #
>
> nothing else...
>
> Has the same effect...

Beware that this does not seem to work 100% with vpopmail. Check the archives 
for a better answer.

As a side note, "#" is not like "/dev/null", but perhaps you knew that.





Re: [vchkpw] Incredibly destructive chmod's in vpopmail's Makefile.am

2003-08-14 Thread Oden Eriksson
måndagen den 11 augusti 2003 21.20 skrev Tom Collins:
> On Monday, August 11, 2003, at 10:36  AM, Adam Hooper wrote:
> > The Makefile.am would be a lot simpler and less system-intrusive if it
> > used the 'install' command instead of mkinstalldirs/cp/chown/chmod.
> >
> > Would it be more helpful if I wrote up a patch for this? I have hardly
> > any time for the next 3 weeks, but figured this issue ought to be
> > brought to people's attention as soon as possible.
>
> I would gladly accept such a patch.  This is on the todo list for
> vpopmail, and I'd love to cross it out.
>
> Being able to install vpopmail to /usr/local would be a great
> improvement.  Having it make so many changes to directory ownership and
> permissions is a bad thing.
>
> If you do not have the time, then I'll try to take a look at the
> install command and change Makefile.am to use it instead of the current
> mess of code.

That shouldn't be so hard, just a matter of making it honor the passed bindir, 
sbindir, sysconfdir, etc. from the configure invocation(?). 
"--prefix=/home/vpopmail" would be the "legacy" and default option in this 
case.


-- 
Regards // Oden Eriksson, Deserve-IT.com



Re: [vchkpw] Pulling raw messages out of a maildir

2003-08-21 Thread Oden Eriksson
torsdagen den 21 augusti 2003 16.30 skrev Michael Bowe:
> - Original Message -
> From: "Dave Richardson - Lists" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, August 21, 2003 11:07 PM
> Subject: [vchkpw] Pulling raw messages out of a maildir
>
> > I want to physically pull the mail message files out of the Admin user's
> > "virus found" folder (below INBOX) and just save them in a tar.gz file
> > until I write my scripts and process them.
> >
> > Q: Any harm in leaving qmail/vpopmail up and running while working at
> > the file system level to move the messages out of the Maildir tree?
> > I DO NOT want to risk damaging this account, since it's my real Admin
> > account.
>
> I do that sort of thing all the time (delete email files directly out of
> peoples maildir's)
>
> Shouldnt cause any problems (except maybe mess up that user's quota...
> which can be fixed by also zapping their maildirsize file)
>
> Michael.

As per DJB docs one should taint the dir before messing with it.

-- 
Regards // Oden Eriksson, Deserve-IT.com



Re: [vchkpw] Pulling raw messages out of a maildir

2003-08-21 Thread Oden Eriksson
fredagen den 22 augusti 2003 16.41 skrev Oden Eriksson:
> torsdagen den 21 augusti 2003 16.30 skrev Michael Bowe:
> > - Original Message -
> > From: "Dave Richardson - Lists" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Thursday, August 21, 2003 11:07 PM
> > Subject: [vchkpw] Pulling raw messages out of a maildir
> >
> > > I want to physically pull the mail message files out of the Admin
> > > user's "virus found" folder (below INBOX) and just save them in a
> > > tar.gz file until I write my scripts and process them.
> > >
> > > Q: Any harm in leaving qmail/vpopmail up and running while working at
> > > the file system level to move the messages out of the Maildir tree?
> > > I DO NOT want to risk damaging this account, since it's my real Admin
> > > account.
> >
> > I do that sort of thing all the time (delete email files directly out of
> > peoples maildir's)
> >
> > Shouldnt cause any problems (except maybe mess up that user's quota...
> > which can be fixed by also zapping their maildirsize file)
> >
> > Michael.
>
> As per DJB docs one should taint the dir before messing with it.

He he he, I meant "make it sticky", gotta have some more coffey now ;)

-- 
Regards // Oden Eriksson, Deserve-IT.com



[vchkpw] autorespond (CAN-2003-0654)

2003-08-18 Thread Oden Eriksson
Hi.

This isn't really my bag, but I rolled a tarball out of autorespond with the 
debian CAN-2003-0654 patch applied, I also added their man page and a 
ChangeLog file. Please use this one or roll an authorized tar ball 
immediately (Ken Jones?).

Here's my tar ball:

http://www.deserve-it.com/sw/src/autorespond/autorespond-2.0.4.tar.gz

Here's the announcement:

http://www.securityfocus.com/advisories/5716

-- 
Regards // Oden Eriksson, Deserve-IT.com



Re: [vchkpw] vpopmail with courier-imap and relay

2003-08-24 Thread Oden Eriksson
söndagen den 24 augusti 2003 21.42 skrev Bård Tommy Nilsen:
> Hello
>
> How can i allow every user that is using IMAP to send mails trough the
> mailserver ??

I assume you mean roaming access?

Read the documentations, annoy Mr. Sam, and/or use the attached patch?

--- authlib/preauthvchkpw.c	2003-03-12 03:51:27.0 +0100
+++ authlib/preauthvchkpw.c.oden	2003-06-09 12:50:17.0 +0200
@@ -27,7 +27,7 @@
 static const char rcsid[]="$Id: preauthvchkpw.c,v 1.18 2003/03/12 02:45:55 mrsam Exp $";
 
 
-#undef HAVE_OPEN_SMTP_RELAY
+/* #undef HAVE_OPEN_SMTP_RELAY */
 /* Disabled, pending fix */
 
 int auth_vchkpw_pre(const char *userid, const char *service,
@@ -63,9 +63,9 @@
 make_user_dir(User, Domain, uid, gid);
 vpw=vauth_getpw(User, Domain);
 }
-#ifdef ENABLE_AUTH_LOGGING
+/* #ifdef ENABLE_AUTH_LOGGING */
 vset_lastauth(User, Domain, service);
-#endif
+/* #endif */
 
 }
 free(usercopy);
@@ -84,19 +84,19 @@
 if ( vpw->pw_gid & NO_POP ) {
 return(-1);
 } else {
-#ifdef HAVE_OPEN_SMTP_RELAY
+/* #ifdef HAVE_OPEN_SMTP_RELAY */
 /* open the relay to pop users */
 open_smtp_relay();
-#endif
+/* #endif */
 }
 } else if ( strcmp("imap", service) == 0 ) {
 if ( vpw->pw_gid & NO_IMAP ) {
 return(-1);
 } else {
-#ifdef HAVE_OPEN_SMTP_RELAY
+/* #ifdef HAVE_OPEN_SMTP_RELAY */
 /* open the relay to imap users */
 open_smtp_relay();
-#endif
+/* #endif */
 }
 }
 


Re: [vchkpw] Re: Webmail question

2003-08-24 Thread Oden Eriksson
söndagen den 24 augusti 2003 23.24 skrev Michael Bowe:
> I have also been using that software on my server for a while now
>
> It seems to work very well
>
> Michael

I'm maintaining the php-mmcache and php-apc packages for Mandrake Linux, I 
like the php-mmcache package more though.

Direct links:

Use the upcoming Mandrake Linux 9.2 release..., or grab the source rpm 
packages here (rpm --rebuild the_package.src.rpm):

ftp://ftp.uninett.no/linux/Mandrake/Mandrake-devel/contrib/SRPMS/php-apc-4.3.2_2.0-1mdk.src.rpm
ftp://ftp.uninett.no/linux/Mandrake/Mandrake-devel/contrib/SRPMS/php-mmcache-4.3.2_2.3.23-1mdk.src.rpm

Or visit the authors web sites:

http://pear.php.net/package/APC
http://www.turcksoft.com/en/e_mmc.htm


Cheers.

PS. Sorry for the OT plug..., but...

> - Original Message -
> From: "Paul Theodoropoulos" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, August 25, 2003 2:14 AM
> Subject: Re: [vchkpw] Re: Webmail question
>
> > >>  i *am* using a software PHP accelerator, and there's no good reason
>
> for
>
> > >> anyone to run squirrelmail without one - it dramatically reduces CPU
>
> demand.
>
> > for those who may be interested, and also unaware of it, there is a
> > freeware php accelerator out there. it works great, and i highly
> > recommend it. figured this was an appropriate followup to my own post.
> >
> > http://www.php-accelerator.co.uk/
> >
> >
> >
> >
> > Paul Theodoropoulos
> > http://www.anastrophe.com




Re: [vchkpw] Compiling courier-imap to work with vpopmail

2003-08-25 Thread Oden Eriksson
måndagen den 25 augusti 2003 12.13 skrev Bård Tommy Nilsen:
> Hello
>
> Trying to use courier-imap with vpopmail, but it fails
>
>
> i use courier-imap-2.0.0
>
>
>
> $ export CFLAGS="-DHAVE_OPEN_SMTP_RELAY"
> $ ./configure --without-authdaemon --with-authvchkpw
> $ make
>
> then it fails
>
> /usr/bin/ld: cannot find -lvpopmail
> *** Error code 1
>
> Stop in /usr/home/bardtomm/courier-imap-2.0.0/authlib.
> *** Error code 1
>
> Stop in /usr/home/bardtomm/courier-imap-2.0.0/authlib.
> *** Error code 1
>
> Stop in /usr/home/bardtomm/courier-imap-2.0.0.
>
>
> What could i be doing wrong ??
>
>
> Bård Tommy

Reading the docs?

Well..., you could do it like I do, check attached files.

-- 
Regards // Oden Eriksson, Deserve-IT.com

courier-imap
Description: application/shellscript
--- authlib/preauthvchkpw.c	2003-03-12 03:51:27.0 +0100
+++ authlib/preauthvchkpw.c.oden	2003-06-09 12:50:17.0 +0200
@@ -27,7 +27,7 @@
 static const char rcsid[]="$Id: preauthvchkpw.c,v 1.18 2003/03/12 02:45:55 mrsam Exp $";
 
 
-#undef HAVE_OPEN_SMTP_RELAY
+/* #undef HAVE_OPEN_SMTP_RELAY */
 /* Disabled, pending fix */
 
 int auth_vchkpw_pre(const char *userid, const char *service,
@@ -63,9 +63,9 @@
 make_user_dir(User, Domain, uid, gid);
 vpw=vauth_getpw(User, Domain);
 }
-#ifdef ENABLE_AUTH_LOGGING
+/* #ifdef ENABLE_AUTH_LOGGING */
 vset_lastauth(User, Domain, service);
-#endif
+/* #endif */
 
 }
 free(usercopy);
@@ -84,19 +84,19 @@
 if ( vpw->pw_gid & NO_POP ) {
 return(-1);
 } else {
-#ifdef HAVE_OPEN_SMTP_RELAY
+/* #ifdef HAVE_OPEN_SMTP_RELAY */
 /* open the relay to pop users */
 open_smtp_relay();
-#endif
+/* #endif */
 }
 } else if ( strcmp("imap", service) == 0 ) {
 if ( vpw->pw_gid & NO_IMAP ) {
 return(-1);
 } else {
-#ifdef HAVE_OPEN_SMTP_RELAY
+/* #ifdef HAVE_OPEN_SMTP_RELAY */
 /* open the relay to imap users */
 open_smtp_relay();
-#endif
+/* #endif */
 }
 }
 


Re: [vchkpw] Compiling courier-imap to work with vpopmail

2003-08-25 Thread Oden Eriksson
tisdagen den 26 augusti 2003 12.38 skrev Oden Eriksson:
> måndagen den 25 augusti 2003 12.13 skrev Bård Tommy Nilsen:
> > Hello
> >
> > Trying to use courier-imap with vpopmail, but it fails
> >
> >
> > i use courier-imap-2.0.0
> >
> >
> >
> > $ export CFLAGS="-DHAVE_OPEN_SMTP_RELAY"
> > $ ./configure --without-authdaemon --with-authvchkpw
> > $ make
> >
> > then it fails
> >
> > /usr/bin/ld: cannot find -lvpopmail
> > *** Error code 1
> >
> > Stop in /usr/home/bardtomm/courier-imap-2.0.0/authlib.
> > *** Error code 1
> >
> > Stop in /usr/home/bardtomm/courier-imap-2.0.0/authlib.
> > *** Error code 1
> >
> > Stop in /usr/home/bardtomm/courier-imap-2.0.0.
> >
> >
> > What could i be doing wrong ??
> >
> >
> > Bård Tommy
>
> Reading the docs?
>
> Well..., you could do it like I do, check attached files.

You should proably use this patch too (attached):

-- 
Regards // Oden Eriksson, Deserve-IT.comdiff -Naur courier-imap-1.6.2/courier-imap.sysvinit.in courier-imap-1.6.2.oden/courier-imap.sysvinit.in
--- courier-imap-1.6.2/courier-imap.sysvinit.in	2002-11-17 09:54:28.0 +0100
+++ courier-imap-1.6.2.oden/courier-imap.sysvinit.in	2002-12-31 14:12:24.0 +0100
@@ -1,4 +1,4 @@
-# @SHELL@
+#! @SHELL@
 #
 # This is a sample /etc/init.d file for Courier-IMAP
 #
@@ -47,46 +47,6 @@
 		fi
 		;;
 	esac
-
-	POP3DSTART=""
-	POP3DSSLSTART=""
-
-	if test -f @sysconfdir@/pop3d
-	then
-		. @sysconfdir@/pop3d
-	fi
-
-	case x$POP3DSTART in
-	x[yY]*)
-		# Start daemons.
-		@libexecdir@/pop3d.rc start
-		echo -n " pop3"
-		;;
-	esac
-
-	if test -f @sysconfdir@/pop3d-ssl
-	then
-		. @sysconfdir@/pop3d-ssl
-	fi
-
-	case x$POP3DSSLSTART in
-	x[yY]*)
-		if test -x $COURIERTLS
-		then
-
-		# First time we start this, generate a dummy SSL certificate.
-
-			if test ! -f $TLS_CERTFILE
-			then
-echo -n " generating-SSL-certificate..."
-@datadir@/mkpop3dcert >/dev/null 2>&1
-			fi
-			@libexecdir@/pop3d-ssl.rc start
-			echo -n " pop3-ssl"
-		fi
-		;;
-	esac
-
 	echo ""
 	;;
 stop)
@@ -100,19 +60,6 @@
 		@libexecdir@/imapd-ssl.rc stop
 		echo -n " imap-ssl"
 	fi
-
-	if test -f @sysconfdir@/pop3d
-	then
-		@libexecdir@/pop3d.rc stop
-		echo -n " pop3"
-
-		if test -x $COURIERTLS
-		then
-			@libexecdir@/pop3d-ssl.rc stop
-			echo -n " pop3-ssl"
-		fi
-	fi
-
 	echo ""
 	;;
 restart)
diff -Naur courier-imap-1.6.2/imapd.rc.in courier-imap-1.6.2.oden/imapd.rc.in
--- courier-imap-1.6.2/imapd.rc.in	2002-12-24 03:31:40.0 +0100
+++ courier-imap-1.6.2.oden/imapd.rc.in	2002-12-31 14:10:31.0 +0100
@@ -43,8 +43,7 @@
 		IMAP_STARTTLS=$IMAPDSTARTTLS ; export IMAP_STARTTLS ; \
 		TLS_PROTOCOL=$TLS_STARTTLS_PROTOCOL ; \
 		@libexecdir@/couriertcpd -address=$ADDRESS \
-			[EMAIL PROTECTED]@/courierlogger \
-			-stderrloggername=imapd \
+			-user=vpopmail -group=vchkpw \
 			-maxprocs=$MAXDAEMONS -maxperip=$MAXPERIP \
 			-pid=$PIDFILE $TCPDOPTS \
 			$PORT @sbindir@/imaplogin $LIBAUTHMODULES \
diff -Naur courier-imap-1.6.2/imapd-ssl.rc.in courier-imap-1.6.2.oden/imapd-ssl.rc.in
--- courier-imap-1.6.2/imapd-ssl.rc.in	2002-12-24 03:31:40.0 +0100
+++ courier-imap-1.6.2.oden/imapd-ssl.rc.in	2002-12-31 14:10:31.0 +0100
@@ -42,8 +42,7 @@
 		. @sysconfdir@/imapd-ssl ; \
 		IMAP_TLS=1; export IMAP_TLS; \
 		@libexecdir@/couriertcpd -address=$SSLADDRESS \
-			[EMAIL PROTECTED]@/courierlogger \
-			-stderrloggername=imapd-ssl \
+			-user=vpopmail -group=vchkpw \
 			-maxprocs=$MAXDAEMONS -maxperip=$MAXPERIP \
 			-pid=$SSLPIDFILE $TCPDOPTS \
 			$SSLPORT $COURIERTLS -server -tcpd \


Re: [vchkpw] vpopmail and learn passwords

2003-08-26 Thread Oden Eriksson
tisdagen den 26 augusti 2003 18.23 skrev Tom Collins:
> On Tuesday, August 26, 2003, at 08:59  AM, Ken Jones wrote:
> > It does not work with the cdb module.
> > Here is what I tested
> > vpopmail 5.3.21 configured for cdb
> > 1) vadddomain test.com test
>
> vadduser -n [EMAIL PROTECTED]
>
> (adds user test with no password)
>
> Then try logging it and check the ~vpopmail/domains/test.com/vpasswd
> file for the password.

Remember to check if FOOB is in the source?




Re: [vchkpw] vpopmail 5.3.25 and 5.3.26 released

2003-08-27 Thread Oden Eriksson
onsdagen den 27 augusti 2003 02.24 skrev Tom Collins:

[...]

Outstanding work guys!

But I get this with 5.3.26:


make[2]: Leaving directory `/home/oden/RPM/BUILD/vpopmail-5.3.26/cdb'
make[2]: Entering directory `/home/oden/RPM/BUILD/vpopmail-5.3.26'
gcc -I. -Icdb  -Os -march=pentium -Wall -c vpopmail.c
vpopmail.c: In function `open_smtp_relay':
vpopmail.c:2418: `BUFF_SIZE' undeclared (first use in this function)
vpopmail.c:2418: (Each undeclared identifier is reported only once
vpopmail.c:2418: for each function it appears in.)
vpopmail.c:2521: parse error before ';' token
vpopmail.c:2529:1: directives may not be used inside a macro argument
vpopmail.c:2528:22: unterminated argument list invoking macro "unlock_lock"
vpopmail.c:2531: `unlock_lock' undeclared (first use in this function)
vpopmail.c:2531: parse error before "return"
vpopmail.c:2418: warning: unused variable `tmpbuf1'
vpopmail.c:2419: warning: unused variable `tmpbuf2'
vpopmail.c: In function `update_rules':
vpopmail.c:2643: `tmpbuf2' undeclared (first use in this function)
vpopmail.c:2691: `tempstr' undeclared (first use in this function)
make[2]: *** [vpopmail.o] Error 1
make[2]: Leaving directory `/home/oden/RPM/BUILD/vpopmail-5.3.26'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/oden/RPM/BUILD/vpopmail-5.3.26'
make: *** [all-recursive-am] Error 2



Here's my configure line:

./configure \
--enable-qmaildir=/var/qmail \
--enable-qmail-newu=/var/qmail/bin/qmail-newu \
--enable-qmail-inject=/var/qmail/bin/qmail-inject \
--enable-qmail-newmrh=/var/qmail/bin/qmail-newmrh \
--enable-vpopuser=vpopmail \
--enable-vpopgroup=vchkpw \
--enable-roaming-users=y \
--enable-tcprules-prog=/usr/bin/tcprules \
--enable-tcpserver-file=/home/vpopmail/etc/smtp \
--enable-relay-clear-minutes=360 \
--enable-learn-passwords=y \
--enable-md5-passwords=y \
--enable-auth-logging=y \
--enable-mysql-logging=n \
--enable-mysql-limits=n \
--enable-pgsql-logging=n \
--enable-clear-passwd=y \
--enable-users-big-dir=y \
--enable-logging=p \
--enable-sqwebmail-pass=y \
--enable-log-name=vpopmail \
--enable-domains-dir=domains \
--enable-incdir= \
--enable-libdir= \
--enable-libs= \
--enable-mysql=n \
--enable-mysql-replication=n \
--enable-valias=n \
--enable-file-locking=y \
--enable-file-sync=n \
--enable-make-seekable=y \
--enable-many-domains=y \
--enable-ldap=n \
--enable-oracle=n \
--enable-postgres=n \
--enable-sybase=n \
--enable-active-directory=n \
--enable-qmail-ext=y \
--enable-rebuild-tcpserver-file=y \
--enable-ip-alias-domains=n \
--enable-passwd=n





Re: [vchkpw] Sqwebmail not letting us login

2003-08-29 Thread Oden Eriksson
lördagen den 30 augusti 2003 00.07 skrev Jason Silverglate:
> I just installed Sqwebmail and I am running the latest version of
> vpopmail but sqwebmail won't let me login.  Can anyone provide a good
> configure string that would work?

- cut - 

#!/bin/sh

export CC="gcc"
export CFLAGS="-O3 -march=pentium -DHAVE_OPEN_SMTP_RELAY -DHAVE_VLOGAUTH"
export CXXFLAGS="-O3 -march=pentium -DHAVE_OPEN_SMTP_RELAY -DHAVE_VLOGAUTH"
export LDFLAGS="-L/home/vpopmail/lib"
export CPPFLAGS="-I/home/vpopmail/include"
export PREFIX="/usr/local/sqwebmail"

export PERL="/usr/bin/perl"
export ispell="/usr/bin/ispell"
export mailer="/var/qmail/bin/usendmail -oi -t"
export sendmail="/var/qmail/bin/usendmail"

./configure \
--prefix=$PREFIX \
--with-cachedir=/var/cache/sqwebmail \
--with-db=gdbm \
--enable-webpass=vpopmail \
--enable-cgibindir=/var/www/cgi-bin \
--enable-imagedir=/var/www/html/images/sqwebmail \
--enable-imageurl=/images/sqwebmail \
--enable-webpass=yes \
--enable-unicode \
--enable-mimetypes=$PREFIX/mime.types \
--with-authvchkpw \
--without-authuserdb \
--without-authpam --with-authpam-libraries="" \
--without-authpwd \
--without-authshadow \
--without-authldap --with-authldaprc="" --with-ldap-libs="" 
--with-ldap-includes="" \
--without-authpgsql --with-authpgsqlrc="" --with-pgsql-libs="" 
--with-pgsql-includes="" \
--without-authmysql --with-authmysqlrc="" --with-mysql-libs="" 
--with-mysql-includes="" \
--without-authcram \
--without-authcustom \
--without-authdaemon --with-authdaemonrc="" --with-authdaemonvar="" \
--without-fcgi --disable-fcgi \
--without-gzip --disable-gzip \
--without-makedatprog --disable-makedatprog \
--with-dirsync \
--with-ipv6 \
--with-trashquota \
--with-cacheowner=vpopmail \
--enable-bannerprog=/var/www/cgi-bin/ads.cgi \
--enable-hardtimeout=7200 \
--enable-softtimeout=3600 \
--enable-autopurge=5 \
--enable-maxpurge=90

make -j2 && make install

chown -R vpopmail.vchkpw /var/cache/sqwebmail

- cut - 

plus the attached patch?

Cheers.
--- authlib/preauthvchkpw.c	2003-03-12 03:51:27.0 +0100
+++ authlib/preauthvchkpw.c.oden	2003-06-09 12:50:17.0 +0200
@@ -27,7 +27,7 @@
 static const char rcsid[]="$Id: preauthvchkpw.c,v 1.18 2003/03/12 02:45:55 mrsam Exp $";
 
 
-#undef HAVE_OPEN_SMTP_RELAY
+/* #undef HAVE_OPEN_SMTP_RELAY */
 /* Disabled, pending fix */
 
 int auth_vchkpw_pre(const char *userid, const char *service,
@@ -63,9 +63,9 @@
 make_user_dir(User, Domain, uid, gid);
 vpw=vauth_getpw(User, Domain);
 }
-#ifdef ENABLE_AUTH_LOGGING
+/* #ifdef ENABLE_AUTH_LOGGING */
 vset_lastauth(User, Domain, service);
-#endif
+/* #endif */
 
 }
 free(usercopy);
@@ -84,19 +84,19 @@
 if ( vpw->pw_gid & NO_POP ) {
 return(-1);
 } else {
-#ifdef HAVE_OPEN_SMTP_RELAY
+/* #ifdef HAVE_OPEN_SMTP_RELAY */
 /* open the relay to pop users */
 open_smtp_relay();
-#endif
+/* #endif */
 }
 } else if ( strcmp("imap", service) == 0 ) {
 if ( vpw->pw_gid & NO_IMAP ) {
 return(-1);
 } else {
-#ifdef HAVE_OPEN_SMTP_RELAY
+/* #ifdef HAVE_OPEN_SMTP_RELAY */
 /* open the relay to imap users */
 open_smtp_relay();
-#endif
+/* #endif */
 }
 }
 


Re: [vchkpw] Inter7, vpopmail, and open source standards

2003-09-09 Thread Oden Eriksson
tisdagen den 9 september 2003 21.44 skrev Ms. Catherine Kouzmanoff:

> For seven years, Inter7 has been the original and primary development
> source for vpopmail, qmailadmin, vQadmin, eps, vQregister, DNSadmin,

Incorrect, let me remind you "vpopmail" itself is a fork off of the work by 
Chris Johnson in 1998/1999 and his "vchkpw" software..., that's what..., like 
minus three years?

Cheers.




Re: [vchkpw] Inter7, vpopmail, and open source standards

2003-09-09 Thread Oden Eriksson
tisdagen den 9 september 2003 23.46 skrev Ken Jones:
> On Tuesday 09 September 2003 4:14 pm, Oden Eriksson wrote:
> > tisdagen den 9 september 2003 21.44 skrev Ms. Catherine Kouzmanoff:
> > > For seven years, Inter7 has been the original and primary development
> > > source for vpopmail, qmailadmin, vQadmin, eps, vQregister, DNSadmin,
> >
> > Incorrect, let me remind you "vpopmail" itself is a fork off of the work
> > by Chris Johnson in 1998/1999 and his "vchkpw" software..., that's
> > what..., like minus three years?
> >
> > Cheers.
>
> That is not quite correct. vpopmail is not a fork of vchkpw.
>
> When I started working on vchkpw I asked Chris Johnson
> if it would be okay for me to do the primary development work
> on the project. He agreed and I started the work. I think
> that was back in 1998.

Ahh, I remember now, sorry. I used Chris's work back then and was very happy 
that this framework or what it's called was embraced by you. You have done an 
amazing work, so has Bill, so is Tom and Michael. I think I have used this 
code since then.

vchkpw was renamed to vpopmail because no one could pronounce the latter ;), 
and that's no fork.

> In the same spirit of community and co-operation, Bill Shupp
> took over primary development for quite some time. Our
> last combined release was in April.

Yes, he's a great guy.




Re: [vchkpw] Inter7, vpopmail, and open source standards

2003-09-09 Thread Oden Eriksson
onsdagen den 10 september 2003 00.34 skrev Tom Collins:

[...]

> I have been learning about CVS today, and will have a CVS repository of
> the current versions of vpopmail and qmailadmin available within the
> next 24 hours.  I want to make sure I have a full understanding of how
> CVS works so I can make sure I set it up properly (and know how to
> correctly commit future changes).

If you want to check in old stuff for historical reasons or whatever, I think 
I have at least 80% of all the releases at my site, it's at:

http://www.deserve-it.com/sw/src/




Re: [vchkpw] Customise Bounce message

2003-09-10 Thread Oden Eriksson
onsdagen den 10 september 2003 12.57 skrev Emris:
> Hi,
>
> on 06.05.2003 01:19 CoyoteTM said the following:
> > I need to customise the bounce messages. How can I do that ?
> > (...well maybe this is qmail related question, but maybe someone can help
> > me...)
>
> There several patches which can help you to get desired results. You can
> search via Google. If this doesn't helps, i'll provide them to you.

http://www.deserve-it.com/sw/patches/


-- 
Regards // Oden Eriksson, Deserve-IT.com




Re: [vchkpw] OT: vpopmail & spamd & user prefs

2003-09-11 Thread Oden Eriksson
torsdagen den 11 september 2003 02.23 skrev Bill Shupp:

[...]

> I'm using this in the context of WebUserPrefs, a PHP config tool for
> SpamAssassin, plus a new panel that allows for optional deletion of
> spam.  Once I get all this working smoothly, I'll post some docs on how
> it's working for me.  Looks pretty cool, tho.

Cool, you might want to check out the hacks I did for webuserprefs and 
included in the Mandrake package I maintain, a demo is here:

http://www.deserve-it.com/Cooker/webuserprefs/

(my hacks is meant for the global spamassassin prefs...)

-- 
Regards // Oden Eriksson, Deserve-IT.com




Re: [vchkpw] new(?) qmail-smtpd patch

2003-09-14 Thread Oden Eriksson
söndagen den 14 september 2003 22.27 skrev Charles Sprickman:
> This one's also interesting, it filters "bad" mime types, without needing
> to incur the overhead of a perl-based scanner (ie: qmail-scanner):
>
> http://www.fehcom.de/qmail/qmail.html (scroll to "warlord")

Yeah, I'm using it, very cool.




Re: [vchkpw] new(?) qmail-smtpd patch

2003-09-14 Thread Oden Eriksson
söndagen den 14 september 2003 22.47 skrev Bill Shupp:
> On Sunday, September 14, 2003, at 01:24  PM, Charles Sprickman wrote:
> > While looking for info on how to get more logging out of qmail-smtpd
> > (auth
> > failures),
>
> vchkpw compiled with --enable-logging=v, will show success smtp logins,
> as well as failures with the attempted password.  You'll need the dev
> version, though.  Very useful.

Yes.

But I wonder if no one has requested logging to stdout and let multilog take 
care of it? Is it possible?




Re: Fw: [vchkpw] *.COM -> 64.94.110.11

2003-09-17 Thread Oden Eriksson
onsdagen den 17 september 2003 02.56 skrev Jeremy Kister:
> On Tuesday, September 16, 2003 11:46 AM, Eric Ziegast wrote:
> > dnscache.  Here's a patch for people who use dnscache
> > to preserve the old (uninfected) behavior...
>
> not only for .com, but also .net.
>
> a similar patch exists for BIND v8, although I havent installed it yet.
>
> http://achurch.org/bind-verisign-patch.html
> I hope verisign (and anyone who had anything to do with that silly
> decision) looses the ability to manage the gtld servers for ever.

I have packages for Mandrake Linux (Cooker):

http://www.deserve-it.com/Cooker/SRPMS/bind-9.2.3-0.rc2.1mdk.src.rpm
http://www.deserve-it.com/Cooker/SRPMS/caching-nameserver-9.2-1mdk.src.rpm

http://www.deserve-it.com/Cooker/RPMS/caching-nameserver-9.2-1mdk.noarch.rpm
http://www.deserve-it.com/Cooker/RPMS/bind-9.2.3-0.rc2.1mdk.i586.rpm
http://www.deserve-it.com/Cooker/RPMS/bind-devel-9.2.3-0.rc2.1mdk.i586.rpm
http://www.deserve-it.com/Cooker/RPMS/bind-utils-9.2.3-0.rc2.1mdk.i586.rpm

The changed files are /etc/named.conf in the "caching-nameserver" package, and 
the named.conf files in the bind-* example files.

Here's the change:

[EMAIL PROTECTED] /]# diff -u named.conf named.conf.oden
--- named.conf  2002-09-04 00:00:00.0 +0200
+++ named.conf.oden 2003-09-17 15:13:00.0 +0200
@@ -38,3 +38,16 @@
file "named.local";
 };

+// workaround stupid stuff... (OE: Wed 17 Sep 2003)
+zone "ac" { type delegation-only; };
+zone "cc" { type delegation-only; };
+zone "com" { type delegation-only; };
+zone "cx" { type delegation-only; };
+zone "museum" { type delegation-only; };
+zone "net" { type delegation-only; };
+zone "nu" { type delegation-only; };
+zone "ph" { type delegation-only; };
+zone "sh" { type delegation-only; };
+zone "tm" { type delegation-only; };
+zone "ws" { type delegation-only; };
+


This will make a "nslookup asdasdkjhasdkjherinasdasdqef.nu" respond with "** 
server can't find asdasdkjhasdkjherinasdasdqef.nu: NXDOMAIN".

I have fixed the name servers serving 11 full c-class and one 1/4 c-class 
networks and about 3000 hosts/klients. It works great!

-- 
Regards // Oden Eriksson, Deserve-IT.com




Re: [vchkpw] Find out how vpopmail was compiled

2003-09-22 Thread Oden Eriksson
måndagen den 22 september 2003 12.45 skrev Brad:
> > I need to figure out how vpopmail was compiled on an existing machine,
> > in other words: I need to know which options were used with
> > ../configure
>
> You should be able to find this informaton in the config.status file
> located in the source from which you compiled...

cat /home/vpopmail/include/config.h

-- 
Regards // Oden Eriksson, Deserve-IT.com




Re: [vchkpw] AppleMail "Password Fail" in syslog

2003-09-22 Thread Oden Eriksson
måndagen den 22 september 2003 17.48 skrev Patrick Pittman:
> > On Friday, September 19, 2003, at 09:01  PM, Rick van Vliet wrote:
> >> I have several user on a small vpopmail domain, that seem to be able
> >> to send and get mail fine.
> >> However, AppleMail (OSX 10.2) seems to leave a "vchkpw: password fail
> >> [EMAIL PROTECTED]"
> >> (Using password authentication on the Mac client end)
> >>
> >> Wondering if someone has thoughts on why I'm getting that fail,
> >> despite the user being able to send/retrieve?
> >
> > I use Apple Mail without any problem...
> >
> > What version of vpopmail are you using, and where do you see the
> > "password fail" error?  Is this when picking up mail, or sending with
> > SMTP AUTH?
>
> I also get this error on POP authentication with my Apple Mail users,
> currently using 5.3.24 but has been consistent through versions over the
> last year. The mail comes in fine, and they get no error on their end, only
> in the logs.


I (co)manage a system where apple people say apop auth fails or something like 
that. I looked in the code but couldn't find any apop in there, I seem to 
remember apop was removed?

I was stupid using a patch that claimed apop capa in qmail-popup and 
qmail-pop3d, but removed it. Is it so that apple mail clients autoconfigure 
when the account is setup, but cannot reconfigure, or is it simply a human 
error? 

Using v5.3.27.

-- 
Regards // Oden Eriksson, Deserve-IT.com




Re: [vchkpw] [PATCH] Re: [vchkpw] Is qmail-scanner work properly with vpopmail/qmail

2003-09-23 Thread Oden Eriksson
tisdagen den 23 september 2003 17.45 skrev Tim Hasson:
> Within a month or two, if this is not already done, i'll do it.
> Just dont have any time right now..
>
> Quoting Oden Eriksson <[EMAIL PROTECTED]>:
> > tisdagen den 23 september 2003 14.43 skrev Tim Hasson:
> > > I posted this patch a long while ago, and I posted it several times...
> > >
> > > Hope someone notices and somehow magically add it to the
> > > documentation/faq/code..
> > >
> > > Actually, it would be nice as a configure option..
> >
> > No, this is wrong.
> >
> > The best way would be if this value is taken from a config file
> > on-the-fly without the need of re-compilation, as the recent mysql auth
> > config file changes. Maybe also a possibility to have separate config
> > files per domain, that would be awesome!
>
> Respectfully,
> Tim Hasson

Sounds cool. I would like this very much,

-- 
Regards // Oden Eriksson, Deserve-IT.com




Re: [vchkpw] Solution to "can't read domain limits" and "failed to vget_limits" errors with 5.3.29

2003-10-23 Thread Oden Eriksson
torsdagen den 23 oktober 2003 19.35 skrev Tom Collins:
> Create a file called vlimits.default in ~vpopmail/etc/.
>
> You can use the attached file if you'd like.

Nice!.

I hope that file makes into the vpopmail distribution.

Thanks Tom.

Cheers.




Re: [vchkpw] POP gives strange RETR answers

2003-12-02 Thread Oden Eriksson
tisdagen den 2 december 2003 18.59 skrev Marc Schneider:

[...]

> Anyway, just in case somebody is interested, the lines 309:314 of
> qmail-pop3d.c have to be changed from
>
>   /* okay(); */
> -  puts("+OK ");
>   put(strnum,fmt_ulong(strnum,m[i].size));
> -  puts(" octets\r\n");
>   flush();
>
> to
>
>   /* okay(); */
> +  substdio_puts(&ssout,"+OK ");
>   put(strnum,fmt_ulong(strnum,m[i].size));
> +  substdio_puts(&ssout," octets\r\n");
>   flush();
>
> after applying the qmail-maildir++.patch . If anybody knows whether this is
> debian specific please tell me - I'd really like to know. Actually I might
> try and find out after I set up the rest of the server - still have to
> debug the SMTP-Auth :(

It has to be debian specific because the patch I have has these changes, get 
the current one here:

http://www.shupp.org/

Or rather the fixed one in the latest vpopmail tarball.




Re: AW: [vchkpw] POP gives strange RETR answers

2003-12-02 Thread Oden Eriksson
tisdagen den 2 december 2003 19.46 skrev Marc Schneider:
> > It has to be debian specific because the patch I have has these changes,
> > get the current one here:
> >
> > http://www.shupp.org/
> >
> > Or rather the fixed one in the latest vpopmail tarball.
>
> I got the patch from shupp.org. It fixes all the puts() ==> substdio_puts()
> apart from the two in the pop_top() function. I just wander if the
> pop_top() function is different in the debian release...

This is what this (note: "pop3_top") function looks like in the 
"qmail-pop3d.c" source using vanilla qmail and the maildir++ patch:

void pop3_top(arg) char *arg;
{
  int i;
  unsigned long limit;
  int fd;

  i = msgno(arg);
  if (i == -1) return;

  arg += scan_ulong(arg,&limit);
  while (*arg == ' ') ++arg;
  if (scan_ulong(arg,&limit)) ++limit; else limit = 0;

  fd = open_read(m[i].fn);
  if (fd == -1) { err_nosuch(); return; }
  okay();
  substdio_fdbuf(&ssmsg,read,fd,ssmsgbuf,sizeof(ssmsgbuf));
  blast(&ssmsg,limit);
  close(fd);
}

Maybe I'm just tired..., I don't see any put() here...




Re: [vchkpw] Upgrading

2003-12-12 Thread Oden Eriksson
fredagen den 12 december 2003 06.10 skrev Tom Collins:
> On Thursday, December 11, 2003, at 05:09  PM, Rob G wrote:
> > But the other question what would be the easiest way to figure out what
> > switches I used to install these products in the first place.  I did
> > this
> > about 6 months ago and now can't remember what switches I used.
>
> If you still have the source directory you installed from, you can find
> the options you used by reading the beginning of the config.status file.

Something for the FAQ?

Add this too:

Q: I don't know what version I have installed.
A. Examine the /home/vpopmail/include/config.h file.

Q. I have forgot how it was compiled.
A. Examine the /home/vpopmail/include/config.h file.




Re: [vchkpw] Vpopmail 5.4.0-pre2 released

2003-12-22 Thread Oden Eriksson
måndagen den 22 december 2003 05.24 skrev Tom Collins:
> http://vpopmail.sf.net/

Hi Tom, I get this:

gcc -I. -Icdb  -g -O2 -Wall -c vpopmail.c
vpopmail.c: In function `open_smtp_relay':
vpopmail.c:2454: warning: unused variable `cp'

Here's the errors from compiling it against dietlibc:

diet -Os gcc -march=pentium -static -nostdinc -I. -Icdb  -Os 
-march=pentium -pipe -nostdinc -D_BSD_SOURCE -D_GNU_SOURCE -Wall -c 
vpopmail.c
vpopmail.c: In function `randltr':
vpopmail.c:560: warning: `random' is deprecated (declared at 
/usr/lib/dietlibc/include/stdlib.h:51)
vpopmail.c: In function `mkpasswd3':
vpopmail.c:588: warning: `srandom' is deprecated (declared at 
/usr/lib/dietlibc/include/stdlib.h:52)

But it compiles! I will test later on if it works too ;)

BTW. Very clean from warnings now, thanks! Also the configure OR thing is 
great!




Re: [vchkpw] vchkpw and courier 2.2.1 (long)

2004-01-09 Thread Oden Eriksson
torsdagen den 8 januari 2004 21.05 skrev Michael Bowe:
> - Original Message -
> From: "Andrea Riela" <[EMAIL PROTECTED]>
>
> > With your patch, I've already a security problem? Or removing the
> > open_smtp_relay() calls from the preauthvchmpw.c file to authvchkpw.c,
> > you've fixed that?
>
> Yes, with the patch, the security problem is resolved, because the
> relay isnt opened unless the user has successfully authenticated.
>
> As you say, the open_smtp_relay() calls are moved from the
> pre-auth stage, to post-auth

I tried this patch but could not login. I'm running courier-imap as per 
"http://jonaspasche.de/courier-imap-daemontools.txt";. I will investigate some 
more this weekend, if I find the time.




[vchkpw] Good times!

2004-01-14 Thread Oden Eriksson
Hi.

I just wanted to let you all know I'm very happy with this developing model. 
Ken did a great job with this, but I must say _this_ is something very 
different from what I'm used to regarding this software.

The development is flourishing! It's exploading!

Keep it up guys!




Re: [vchkpw] Downloads

2004-01-27 Thread Oden Eriksson
tisdagen den 27 januari 2004 17.13 skrev KTS:
> Where can I download other than 5.2.2 or the development version?

The only place I know of is from my repository:

http://www.deserve-it.com/sw/src/vpopmail/

(if you wanted some really old stuff...)



Re: [vchkpw] bounce maybe used to relay spam

2004-01-27 Thread Oden Eriksson
tisdagen den 27 januari 2004 20.59 skrev Ken Jones:
> On Tuesday 27 January 2004 1:57 pm, Tom Jackson wrote:
> > I'm seeing a number of emails like [EMAIL PROTECTED] coming in to my
> > server. They are from different users. Since the local user doesn't
> > exist, qmail is attempting to bounce the message back to the sender.
> > Most of these are failing, the messages are obviously spam.
> >
> > I'm running vpopmail on the domains in question. Is there any way to
> > configure vpopmail or qmail to reject email if the local address doesn't
> > exist, or to silently trash the email?
> >
> > TIA
> >
> > tom jackson
>
> Set your bounce option to delete. The .qmail-default file will look like
>
> | /home/vpopmail/bin/vdelivermail '' delete
>
> Or, try to apply the check user patch to the smtp server so the
> email never makes it into your queue.

Would it be possible to make a domain that uses this technique but forward all 
mail to another server, as a gateway?





Re: [vchkpw] bounce maybe used to relay spam

2004-01-28 Thread Oden Eriksson
onsdagen den 28 januari 2004 08.02 skrev Jeremy Kitchen:
> On Tue, 2004-01-27 at 14:45, Oden Eriksson wrote:
> > > Or, try to apply the check user patch to the smtp server so the
> > > email never makes it into your queue.
> >
> > Would it be possible to make a domain that uses this technique but
> > forward all mail to another server, as a gateway?
>
> checkuser patch uses vpopmail calls.  the domain would have to be in
> vpopmail on the other server and/or would require some more advanced
> configuration.
>
> -Jeremy

Soon I will have to implement this. I have seen other similar solutions that 
are vpopmail independent. I don't want to lose /etc/passwd user 
functionalities..., as with the checkuser patch. I want both;)

It would be very nice if this was added to vpopmail+qmailadmin, like a "ghost" 
or maybe a "forward" domain where one can keep the email addresses in sync by 
uploading a csv file or something like that.

This particular setup I'm having is a wan <-> qmail <-> groupwise thing, plus 
standard vpopmail domains.

Cheers.



Re: [vchkpw] Pop before smtp bypasses qmail-scanner

2004-01-29 Thread Oden Eriksson
torsdagen den 29 januari 2004 20.52 skrev Michael Bowe:
> - Original Message -
> From: "Jeremy Kitchen" <[EMAIL PROTECTED]>
>
> > On Thu, 2004-01-29 at 12:21, J. Kendzorra wrote:
> > > Jeff Koch:
> > > > Then, it seems, for the period of time these entries stay in the
> > > > database email that comes from these IP addresses bypasses the
> > > > qmail-scanner virus filter.
> > > >
> > > > Is there a way to correct this problem? It is letting viruses through
> > > > our mailserver.
> > >
> > > Try putting
> > > QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue.pl"
> > > export QMAILQUEUE
> > > into your qmail-smtpd-runscript.
> > > It should catch *every* mail now.
> >
> > as I mentioned in my previous reply, even if it's like this, the
> > presence of the RELAYCLIENT environment variable overrides the
> > scanning.  This is documented in the qmail-scanner ... documentation :)
> >
> > -Jeremy
>
> No that isn't correct
>
> If you are settings QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue.pl" in
> your smtpd run file, then qmail-scanner will run for all SMTP connections.
> However if RELAYCLIENT is set, then qmail-scanner wont try to run the
> spamassassin subroutines. The antivirus will still run though.
>
> Alternatively, if you have coded the QMAILQUEUE commands into your tcp.smtp
> (rather than the smtpd run script), then qmailscanner will not be run at
> all for pop-before-smtp users. The only fix for this would be to modify the
> vpopmail source and change the lines where the open-smtp file is generated
> and make it include the QMAILQUEUE command also.

I tried that once but had problems with it. I guess there wasn't enough buffer 
for all those characters or something.

It would be nice in a future release if one could flag this on/off per user or 
at the least per domain. That would be cool for the current spamassassin code 
too (the "Track Spam" feature).

The system owner should be in charge of which domains should be able to use 
this as it puts additional load to the system and it could be charged 
differently. Like; "Track Spam" â40 per domain/user, "Virus scan" â20 per 
domain/user, etc.

Just my 0.2â.

Cheers.



Re: [vchkpw] pop3 login frequency patch

2004-02-09 Thread Oden Eriksson
Sunday 08 February 2004 14.45 skrev Eduardo M. Bragatto:
> Jeremy Kitchen wrote:
> > that could only be done in tcpserver by rate limiting connections by IP
> > address, and would also affect legitimate connections made by valid
> > users using proper authentication credentials.  I'd be mighty upset if
> > anyone rate limited my pop3 connections ;)
> >
> > Of course, special provisions could be made, but
>
>   I don't want it at the pop3, I want it on smtpd. Spammers are hammering
> my server, sending messages to lots of domains that I'm hosting. If I
> could set a limit like 5 simultaneously connections for each IP address,
> no one would be able to use all my "slots".

Could pretty easily be done with:

http://www.deserve-it.com/sw/patches/patch-ucspi-tcp-0.88-periplimit

Cheers.



Re: [vchkpw] pop3 login frequency patch

2004-02-09 Thread Oden Eriksson
Sunday 08 February 2004 01.44 skrev knom:
> Hi !
> Is there any patch for blocking too frequent pop3-logins (bruteforce
> attacks) ??
> If not, is anyone interested in some ?
> I'm doing this right at the moment !
>
> knom19.

http://sourceforge.net/tracker/index.php?func=detail&aid=874660&group_id=85937&atid=577801



Re: [vchkpw] QMAILQUEUE and Vpopmail

2004-02-10 Thread Oden Eriksson
Tuesday 10 February 2004 19.21 skrev Jeremy Kitchen:
7> On Tue, 2004-02-10 at 12:17, Eduardo M. Bragatto wrote:
> >  From Qmail-Scanner FAQ (http://qmail-scanner.sourceforge.net/FAQ.php):
> >
> > "Q-S doesn't work with Vpopmail Vpopmail basically strips out
> > environment variables set within the tcpserver SMTP rules file -
> > specifically the QMAILQUEUE environment variable. As it is responsible
> > for starting qmail-smtpd, that means Qmail-Scanner never gets called.
> > This is really a bug with Vpopmail, but a workaround is to set
> > QMAILQUEUE within /service/smtpd/run instead.(..)"
> >
> > This "bug" has been fixed in some recent version of vpopmail?
>
> it doesn't do it to the tcp.smtp file, it might in the open-smtp file,
> but I'm not sure.
>
> versions 5.3.21 and 5.4.0 I can confirm this.

How do I increase the buffer for this? I mean I could patch the source to have 
a huge line to feed the open-smtp and cdb file, but last time I tried this it 
didn't work.

Any suggestions?



[vchkpw] Re: [qmailadmin] PHP vpopmail extension

2004-02-13 Thread Oden Eriksson
(off list)

fredagen den 13 februari 2004 13.27 skrev Rick Widmer:
> Is there anyone on these lists that are using the PHP extension for
> vpopmail?
>
>
> I have made substantial changes that adapt it to vpopmail 5.4.0 and I am
> wondering how much effort I need to put into compatability with older
> versions.

No, I'm not using it but I have been packaging a whole bunch of extensions for 
Mandrake Linux and I would be very interested in looking at what you have 
done.

Cheers.



Re: [vchkpw] vadddomain hangs up. (qmail/vpopmail over NFS cluster)

2004-02-18 Thread Oden Eriksson
onsdagen den 18 februari 2004 11.39 skrev [EMAIL PROTECTED]:
> Hey.. im trying to setup vpopmail in a small cluster on a FreeBSD5.2 box
> with Netapp back-end.
>
> I've mounted vpopmail domains folders and /qmail/control + /qmail/users
> folder on NFS.
>
> when i try
>
> # /usr/local/vpopmail/bin/vadddomain abc123.com
>
> It just stops (hangs up) without finishing.

strace it?




[vchkpw] vdominfo v5.4.2

2004-03-10 Thread Oden Eriksson
Hi.

Here's some weird output:


# ./vdominfo -v
version: 5.4.2
domain: uuc
uid:10
gid:14
dir:/var/spool/uucp
users:  0
Note:   uuc is an alias for uucp

domain: uucp
uid:10
gid:14
dir:/var/spool/uucp
users:  0




Re: [vchkpw] vdominfo v5.4.2

2004-03-10 Thread Oden Eriksson
onsdagen den 10 mars 2004 15.03 skrev Tom Collins:
> On Mar 10, 2004, at 3:30 AM, Oden Eriksson wrote:
> > Hi.
> >
> > Here's some weird output:
> >
> >
> > # ./vdominfo -v
> > version: 5.4.2
> > domain: uuc
^^^
> > uid:10
> > gid:14
> > dir:/var/spool/uucp
> > users:  0
> > Note:   uuc is an alias for uucp
^^^
> >
> > domain: uucp
> > uid:10
> > gid:14
> > dir:/var/spool/uucp
> > users:  0
>
> vdominfo uses the information in /var/qmail/users/assign.  If there are
> other non-vpopmail-generated entries in there, they'll show up in
> vdominfo.
>
> I guess we could alter vdominfo to only show "domains" that contain a
> period...

Yes that would be very nice, but please look at the "^^^" above.

The lines I have in the assign file is:

=uucp:uucp:10:14:/var/spool/uucp:::
+uucp-:uucp:10:14:/var/spool/uucp:-::

(as per design)




Re: [vchkpw] vdominfo v5.4.2

2004-03-10 Thread Oden Eriksson
onsdagen den 10 mars 2004 15.19 skrev Oden Eriksson:
> onsdagen den 10 mars 2004 15.03 skrev Tom Collins:
> > On Mar 10, 2004, at 3:30 AM, Oden Eriksson wrote:
> > > Hi.
> > >
> > > Here's some weird output:
> > >
> > >
> > > # ./vdominfo -v
> > > version: 5.4.2
> > > domain: uuc
>
> ^^^
>
> > > uid:10
> > > gid:14
> > > dir:/var/spool/uucp
> > > users:  0
> > > Note:   uuc is an alias for uucp
>
> ^^^
>
> > > domain: uucp
> > > uid:10
> > > gid:14
> > > dir:/var/spool/uucp
> > > users:  0
> >
> > vdominfo uses the information in /var/qmail/users/assign.  If there are
> > other non-vpopmail-generated entries in there, they'll show up in
> > vdominfo.
> >
> > I guess we could alter vdominfo to only show "domains" that contain a
> > period...
>
> Yes that would be very nice, but please look at the "^^^" above.

Ahh, darn it. Look at the "uuc" thing.

> The lines I have in the assign file is:
>
> =uucp:uucp:10:14:/var/spool/uucp:::
> +uucp-:uucp:10:14:/var/spool/uucp:-::
>
> (as per design)



[vchkpw] Another ucspi-0.88+mysql patch

2004-03-10 Thread Oden Eriksson
Hi.

I just found another ucspi-0.88+mysql patch, but this one seems tailored for a 
vpopmail+mysql setup..., very interesting.

ftp://ftp.wingnet.net/pub/MAIL/qmail-related/wingnet-ucspi-0.88-mysql.patch




[vchkpw] vpopbull

2004-03-14 Thread Oden Eriksson
Hi.

It appears vpopbull has the same bug as vdominfo pre 5.4.3.

# cat /var/qmail/users/assign
=uucp:uucp:10:14:/var/spool/uucp:::
+uucp-:uucp:10:14:/var/spool/uucp:-::
=oden:oden:1000:1000:/home/oden/:::
+oden-:oden:1000:1000:/home/oden/:-::
+:alias:800:800:/var/qmail/alias:-::
=alias:alias:800:800:/var/qmail/alias:::
+alias-:alias:800:800:/var/qmail/alias:-::
=vpopmail:vpopmail:808:808:/home/vpopmail:::
+vpopmail-:vpopmail:808:808:/home/vpopmail:-::
[...]

# ./vpopbull -v -V -n -f message
version: 5.4.3
skipping uuc (alias of uucp)
skipping ode (alias of oden)
skipping  (alias of alias)
skipping alia (alias of alias)
skipping vpopmai (alias of vpopmail)
[...]




Re: [vchkpw] vpopbull

2004-03-14 Thread Oden Eriksson
söndagen den 14 mars 2004 20.31 skrev Tom Collins:
> On Mar 14, 2004, at 11:03 AM, Oden Eriksson wrote:
> > It appears vpopbull has the same bug as vdominfo pre 5.4.3.
>
> I saw that as well.  I plan to add centralized functions to vpopmail.c
> for opening and reading the users/assign file.  At some point, it can
> be updated to read users/cdb instead for performance.
>
> Any of the vpopmail binaries that currently parse that file will be
> updated to the new code.

Very wise and very cool!

Thank you very much Tom.



Re: [vchkpw] Tip for using chkuser with Maildrop

2004-04-04 Thread Oden Eriksson
söndagen den 4 april 2004 20.45 skrev Ron Guerin:
> Thought I'd share this tip with the crowd...
>
> The chkuser patch, which ensures an address is valid in the given domain
> before accepting a message, would be defeated if you simply replace your
> vdelivermail line with a Maildrop delivery line in .qmail-default.
>
> After taking a peek at how the chkuser patch works, I realized that it
> will work correctly if you instead comment-out the vdelivermail line and
> add your Maildrop line after.
>
> #| /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox
>
> | maildrop .mailfilter
>
> Chkuser sees the "bounce-no-mailbox" it needs to see this way, without
> altering the patch.  A little klugey maybe, but it works.

I would recommend a more generic patch instead of this one, I personally like 
this one very much:

http://www.netdevice.com/qmail

"The goodrcptto patch"

-- 
Regards // Oden Eriksson


Re: [vchkpw] Re: How to avoid rblsmtpd for smtp authenticated users

2004-04-15 Thread Oden Eriksson
torsdagen den 15 april 2004 06.14 skrev Devendra Singh:
> At 13/04/04 20:27 (), Peter Palmreuther wrote:
> >Hello Devendra,
> >
> >On Monday, April 12, 2004 at 12:42:53 PM you wrote (at least in part):
> > > Is it possible to not to do rblsmtpd look-up for smtp-authenticated
> > > users?
> >
> >No, because rblsmtpd looks up the IP before SMTP-AUTH is (or can be)
> >done.
> >--
> >Best regards
> >Peter Palmreuther
>
> Thanks for the info Peter.
>
> But, it's a difficult situation for me. Lot's of users from the dynamic
> pool have their IP at times listed in RBLs.
>
> Huh... Probably, under the pressure of our own clients I would have to
> disable RBL look-ups.

You could look into running your own local whitelist rbldns and pass the "-a" 
to rblsmtpd. man rblsmtpd

-- 
Regards // Oden Eriksson


[vchkpw] MySQL v4.1.x support?

2004-07-22 Thread Oden Eriksson
Hi.

I was wondering if latest vpopmail devel version works with MySQL 4.1.3? 
Anyone tried it?

-- 
Regards // Oden Eriksson


Re: [vchkpw] tcpserver pid patch

2004-07-23 Thread Oden Eriksson
fredagen den 23 juli 2004 19.02 skrev Ken Jones:
> I've got a new patch to tcpserver that allows you to
> save the process id to a file, so it can be used later
> to kill it. It makes it easier to write standard init scripts.
>
> Anyone interested in trying it out before it is released?
>
> The patch file includes a README on how to apply
> and a sample standard init script for starting/stopping
> qmail, pop and smtp.
>
> Ken Jones

Sounds cool. I can test it at one newly staged server.

-- 
Regards // Oden Eriksson


Re: [vchkpw] tcpserver pid patch

2004-07-23 Thread Oden Eriksson
fredagen den 23 juli 2004 19.06 skrev Ken Jones:
> On Friday 23 July 2004 12:04 pm, Oden Eriksson wrote:
> > fredagen den 23 juli 2004 19.02 skrev Ken Jones:
> > > I've got a new patch to tcpserver that allows you to
> > > save the process id to a file, so it can be used later
> > > to kill it. It makes it easier to write standard init scripts.
> > >
> > > Anyone interested in trying it out before it is released?
> > >
> > > The patch file includes a README on how to apply
> > > and a sample standard init script for starting/stopping
> > > qmail, pop and smtp.
> > >
> > > Ken Jones
> >
> > Sounds cool. I can test it at one newly staged server.
>
> Thanks! here's the patch file.
> Hopefully the README makes sense.
>
> Ken

I get:

# cat /var/log/qmail-pop3d/current
@40004100e84d2d137b6c tcpserver: illegal option -- w
@40004100e84d2d138ef4 tcpserver: usage: tcpserver [ -1UXpPhHrRoOdDqQv ] 
[ -c limit ] [ -s perip limit ] [ -x rules.cdb ] [ -B banner ] [ -g gid ] 
[ -u uid ] [ -b backlog ] [ -l localname ] [ -t timeout ] [ -w pidfile ] host 
port program

I use your rc.qmail file.


-- 
Regards // Oden Eriksson


Re: [vchkpw] HELP: desperated

2004-07-26 Thread Oden Eriksson
måndagen den 26 juli 2004 16.32 skrev Mario Gamito:
> Hi,
>
> I had about 30 mail domains running smoothly.
>
> I had this script configure_users.sh inside each domain directory.
>
> I ran find . -follow -type f -print | xargs ls configure_users.sh from
> /home/vpopmail/domains.
>
> 1 - IMAP Inbox and Sent lost all their mails 
>
> 2 - qmail-send is sending mail, but not delivering. Always says Sorry,
> no mailbox here by that name.
>
> 3 - I have all the correct directory structures, the vpasswd and
> vpasswd.cdb files, but mail isn't being delivered.
>
> Please help me. I'm so desperated. I'm running against time to solve
> this, but i can't :(
>
> Any help would be appreciated.
>
> -
> Please, answer to [EMAIL PROTECTED], since i can't receive mail in
> [EMAIL PROTECTED]
> -
>
> Warm regards,
> Mário Gamito

Permission problem?

chown -R vpopmail:vchkpw /home/vpopmail

?



-- 
Regards // Oden Eriksson


Re: [vchkpw] What's the better Webmail for Vpopmail?

2004-07-27 Thread Oden Eriksson
tisdagen den 27 juli 2004 22.59 skrev Edilmar:
> Hi,
>
> I have used Netqmail 1.05 + SMTP Auth + Vpopmail 5.4.0 + SQWebmail 4.0.5.
> But my users have talked about changing the webmail, mainly because
> layout limitations
> and other resources like virtual disk, support online for many
> languages, instant messages
> when new emails are received, etc.
>
> I look at SQuirelmail but it needs IMAP and I'd not like to install a
> new service.
>
> I look also at Openwebmail but I didn't find a distribution integrated
> with QMail/VPopmail.
> Is there one?
>
> Or are there other webmails more advanced than SQWebmail?
>
> Thanks,

I have recently migrated from cdb to mysql and sqwebmail to squirrelmail. 
Stuff like address books and prefs from sqwebmail is also in mysql. I have 
scripts for that if you like. With this setup you can easily spread the load 
into different web and sql servers, etc. courier-imap is a good imap server, 
use it. I also have the relay hosts in mysql too, that tcpserver can use. 
(the pop-before-smtp solution). Though, this system is _not_ in production 
yet it looks promising... We're a small ISP, that's why I chose this path.

-- 
Regards // Oden Eriksson


[vchkpw] courier-imap

2004-12-03 Thread Oden Eriksson
Hi.

I don't know if this has been addressed before, but I couldn't find anything 
related using google searches.

I use latest vpopmail+courier-imap and the pop-before-smtp method. This has 
worked great during the past four or so years. The problem I'm experiencing 
is that the relay file seems only to be updated at one time when starting up 
the imap client and checking mail for the first time, I'm using kmail. In 
order to successfully send mail after the --enable-relay-clear-minutes period 
has expired I have to restart kmail. This is annoying and has been the case 
for a very long time now. Now I'm sick of it and need a resolution. So please 
advise what to do.

Thanks in advance.

-- 
Regards // Oden Eriksson


Re: [vchkpw] courier-imap

2004-12-03 Thread Oden Eriksson
Friday 03 December 2004 18.10 skrev Jeremy Kitchen:
> On Friday 03 December 2004 09:39 am, Jeremy Kitchen wrote:
> > On Friday 03 December 2004 05:05 am, Oden Eriksson wrote:
> > > Hi.
> > >
> > > I don't know if this has been addressed before, but I couldn't find
> > > anything related using google searches.
> > >
> > > I use latest vpopmail+courier-imap and the pop-before-smtp method. This
> > > has worked great during the past four or so years. The problem I'm
> > > experiencing is that the relay file seems only to be updated at one
> > > time when starting up the imap client and checking mail for the first
> > > time, I'm using kmail. In order to successfully send mail after the
> > > --enable-relay-clear-minutes period has expired I have to restart
> > > kmail. This is annoying and has been the case for a very long time now.
> > > Now I'm sick of it and need a resolution. So please advise what to do.
> >
> > Use smtp auth.  This is not a problem with kmail, courier-imap, or
> > roaming users.
>
> oh and to add.
>
> even if you do restart kmail, that doesn't necessarily mean it restarts the
> kio_slave for your imap connection, therefore you may have to log
> completely out :)  Simple fix: use smtp auth.
>
> -Jeremy

Thanks Jeremy, but smtp auth isn't the answer I was looking for. I know mr. 
sam and some other profilic people in this sphere thinks pop-before-smtp is 
dead, is silly and obsolete, but I can say it isn't.

The question still, is how to make this work, not to make me start using smtp 
auth.

If was really smart I would stop using an utterly dead (not developed since 
1998), and unsupported software like qmail is and use _any_ of the others 
that is still alive, supported, developed and in much wider use.

I bet that's not something you wanted to hear...


-- 
Regards // Oden Eriksson


Re: [vchkpw] courier-imap

2004-12-07 Thread Oden Eriksson
fredag 03 december 2004 21.27 skrev Tom Collins:
> On Dec 3, 2004, at 11:42 AM, Oden Eriksson wrote:
> > The question still, is how to make this work, not to make me start
> > using smtp
> > auth.
>
> It sounds like (from Jeremey's email) that kmail leaves its IMAP
> connection open at all times and that's the problem.

No, it doesn't. If I close kmail and check connections at both ends it is not 
persistant, it dies after less than a minute.

> One solutions would be to patch Courier-IMAP to update the timestamp
> for the connection every 15 minutes it was still open.

While kmail is running i guess it sends a NOOP or something at given 
intervals. I haven't checked what exactly it does.

> Is it possible to configure kmail to not keep a persistent IMAP
> connection?  Can you add a bogus POP account to kmail so it's popping
> into the server every 15 minutes?

It's not persistent. As a work around I guess I could pop it now and then to 
still be a relay client.

Maybe it's just kmail that sucks and I'm barking at the wrong tree. No one 
here uses this combo?

-- 
Regards // Oden Eriksson


Re: [vchkpw] courier-imap

2004-12-09 Thread Oden Eriksson
onsdag 08 december 2004 13.33 skrev Justin Heesemann:
> On Friday 03 December 2004 20:42, Oden Eriksson wrote:
> > Thanks Jeremy, but smtp auth isn't the answer I was looking for. I
> > know mr. sam and some other profilic people in this sphere thinks
> > pop-before-smtp is dead, is silly and obsolete, but I can say it
> > isn't.
>
> just add a bogus account to vpopmail ([EMAIL PROTECTED]
> works fine and shouldn't get you that much spam),  add it as a kmail
> pop3 account and switch on interval checking. or you could use the
> "filter messages if they are greater than 1 bytes" option in kmail for
> a pop3 account.
>
> Or you could use the "Precommand" functionality of kmail and use
> something like "fetchmail -c -s" as you precommand line for your smtp
> transport.

Thank you. I will look into this. Though I really think kmail should login 
just as a plain pop3 client does.

> > The question still, is how to make this work, not to make me start
> > using smtp auth.
> >
> > If was really smart I would stop using an utterly dead (not developed
> > since 1998), and unsupported software like qmail is and use _any_ of
> > the others that is still alive, supported, developed and in much
> > wider use.
>
> "Don't throw stones, when you're sitting in a glashouse." (German
> proverb) That's what smart people try to remember. :)

Ha ha ha ha!!!, that was funny!

I was in a bad mood because of a flaky ucspi-tcp patch it turned out.

-- 
Regards // Oden Eriksson


Re: [vchkpw] courier-authlib-0.52 compile problems (AMD64 problem?)

2005-01-09 Thread Oden Eriksson
lördag 08 januari 2005 17.14 skrev Martin Kos:
> hi

[...]

> Linking libauthvchkpw.la
> /usr/bin/ld: /home/vpopmail/lib/libvpopmail.a(vpopmail.o):
> relocation R_X86_64_32 can not be used when making a shared
> object; recompile with -fPIC

[...]

It means you have to pass -fPIC to CFLAGS when building the static vpopmail 
lib.


-- 
Regards // Oden Eriksson


Re: [vchkpw] courier-authlib-0.52 compile problems (AMD64 problem?)

2005-01-09 Thread Oden Eriksson
söndag 09 januari 2005 13.58 skrev Martin Kos:
> hi oden
>
> >> Linking libauthvchkpw.la
> >> /usr/bin/ld: /home/vpopmail/lib/libvpopmail.a(vpopmail.o):
> >> relocation R_X86_64_32 can not be used when making a shared
> >> object; recompile with -fPIC
> >
> > It means you have to pass -fPIC to CFLAGS when building the static
> > vpopmail lib.
>
> ups... i think i have misunderstood it ;-) .. okay now i have
> recompiled vpopmail with the -fPIC flag and the courier-authlib
> compiled just fine.. .but after starting the authdaemon i get

[...]

I would recompile everything with -fPIC, it's not that hard as you probably 
have a pretty fast machine anyway.

-- 
Regards // Oden Eriksson


Re: [vchkpw] courier-authlib-0.52 compile problems (AMD64 problem?)

2005-01-09 Thread Oden Eriksson
söndag 09 januari 2005 18.27 skrev Martin Kos:
> On Sun, 9 Jan 2005, Oden Eriksson wrote:
> >>>> Linking libauthvchkpw.la
> >>>> /usr/bin/ld: /home/vpopmail/lib/libvpopmail.a(vpopmail.o):
> >>>> relocation R_X86_64_32 can not be used when making a shared
> >>>> object; recompile with -fPIC
> >>>
> >>> It means you have to pass -fPIC to CFLAGS when building the static
> >>> vpopmail lib.
> >>
> >> ups... i think i have misunderstood it ;-) .. okay now i have
> >> recompiled vpopmail with the -fPIC flag and the courier-authlib
> >> compiled just fine.. .but after starting the authdaemon i get
> >
> > I would recompile everything with -fPIC, it's not that hard as you
> > probably have a pretty fast machine anyway.
>
> i have recompiled courier-authlib with CFLAGS=-fPIC too but i
> still get the same errors :-( does the authdaemon have a problem
> with linking to the vpopmail library or what do the errors mean?
>
> thanks for help
>   KoS

I am sorry, but I think I need to ask you to address these problem to the 
proper mailinglist. I have built latest vpopmail + courier-imap 3.0.8 today 
and experienced no problem on my amd64 machine.

-- 
Regards // Oden Eriksson


Re: [vchkpw] courier-authlib-0.52 compile problems (AMD64 problem?)

2005-01-09 Thread Oden Eriksson
söndag 09 januari 2005 19.57 skrev Tom Collins:
> On Jan 9, 2005, at 9:50 AM, Oden Eriksson wrote:
> > I am sorry, but I think I need to ask you to address these problem to
> > the
> > proper mailinglist. I have built latest vpopmail + courier-imap 3.0.8
> > today
> > and experienced no problem on my amd64 machine.
>
> Oden,
>
> Do we need to add anything to the stock vpopmail distribution to ensure
> that it will work on amd64, or do you just compile it as-is?

No, I don't think so. It worked for me without a glitch on Mandrakelinux 10.1 
for x86_64 (not really out yet I think). I'm using an "AMD Athlon(tm) 64 
Processor 3400+" cpu.

But I may experience problems with the latest courier-imap stuff, it has low 
prio on my todo list.

-- 
Regards // Oden Eriksson


Re: [vchkpw] courier-authlib-0.52 compile problems (AMD64 problem?)

2005-01-09 Thread Oden Eriksson
söndag 09 januari 2005 22.41 skrev Martin Kos:
> On Sun, 9 Jan 2005, Oden Eriksson wrote:
> > I am sorry, but I think I need to ask you to address these problem to the
> > proper mailinglist.
>
> i have already written to the courier-imap ML (as there is no
> courier-authlib ML).
>
> > I have built latest vpopmail + courier-imap 3.0.8 today
> > and experienced no problem on my amd64 machine.
>
> the problem is NOT with courier-imap but with courier-authlib
> 0.52 (the latest courier-imap (4.0.1) requires (and only works
> with) courier-authlib. all the authentification stuff has been
> moved to a separate package so that all courier-software has only
> ONE place for all the authentification configuration and
> updates).
>
> so i'll see if i get any hint on the courier mailinglist. but as
> it seems that it is an courier-authlib AND vpopmail problem it
> could be a lnog way to go ;-)

Ok. Good luck. Please keep me posted as I maintain the courier-imap package 
for Mandrakelinux and will probably have this problem too later on, if it's a 
problem in courier-authlib that is.

-- 
Regards // Oden Eriksson