Re: vacation solution.

2001-07-17 Thread Ken Jones

Jan Knepper wrote:
> 
> Probably asked 1E6 times...
> Does any one know about a vacation solution for vpopmail?
> 
> Thanks!
> Jan

devel version has a usable and user tested vacation solution.

Ken Jones



Re: vpopmail Unable-to-switch_to_/home/vpopmail/domains/..

2001-07-17 Thread Ken Jones

[EMAIL PROTECTED] wrote:
> 
> drwx---r-x  4 vpopmail vchkpw /home/vpopmail/domains/mario.petra.ac.id
> 
> On Tue, 17 Jul 2001, Daniel Biddle wrote:
> 
> > On Tue, Jul 17, 2001 at 08:21:41AM +0800, [EMAIL PROTECTED] wrote:
> > > @40003b5372bf140e77d4 delivery 112: deferral: Unable_to_switch_to_
> > > /home/vpopmail/domains/mario.petra.ac.id:_access_denied._(#4.3.0)/
> >
> > There's some sort of permissions problem with that directory.
> >
> > If you can't tell what it is, please show us the output of
> >
> > ls -ld /home/vpopmail/domains/mario.petra.ac.id
> >
> >

what are the permissions on the program that is trying to
access that directory?

You should remove the world read and executable permissions.

These permissions do not match the default. You probably have
other permissions that are wrong. Something has gone and 
changed your permissions. I would find that problem too.

Ken Jones



Re: problems compiling autoresponder

2001-07-18 Thread Ken Jones

Hans-Juergen Schwarz wrote:
> 
> Hello all,
> Im running a Suse 6.4 System and tried to compile Bruce Guenters
> autoresponder like
> 
> gcc -Wall -o autorespond autorespond.c
> 
> but the following warning occur:
> 
> autorespond.c: In function 'send_message':
> autorespond.c:212: warning: long unsigned int format, unsigned int arg
> (arg 10)
> autorespond.c: In function 'main'
> autorespond.c:398: warning: long unsigned int format, unsigned int arg
> (arg 3)
> 
> The autorespond file is created but obviously not working and the
> mails are going somewhere I don't know.
> I urgently need this autoresponder. Can somebody help me?
> Thank you very much
> 
> Hans-Juergen

problems, in your case are compiler warning messages about
forced type checking on the .c variables. It is only a warning
and not an error. That is why the compile completes.

Any problems you are seeing in autoresponder email delivery is
probably for another reason. I would check in that direction.

Ken JOnes



Re: autoresponder again

2001-07-18 Thread Ken Jones

Hans-Juergen Schwarz wrote:
> 
> Hello again,
> OK, thank you Ken, compiling should be all right but its still not
> working. I did the following:
> 
> I put the created autorespond file in /usr/local/bin
> I created a help_message file
> I created a help_autorespond directory
> I created a .qmail-help file containing the following:
> | /usr/local/bin/autorespond 1 5 help_message help_autorespond
> &[EMAIL PROTECTED]
> I put the .qmail-help file in the /home/vpopmail/domains/hjs.de
> directory. The same with the help_message file and the
> help_autorespond directory.
> Finally I send a mail to [EMAIL PROTECTED] but it ain't working. What else
> could be wrong? I even set the permissions to vpopmail.vchkpw
> Any other ideas? Thank you very much
> 
> Hans-Juergen

I would suggest creating an autoresponder in qmailadmin and checking
the differences between the files you created and the files qmailadmin
create.

Ken



Re: migration of users with cdb encrypted password

2001-07-18 Thread Ken Jones

Mok Swee Loong wrote:
> 
> hi all,
> i have 2 mail server running, my setup is as following
> 
> qmail + vpopmail + qmailadmin
> 
> recently i need to migrate some of the domain from server1 to server2, user
> password are store in cdb format, is there anyway i can move/create these
> users with their current password at server2 without have them re-enter
> again? in short, is it possible to retrieve the encrypted passwd in plain
> text again?
> 
> appreciate any advice else i am gonna busy answering complain phone call
> and reset password for my users for days :P

The text of the encrypted password should work on either server. You
should
be able to copy the vpasswd file for each domain. 

Ken



Re: username

2001-07-23 Thread Ken Jones

Kenneth wrote:
> 
> Hello all,
> 
> Today I found that username of one character(eg. [EMAIL PROTECTED])
> couldn't be added. Could someone kindly tell me the reason for this ?

This was to support the sub directory layout code which uses a single
letter for each sub domain. There is probably a way to re-code the
subdomain names to append a _ character. Then single letter user
names could be made valid.

Ken Jones



Re: pw_shell

2001-07-23 Thread Ken Jones

"Sean P. Scanlon" wrote:
> 
> Can anyone (ken) tell me how long quota info has been stored in the pw_shell field of
> the pwd struct?
> 
> I am adding this field to the output of vauth_getpw() in vpopmail.pm,
> but want to make sure I don't break with older versions of vpopmail.

It's been there for a long time. About 2 or 3 years.

Ken Jones



Re: MySQL & passwords..

2001-07-25 Thread Ken Jones

Steve Fulton wrote:
> 
> I switched on the MySQL clear-text password option, and while I can now see
> there is a clear text password in the table, there is also an encrypted.
> So, my question is simple:  Which does vpopmail actually read?  Is it
> possible to tell it to read one, but not the other?

for authentication requests vpopmail uses the encrypted password field.

When the password is changed (or new user added) the clear text password
is stored in the clear text field then encrypted and stored in the
encrypted password field. 

The clear text password field is display only.

Ken Jones
inter7



Re: vpopmail 10.26 addomain

2001-07-25 Thread Ken Jones

Ender Hikmet KILICOGLU wrote:
> 
> hi all
> upgraded to vpopmail 4.10.26 version
> at the beginning it seans working but after adding a new domain an error
> message
> 
> qmail-send already running
> 
> fill the log.
> 
> I am using multilog and supervise
> 
> I will be happy If someone help me
> 
> Ender

only use the "latest" devel release. I will upload
a 4.10.30 release today.

ken Jones



Re: Vconvert problem,

2001-07-25 Thread Ken Jones

William Marcelo Piovezan wrote:
> 
> Hi,
> 
> I am trying to use vconvert to convert the /etc/passwd and /etc/shadow to
> vpasswd.cdb but with no success. I am using RH6.2 with shadow passwords and
> MD5. Here is my procedure:
> 
> vadddomain mydomain.com
> vconvert -e -c mydomain.com
> 
> The program produces no results. I've tried to change the command line
> switches (-s -f -l -p) or even run it without them but the program returns
> nothing (message errors, success messages, nothing).
> 
> I'm using Vpopmail 4.10.28 and there was no errors during compilation.
> 
> Any helps?
> 
> Regards,
> 
> William Marcelo Piovezan.

vconvert has been disabled in the devel releases untill the new
mysql api can be added back in.

Ken Jones



Re: VPASSWD file goes to 0 bytes

2001-07-28 Thread Ken Jones

Sumith Ail wrote:
> 
> Hello
> 
> Latest stable vpopmail release has a bug. We use Unix Quota system for each virtual 
>domain on our RH Linux 6.2 box.
> When Unix disk quota for the "/etc/passwd" user gets full and if any of the 
>userinformation or password is changed by Qmailadmin the Vpasswd file goes 0 bytes.
> I think the vpopmail password changing module should check for quota details before 
>allowing Qmailadmin or Sqwebmail to write on to the Vpasswd file. (OR) Users with 
>their Disk quota full should not be allowed to login by Qmailadmin.
> 
> We would appreciate helpful hints to overcome this bug.

Do you have a portable solution for checking disk quotas?

Ken Jones



Re: deleting user automatically

2001-07-28 Thread Ken Jones

greg gor wrote:
> 
> hi ken,
> is there any way to make vpopmail automatically delete
> users which is not active or never accessing their
> account?

The development version has an --enable-auth-logging=y option.
That puts a time stamp on each account during authentication.

the vdeloldusers program is supposed to check the timestamp
value and allow for automatic deletion if the time stamp
is older than a certain time.

Ken Jones



Re: import eudora to vpopmail

2001-07-28 Thread Ken Jones

[EMAIL PROTECTED] wrote:
> 
> hi
> 
> i am going to be moving a site over from eudora soon. what i need to do is move all
> the current virtual domain names, users and alias from a eudora export file into 
>vpopmail.
> i cant seem to find anything about this. is it possible?
> are there any scripts that do this?
> the current email server has about 40 virtual domains with around 50 users in each, 
>some
> with more.

If you are moving accounts and not email then..
get a list of all domains and the "owner" password in clear text.
Then get a list of all accounts and the password in clear text.
Then write a script to call vadddomain and vadduser based
on the above lists.

Ken Jones



Re: clearopensmtp

2001-07-28 Thread Ken Jones

alexus wrote:
> 
> hi
> 
> when i was compiling vpopmail i used romaing user feature
> 
> and i add this into my crontab
> 
> 40 * * * * ~vpopmail/bin/clearopensmtp 2>&1 > /dev/null
> 
> for number of month everything was working fine.. i didn't touch anything at
> all
> 
> i was able to receive/send mail just fine...
> 
> now i looked at my process lists and i saw about 30 of clearopensmtp process
> 
> i never seen anything like that before on my box.. any ideas why?
> 
> i understand crontab starts them... but why wouldn't it do what is has to do
> and die/quit/finished whatever...
> 
> please help
> 
> thanks in advance

The "~" looks suspicious. Put the full path.

You can attach a debugger to one of the running clearopensmtp
programs and find out why it is not completing.

Ken JOnes



Re: ~vpopmail/etc/{inc_deps,lib_deps}

2001-07-30 Thread Ken Jones

"Sean P. Scanlon" wrote:
> 
> I am thinking about updating vpopmail.pm's Makefile.PL to
> gather the info it needs from ~vpopmail/etc/{inc_deps,lib_deps}.
> 
> According to the ChangeLog these files have been around since 4.9.7.
> Are there many people who are running version older than 4.9.7?
> 
> This would simplify the build process for vpopmail.pm for people using current 
>versions
> of vpopmail...but, Im not sure how I would handle versions pre 4.9.7.
> 
> Anybody have any thoughts on this?
> 
> PS: updated version (0.05) of vpopmail.pm on the way...RSN.

That is exactly with the inc_deps and lib_deps are there.
Glad they are becoming more useful. I'm sure there are 
many sites running pre 4.9.7. You can always recommend
updating vpopmail when they use vpopmail.pm 

Ken Jones



Re: SMTP-AUTH

2001-07-31 Thread Ken Jones

Bill Shupp wrote:
> 
> on 7/31/01 4:54 PM, Kit Halsted at [EMAIL PROTECTED] spake:
> 
> > Is anybody using qmail-smtpd-auth
> >  with vpopmail?
> >
> > There's documentation there for use with vpopmail, but it mentions
> > v3.4.11k, which sounds a lot older than the 4.9.8 I'm running. I'm
> > curious as to whether anyone is using SMTP-AUTH with a recent
> > vpopmail & whether it was hard to set up, as I'm looking at migrating
> > a live server to it.
> 
> I tried it out a while back.  Here's what I found, to the best of my
> recollection:
> 
> 1. Don't worry about the vpopmail patch, it doesn't work anymore and you
> don't need it.
> 2. You have to run your smtp server as someone that can authenticate with
> vpopmail (root or vpopmail)
> 3. If you use multiple /etc/passwd users with vpopmail for system quotas,
> I'm pretty sure you need to run it as root.
> 
> Perhaps someone can verify the above, but I think that's what I had to do to
> get it running.  Although I never put it in production.
> 
> Cheers,
> 
> Bill Shupp

Hey Bill :)

I can verify that the latest devel works with smtp auth. I tested it
last week. The only requirement is:

1) run smtp as either root (if you have non vpopmail mailboxes) or
   as vpopmail (if all mail accounts are under vpopmail)

Ken



Re: sqwebmail 3.0 won't compile:(

2001-07-31 Thread Ken Jones


The sqwebmail 3.0 specifically uses the 4.10.30 devel release since
4.10.30 is the release canidate for the new 5.0 stable version.
The api in 4.10 has new functions that 4.9 does not have, and some
of these functions are in sqwebmail 3.0. 

The release goal is to have a new stable set
sqwebmail  3.0
vpopmail   5.0
qmailadmin 1.0
vqadmin2.0

Ken Jones

alexus wrote:
> 
> i said *stable* vpopmail ... which is 4.9.10 and not even close/near to
> 4.10.30!
> 
> i asked if its possible to use new stable sqwebmail (3.0.0) w/ stable
> vpopmail (4.9.10) not development edition (4.10.30)?
> 
> how can i make myself more clear?
> 
> - Original Message -
> From: "Ken Jones" <[EMAIL PROTECTED]>
> To: "alexus" <[EMAIL PROTECTED]>
> Cc: "Tim Hunter" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>;
> <[EMAIL PROTECTED]>
> Sent: Tuesday, July 31, 2001 7:06 PM
> Subject: Re: sqwebmail 3.0 won't compile:(
> 
> > alexus wrote:
> > >
> > > that's what i thought
> > >
> > > so there is no way to use stable and latest version of vpop and stable
> and
> > > latest of sqwebmail?
> >
> > I just installed and tested the sqwebmail 3.0 and vpopmail 4.10.30 with
> > cdb module and everything works fine. Make sure you read the sqwebmail
> > INSTALL file. There are new things you have to do with sqwebmail 3.0
> >
> > Ken Jones
> >



Re: sqwebmail 3.0 won't compile:(

2001-08-01 Thread Ken Jones

Very soon.

As far as I know there are no known bugs or new features needed for
the cdb and mysql modules. They are stable and ready for 5.0.
The oracle, postgresql, sybase and ldap modules are stable but do
not support all the new features, like auth logging. 

Ken Jones

alexus wrote:
> 
> any ideas of the date on upcomin release? at least vpopmail?
> 
> - Original Message -----
> From: "Ken Jones" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, July 31, 2001 10:19 PM
> Subject: Re: sqwebmail 3.0 won't compile:(
> 
> >
> > The sqwebmail 3.0 specifically uses the 4.10.30 devel release since
> > 4.10.30 is the release canidate for the new 5.0 stable version.
> > The api in 4.10 has new functions that 4.9 does not have, and some
> > of these functions are in sqwebmail 3.0.
> >
> > The release goal is to have a new stable set
> > sqwebmail  3.0
> > vpopmail   5.0
> > qmailadmin 1.0
> > vqadmin2.0
> >
> > Ken Jones
> >
> > alexus wrote:
> > >
> > > i said *stable* vpopmail ... which is 4.9.10 and not even close/near to
> > > 4.10.30!
> > >
> > > i asked if its possible to use new stable sqwebmail (3.0.0) w/ stable
> > > vpopmail (4.9.10) not development edition (4.10.30)?
> > >
> > > how can i make myself more clear?
> > >
> > > - Original Message -
> > > From: "Ken Jones" <[EMAIL PROTECTED]>
> > > To: "alexus" <[EMAIL PROTECTED]>
> > > Cc: "Tim Hunter" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>;
> > > <[EMAIL PROTECTED]>
> > > Sent: Tuesday, July 31, 2001 7:06 PM
> > > Subject: Re: sqwebmail 3.0 won't compile:(
> > >
> > > > alexus wrote:
> > > > >
> > > > > that's what i thought....
> > > > >
> > > > > so there is no way to use stable and latest version of vpop and
> stable
> > > and
> > > > > latest of sqwebmail?
> > > >
> > > > I just installed and tested the sqwebmail 3.0 and vpopmail 4.10.30
> with
> > > > cdb module and everything works fine. Make sure you read the sqwebmail
> > > > INSTALL file. There are new things you have to do with sqwebmail 3.0
> > > >
> > > > Ken Jones
> > > >
> >



Re: .qmail environment??

2001-08-01 Thread Ken Jones

macky wrote:
> 
> if  i have created a .qmail-test inside /dir/domain/
> 
> is it possible to execute
> 
> export LD_LIBRARY_PATH=/usr/local/pgsql-7.1.2/lib
> 
> thanks in advance
> 
> --
> The information contained in this message (including any attachments)
> is confidential and intended solely for the attention and use of the
> named addressee(s). It must not be copied, distributed nor disclosed
> to any person. If you are not the intended recipient, please delete
> it from your system and notify sender immediately. Any disclosure,
> copying or distribution thereof or any action taken or omitted to be
> taken in reliance thereon is prohibited and may be unlawful.
> --

I would answer your question but am not certain I can legally answer
your question because of the disclaimer.

Could you explain your disclaimer and how it effects me, this globally 
distributed project and inter7's legal risk?

What are the prohibitions? What makes it unlawful?
What actions are your company prepared to take against me, 
our company or others on the mailing list?
Who at your company makes those decisions?
Has your company taken action against other people/groups/companies
in the past?
What was the result of that action?

As far as I know, by posting to the mailing list, your email is
copied, distributed and disclosed. So by posting to the list you
are making everyone here liable to prosecution. Am I right?

What actions are restricted? What omissions are restricted?
"or any action taken or omitted to be taken in reliance thereon"
Could you clarify that statement?

Thanks In Advance
Ken Jones
inter7.com



Re: help needed with vchkpw!

2001-08-01 Thread Ken Jones

Joel Aasma wrote:
> 
> Hello!
> I've got a problem with vchkpw...
> 
> this is how i do the ./configure for vpopmail:
> 
> ./configure --enable-roaming-users --enable-hardquota=1 --enable-ip-alia
> s-domains=y --enable-mysql=y --enable-sqlincdir=/usr/local/mysql/include/mys
> ql --enable-sqllibdir=/usr/local/mysql/lib/mysql/ --enable-large-site=y --en
> able-logging=y
> 
> and this is how it ends up when i'm trying to use the pop3 server:
>   Trying 127.0.0.1...
> Connected to homer.rixtele.com.
> Escape character is '^]'.
> +OK <[EMAIL PROTECTED]>
> user bogus
> +OK
> pass bogus
> /usr/local/vpopmail/bin/vchkpw: error while loading shared libraries:
> libc.so.6: cannot load shared object file: Cannot allocate memory
> -ERR authorization failed
> Connection closed by foreign host.
> 
> what could possible be wrong?
> 
> Regards.
> Joel

Read about how your operating system handles shared object libraries.
You have not configured your operating system to know about the
mysql share object libraries directory.

ken Jones
inter7.com



Re: xinetd and vpopmail

2001-08-01 Thread Ken Jones

I highly recommend using tcpserver instead of xinetd

ken Jones


John Smith wrote:
> 
> hello,
> I'm sorry if this has been answered before. I'm using
> vpopmail on rh7.1 I wanna know how can use vchkpw with
> xinetd and roaming users option to allow smtp
> relaying. I've read the INSTALL and FAQ and have
> installed vpopmail according to it. The xinetd's pop3
> file which i'm using is as follows
> 
> service pop3
> {
> socket_type = stream
> protocol= tcp
> wait= no
> user= root
> server  = /var/qmail/bin/qmail-popup
> server_args = bogus.net
> /var/vpopmail/bin/vchkpw /var/qmail/bin/qmail-pop3d
> Maildir
> log_type= FILE /var/log/xinetd.log
> log_on_success  = HOST
> log_on_failure  = HOST RECORD
> }
> 
> Now when i telnet on 110 and authenticate on pop3
> vpopmail does create open-smtp and lock files but
> doesn't put anything in it ..
> 
> -rw-r--r--1 vpopmail vchkpw  0 Aug  1
> 21:59 open-smtp
> -rw-rw-rw-1 root root0 Aug  1
> 21:59 open-smtp.lock
> -rw-rw-rw-1 root root0 Aug  1
> 21:59 open-smtp.tmp.3224
> -rw-r--r--1 vpopmail vchkpw 30 Aug  1
> 18:30 tcp.smtp
> -rw-r--r--1 vpopmail vchkpw   2094 Aug  1
> 21:59 tcp.smtp.cdb
> 
> as you see open-smtp file is zero bytes.
> 
> Thanks in advance.
> 
> __
> Do You Yahoo!?
> Make international calls for as low as $.04/minute with Yahoo! Messenger
> http://phonecard.yahoo.com/



Re: help me

2001-08-01 Thread Ken Jones

> Fang Shao Yong wrote:
> 
> Hi :
>  I install qmail+mysql+vpopmail on Solaris7
>  when i use outlook to receive mail  i find spend average 30 second
>  for authentication
> it's so slowly why?
> i use script list below:
> /usr/local/bin/tcpserver 0 110 /var/qmail/bin/qmail-popup \
> yingkou.gov.cn /var/vpopmail/bin/vchkpw  /var/qmail/bin/qmail-pop3d
> Maildir &
> 
> thank you
> 
> Fang Shao Yong
> YingKou Information Center
> China

Change tcpserver startup line to be

/usr/local/bin/tcpserver -H -R -lyingkou.gov.cn 0 110
/var/qmail/bin/qmail-popup \
> yingkou.gov.cn /var/vpopmail/bin/vchkpw  /var/qmail/bin/qmail-pop3d

For more information read 
http://cr.yp.to/ucspi-tcp/tcpserver.html

The 30 seconds is due to information lookup/dns lookup

ken Jones
inter7.com



Re: 0.70ac1 patch

2001-08-01 Thread Ken Jones

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



Re: 0.70ac1 patch

2001-08-01 Thread Ken Jones

Peter Palmreuther wrote:
> 
> Hello Ken,
> 
> On Wednesday, August 01, 2001 at 8:10:46 PM you wrote:
> 
> > To be on the safe side we should remove the link.
> 
> Sorry for jumping in, but I've a suggestion:
> 
> Why not using a 'dereferral' page? One of the biggest german freemailer had a
> similar problem with session data in referrer string and they build a good
> working dereferral page that is not given the session data in query string but
> only the target url.

How does that work?

Ken



Re: ~vpopmail/etc

2001-08-01 Thread Ken Jones

Iceman wrote:
> 
> Hi,
> 
> I saw on www.inter7.com that ~vpopmail/etc/ should contain two files :
> lib_deps and inc_deps. But on my system this directory is empty. And because
> of this (I think), I can't compile qmailadmin because during the process gcc
> can't find the librairies needed.
> 
> So my question is, what do I have to put in this directory ?
> 
> thanx a lot
> 
> Iceman

Sounds like you have an older version of vpopmail
which didn't create those files.

For a mysql site you would need something like:

[kbo@gpl etc]$ more inc_deps
-I/home/vpopmail/include

[kbo@gpl etc]$ more lib_deps
-L/home/vpopmail/lib -lvpopmail -L/usr/lib/mysql -lmysqlclient -lz

Adjust the -L value to match your mysql settings.

If you are not using mysql remove the -L and -lmysqlclient -lz

Ken Jones



Re: DIGEST PLEASE!

2001-08-01 Thread Ken Jones

Dan wrote:
There is no digest available.

You can unsubscribe by sending an email to [EMAIL PROTECTED]

Ken Jones

> 
> I like this list but there is to much email from it from once i first
> joined. Can someone take me off and add me to digested version please!
> 
> On Wed, 1 Aug 2001, Joel Aasma wrote:
> 
> > Date: Wed, 1 Aug 2001 19:14:24 +0200
> > From: Joel Aasma <[EMAIL PROTECTED]>
> > To: [EMAIL PROTECTED]
> > Subject: help needed with vchkpw!
> >
> > Hello!
> > I've got a problem with vchkpw...
> >
> > this is how i do the ./configure for vpopmail:
> >
> > ./configure --enable-roaming-users --enable-hardquota=1 --enable-ip-alia
> > s-domains=y --enable-mysql=y --enable-sqlincdir=/usr/local/mysql/include/mys
> > ql --enable-sqllibdir=/usr/local/mysql/lib/mysql/ --enable-large-site=y --en
> > able-logging=y
> >
> > and this is how it ends up when i'm trying to use the pop3 server:
> >   Trying 127.0.0.1...
> > Connected to homer.rixtele.com.
> > Escape character is '^]'.
> > +OK <[EMAIL PROTECTED]>
> > user bogus
> > +OK
> > pass bogus
> > /usr/local/vpopmail/bin/vchkpw: error while loading shared libraries:
> > libc.so.6: cannot load shared object file: Cannot allocate memory
> > -ERR authorization failed
> > Connection closed by foreign host.
> >
> > what could possible be wrong?
> >
> > Regards.
> > Joel
> >
> >



Re: Vpopmail 4.10.30 - Vmysql.c possible bug

2001-08-03 Thread Ken Jones

Thanks Richard,

It was an error in the vmysql.h select statement for the GETALL
function, remove the pw_domain column. 

It is in vpopmail-4.10.31

Nice work!
Ken


"Richard T. Wareing" wrote:
> 
> I forgot to mention what version of QMailAdmin, it is 0.70, which
> shouldn't really be a factor since I think the problem lies in Vpopmail.
> 
> Rich...
> 
> -Original Message-
> From: Richard T. Wareing
> Sent: Thursday, August 02, 2001 1:27 PM
> To: [EMAIL PROTECTED]
> Subject: Vpopmail 4.10.30 - Vmysql.c possible bug
> 
> I installed a completely fresh copy of Vpopmail 4.10.30 on a box, along
> with Qmailadmin (and cleaned out the vpopmail mysql DB, forcing it to
> recreate a new one) and noticed that under the "comment" section in the
> web qmailadmin web interface the names weren't showing up properly,
> instead printing out a "0" where the name should be.
> 
> I made a change to the vauth_getall function in vmysql.c source in
> vpopmail 4.10.30 that seemed to fix this:
> 
> if ((row_getall = mysql_fetch_row(res_read_getall)) != NULL) {
> strncpy(vpw.pw_name,row_getall[0],SMALL_BUFF);
> strncpy(vpw.pw_passwd,row_getall[2],SMALL_BUFF);
> vpw.pw_uid= atoi(row_getall[3]);
> vpw.pw_gid= atoi(row_getall[4]);
> strncpy(vpw.pw_gecos,row_getall[5],SMALL_BUFF);
> strncpy(vpw.pw_dir,row_getall[6],SMALL_BUFF);
> strncpy(vpw.pw_shell, row_getall[7],SMALL_BUFF);
> #ifdef CLEAR_PASS
> strncpy(vpw.pw_clear_passwd, row_getall[8],SMALL_BUFF);
> #endif
> 
> It seems that vpw.pw_gecos was being filled with row_getall[4]
> originally which is the gid (i.e. 0).  Could somebody more familiar with
> this source code perhaps verify this fix?
> 
> Thanks!
> 
> Richard Wareing
> 
> -Original Message-
> From: Ken Jones [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 02, 2001 1:18 PM
> To: [EMAIL PROTECTED]
> Subject: Re: converting mysql table from large to usual
> 
> sec wrote:
> >
> > Hi,
> >is there any tools to convert mysql large format table to usual
> >
> >i mean to large (--enable-large-site=y) to usual
> >(--enable-large-site=n)
> >
> >How can i do this?
> 
> I don't think anyone has written code to do this.
> 
> Ken Jones
> inter7.com



Re: .qmail file help

2001-08-03 Thread Ken Jones

Darren Nay wrote:
> 
> Hello all,
> 
> I have a question regarding .qmail files with vpopmail.
> 
> I am using qmail v1.03 and vpopmail v4.9.10.  I've got mysql auth setup
> and it works great.  I just need some help with configuration.
> 
> I'm recent sendmail -> qmail convert and so the whole qmail config style
> is still new, and still a little baffling.
> 
> I understand that I can use .qmail files in the
> ~vpopmail/domains/test.com directory for a specific domain (for this
> example, test.com) correct?  

Yes because qmail-local is delivering the email to
~vpopmail/domains/test.com
and looking for .qmail files

> ie.  if I have a real user called "dale"
> and I want to add an alias to dalec I would create a .qmail-dalec with
> the content of "dale".
No. "dale" is not a valid email address or a path to a Maildir.
Either put in a full email address or the full path to the Maildir
ie.
/home/vpopmail/domains/test.com/dale/Maildir/
or where ever dales' maildir is.

> 
> Then if I send an email to [EMAIL PROTECTED] it will act as an alias and
> send the email to the real "dale" account.  Am I correct in this
> assumption?
Almost.

If it .qmail-dalec contains an email address you are doing a forward.
if it contains a path to maildir then you are doing an alias.
The difference?

Maildir paths are *much* more efficent for local mail delivery.
email addresses cause the email to be re-injected into qmail
and scheduled for delivery.

> 
> My main question is.. If I wanted to setup an alias to point to a user
> who is NOT on that domain.. say I have another email account on another
> server, or another domain example.com with a user called "jay" and I
> wanted to setup an alias for [EMAIL PROTECTED] to point to [EMAIL PROTECTED]
> in this case both domains are virtual domains on my server.. how would I
> do this?

With either 
1) a full email address
2) The full path to the Maildir if the Maildir is owned by
   the same system user as the current domain.

> 
> Second, say if I had an account NOT hosted on my server.  How would I
> point [EMAIL PROTECTED] to another email account.  ie. [EMAIL PROTECTED]

Yes.

> 
> Sorry if these are basic questions.. :) Like I said, I'm still a qmail
> ameture.  Thanks for any help you can provide!
> 
> Darren Nay - [EMAIL PROTECTED]

Read the qmail man page for dot-qmail
It contains all the information used by qmail-local and .qmail files

Ken Jones



Re: mysql setup

2001-08-03 Thread Ken Jones

Hi JM

The 4.10.31 version has the completed vconversion program. It was
temporarily turned off when the mysql api changed somewhere around
4.10.14. We finally got caught up on the todo list to update 
vconvert. 

--enable-valias=y tells vdelivermail to look up aliases using the valias
api function calls. For mysql sites the aliases are stored in a
mysql table. Mysql people like this because they can write sql
applications to update aliases. For the cdb and all other modules
the valias api uses the standard .qmail files.

--enable-auth-logging=y
Some sites want to lookup the time a user last authenticated
on the system. This option turns that feature on. Uses? sites
can age email accounts, vdeloldusers is an example of ageing/deleting
un used email accounts.

--enable-mysql-replication=y
This is complicated. The short answer it makes the vpopmail
api (and all applications using the api) work with mysql's
replication feature. We used it to place a "read only"
"live" copy of mysql on each email server in a cluster.



On 03 Aug 2001 22:12:39 +0200, J.M.Roth wrote:
> hi,
> I tried installing 4.10.30 with mysql authorization which seems to have worked 
>alright but the vconvert util is dead
> It doesn't output a thing. Neither does it convert anything...
> 
> Also, what are the following configure options good for in detail?
> --enable-valias
> --enable-auth-logging
> --enable-mysql-replication
> 
> BTW
> configure --help still displays this:   --enable-sqwebmail-pass=y|n   Turn off 
>support for sqwebmail passwords (y) or off (n) 
> OFF or OFF 

Thanks, the new version has better information.

--enable-sqwebmail-pass=y|n   Turn on support for sqwebmail passwords
(y) or off (n) default is no. For sqwebmail-3.0 and above use default no

> 
> Thanks for any help.
> 
> J.M.Roth





Re: vadddomain not adding domain

2001-08-04 Thread Ken Jones

On 04 Aug 2001 23:44:44 -0500, chris larsen wrote:
> Hi All,
> I've scoured the list and looked all over the net but to no avail in finding the 
>answer to this question:
> 
> Why can I add domains just fine, but when it comes to a domain that I had under a 
>previous installation, it tells me that it can't find the directory 
>/usr/home/vpopmail/domains.
> 
> the real location is /home/vpopmail/domains... and as I said, I can add domains 
>other that one of which I had prior.  My mysql vpopmail db is cleared out, i've 
>looked in all makefiles, etc, there's nothing in my control files that point to this 
>old domain, and i've done a grep for this string system-wide.  There's not any trace 
>of it being around.
> 
> Anyone know why this might be happening or where I can change this path back to 
>/home/vpopmail instead of /usr/home/vpopmail for this particular domain???
> 
> Thanks much!
> 
> Chris

What version are you running?

Is the domain name in any of the files in these directories
/var/qmail/control/*
/var/qmail/users/*

It might be in the /var/qmail/users/assign (cdb) file
Check the time stamps on the assign and cdb file and make
sure they match. /var/qmail/bin/qmail-newu will update
the cdb from the assign file.

Ken Jones




Re: vpopmail+mysql question

2001-08-05 Thread Ken Jones

On 05 Aug 2001 13:47:48 +0500, Roman Serbski wrote:
> Good day all

Hi

> 
> I've just noticed some strangeness with Vpopmail + MySQL scheme.
> After upgrading from 4.9.8 to 4.9.10 (with --enable-hardquota=x feature)
> something was changed in MySQL's 'vpopmail' database (table 'vpopmail').
> How many fields should I have in table 'vpopmail'?

4.9.10 added the optional column pw_clear_passwd. Other than that
the table has not changed. Here is my current 4.10 table description
with the --enable-clear-passwd=y option.

mysql> describe vpopmail;
+-+--+--+-+-+---+
| Field   | Type | Null | Key | Default | Extra |
+-+--+--+-+-+---+
| pw_name | varchar(32)  |  | PRI | |   |
| pw_domain   | varchar(223) |  | PRI | |   |
| pw_passwd   | varchar(255) |  | | |   |
| pw_uid  | int(11)  | YES  | | NULL|   |
| pw_gid  | int(11)  | YES  | | NULL|   |
| pw_gecos| varchar(255) | YES  | | NULL|   |
| pw_dir  | varchar(255) | YES  | | NULL|   |
| pw_shell| varchar(255) | YES  | | NULL|   |
| pw_clear_passwd | varchar(255) | YES  | | NULL|   |
+-+--+--+-+-+---+
9 rows in set (0.00 sec)

With the default of --enable-clear-passwd=n the table looks like:
mysql> describe vpopmail;
+-+--+--+-+-+---+
| Field   | Type | Null | Key | Default | Extra |
+-+--+--+-+-+---+
| pw_name | varchar(32)  |  | PRI | |   |
| pw_domain   | varchar(223) |  | PRI | |   |
| pw_passwd   | varchar(255) |  | | |   |
| pw_uid  | int(11)  | YES  | | NULL|   |
| pw_gid  | int(11)  | YES  | | NULL|   |
| pw_gecos| varchar(255) | YES  | | NULL|   |
| pw_dir  | varchar(255) | YES  | | NULL|   |
| pw_shell| varchar(255) | YES  | | NULL|   |
+-+--+--+-+-+---+
8 rows in set (0.00 sec)

> 
> Right now I have 8.
> pw_name, pw_domain, pw_passwd, pw_uid, pw_gid, pw_gecos, pw_dir, pw_shell

Looks good.

> 
> BUT, there is quota information (NOQUOTA or 300) in the field
> 'pw_shell'! I'm not sure - is it OK?
Yes, it is okay.

The first versions of vpopmail used the same structure and field
names as /etc/passwd. Which simplified the code. But the fields 
do not need the same information. Specifically
pw_uid, pw_gid  do not need to contain the email accounts uid and gid.
   That information is already stored in /var/qmail/users/assign.

So pw_uid and pw_gid are used to hold flags for various options

pw_shell is also not needed since email accounts can not log in and
 get a shell. Instead we used that to hold the quota.

> Before upgrade I've used 4.9.8 with --enable-hardquota=n option, when I
> moved to 4.9.10 I added --enable-hardquota=300 feature.
> Everything works fine incl. quota :-), no errors - I just wondered is it
> normal that I have quota information in pw_shell field?

Yes. Something to note: the 4.9.8 version did not include the quota
checking code, hopefully to speed up processing. But the developers 
found an efficent way to include the quota code. So quota processing
is always available and controlled by the pw_shell value. NOQUOTA
means no quota processing and a Number means the quota and to do
quota processing.

Ken Jones

> 
> FreeBSD 4.2 STABLE
> Vpopmail 4.9.10
> MySQL 3.23.28-gamma
> 
> Thank you very much.
> 
> Ciao,
> Roman Serbski
> mailto:libser@[no_spam_plz]manas.kg
> 





RE: qmail smtp

2001-08-05 Thread Ken Jones

On 05 Aug 2001 15:45:03 -0400, mick wrote:
> The problem is deeper then roaming-users.
> i don't think i explained my qmial servers problem
> correctly.
> 
> I have one domain on the qmial server i'll call it domainONE.
> Now the vpopmail usrs of domainONE can only send to other domainONE
> users. I tested this from a vpopmail user configured on the
> qmail server itself. The /etc/tcp.smtp file is configured
> w/ the following line.  127.0.0.,allow,RELAYCLIENT="" so using the
> smtp server is allow.  However i receive the following error when sending
> email
> to other domains. ie "[EMAIL PROTECTED]"
> 
> ""error 553 Sorry, that domain is not in my list of allowed
> rcpthosts(*5.7.1)""
> 
> Any ideas??

Your qmail-smtpd server is denying relaying.

Ken Jones

> 
> Mick
> 
> -Original Message-
> From: Gabriel Ambuehl [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, August 04, 2001 6:16 PM
> To: mick
> Cc: [EMAIL PROTECTED]
> Subject: Re: qmail smtp
> 
> 
> -BEGIN PGP SIGNED MESSAGE-
> 
> Hello mick,
> 
> Saturday, August 04, 2001, 10:14:28 PM, you wrote:
> 
> > all seems fine however the pop3 users can only send
> > mail to users of the mailservers local domain
> 
> > [EMAIL PROTECTED]   is fine
> > however
> > [EMAIL PROTECTED]  will not send
> > SMtp says that domain is not in the allowed RCP hosts
> 
> > i should be able to send to any domain
> 
> We should really write a FAQ about this. Look for roaming-users AKA
> SMTP after POP in the docs.
> 
> 
> Best regards,
>  Gabriel
> 
> -BEGIN PGP SIGNATURE-
> Version: PGP 6.5i
> 
> iQEVAwUBO2xmDMZa2WpymlDxAQHAYwgAinZDicByPFyijCfTvmLTzKpzCr6Im0LG
> X5Z1C75MeYY/Gt0IvMLY/W/v1Ty6xWAW9gbEOdhLP/zRFxx/UugP6NUlI/PerK5q
> fEAhwo1iNWrC2EJsGUhQOTSnQmv+AGpRWpAB573yyUL+C0OQYn5kqCoVsaFkrQM7
> A/b5slJjosT27mYLfRpy0OtdLwuWdhLDnjNH6NwbwhNznAW4tH3bpbVQJaT1iVPj
> OGvBJH4B2OvXovhXWdBurDoR503EWd//Ovm99gJ3LWJK3b3fAm5I12dp/+7P4ehQ
> sty94yVzUJwjbzzmGrC9Zr16rpmjR7DulkdjAPj4b5z+QmJeOpkGBA==
> =YVS2
> -END PGP SIGNATURE-
> 
> 





RE: Segmentation fault (core dumped)

2001-08-07 Thread Ken Jones

Try running vadduser as root.

Ken Jones


On 07 Aug 2001 23:23:42 +0200, Leonard Cooper wrote:
> As Follows :
> 
> $ ./vadduser [EMAIL PROTECTED] passwd
> Memory fault - core dumped
> 
> This Also happens on 4.9.6-1, which I why I moved to 4.9.10
> 
> 
> -Original Message-
> From: Matthew Patterson [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 07, 2001 11:05 PM
> To: Leonard Cooper
> Subject: RE: Segmentation fault (core dumped)
> 
> 
> well, it would help if you showed us how you were doing it, but my guess is
> that you were only giving vadduser the username and not the domain name. if
> that's not true, show us what you typed at the command line.
> 
> MHP
> -Original Message-
> From: Leonard Cooper [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 07, 2001 3:59 PM
> To: [EMAIL PROTECTED]
> Subject: Segmentation fault (core dumped)
> 
> 
> Hi All
> I am getting the following when creating users with vadduser
> 
> Segmentation fault (core dumped)  
> any ideas as to why and how to fix this? Running version 4.9.10 on Tru64
> 5.0A
> 
> Len
> 





Re: False error report

2001-08-07 Thread Ken Jones

On 08 Aug 2001 10:03:27 +0700, FAHRIZAL RAZAK wrote:
> In my Qmail 1.03 and vpopmail 4.10.20,
> I always receive error reports of some my users (not all my
> users) like these :
> 
> Aug  7 18:39:38 my.host.net vpopmail[9907]: [ID 676305 mail.notice]
> vchkpw: password fail [EMAIL PROTECTED]:xxx.yyy.zzz.aaa
> Aug  7 18:45:25 my.host.net vpopmail[10621]: [ID 628377 mail.notice]
> vchkpw: password fail [EMAIL PROTECTED]:xxx.yyy.zzz.aaa
> Aug  7 18:50:05 my.host.net vpopmail[11181]: [ID 676305 mail.notice]
> vchkpw: password fail [EMAIL PROTECTED]:xxx.yyy.zzz.aaa
> Aug  7 18:55:51 my.host.net vpopmail[11928]: [ID 628377 mail.notice]
> vchkpw: password fail [EMAIL PROTECTED]:xxx.yyy.zzz.aaa
> Aug  7 18:58:52 my.host.net vpopmail[11958]: [ID 628677 mail.notice]
> vchkpw: password fail [EMAIL PROTECTED]:xxx.yyy.zzz.aaa
> 
> In fact,  there are no problem on user1, user2, user3 and other my users
> side.  They always success download their emails from my email server
> (pop) using syntax "[EMAIL PROTECTED]" or "user_x%userdomain.com" as
> their login name.
> 
> Is this qmail problem or vpopmail problem? and how to fix it?
> 
> Thanks for any help,
> Fahrizal Razak

Have you tried logging into pop with telnet and entering
user/pass while watching the log file? Try to reproduce
the problem.

The information you report doesn't show enough information to
make the conclusion that there is anything wrong, it could be
someone logging in with the wrong password.

Ken Jones






Re: vpopmail +oracle possible?

2001-08-07 Thread Ken Jones

On 07 Aug 2001 22:49:31 -0500, Jose Rodriguez wrote:
> Is there any version of vpopmail that's been compiled agaist Oracle 8 under AIX 
>4.3.3 7?
> 
> Cause i have been trying with lots of different versions and keep up getting lots of 
>error messages when trying to compile vauth.c, which BTW i think is a link to the 
>file: voracle.h, am i right?
> 
> Is the Oracle integration ready, or is it still a bit green?
> 
> 

Please read the README.oracle file:

Edit voracle.h and set the service, user and password information.

Then run: 
proc voracle.pc

Last time we tested the oracle module it worked with 
both the stable and development versions.

Ken Jones





Re: Fw: Delivered-to line:

2001-08-07 Thread Ken Jones

What should the headers look like?

ken Jones

On 07 Aug 2001 17:50:27 +0200, J.M.Roth wrote:
> Any ideas yet?
> We have some customers doing internal processing based on that header.
> In fact it's a multidrop box and the customer filters the mail according to the 
>Delivered-to header internally.
> No need to say, right now this is O3 (out of order)...
> Thx for any help
> 
> jmr
> - Original Message - 
> From: J.M.Roth 
> To: [EMAIL PROTECTED] 
> Sent: Friday, August 03, 2001 18:10
> Subject: Delivered-to line:
> 
> 
> Hi,
> I've installed Sqwebmail 3 and as a consequence I needed the devel vchkpw 4.10.30
> Now, if there's a default (catch-all) account, the last Delivered-To line in the 
>header indicates the name of the catch-all account, and not the name of the account 
>the mail was sent to
> F.e. [EMAIL PROTECTED] = catch-all for domain xy.com
> A mail sent to [EMAIL PROTECTED] results in a "Delivered-To: [EMAIL PROTECTED]" header.
> Before, that would've been "Delivered-To: [EMAIL PROTECTED]"
> 
> Any idea?
> 
> --jmr





Re: question on lastauth table

2001-08-08 Thread Ken Jones

On 08 Aug 2001 09:32:09 -0700, Chris Scheller wrote:
> this morning i had alot of users that were getting sql errors upon
> logging. the error was from not being able to create the lastauth
> table. the table was corrupt and a drop fixed the problem(corrupt due
> to power failure.) my question is since i didn't compile in roaming
> access why is this table even being written to? i am running 4.9.10.
> 
> 
> Chris Scheller
> System Administartor
> http://www.pobox.com/~schelcj/
> 

Authentication time logging is enabled with
--enable-auth-logging=y

It has nothing to do with roaming users.

Hope that helps
Ken Jones





RE: Segmentation fault (core dumped)

2001-08-08 Thread Ken Jones

On 08 Aug 2001 12:27:49 +0200, Leonard Cooper wrote:
> ...this is even worse

What is worse? running vadduser as root or as the owner
of the domain or something else?

Ken Jones

> Which leads me to the root of the problemWindows2000 based NAS device
> (ComPaq TASKSMART N2400) which uses Micro$soft'$ Services for Unix. this
> requires mapping Unix users to NT users ( ridiculus thought).
> 
> It is these mappings that are incorrect and causing hassels. This is already
> a problem escelated to M$ (P2)
> 
> Sigh, who in their right minds puts a ms box in a Sun/Alpha environ??
> 
> -Original Message-
> From: Ken Jones [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 08, 2001 7:42 AM
> To: Leonard Cooper
> Cc: '[EMAIL PROTECTED]'
> Subject: RE: Segmentation fault (core dumped)
> 
> 
> Try running vadduser as root.
> 
> Ken Jones
> 
> 
> On 07 Aug 2001 23:23:42 +0200, Leonard Cooper wrote:
> > As Follows :
> > 
> > $ ./vadduser [EMAIL PROTECTED] passwd
> > Memory fault - core dumped
> > 
> > This Also happens on 4.9.6-1, which I why I moved to 4.9.10
> > 
> > 
> > -Original Message-
> > From: Matthew Patterson [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, August 07, 2001 11:05 PM
> > To: Leonard Cooper
> > Subject: RE: Segmentation fault (core dumped)
> > 
> > 
> > well, it would help if you showed us how you were doing it, but my guess
> is
> > that you were only giving vadduser the username and not the domain name.
> if
> > that's not true, show us what you typed at the command line.
> > 
> > MHP
> > -Original Message-
> > From: Leonard Cooper [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, August 07, 2001 3:59 PM
> > To: [EMAIL PROTECTED]
> > Subject: Segmentation fault (core dumped)
> > 
> > 
> > Hi All
> > I am getting the following when creating users with vadduser
> > 
> > Segmentation fault (core dumped)  
> > any ideas as to why and how to fix this? Running version 4.9.10 on Tru64
> > 5.0A
> > 
> > Len
> > 
> 
> 





Re: Vpasswd File optimisation??

2001-08-15 Thread Ken Jones

On 14 Aug 2001 16:58:44 +0200, Leonard Cooper wrote:
> 
> Hi all,
> I have a huge vpasswd file of one of my virtual domains. These users were
> added  vadduser -as [EMAIL PROTECTED]
> 
> I would like to know if and how I can "OPTIMISE" this  file?
> 
> thanks
> Leonard
> 

What would "optimizing" get you? Faster lookups or 
faster updates? It uses Dan Bernsteins cdb code so
any optimizations would need to be in the cdb code.

If you want faster use I suggest you switch to
an sql module like mysql. Mysql is built to handle
multiple updates/add/delete/lookups with an index.

>From my experience the cdb module is not fast enough
for updates with over 5000 users. It is, however, still
very fast for lookups. 

Ken Jones




Re: vpopmail and courier imap

2001-08-15 Thread Ken Jones

The latest versions of courier-imap and sqwebmail require
the latest vpopmail 4.10 development version.

Ken Jones

On 15 Aug 2001 18:01:25 +0200, Arne Hueggenberg wrote:
> Im trying to set up courier imap with vpopmail.
> i have sucessfuly uinstalled vpopmail 4.9.10 and am already handling a 
> handful of domains with it.
> 
> Now im trying to install courier imap 1.3.9.
> i replace the preauthvckpw.c as per the instructions on the vpopmail page.
> i start make
> make fails with:
>  gcc -DHAVE_CONFIG_H -I. -I. -I. -I/home/vpopmail/include -g -O2 -Wall 
> -I.. -I./.. -c authpwd.c
> rm -f libauth-authpam.a
> ar cru libauth-authpam.a authpam.o preauthpam.o authpwd.o
> ranlib libauth-authpam.a
> gcc -DHAVE_CONFIG_H -I. -I. -I. -I/home/vpopmail/include -g -O2 -Wall 
> -I.. -I./.. -c authvchkpw.c
> authvchkpw.c: In function `auth_vchkpw_changepass':
> authvchkpw.c:142: warning: assignment from incompatible pointer type
> authvchkpw.c:151: dereferencing pointer to incomplete type
> authvchkpw.c:151: dereferencing pointer to incomplete type
> make[1]: *** [authvchkpw.o] Error 1
> make[1]: Leaving directory 
> `/home/admin/qmail-install/courier-imap-1.3.9/authlib'
> make: *** [all-recursive] Error 1
> 
> 
> -- 
> Arne Hueggenberg <[EMAIL PROTECTED]>
> System Administrator
> Sports & Bytes GmbH
> http://www.sports-and-bytes.com
> 





Re: vqadmin problems

2001-08-15 Thread Ken Jones

On 14 Aug 2001 09:45:35 -0700, Qmail wrote:
> Hi,
> 
> I'm running vqadmin 1.18 w/vpopmail vpopmail-4.10.32 (and mySQL
> 3.23.38-1.i386.rpm) and I'm having problems with vqadmin.
> 
> It seems to "read" the configurations fine out of mySQL, but I can't make
> changes or use any of the features "per account".
> 
> Specifically it isn't keeping changes to the email profile (bounce,
> disabled, etc). However, quota and password seem to work.
> 
> Any clues?
> 
> Do I need to update the schema since I did upgrade from vpopmail
> vpopmail-4.10.14?

The bounce/disable bit flag code wasn't finished in the
vqadmin 1.18 release. We didn't have time to complete it.
Hopefully when someone gets some time it will get updated.

Ken Jones





Re: Error: Domain does not exist

2001-08-15 Thread Ken Jones

On 14 Aug 2001 16:17:42 +0200, [EMAIL PROTECTED] wrote:
> I just installed vpopmail-4.10.30 and Qmail 1.03 for new mailbox and when i try
> to add a new
> domain with
> 
> # ./vadddomain dom.domain.com password
> 
> it refuses with
> 
> Error: Domain does not exist
> 
> File rights problem in /var/qmail/users?
> 
> configured with
> ./configure --enable-qmaildir=/home/qmail \
>   [EMAIL PROTECTED] \
>   --enable-roaming-users=y \
>   --enable-sqwebmail-pass=n \
>   --enable-qmail-newu=/home/qmail/bin/qmail-newu \
>   --enable-qmail-inject=/home/qmail/bin/qmail-inject \
>   --enable-qmail-newmrh=/home/qmail/bin/qmail-newmrh \
>   --enable-hardquota=4 --enable-logging=y

try adding and deleteing several times.
It might also be your /home/qmail/bin/"program" settings. 
It would work without these settings (default to /var/qmail/bin)
and a symbolic link between /var/qmail and /home/qmail
(just an idea)

Ken Jones




Re: vpopmail + mysql

2001-08-15 Thread Ken Jones

On 11 Aug 2001 22:54:04 +0200, [EMAIL PROTECTED] wrote:
> Ok, i have just recompiled vpopmail with the --enable-mysql=y option.
> 
> Now, must i create a new SQL database?
> 
> Where must i say to vpopmail to use the database instead of the cdb 
> password file?
> 
> Thank you in advance, bye!
> 
> Francesco Collini
> (from Italy)

vpopmail will automatically create all the tables it needs.

Ken Jones




RE: Vpasswd File optimisation??

2001-08-15 Thread Ken Jones

On 15 Aug 2001 20:54:25 +0200, Leonard Cooper wrote:
> Dont know what I was thinking when I wrote this
> what I meant was
> how do I rebuild  vpasswd.cdb?

vmkpasswd "domain name"

> I have a complication with our Compaq win2K base NAS box, so I cant use the
> normal v-utils right now, but have a load of things that need changing!
> 
> -Original Message-
> From: Ken Jones [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 15, 2001 6:43 PM
> To: Leonard Cooper
> Cc: Vchkpw
> Subject: Re: Vpasswd File optimisation??
> 
> 
> On 14 Aug 2001 16:58:44 +0200, Leonard Cooper wrote:
> > 
> > Hi all,
> > I have a huge vpasswd file of one of my virtual domains. These users were
> > added  vadduser -as [EMAIL PROTECTED]
> > 
> > I would like to know if and how I can "OPTIMISE" this  file?
> > 
> > thanks
> > Leonard
> > 
> 
> What would "optimizing" get you? Faster lookups or 
> faster updates? It uses Dan Bernsteins cdb code so
> any optimizations would need to be in the cdb code.
> 
> If you want faster use I suggest you switch to
> an sql module like mysql. Mysql is built to handle
> multiple updates/add/delete/lookups with an index.
> 
> >From my experience the cdb module is not fast enough
> for updates with over 5000 users. It is, however, still
> very fast for lookups. 
> 
> Ken Jones
> 





What have you done for me lately?

2001-08-15 Thread Ken Jones

So I'm here, working on code, looking at the TV thinking...
What does the world need from email software?


I'm saying, how can we do everything within reason to
build the best email system in the world.

Got any ideas? You folks live with this stuff every day
you gotta have ideas (unless we fixed it a while ago)


And If we did fix it, got any sneaky, dastardly ideas
on how to insinuate ourselfs into the major corporate
networks?

It's just a hobby of mine, taking over major systems.

Cheers
Ken "El Brujo de Madre" Jones






Re: modusergo function, .qmail file

2001-08-17 Thread Ken Jones

On 17 Aug 2001 13:28:11 -0500, Bill Shupp wrote:
> on 8/17/01 1:09 PM, Gabriel Ambuehl at [EMAIL PROTECTED] spake:
> 
> > I know this will be considered blasphemy or something cause it would
> > probably involve a rather serious amount of work, but wouldn't it be
> > wiser to stick all this stuff, including things like fetching all
> > users of a domain etc pp into libvpopmail so other code could use it
> > without having to dig for it in qmailadmin?
> > 
> > Best regards,
> > Gabriel
> 
> Listing all users IS in the library via "vauth_getall".  However, showing
> aliases/forwards isn't yet (only mysql, I think).  Ken mentioned to me that
> he hopes to integrate the valias functions into the API, but has not had
> time to do it yet.
> 
> I tend to think that while .qmail files are still used for alias/forwards
> for some auth modules, it would be easier to manage them when kept in the
> domain directory, rather than user directories.

I just looked through the vpopmail code. Take a look at the
vpalias.c file. This file is included if --enable-valias=n.
It has all the functions needed to manage .qmail files
in a domain directory. For example:

char *valias_select( char *alias, char *domain );
char *valias_select_next();
int valias_insert( char *alias, char *domain, char *alias_line);
int valias_delete( char *alias, char *domain);
char *valias_select_all( char *alias, char *domain );
char *valias_select_all_next(char *alias);

With these functions you can manage all the .qmail files.
the valias command line program uses these functions.

qmailadmin hasn't been updated to use these functions.

btw: for vpopmail-4.10, it looks stable. Unless there are
any more bugs or major features needed, lets move it 
to a stable 5.0 release.

Ken Jones












Re: Re[2]: modusergo function, .qmail file

2001-08-17 Thread Ken Jones

On 17 Aug 2001 20:48:07 +0200, Gabriel Ambuehl wrote:
> -BEGIN PGP SIGNED MESSAGE-
> 
> Hello Bill,
> 
> Friday, August 17, 2001, 8:28:11 PM, you wrote:
> > Listing all users IS in the library via "vauth_getall".  However,
> > showing aliases/forwards isn't yet (only mysql, I think).
> 
> With MySQL, it is reasonably easy to implement, some select queries
> is
> all you need but it would be kinda cool if one could use the
> functions
> with cdb too, especially as there is a vpopmail extension to PHP now
> (although I got some doubts whether it is such  a wise thing to run
> a complete Apache/PHP environment under vpopmail:vchkpw but...) as I
> imagine that many people would like to code such stuff in PHP.
> 
> > he hopes to integrate the valias functions into the API, but has
> > not had time to do it yet.
> 
> Ah ok.
> 
> > I tend to think that while .qmail files are still used for
> > alias/forwards for some auth modules, it would be easier to manage
> > them when kept in the domain directory, rather than user
> > directories.
> 
> I haven't really had a deeper look into the .qmail stuff but as you
> can't
> have anymore than one user per email address ([EMAIL PROTECTED] is
> [EMAIL PROTECTED]), it shouldn't be such a problem to use them for
> autoreponders/vacation given qmail doesn't go crazy if there's .qmail
> AND
> a Maildir for an user.
> 
> This would also help the admins that need to fix broken installations
> etc cause they knew that all not plain Maildir stuff is in
> domain.com/
> and not somewhere down the way in the users messes...

You might want to take a look at the latest vqadmin devel
version. it understands and displays the users .qmail file
content, forwarding/vacaction. 

Ken Jones





vpopmail-4.10.35 release

2001-08-23 Thread Ken Jones

vpopmail-4.10.35 is available.
This is a security fix.

This is the first pre5.0 canidate. If no problems are
found in the next week this will be the 5.0 release.

Changes from 4.10.34 are:

1) vpopmail/lib directory is now owned by root
   and read/write/execute only by root.

2) vpopmail/lib/libvpopmail.a is also owned by
   root and read/write only by root.

These changes make it impossible for non root
users to compile programs which use the vpopmail
library. This should restrict the ability for
a regular user to create a vpopmail application
and then core dump it to view the contents of
the libvpopmail.a library, which includes the
authentication information to databases,
like mysql, oracle or ldap. 

Ken Jones
inter7.com





test

2001-08-23 Thread Ken Jones

test






Re: vchkpw and qmail smtp-auth patch

2001-08-23 Thread Ken Jones

the vpopmail library restricts access to the authentication
information unless running as root or the owner of the
virtual domain. 

You need to either run the smtp server as root or 
if all your domains are owned by vpopmail,then run
it as the vpopmail/vchkpw uid/gid

You might also want to update to 4.10.35 or 4.10.34

Ken 

On Thu, 2001-08-23 at 13:59, Joseph F. Dries III wrote:
> Hello All,
> 
> I have an installation on FreeBSD 3.4-STABLE of Qmail 1.03 + Various patches
> including the SMTP-AUTH patch, Courier-IMAP 1.3.10, vpopmail 4.10.32.
> 
> Vpopmail works fine with qmail-popup/qmail-pop3d. The Courier-IMAP
> authentication works fine with vpopmail.
> 
> However, when I try to use vchkpw with the SMTP auth patch, I get the
> following error in my system logs:
> 
> ==8<
> Aug 23 14:23:36 hostname vpopmail[6401]: vchkpw: vpopmail user not found
> [EMAIL PROTECTED]:ip.add.re.ss
> 8<--
> 
> The user is obviously there, as bot POP3 and IMAP authentication are
> working. It is reporting the correct user account and domain name, and the
> correct IP address in the log.
> 
> Here is how I have qmail-smtpd invoked using vchkpw:
> 
> tcpserver -v -H -P -R -x /home/vpopmail/etc/tcp.smtp.cdb \
>  -l $HOST -u $QUSER -g $QGROUP 0 smtp \
>  /var/qmail/bin/qmail-smtpd $HOST \
>  /home/vpopmail/bin/vchkpw /bin/true \
>  /var/qmail/bin/cmd5checkpw /bin/true 2>&1 \
>  | /var/qmail/bin/splogger smtpd 3 &
> 
> Where QUSER=`id -u qmaild`, QGROUP=89, $HOST=hostname.domain.com.
> 
> I've looked through the code briefly, but cannot see how it would fail in
> this fashion. It's difficult to trace what is happening, as I cannot just
> attach a strace/truss monitor and follow the vchkpw children. (Wrapping it
> would be difficult, as this is a production machine)
> 
> Any thoughts, obvious omissions, or glaring errors?
> 
> -j
> 





Re: Postfix + vpopmail

2001-08-23 Thread Ken Jones

I've received email from a person who made changes
to the vpopmail distribution so that it works with
postfix. The changes are not in the development
distribution yet. 

Aparently the changes include
1) how to call the vdelivermail as the local
   delivery agent.

2) Changes to not call the qmail programs:
   qmail-newu, qmail-newmrh, qmail-inject
   and instead call the postfix programs.

Ken Jones
inter7.com

On Thu, 2001-08-23 at 04:55, Uro¹ Gruber wrote:
> Hi!
> 
> I ask this once ago and i did not get answer.
> I'm using postfix and now i want to setup a virtual
> mail sistem. I found some documents on inter7.com how
> to do this with postfix. I just don't know why i have
> to use sendmail file of qmail.
> 
> 
> 
> flags=R user=qmailq argv=/var/qmail/bin/sendmail ${recipient}
> 
> (Pay attention to use the path to qmail's sendmail!)
> 
> 
> 
> Is  this meant that i have to setup qmail to to handle those
> mail. Or Am I doing something wrong. Thanks for help.
> 
> 





Re: asking about sqwebmail 3.0

2001-08-28 Thread Ken Jones

sqwebmail 3.0 requires vpopmail 4.10.35 or vpopmail 5.0

Ken Jones
http://www.inter7.com/devel/

On Mon, 2001-08-27 at 22:36, Michael Andreas wrote:
> 
> Dear Sir,
> 
> I have some problems to configure sqwebmail 3.0.
> I already use vpopmail 4.9.10,qmail 1.03 and mysql.
> but i can't make them to synchronize with sqwebmail.
> Could you send me about the instruction, stpe by step.
> because i read INSTALL file, but i doesn't work.
> 
> thank you for your attention.
> 
> Regards,
> 
> Michael Andreas
>  
> 
> 
> 
> 
> 
> Sent via the BizNet WebMail system at jktmail1.biz.net.id
> Get SUPRA Unlimited Dialup at only Rp.395.000/month.
> Biznet provides Internet Access, Data Center and Web Hosting.
> Please visit www.biz.net.id for detailed information.
> 
> 
>  
>
> 





Re: Upgrade from 4.9.10 to 4.10.35

2001-08-28 Thread Ken Jones

On Mon, 2001-08-27 at 14:44, Brad Dameron wrote:
> First off:
> 
> Using mysql for authentication.
> 
> Well I tried to upgrade vpopmail so I could upgrade my qmailadmin for
> testing. But after I upgraded my users could no longer authenticate.
> 
> vchkpw: vpopmail user not found
> 
> I used the exact same configuration was I did with 4.9.10. It is listed
> here:
> 
> ./configure --enable-mysql=y \
> [EMAIL PROTECTED] \
> --enable-default-domain=tscnet.com \
> --enable-large-site=y \
  ^
enable large site has been removed from 4.10 and replaced with
  --enable-many-domains=n|y   
Default is yes, no optimizes for sites with one domain and many users

You want --enable-many-domains=n

Which means it is looking for only one table "vpopmail"
that holds all the users. You have one table per domain.
Hence it can't find the user in the vpopmail table.

Ken Jones

> --enable-sqlincdir=/usr/local/include/mysql \
> --enable-sqllibdir=/usr/local/lib/mysql \
> --enable-logging=v \
> --enable-log-name=pop3 \
> --enable-passwd=n
> 
> I added in the following to my configure script:
> 
> --enable-auth-logging=y
> 
> which should not of made my users not be able to authenticate. Yes I did
> modify the vmysql.h file and put my passwords in.
> 
> I have tried several things. But no go. I looked over the vmysql.h file for
> table changes or something but didn't anything that would cause the problem.
> It is like it no longer recognizes my default-domain. I am not a noob here.
> So please give me some advanced advice.
> 
> ---
> Brad Dameron  
>Network Account Executive
> TSCNet Inc.  
> www.tscnet.com
> Silverdale, WA.  
> 1-888-8TSCNET
> 
> 
> 
> 





Re: .qmail

2001-08-28 Thread Ken Jones

On Mon, 2001-08-27 at 05:01, Bozhan Boiadzhiev wrote:
> Hi
> can ia use .qmail files in user dirs.
> if i have /var/lib/vpopmail/domain/domain/com/user/
> can i have .qmail file in this directory.?
> 
> 

Yes.

It supports 
1) /full/path/to/Maildir/
2) mail address to foward to.
3) | /some/program with options 
   piping the email through a program.

Ken Jones




Re: Re[2]: vpopmail-4.10.35 release

2001-08-28 Thread Ken Jones

On Mon, 2001-08-27 at 09:43, Einar Bordewich wrote:
> - Original Message -
> From: "Gabriel Ambuehl" <[EMAIL PROTECTED]>
> Sent: Friday, August 24, 2001 8:39 PM
> Subject: Re[2]: vpopmail-4.10.35 release
> 
> > Hello Einar,
> >
> > Thursday, August 23, 2001, 11:37:41 PM, you wrote:
> >
> > > Will there be done anything with aliasdomain for the 5.0 release?
> > > I realy would love to get rid of those symlinks in the domains
> > > directory.
> >
> > > http://www.mail-archive.com/vchkpw@inter7.com/msg06038.html
> > > http://www.mail-archive.com/vchkpw@inter7.com/msg00538.html
> >
> > ACK. I'd LOVE to see this. And a vdeldomain switch that deletes all
> > aliases of a master domain at once.
> 
> This is the only response I've seen on my mail.
> 
> Ken,
> Is there no interest in fixing the "wrong" way of aliasdomains against qmail
> under vpopmail, or is it kind of working so we don't put in any resources on
> this?
> 
> I'm not sure with others, but I think this is a very important issue. The
> way it is done today, is not the correct way of configuring qmail and
> virtualdomains.
> 
> Please, just tell me to shut up on this issue. I won't get mad :-), but I
> can then try other solutions to get it fixed.

Please update the code and submit a tested patch. :)
I don't have time right now to work on this.

Ken




Re: Problems with open-smtp (Roaming)

2001-08-28 Thread Ken Jones


This is a known problem in 4.9.10 and seems to be fixed
in 4.10.35 and 5.0.

If you have heavy traffic for roaming users I recommend
using mysql. It has much better file locking for updating
the list of temporary IP's (open-smtp is in a table)

Ken Jones

On Mon, 2001-08-27 at 03:58, Gabriele Giambonini wrote:
> 
> I'm trying to allow the users of my virtual domains to use my smtp-server 
> (qmail)
> to post, so I compiled vpopmail 4.9.10 with the option 
> "--enable-roaming-users=y".
> 
> The problem is that the directory /usr/vpopmail/etc/ is full of files named
> "open-smtp.tmp.XXX" of length 0 Bytes, the file /usr/vpopmail/etc/tcp.smtp is
> unmodified and the file /usr/vpopmail/etc/tcp.smtp.cdb doesn't contains the 
> IP of
> the users allowed to relay (I inspected the file with "hex").
> 
> Well, the conclusion is: "Relay doesn't work. Why ?" :-)
> 
> This is my /var/qmail/supervise/qmail-smtpd/run
> 
> #!/bin/sh
> QMAILDUID=`id -u qmaild`
> NOFILESGID=`id -g qmaild`
> exec /usr/local/bin/softlimit -m 200 \
>  /usr/local/bin/tcpserver -H -R -x /home/vpopmail/etc/tcp.smtp.cdb \
>  -u $QMAILDUID -g $NOFILESGID 0 smtp \
>  /usr/local/bin/rblsmtpd -r relays.orbs.org -r rbl.maps.vix.com \
>  /var/qmail/bin/qmail-smtpd
> 
> 





Re: Do we have to use vchkpw ?

2001-08-28 Thread Ken Jones

I received an email from Vladimir Kabanov:
He has changes to vchkpw to support plain, apop
and cram-md5 and works with pop3, courier-pop3,
courier-imap, qmail-smtp auth. 

Once he sends in the changes and it tests out okay
I'll post it you can test.

Ken Jones

Sounds
On Mon, 2001-08-27 at 02:45, Ryan Duda wrote:
> It would be nice if APOP support was added back into the vpopmail package. 
> I've seen a lot of requests for it lately and I'm sure it is probably not 
> too difficult to do, then again not much of a C programmer.
> 
> -Ryan
> 
> At 04:09 PM 8/25/2001 -0400, martin wrote:
> >Hi.
> >
> >I normally use APOP 
> >http://www.geocities.co.jp/SiliconValley/4777/qmail/checkpw/
> >
> >There is also a virtual password checker.
> >
> >Can these be used with vpopmail ?
> >
> >Regards...Martin
> >
> >
> 
> 





Re: Problems with vpopmail 4.10.35 and imap 1.3.10

2001-08-29 Thread Ken Jones

On Wed, 2001-08-29 at 12:03, Tren Blackburn wrote:
> Hi List;
> 
> This seems to be a problem related to the security enhancement that was
> implemented by Ken on the ~vpopmail/lib directory.  It's now set to 700
> owned by root.  The problem with this in the case of courier imap is that
> it requires the build of the software to be done as non-root user.  So to
> compile in authvchkpw support, it needs access to libvpopmail.a in
> ~vpopmail/lib.  I fixed this by temporarily changing this directory to 755
> and the libvpopmail.a to 644 until after I finished my install of both
> courier imap and sqwebmail 3.0.0.
> 
> Is this the proper procedure for doing this or should the changing of
> permissions on the ~vpopmail/lib be rethought?

I would do what you did. 
Sounds more like the courier-imap build should be re-thought.
Keeping ~vpopmail/lib and ~vpopmail/lib/libvpopmail.a restricted
to root is the only available method to secure the database
authentication information that is compiled into the library.

I'm open to any other ideas that work.

Ken Jones






Re: Upgrading from VPopmail 4.9.10 to 4.10.35

2001-08-29 Thread Ken Jones

On Wed, 2001-08-29 at 12:10, Tren Blackburn wrote:
> Hi Ken;
> 
> For people who would like to upgrade from 4.9.10 to 4.10.35 and turn on
> plain text passwords, is there a way to do this?  If I do the upgrade,
> authentication fails as it can't find the plain text column.  Should I
> manually add this column?
> 
> Regards,
> 
> Tren.
> 

It's worth a try to add the column. If you get it
to work, please send me the step by step procedure
so we can add that to an "upgrade" doc.

Thanks
Ken Jones





Re: vpopmail-4.9.10 + courier-1.3.10 + solaris 7 = need help

2001-08-30 Thread Ken Jones

On Thu, 2001-08-30 at 19:48, [EMAIL PROTECTED] wrote:
> 
> 
> Hello list --
> 
> I am in the middle of compiling (trying to anyways) courier-imap-1.3.10 
> with vpopmail-4.9.10 (and qmail of course) on an e250 running solaris7.  
> For vpopmail I used the following configure options and everything seemed 
> to go ok (its installed and working):
> 
> (vpopmail is configured to authenticate off a mysql db)
> 
> .../configure --prefix=/opt/vpopmail-4.9.10 \
> --enable-mysql=y \
> --enable-qmaildir=/opt/qmail \
> --enable-qmail-newu=/opt/qmail/bin/qmail-newu \
> --enable-qmail-inject=/opt/qmail/bin/qmail-inject \
> --enable-qmail-newmrh=/opt/qmail/bin/qmail-newmrh \
> --enable-sqlincdir=/opt/mysql/include/mysql/ 
> --enable-sqllibdir=/opt/mysql/lib/mysql \
> --enable-roaming-users=y --enable-large-site=y
> 
> for courier-imap-1.3.10 I used the following options:
> 
> .../configure  --prefix=/opt/courier-1.3.10 \
> --with-db=gdbm \
> --with-waitfunc=wait3 \
> --disable-changepass \
> --with-authldap=no \
> --with-authpwd=no \
> --with-authshadow=no \
> --with-authvchkpw=yes \
> --with-authpam=yes \
> --with-authcram=yes \
> --with-authcustom=yes \
> --with-authuserdb=yes \
> --with-authdaemon=yes \
> --with-authdaemonvar=/var/tmp \
> --with-authmysql \
> --with-mysql-libs=/opt/mysql/include/mysql \f
> --with-mysql-includes=/opt/mysql/include/mysql
> 
> In addition I have changed the authlib/configure script and hard coded in 
> the home directory for vpopmail.  The configure script completes ok 
> however, when running make I get the following error:  
> 
> gcc -DHAVE_CONFIG_H -I. -I. -I. -I/opt/mysql/include/mysql -
> I/opt/vpopmail-4.9.10/include -g -O2 -Wall -I.. -I./.. -c authvchkpw.c
> authvchkpw.c: In function `auth_vchkpw_changepass':
> authvchkpw.c:142: warning: assignment from incompatible pointer type
> authvchkpw.c:151: dereferencing pointer to incomplete type
> authvchkpw.c:151: dereferencing pointer to incomplete type
> make[1]: *** [authvchkpw.o] Error 1
> make[1]: Leaving directory `/export/home/qmail-src/courier-imap-
> 1.3.10/authlib'
> make: *** [all-recursive] Error 1
> 
> I have checked the FAQ for both vpopmail and courier and have done a search 
> on groups.google.com (deja).  Hopefully one of you can help.  Please feel 
> free to reply to the list or to me directly.  
> 
> Thanks in advance

courier-imap-1.3.10 requires the latest vpopmail 4.10 release.

Ken Jones





vpopmail-5.0pre1

2001-09-04 Thread Ken Jones

Hi Folks,

The summer is over (here in the US) and it's time we have a new
vpopmail-5.0 release to start the year out right.

I do not want to add in any new features which require a new
round of testing. Any new features can be added to 5.1 (devel version)
and later released as a production version 5.2.

So I would like to release vpopmail-4.10.36 as vpopmail-5.0pre1.

The two features I would like to put in the 5.1 devel version
are Vlad's new auth code for
pop3 capa
pop3 auth login & cram-md5
smtp auth login & cram-md5
pop3 APOP.

And Enar's vaddaliasdomain code.

What do you folks think?

Ken Jones






Re: vpopmail-5.0pre1

2001-09-04 Thread Ken Jones

On Tue, 2001-09-04 at 11:31, Vladimir Kabanov wrote:
> > Hi Folks,
> >
> > The summer is over (here in the US) and it's time we have a new
> > vpopmail-5.0 release to start the year out right.
> >
> > I do not want to add in any new features which require a new
> > round of testing. Any new features can be added to 5.1 (devel version)
> > and later released as a production version 5.2.
> >
> > So I would like to release vpopmail-4.10.36 as vpopmail-5.0pre1.
> >
> > The two features I would like to put in the 5.1 devel version
> > are Vlad's new auth code for
> > pop3 capa
> > pop3 auth login & cram-md5
> > smtp auth login & cram-md5
> > pop3 APOP.
> >
> >
> > What do you folks think?
> >
> > Ken Jones
> 
> 
> 
> Ken, sounds fine!
> 
> but what about alternative way of password hashes storing, I mean SHA-1 (i
> guess almost all LDIF exports use this format)?
> and SMTP-blocking for certain users?
> these features already done too  :))

That sounds like a good feature too.

Ken





Re: vpopmail-5.0pre1

2001-09-04 Thread Ken Jones

On Tue, 2001-09-04 at 11:55, sec wrote:
> Hello ,
> 
> It will be great if you will add spam blocking for certain users.
> 
> I mean black-lists for certain users.
> 

we are working on a new filtering project
http://www.inter7.com/eps/
That should be the building block for
filtering on a site/domain and user basis.

Ken





Re: vpopmail-5.0pre1

2001-09-04 Thread Ken Jones

On Tue, 2001-09-04 at 11:07, Einar Bordewich wrote:
> - Original Message -
> From: "Ken Jones" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, September 04, 2001 5:42 PM
> Subject: vpopmail-5.0pre1
> 
> 
> > Hi Folks,
> >
> > The summer is over (here in the US) and it's time we have a new
> > vpopmail-5.0 release to start the year out right.
> >
> > I do not want to add in any new features which require a new
> > round of testing. Any new features can be added to 5.1 (devel version)
> > and later released as a production version 5.2.
> >
> > So I would like to release vpopmail-4.10.36 as vpopmail-5.0pre1.
> >
> > The two features I would like to put in the 5.1 devel version
> > are Vlad's new auth code for
> > pop3 capa
> > pop3 auth login & cram-md5
> > smtp auth login & cram-md5
> > pop3 APOP.
> >
> > And Enar's vaddaliasdomain code.
> 
> Ken,
> I'm willing to take the credit for pushing through the handling of
> virtualdomains, but please give Gabriel credit for the acctual and nice
> coding ;-)

Hehe, Sorry about that. 

Ken





Re: Re[4]: finished vaddaliasdomain() patch

2001-09-04 Thread Ken Jones

On Tue, 2001-09-04 at 12:25, Gabriel Ambuehl wrote:
> -BEGIN PGP SIGNED MESSAGE-
> 
> Hello Bill,
> 
> Tuesday, September 04, 2001, 7:02:38 PM, you wrote:
> > on 9/4/01 10:20 AM, Gabriel Ambuehl at [EMAIL PROTECTED]
> > spake: 
> >> IMNSHO, the user tools should NOT operate on user@aliasdomain
> >> anyway cause an aliasdomain is an aliasdomain and nothing more,
> >> the user is user@masterdomain and thus one should work only on the
> >> masterdomain. 
> > Sounds like I'm in the minority!
> 
> That's why I'm asking. I'm generally not against fixing it but I
> don't
> mind if I don't need to cause I'm a lazy (the sales people would call
> it efficient :-) person...
> 
> >> I could, of course, patch vget_assign() to call get_domain_type()
> >> first and in case of an aliasdomain simply return dir, uid, gid of
> >> the masterdomain, thoughts?
> 
> > Nah, if people feel strongly that alias domains should not be
> > treated as real accounts, then it's probably best to leave things
> > as they are.  
> 
> I mean I don't know what the others involved would like to say about
> it, but I for myself would leave things the way as they are.
> 
> Ken, is vget_assign() used anywhere to do something else than getting
> dir, uid, gid of the domain to work on? If it isn't it would be ok if
> it simply returns the values for the masterdomain if invented on an
> aliasdomain, right?

There is code that uses vget_assign to see if a domain exists, 
and then get the dir, uid, gid of the domain. It would be okay
to return the masterdomain info.

How do you know if a domain is aliased?

Ken




Re: all fixed up vaddaliasdomain() patch (I hope...)

2001-09-04 Thread Ken Jones


In the future, please post a URL to the patch file
instead of posting the patch.

Why?

Because it eats up our T1 connection deliverying the
patch file to everyone on the mailing list.

Thanks
ken

On Tue, 2001-09-04 at 12:59, Gabriel Ambuehl wrote:
> -BEGIN PGP SIGNED MESSAGE-
> 
> Hello all,
> I think I've got together an all working vaddaliasdomain() patch and
> would appreciate any comments on it.
> 
> I did not, however, fix the issue Bill raised earlier about
> vget_assign() not knowing about the aliasdomains and which makes
> some of the standalone utilities fail to recognize aliasdomains which
> I personally think is the required behavior as it doesn't make too
> much sense to me to operate on users off aliasdomains but you're
> invited to convince me otherwise and I'll try to fix this.
> 
> Todo:
> some small script that is able to change the existing, symlink based
> aliasdomains to the new scheme. For the domains in ~vpopmail/domains/
> this is rather easy (i.e. check whether a given entry in that
> directory is a symlink and if it is, fetch the path it points to,
> call vdeldomain(entry) followed by vaddaliasdomain(entry, linkdest)).
> 
> Please note that this isn't ultimately needed as the old aliasdomain
> scheme should work without any problems even with the new stuff in
> place.
> 
> You might also want to check for compatibility with Vladimir's
> authentication patches, although I highly suspect there won't be any
> problems as I really tried to have the existing library functions
> behave like they always did (with the above exception, of course).
> 
> Someone might also want to check what's going to happen if there are
> more than 100 aliasdomains for a given domain as I used a 100 entry
> array of char * to hold the aliasdomains. In theory, the array should
> get refilled after every time I use it but I wouldn't want to rely on
> this without having it tested first (I was to lazy to dig into all
> the
> realloc() stuff as I ordinarily prefer to use C++ and the STL where
> memory management is done by the lib which is why there isn't a
> dynamic array instead).
> 
> There's one other issue with the whole array too: cause the
> char[] it is pointing are malloc'ed by the code and not by C itself,
> they don't get destroyed after the function exits. This isn't
> a problem for any program that does only one operation at a time
> but for daemon like code linked against libvpopmail.a it could result
> in memory leaks. The solution to this is easy: a small function that
> takes the array and free() all the char[] it points to.
> 
> 
> 
> Best regards,
>  Gabriel
> PFi€à,Ùä"
> 
> -BEGIN PGP SIGNATURE-
> Version: PGP 6.5i
> 
> iQEVAwUBO5UIe8Za2WpymlDxAQGuYAgAy8rvuFijAIWbemRyIr4tqXiW78X/h3sz
> rCs5KoxnMT+9QxF0+1mL2Htx31qE+SSobDIMYkTm256D1AWSfpV9eKczPtTYtAM6
> HJIsrJFCrsC5sKpthiUW7pICV59jfOWQMP+m/3AKRfHJToJfpH/Ow7pVLDQI/QS7
> 7D0JCeBtKPTPGkyFi6cQfvkD9B/eIx9qnRa2bbjUT/rfglG9jV8+hMi2gYGm+7Us
> MyDVqpXOdRzXXroUpu92Okv4rFI20oREo51f4s99Z3T/kFVP0GZVzk9MRJ9qmIWh
> kV3ij8mw8d2nB8SERzswGwaaV+FgzSSZxqeQXEfVHN/ImmXAioKK+g==
> =1+cA





Re: where does the "netscape bug" problem actually fall

2001-09-05 Thread Ken Jones

On Wed, 2001-09-05 at 22:01, Dave wrote:
> just curios..  my understanding is that the whole qmail, vpopmail, mysql
> conglomerate creates a "pop before smtp" authentication protocol, and netscape
> ignores this and tries to authenticate using smtp anyway, thus hitting an error
> since smtp isn't tied into the vchkpw in the mysql...  is this generally the
> problem?

No, this is not the problem. You are mixing apples and oranges,
specifically: 
1) smtp authentication before relay
2) pop authentication before relay

The pop method is invisible to the Mail User Agent so
Netscape has no problem with it.

When you setup Netscape there is a way to type in your
user name to send to the smtp server. If you do that,
netscape assumes there is smtp authentication. If you
do not type anything in for user/smtp server, then it
does not try.

If you want to use the pop method don't tell netscape
to try the smtp authentication method.

If you want to use smtp authentication then give netscape
the smtp user name values.

So it sounds like your problem is Netscape is not configured
for what ever method you are trying to use.

> 
> latest versions >.30 seem to solve this by their description, is this the case
> or are we still without the ability to service netscape users?

All the releases back to the first ones that supported roaming
users has worked with netscape. I know because I used netscape
as my MUA. All current releases also work.

the current 5.0 pre release definitly works with smtp authentication.
I know because I set one up last week and it worked fine.


> 
> any hacks to remedy this?
No hacks needed, you probably have something misconfigured,
or it is some other, unrelated issue.

ken





RE: where does the "netscape bug" problem actually fall

2001-09-06 Thread Ken Jones

I was thinking about this last night.

Do you have your qmail-smtpd setup to do authentication?
If so, it might require your netscape to do smtp authentication.


On Thu, 2001-09-06 at 08:14, Dave wrote:
> >The pop method is invisible to the Mail User Agent so
> >Netscape has no problem with it.
> 
> Thus users can receive messages fine
> 
> >When you setup Netscape there is a way to type in your
> >user name to send to the smtp server. If you do that,
> >netscape assumes there is smtp authentication. If you
> >do not type anything in for user/smtp server, then it
> >does not try.
> 
> If you leave the Outgoing Mail(SMTP) field blank, messanger complains that it
> needs a name to be entered.  If you enter the name, then it complains that it
> needs an account,  if you enter the account it tries to authenticate via SMTP.
> 
> I am not referring to the incoming mail being able to select POP or SMTP,
> obviously that is set to POP and works fine.

Sounds like you have qmail-smtpd compiled to do authentication.
Netscape automatically detects it and requires the user to put
in a name. Nothing to do with vpopmail.

> 
> >If you want to use the pop method don't tell netscape
> >to try the smtp authentication method.
> 
> Again, if we are talking retrieval, it is set to POP and retrieves just fine
> from vpopmail...  however it cant send, and I don't see where you can tell it
> not to use SMTP without it complaining.

Try the stock qmail-smtpd.

> 
> >If you want to use smtp authentication then give netscape
> >the smtp user name values.
> 
> Obviously not an option with the current configuration with vchkpw doing the
> auth...

It works for me, you must be doing something different.

> 
> >So it sounds like your problem is Netscape is not configured
> >for what ever method you are trying to use.
> 
> >All the releases back to the first ones that supported roaming
> >users has worked with netscape. I know because I used netscape
> >as my MUA. All current releases also work.
> 
> would love to know what your configuration settings are for netscape then.
> (currently working with a customer using communicator 4.73)
> 
> Appreciate the response.

Did you patch qmail-smtpd to have authentication?
What patched code did you use?
What exact line do you use to run your smtpd server?

Ken Jones




Re: vpopmail 5.0pre1

2001-09-06 Thread Ken Jones

On Thu, 2001-09-06 at 02:12, lao nightwolf wrote:
> Hello,
> 
> We've installed vpopmail 5.0pre1 so that we have the possibility to add no 
> password.
> 
> However, adding a record with an empty password field returned an error 
> since the table definition doesn't allow null values by default. We have 
> changed this so that nulls for the password field can be added, so that we 
> could succesfully add a new record. However we now receive the following 
> error during logon: 'ERR aack, child crashed'. Do we need to specify a 
> specific value for the password field, since it doesn't allow nulls by 
> default?

Please do not modify the table definition.

> 
> Normally, it should ask for a password when first authenticating via pop3 
> right?

Set the password field to a blank string "", not a NULL. 
with vpopmail-5.0pre3, use the --enable-learn-passwords=y
option.

With this option, vchkpw will accept any password for an
account with a blank password. Then it will update the
authentication data to have this new password. It only
does this if the password field is blank. Once the password
field is not blank it won't do this. So it only does it
the first time. 

Also, the vadduser command takes a -n option to set the
users password to blank. 

Please download and test the vpopmail-5.0pre3 version
and test it to see if you can cause it to crash. Please
try it with your modified table (allow NULL), and then
try it with the orignal table definition. I want to
see if you can still crash vchkpw.

Ken Jones






Re: problems with latest vpopmail

2001-09-06 Thread Ken Jones

On Thu, 2001-09-06 at 09:57, Jens Georg wrote:
> dear list,
> 
> today i downloaded and compiled vpopmail with romaing-users-support.
> well, so far it works. but i do need quota-support as well, so i compiled
> vpopmail again with both roaming users and quota support. i followed
> the steps described in INSTALL exactly, but compilation always fails with
> quota-support enabled. anybody who can tell me what's going wrong? i don't
> want to flood this list with make's output, but i can send it to anybody
> who wants to help me by email.
> 

You probably used --enable-hardquota=y 
That will cause the compilation to fail.

use the configuration option --enable-hardquota=size-in-bytes
to change the size of the hard quota per user.

Please try this again and report what happens.

Ken Jones




Re: vpopmail5.0 relaible?

2001-09-06 Thread Ken Jones

On Thu, 2001-09-06 at 10:29, Jens Georg wrote:
> hi,
> 
> right now i am setting up a new qmail&vpopmail&sqwebamil box.
> on inter7.com i found release 5.0 of vpopmail.
> 
> i am going to setup qmail 1.03, sqwebmail 3.00 and vpopmail 4.10.x.
> 
> may i use 5.0 instead 4.10.x of vpopmail in combination with the other
> packages or will this be like playing with fire ? i need a reliable mailbox
> and cannot afford to loose customers. is vpopmail 5.0 reliable ?
> 

5.0pre3, tomorrow it will be 5.0. Is actually the last
4.10 version. There are no known problems. I personally
set it up on a 4 machine cluster with over 300,000 users
and it has been rock solid for 2 months.

I recommend the 5.0 release. 5.0 is going to be the 
recommended version to use with sqwebmail 3.0. Took 
all summer to get there.

Ken




RE: vpopmail5.0 relaible?

2001-09-06 Thread Ken Jones

What problem?

On Thu, 2001-09-06 at 12:33, Brad Dameron wrote:
> Ken,
> 
> I have been reporting a problem for some time and have yet to get a version
> that fixed it.
> I have sent several mails. Has my issue been resolved?
> 
> ---
> Brad Dameron  
>Network Account Executive
> TSCNet Inc.  
> www.tscnet.com
> Silverdale, WA.  
> 1-888-8TSCNET
> 
> 
> 
> -Original Message-
> From: Ken Jones [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 06, 2001 8:39 AM
> To: [EMAIL PROTECTED]
> Cc: vpopmail mailinglist
> Subject: Re: vpopmail5.0 relaible?
> 
> 
> On Thu, 2001-09-06 at 10:29, Jens Georg wrote:
> > hi,
> >
> > right now i am setting up a new qmail&vpopmail&sqwebamil box.
> > on inter7.com i found release 5.0 of vpopmail.
> >
> > i am going to setup qmail 1.03, sqwebmail 3.00 and vpopmail 4.10.x.
> >
> > may i use 5.0 instead 4.10.x of vpopmail in combination with the other
> > packages or will this be like playing with fire ? i need a reliable
> mailbox
> > and cannot afford to loose customers. is vpopmail 5.0 reliable ?
> >
> 
> 5.0pre3, tomorrow it will be 5.0. Is actually the last
> 4.10 version. There are no known problems. I personally
> set it up on a 4 machine cluster with over 300,000 users
> and it has been rock solid for 2 months.
> 
> I recommend the 5.0 release. 5.0 is going to be the
> recommended version to use with sqwebmail 3.0. Took
> all summer to get there.
> 
> Ken
> 
> 
> 





RE: vpopmail5.0 relaible?

2001-09-06 Thread Ken Jones

On Thu, 2001-09-06 at 14:07, Alex Kramarov wrote:
> If there is a "feature" that is hurting vpopmail alot in the mysql
> implementation, is that it's still bouncing mail when it's unable to connect
> to the mysql server (just saw this behaivour an hour ago with the 5pre3
> release). will this ever be resolved ?
> 
> Alex.
> 

Anyone is free to submit code that fixes it. 
If you are waiting for me to do the work then
you might have to keep waiting, I'm pretty busy.

Ken




Re: Authentication in 5.0pre3

2001-09-06 Thread Ken Jones

On Thu, 2001-09-06 at 11:58, Elric wrote:
> I run a FreeBSD 4.3 system which allows the _ char in usernames. 
> Currently I use vpopmail 4.9.10 and it works fine. But, 5.0pre3
> fails with a user not found:
> 
> Sep  6 11:56:45 colossus vpopmail[46550]: vchkpw: vpopmail user not found 
>[EMAIL PROTECTED]:127.0.0.1
> 
> 
> Matt Ford
> 

Which authentication module are you using?

Ken




Re: vpopmail5.0 relaible?

2001-09-06 Thread Ken Jones

On Thu, 2001-09-06 at 12:25, Ronald Rebideau wrote:
> Ken Jones wrote:
> 
> > 
> > 5.0pre3, tomorrow it will be 5.0. Is actually the last
> > 4.10 version. There are no known problems. I personally
> > set it up on a 4 machine cluster with over 300,000 users
> > and it has been rock solid for 2 months.
> > 
> > I recommend the 5.0 release. 5.0 is going to be the
> > recommended version to use with sqwebmail 3.0. Took
> > all summer to get there.
> > 
> > Ken
> 
> Could you provide some specs on the boxes?  Hardwarewise.
> 

single Pentium III 700Mhz(or something close)
256M ram
scsi 160 raid controller
2 scsi 160 disks (no raid)

It's all about the scsi 160 disks

Ken




Users with _ character and authentication

2001-09-06 Thread Ken Jones


I tried to replicate the problem you saw with
[EMAIL PROTECTED] on my machine.

I can't get it to break. And I tested with
the cdb and mysql modules

./vadddomain test.com test
./vadduser [EMAIL PROTECTED] test
telnet localhost 110
user [EMAIL PROTECTED]
pass test

Said okay.

Ken Jones






RE: Authentication in 5.0pre3

2001-09-06 Thread Ken Jones

Could you send me the tables in your mysql vpopmail
database with thier descriptions?

I can check it against the tables that get created with 5.0

Ken

On Thu, 2001-09-06 at 15:07, Brad Dameron wrote:
> I don't believe this is a issue with the _. I do believe it is related to
> the same problem I am encountering when I upgrade. Here it is.
> 
> 
> Vpopmail will not authneticate virtual users. I get a "vpopmail user not
> found [EMAIL PROTECTED]".
> 
> My configuration is as follows:
> 
> ./configure --enable-mysql=y \
> --enable-sqlincdir=/usr/local/include/mysql \
> --enable-sqllibdir=/usr/local/lib/mysql \
> --enable-logging=v \
> --enable-log-name=pop3
> 
> I upgraded a box from 4.9.9 to 5.0pre3 and it immediately started give the
> authentication errors.
> 
> ---
> Brad Dameron  
>Network Account Executive
> TSCNet Inc.  
> www.tscnet.com
> Silverdale, WA.  
> 1-888-8TSCNET
> 
> 
> 
> -Original Message-
> From: Elric [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 06, 2001 9:58 AM
> To: [EMAIL PROTECTED]
> Subject: Authentication in 5.0pre3
> 
> 
> I run a FreeBSD 4.3 system which allows the _ char in usernames.
> Currently I use vpopmail 4.9.10 and it works fine. But, 5.0pre3
> fails with a user not found:
> 
> Sep  6 11:56:45 colossus vpopmail[46550]: vchkpw: vpopmail user not found
> [EMAIL PROTECTED]:127.0.0.1
> 
> 
> Matt Ford
> 
> 





Re: Two minor issues

2001-09-06 Thread Ken Jones

On Thu, 2001-09-06 at 15:12, Einar Bordewich wrote:
> In earlier versions of vpopmail, you could insert entries in the mysql table
> and then e-mail that address for autocreation of userdirectories. This only
> happens now when you pop the user or login through sqwebmail, which is nice.
> The question is, has the autocreation of Maildir been removed when e-mailing
> the address inserted into mysql table?
> 
> This is the error reported back to the sender, before [EMAIL PROTECTED] is
> pop'ed into:

Fixed. When vdelivermail was re-written, this code wasn't put
it. it's in there now. I will post a pre4 at the end of the day.

> 
> Hi. This is the qmail-send program at bordewich.net.
> I'm afraid I wasn't able to deliver your message to the following addresses.
> This is a permanent error; I've given up. Sorry it didn't work out.
> 
> <[EMAIL PROTECTED]>:
> can not open new email file errno=2
> file=/Maildir/tmp/999803130.1364.hellriser,S=1627
> 
> 
> Try having an existing mailinglist e.g. test@yourdomain
> Then adduser test@yourdomain passwd
> Oops, the mailinglist is gone ;-)

Not sure how to handle this. Sounds like vadduser should 
check for a the directory before it creates it, or something.

What exactly get's clobbered?

> 
> 
> Nice move with empty passwd fields, inserting new passwd when pop'ed into.
> Keep up the good work!
> 
> --
> 
> IDG New MediaEinar Bordewich
> Development Manager  Phone: +47 2336 1420
> E-Mail:  eibo(at)newmedia.no
> Lat: 59.91144 N  Lon: 10.76097 E
> 
> 
> 
> 





Deferring email delivery when mysql is not availalble

2001-09-06 Thread Ken Jones


Turns out this was easier than I thought. 
I just tested it and I get the following when
mysql isn't running..

@40003b97e8190189749c status: local 1/100 remote 0/400
@40003b97e81905e95034 delivery 1: deferral:
could_not_connect_to_mysql_updat
e_server/
@40003b97e81905e9929c status: local 0/100 remote 0/400

Then later when mysql is turned back on:

@40003b97e87e25d52094 starting delivery 3: msg 471450 to local
[EMAIL PROTECTED]
@40003b97e87e25d57e54 status: local 1/100 remote 0/400
@40003b97e87e2819adac delivery 3: success: did_0+0+1/
@40003b97e87e2819ec2c status: local 0/100 remote 0/400
@40003b97e87e281a0784 end msg 471450

It will be in pre4 on the vpopmail devel page tonight.

Ken






Re: Two minor issues

2001-09-06 Thread Ken Jones

On Thu, 2001-09-06 at 16:29, Einar Bordewich wrote:
> > > This is the error reported back to the sender, before [EMAIL PROTECTED]
> is
> > > pop'ed into:
> >
> > Fixed. When vdelivermail was re-written, this code wasn't put
> > it. it's in there now. I will post a pre4 at the end of the day.
> 
> Good.
> 
> > Not sure how to handle this. Sounds like vadduser should
> > check for a the directory before it creates it, or something.
> >
> > What exactly get's clobbered?
> >
> 
> Mr. Shupp fixed something similar with qmailadmin. Seems like the directory
> is deleted and then recreated when adduser is run.

Found it and fixed it. Will be in tonights update.

Ken




Re: Deferring email delivery when mysql is not availalble

2001-09-06 Thread Ken Jones

On Thu, 2001-09-06 at 16:39, Eduardo Augusto Alvarenga wrote:
> Ken Jones <[EMAIL PROTECTED]>:
> 
> > Turns out this was easier than I thought. 
> > I just tested it and I get the following when
> > mysql isn't running..
> > 
> > @40003b97e8190189749c status: local 1/100 remote 0/400
> > @40003b97e81905e95034 delivery 1: deferral:
> > could_not_connect_to_mysql_updat
> > e_server/
> > @40003b97e81905e9929c status: local 0/100 remote 0/400
> > 
> > Then later when mysql is turned back on:
> > 
> > @40003b97e87e25d52094 starting delivery 3: msg 471450 to local
> > [EMAIL PROTECTED]
> > @40003b97e87e25d57e54 status: local 1/100 remote 0/400
> > @40003b97e87e2819adac delivery 3: success: did_0+0+1/
> > @40003b97e87e2819ec2c status: local 0/100 remote 0/400
> > @40003b97e87e281a0784 end msg 471450
> > 
> > It will be in pre4 on the vpopmail devel page tonight.
> 
> How about making an instruction to write incoming mails
> to a temporary directory and a 'crontab' program to check
> if the mysql server has come up again. So the messages
> don´t needed to be deferred every time the mysql server is 
> down.

Interesting, but overly complext in my opinion. Qmail
already supports redelivery of the email, might was well
let qmail handle all the complex safe email delivery stuff.

Ken




Re: vpopmail 4.9.10 stopped -- I'm stumped

2001-09-06 Thread Ken Jones

On Thu, 2001-09-06 at 16:38, CyberXXI wrote:
> I've had vpopmail up and running for several weeks with mysql -- ver.
> 4.9.10.  Using all name-based vdomains.  Have serveral domains created with
> a number of users in each.  The thing has always worked like a charm.
> Server froze today and when I rebooted everthing appears to work fine except
> all mail to any accounts gets returned as "Sorry, no mailbox here by that
> name. (#5.1.1)".  Using courier-imap and can log in and check accounts OK
> but something going on with mail delivery that accounts aren't recognized.
> Any thoughts on where to start to debug this thing.  Pulling my hair out
> and, of course, people are screaming at me.
> 
> Help before I'm forced to switch back to sendmail and all system accounts
> or, worse yet, some sort of Win 2000 product.

Check your control files, make sure the domain is in there.

Then check the qmail/users/assign file and make sure it's
in there too.

Then check for a .qmail-default file in the domain's directory

Ken





Re: Deferring email delivery when mysql is not availalble

2001-09-06 Thread Ken Jones

On Thu, 2001-09-06 at 17:08, Eduardo Augusto Alvarenga wrote:
> Ken Jones <[EMAIL PROTECTED]>:
> 
> > Interesting, but overly complext in my opinion. Qmail
> > already supports redelivery of the email, might was well
> > let qmail handle all the complex safe email delivery stuff.
> 
> Days ago I´ve posted a message suggesting outgoing quota
> support. Any threads about this ?
> 
> http://www.mail-archive.com/vchkpw%40inter7.com/msg06481.html

Sounds like a good idea for 5.1 devel. 
5.0 features are frozen, just bug fixes.

Ken





Re: vpopmail 4.9.10 stopped -- I'm stumped

2001-09-06 Thread Ken Jones

On Thu, 2001-09-06 at 17:13, CGI Guru wrote:
> Thanks for the quick response.  All the domains are listed in
> controls/virtualdomains.  users/assign appears fine.  Each vdomain has a
> .qmail-default file under it's domain in vpopmail.  Anything else come to
> mind?

Check the permissions, everything under vpopmail's home dir
should be owned by vpopmail/vchkpw.

Check if you can add and delete new users, and send them email

> 
> 
> - Original Message -
> From: "Ken Jones" <[EMAIL PROTECTED]>
> To: "CyberXXI" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Thursday, September 06, 2001 5:02 PM
> Subject: Re: vpopmail 4.9.10 stopped -- I'm stumped
> 
> 
> > On Thu, 2001-09-06 at 16:38, CyberXXI wrote:
> > > I've had vpopmail up and running for several weeks with mysql -- ver.
> > > 4.9.10.  Using all name-based vdomains.  Have serveral domains created
> with
> > > a number of users in each.  The thing has always worked like a charm.
> > > Server froze today and when I rebooted everthing appears to work fine
> except
> > > all mail to any accounts gets returned as "Sorry, no mailbox here by
> that
> > > name. (#5.1.1)".  Using courier-imap and can log in and check accounts
> OK
> > > but something going on with mail delivery that accounts aren't
> recognized.
> > > Any thoughts on where to start to debug this thing.  Pulling my hair out
> > > and, of course, people are screaming at me.
> > >
> > > Help before I'm forced to switch back to sendmail and all system
> accounts
> > > or, worse yet, some sort of Win 2000 product.
> >
> > Check your control files, make sure the domain is in there.
> >
> > Then check the qmail/users/assign file and make sure it's
> > in there too.
> >
> > Then check for a .qmail-default file in the domain's directory
> >
> > Ken
> >
> >
> >
> 
> 





Re: vipmap,courier-imap and default domain

2001-09-07 Thread Ken Jones


I think once 5.0 is released we should review the
courier-imap/sqwebmail vpopmail code.

Ken
On Fri, 2001-09-07 at 05:35, 李兆唐 wrote:
> Hello!
>   i use vpopmail 5.0pre1 and courier-imap 1.3.10.
>   and i found that i can not let vipmap work with courier-imap well.
>   (i use courier-imap for both pop3 and imap).
>   example: 
>   >vipmap 127.0.0.1 test.com
>   >telnet 127.0.0.1 110
> 
> user [EMAIL PROTECTED]
> pass 
> +OK logged in.
> 
>   above works fine. but
> 
>   >telnet 127.0.0.1 110
>  user postmaster
>  pass 
>   >Connection closed by foreign host.
> 
>  it quit silently.
>  can we solve this?
>  and can we use a file or environment variable  
>  to setup "default domain"?
>  now i can only setup it at compile time. means
>  i need to recompile if i want to change default domain.
>  i want to build a general rpm, and default domain
>  can setup at run time if vipmap can not work for me.
>  thanks for any help!!!
>  
>   configure as below:
>   vpopmail:
>
> --enable-roaming-users=n \
> --enable-clear-passwd=y \
> --enable-logging=e \
> --enable-sqwebmail-pass=n \
> --enable-many-domains=n \
> --enable-qmail-ext=n \
> --enable-ip-alias-domains=y \
> --enable-passwd=n \
> --enable-hardquota=n
> 
>   courier-imap:
> --without-ipv6 \
> --without-authdaemon \
> --enable-workarounds-for-imap-client-bugs \
> --without-authcustom \
> --without-authcram \
> --without-authuserdb \
> --without-authpam \
> --without-authshadow \
> --without-authpwd \
> --without-authldap \
> --without-authmysql \
> --disable-root-check
> 
> Best Regards,
> Tbsky
> 
> 





vpopmail core dump with NULL mysql fields

2001-09-07 Thread Ken Jones

I updated the vmysql.c module to support NULL fields.
Probably not a good idea for anything to core dump :)

It will be in tonights pre5 release.

Ken






vpopmail-5.0pre5

2001-09-07 Thread Ken Jones

pre5 is available for download.

One issue addressed and I think fixed is aliased domains.

You can now authenticate against an aliased domain with
the vchkpw pop auth program.

There is a vget_real_domain( char *domain, int buff_size)
function that looks up the domain in the assign cdb file.
Aliased domains have the same directory as the real domain

For example:

+test.com-:test.com:89:89:/home/vpopmail/domains/test.com:-::
+ken.com-:ken.com:89:89:/home/vpopmail/domains/test.com:-::

test.com is the real domain and ken.com is the aliased 
domain. Notice that both have the same directory
/home/vpopmail/domains.test.com

the vget_real_domain parses the domain name out of
the directory path, and sets the "domain" buffer
to be what is found in the path. 

Hence, pop authentication for [EMAIL PROTECTED] would have
the "ken.com" part changed to "test.com". Then the
vchkpw program proceeds are normal, doing a 
vauth_getpw( "user", "test.com") 

Ken Jones
"Only three more coding days to 5.0"






RE: vpopmail-5.0pre5

2001-09-07 Thread Ken Jones

Here is what I have after running
vadddomain test.com
vaddaliasdomain ken.com test.com

virtualdomains:
test.com:test.com
ken.com:ken.com

users/assign:
+test.com-:test.com:89:89:/home/vpopmail/domains/test.com:-::
+ken.com-:ken.com:89:89:/home/vpopmail/domains/test.com:-::

ls -l /home/vpopmail/domains
ken.com -> /home/vpopmail/domains/test.com
test.com

And it works for me. the key thing here is the right hand
side of the virtualdomains file and the corresponding
path to the domain. 

ken.com has /home/vpopmail/domains/test.com resulting
in the domain being set to test.com. 

I tested it with ./configure --enable-mysql=y 
make ; make install-strip

The path for the alias domain in the assign file must have 
the path to the real domain. Which 5.0pre4 will setup automatically.

Ken

On Fri, 2001-09-07 at 16:28, Brad Dameron wrote:
> Hmmm. Interesting. It looks to be working on one machine. But not the other.
> 
> The only difference's is in my "virtualdomains" file for qmail.
> 
> Here is the one that works.
> 
> tscnet.com:tscnet.com
> sinclair.net:tscnet.com
> sincom.com:tscnet.com
> mail.sincom.com:tscnet.com
> mail.sinclair.net:tscnet.com
> mail.tscnet.com:tscnet.com
> mail.tscnet.net:tscnet.com
> tscnet.net:tscnet.com
> 
> 
> I modified it by had so all domains point to the directory and not the
> symbolic link you create. The one that still points to the symbolic links
> doesn't seem to work.
> 
> Example:
> 
> tscnet.com:tscnet.com
> sinclair.net:sinclair.net
> sincom.com:sincom.com
> 
> 
> These are all one domain. So sinclair.net has a symbolic link to tscnet.com
> and so does sincom.com.
> 
> ---
> Brad Dameron  
>Network Account Executive
> TSCNet Inc.  
> www.tscnet.com
> Silverdale, WA.          
> 1-888-8TSCNET
> 
> 
> 
> -Original Message-
> From: Ken Jones [mailto:[EMAIL PROTECTED]]
> Sent: Friday, September 07, 2001 1:13 PM
> To: [EMAIL PROTECTED]
> Subject: vpopmail-5.0pre5
> 
> 
> pre5 is available for download.
> 
> One issue addressed and I think fixed is aliased domains.
> 
> You can now authenticate against an aliased domain with
> the vchkpw pop auth program.
> 
> There is a vget_real_domain( char *domain, int buff_size)
> function that looks up the domain in the assign cdb file.
> Aliased domains have the same directory as the real domain
> 
> For example:
> 
> +test.com-:test.com:89:89:/home/vpopmail/domains/test.com:-::
> +ken.com-:ken.com:89:89:/home/vpopmail/domains/test.com:-::
> 
> test.com is the real domain and ken.com is the aliased
> domain. Notice that both have the same directory
> /home/vpopmail/domains.test.com
> 
> the vget_real_domain parses the domain name out of
> the directory path, and sets the "domain" buffer
> to be what is found in the path.
> 
> Hence, pop authentication for [EMAIL PROTECTED] would have
> the "ken.com" part changed to "test.com". Then the
> vchkpw program proceeds are normal, doing a
> vauth_getpw( "user", "test.com")
> 
> Ken Jones
> "Only three more coding days to 5.0"
> 
> 
> 
> 
> 





Re: stop then stop

2001-09-08 Thread Ken Jones

On Fri, 2001-09-07 at 22:27, webbuilder.jp wrote:
> I am in trouble with vpopmail-4.9.10.
> occasionally, the virtualdomains which i made under the vpopmail
> stop.
> it happens around after a couple of weeks.
> The first time i add a domain and the users, it works well.
> And then after weeks it stop.
> 
> Then i deleat the domains which stoped, using command  ./bin/vdeldomain
> domain.com.
> and i readd the domains which deleated, and add users under the domains,
> Then it works well.
> 
> This thing just keeping to happen after a couple of weeks of the recovery.
> 
> My OS is redhat 7.0.
> Would you please help me with this trouble?
> 
> Akihiro Yahata 

The first thing to do is to explain exactly what you
mean by "stop". Saying "stop" is too general of a term.

Do you mean pop authentication? web authentication?
imap authentication? email delivery?
Are all the various servers still running?
Is qmail-send still running? Is you pop server still
running? is your smtp server still running?

What do you qmail logs say? 
Are permissions being changed on files or
directories?

Ken Jones






Re: Solaris 8

2001-09-08 Thread Ken Jones

On Fri, 2001-09-07 at 19:03, Apis Hytt wrote:
> 
> 
> On Fri, 7 Sep 2001, Mike Jimenez wrote:
> 
> > When I try to compile with vpopmail-4.9.10 I get this error?
> > How can I fix this?
> -8< --- snip 
> > checking for AIX... no
> > ./configure: /usr/xpgr4/id: not found
> > ./configure: test: argument expected
> > bash-2.03#
> Apis+
>   On Solaris 7, but I assume; also,  in Solaris 8...
> 
>   Isn't it:   /usr/xpg4/bin/id
>   *not* /usr/xpgr4/id
> 
>   If so, edit configure to correct typo of where Solaris 8 parks it.
> Apis-
> > 
> > 
> > Thanks
> > Mike
> > 
> 

I wish solaris would make up it's mind on where the "id"
program lives. I've received emails from solaris folks
that have it in /usr/xpg4/bin and others that have
it in /usr/xpgr4/id (with no bin)


Hopefully Sun will dump it's Solaris OS and put it's
money behind Linux with all the GNU tools.


Ken Jones





Re: Re[2]: vpopmail-5.0pre5

2001-09-09 Thread Ken Jones

On Sun, 2001-09-09 at 08:53, Gabriel Ambuehl wrote:
> 
> Hello Ken,
> 
> Saturday, September 08, 2001, 12:18:34 AM, you wrote:
> 
> > The path for the alias domain in the assign file must have
> > the path to the real domain. Which 5.0pre4 will setup
> > automatically.  
> 
> 
> So you already got a script/app that goes through virtualdomains,
> checks if the dir is a symlink and issues vdeldomain/vaddaliasdomain
> on those who are?

No, I was talking about newly added domains and alias domains.
I don't have any old systems with aliased domains to look at,
so I can't be positive that old systems were set up this way.
But I think they are compatible, since the alias code hasn't
changed. 

I'm thinking if we but the vset_default_domain and
vget_alias_domain calls in the vauth_getpw function
then sqwebmail and courier-imap will automatically 
work with aliased domains.

Ken




Re: courier wants -lvpopmail

2001-09-10 Thread Ken Jones

On Sun, 2001-09-09 at 15:08, Dean Henrichsmeyer wrote:
> Hello,
> 
>   I have vpopmail-5.0pre5 installed. When I go to compile 
> courier-IMAP-1.3.10, it looks for -lvpopmail during compile. I've not 
> seen anything that ld should look at to allow for this. Am I missing 
> something simple?
> 
> Thanks,
> Dean
> 
> 

I think we are going to get alot of these questions.

courier-imap wants to be configured as non-root. And for
security reasons vpopmail 5.0 only lets root access the
library directory.

I see two solutions:

1) remove the root only access to vpopmail library

2) Put in a HIGHLY visiable FAQ for courier-imap configure/make
   and possibly include a vpopmail section in courier-imap's 
   next release.

If we do 1) we won't get these couerier-imap questions, but
security won't be as tight. If we do 2) we will still get
emails like this.

I thought changing the permissions on vpopmail/lib directory
would cause problems, that's why I was against it. But it
seems security is of higher concern.

What do you folks think? Should we keep the restricted
permissions or open them up? 5.0 is going out today, so
comments are welcome today :)

Ken Jones




Re: check timed out

2001-09-10 Thread Ken Jones

On Sun, 2001-09-09 at 13:10, Francois Bayart wrote:
> 
> Hi ,
> 
> I have some problems since 2 days wit my PO3 server its timed out all the remote 
>connection, I can check my mail if I wait 120 or 180 seconds. But before that's work 
>and I haven't change the POP3 or SMTP configuration.
> 
> Have you got a solution ?
> 
> I believe that's a resolver problem but I don't find ...
> 
> Francois.

Add -H and -R options to your pop3 and smtpd tcpserver startup
file. These options to tcpserver turn off dns resolution.

Ken Jones




RE: courier wants -lvpopmail

2001-09-10 Thread Ken Jones

Sounds like we already have a consensus.

I'll email MrSam and see if we can get your test code
into the courier-imap configure.in

Ken

On Mon, 2001-09-10 at 09:26, Tren Blackburn wrote:
> Hi Andrea;
> 
> I think that's a good suggestion.  Have the configure script check for
> the permissions of ~vpopmail/lib/libvpopmail.a
> 
>  if [ ! -r ~vpopmail/lib/libvpopmail.a ]
>  then
>echo "You have a secured version of VPOPMail.  Please read VPOPMail
> FAQ #??"
>break
>  else
>continue
>  fi
> 
> But I think that's FAR preferable to changing the perms or having *JUST*
> a FAQ item.  
> 
> Cheers,
> 
> Tren.
> 
> -Original Message-
> From: Andrea Cerrito [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, September 10, 2001 8:11 AM
> To: Ken Jones
> Cc: [EMAIL PROTECTED]
> Subject: R: courier wants -lvpopmail
> 
> 
>  
> -BEGIN PGP SIGNED MESSAGE-
> 
> > If we do 1) we won't get these couerier-imap questions, but security 
> > won't be as tight. If we do 2) we will still get emails like this.
> > 
> > I thought changing the permissions on vpopmail/lib directory would 
> > cause problems, that's why I was against it. But it seems security is 
> > of higher concern.
> 
> Hi Ken,
> I think security on frontend servers (backend too) is more important
> that compile time ;) because:
> 
> - - if courier needs lvpopmail access just during compile time, doing a
> chmod o+r before compile and removing it at the end, it isn't a very
> hard work to do;
> - - usually, you can compile apps on test machines and port them just
> compiled, so I really don't see the needs to remove a tightened
> security;
> - - why not change courier configure? something like
> 
> Checking vpopmail... *** Warning! Found vpopmail 5.x: you have to
> temporary change permissions on [vpopmail/lib] as root!!!
> 
> Anyway, this is IMHO. ;) 
> - ---
> Cordiali saluti / Best regards
> Andrea Cerrito
> ^^
> Net.Admin @ Centro MultiMediale di Terni S.p.A.
> P.zzale Bosco 3A
> 05100 Terni IT
> Tel. +39 0744 5441330
> Fax. +39 0744 5441372
> 
> -BEGIN PGP SIGNATURE-
> Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>
> 
> iQEVAwUBO5zKB/o9HK4+yTI3AQE9AAgAgo2gCzD8fJcIcaf65dlkxFk4u/72B2QU
> pL6iqq++blMqo/qeDuJ2/fwLn1ttza3lReH+Hz5S2zha0xqX06MNo+tlJ9tYtmGy
> y3GpVVs6mqLmf+QBDf1aU/wJBhO4iGi/P/WHLXmJpcUBc4Saw2dbxWay1OEBEHK3
> ZnPfrVFCCQFqtbt+37YPvmZpsVQaSgDgFiTa/6L2zwzbyTb5G48JUi1J0KU6ngbd
> uFLYMbbhT7iwpfR6icevCN+zb2qxdGLWNMneWGr6QSNab4ISgnuScnuEXx2wPJH8
> ZjdCB4IfI/6y2cnsOFZ8UB/ixlx3qBIueYUmvu4a7CVHKwvqlWRgCQ==
> =5whu
> -END PGP SIGNATURE-
> 
> 
> 





Re: Vadddomain problem

2001-09-10 Thread Ken Jones

On Mon, 2001-09-10 at 10:40, Charlie Chrisman wrote:
> I deleted a domain, charliechrisman.com, from my vpopmail configuation
> using vdeldomain charliechrisman.com.  There is no folder in
> /home/vpopmail/domains called charliechrisman.com, nor in the
> vpopmail.vpopmail table in mysql are there any references to
> charliechrisman.com.  When I try to add it back, vadddomain comes back
> and says:
> 
> veronica:/home/vpopmail/bin# ./vadddomain charliechrisman.com
> Please enter password for postmaster: 
> enter password again: 
> Error: Domain already exists
> 
> Also when I try to add charliechrisman.net, which ive never had in
> vpopmail, it says the domain exists.
> 
> Is there somewhere besides in /home/vpopmail/domains and the
> vpopmail.vpopmail table in mysql that vpopmail stores domain names?

yes, in /var/qmail/control
Look at virtualdomains, rcpthosts morercpthosts and locals.
Sometimes running vdeldomain, vadddomain again will fix it.

Ken Jones




Re: .dir-control file corrupted ?

2001-09-10 Thread Ken Jones

On Mon, 2001-09-10 at 11:06, jose carreiro wrote:
> hi all !
> 
> i have vpopmail 5.0-pre5 and qmail 1.03
> on debian 2.2r3 with 300 vdomains.
> i did an upgrade from vpopmail 4.9.8
> using vchkpw basic auth.
> 
> on one domain (the biggest with 23000 mailboxes) the vadduser commander
> returns an "make user dir error: segmentation fault"
> all other domains works fine
> 
> the vuserinfo command works fine with the biggest
> 
> local deliveries works fine with all domains.
> 
> already checkep the vpopmail user and group perms : all ok
> perms on vpasswd and vpasswd.cdb files are ok too.
> 
> 
> qmailadmin interface permits postmaster to login but the "pop accounts" are
> not displayed.I think this problem is the same !?
> 
> i have checked all i think it can cause the problem, so i found something
> wrong in the domain .dir-control file :
> 
> 23277
> 1
> 3
> 0 0 0
> 61 61 61
> 0 2 2
> 2 45 45
> 2/j
> 
> is the "2/j" line correct ?? can you explain the file structure ?

That looks okay. 2/j means the next account is put under 
the 2/j directory.

Ken





Re: vpopmail problem

2001-09-10 Thread Ken Jones

On Mon, 2001-09-10 at 11:21, Craig P. McDaniel, Jr. wrote:
> Hi all,
> 
> I've been writing a big piece of company software...a user management 
> system which contains an email manager for every domain we host.  This 
> email manager gives the same functionality as qmailadmin, but it works with 
> the rest of the system so we can, for example, bill customers, etc...
> 
> I've run across a problem in the email manager, which is written in 
> PHP.  The way it works is this.  PHP can sit on any webserver, but you take 
> a special peice of server software I wrote that works with PHP, and put it 
> on the web and mail servers so they can communicate.  For example, if I add 
> a pop3, PHP calls mail.server.com and tries to connect to the server 
> software, connects and gives it a command.  It then updates vpopmail and 
> sends a reply back.  The server software is written in perl using 
> tcpserver.  OK, enough of the preliminary stuff.
> 
> 
> The problem is this:
> 
> I need to change the realname of a pop3 account (under vpopmail) after the 
> account has already been added.  Does lilbvpopmail give me this ability, 
> because I haven't seen it in there.  Will I have to manually edit the 
> vpasswd file and change the name that way?

You mean the user name or the gecos field?

You can change the gecos field with vmoduser. 
I'm not sure if you can change the user name field.

Ken Jones




Re: Problem fixed?

2001-09-10 Thread Ken Jones

On Mon, 2001-09-10 at 13:08, Brad Dameron wrote:
> 
> Ken,
> 
> Did you correct the problem with the new vpopmail not creating the
> directories for a user if they don't exhist? We add the user to the MySQL
> database and then would issue a email to the user to have it create the
> directories. This no longer works.

Yes. Please test vpopmail-5.0pre5 (or whatever is
latest on the web site)

Please test today, I want to release it tonight.

Ken





Re: Define for mySQL port?

2001-09-11 Thread Ken Jones

The port can be put in the /etc/my.cnf file

Ken Jones

On Tue, 2001-09-11 at 05:22, Jan Pavlík wrote:
> Can you add one #DEFINE for mySQL port?
> 
> #define MYSQL_UPDATE_SERVER "server"
> #define MYSQL_UPDATE_USER   "login"
> #define MYSQL_UPDATE_PASSWD "pass"
> #define MYSQL_UPDATE_PORT 3307
> 
> 
> Jan PAVLIK
> --
> [EMAIL PROTECTED], [EMAIL PROTECTED]
> mobil 0777/555730
> ICQ 6611951
> 
> NIXNET.CZ - Váš webhosting u nás je již připraven





Re: urgent problem with Delivered-To: header please help

2001-09-12 Thread Ken Jones

On Wed, 2001-09-12 at 08:21, Sandro Serafini wrote:
> Hi!
> 
> On Wed, 12 Sep 2001 13:05:09 +0200, Sandro wrote:
> 
> > I've just upgraded vpopmail to the last version, needed by last
> > sqwebmail, and I have a big problem with the Delivered-To: header.
> 
> I temporary solved my problem modifying vdelivermail.c adding the following line at 
>line 478 
> (version 5.0pre5), just before the writing of the variable DeliverTo to the 
>destination mail:
> 
> snprintf(DeliveredTo, AUTH_SIZE,
> "%s%s", getenv("RPLINE"), getenv("DTLINE"));
> 
> This get rid of the bogus Delivered-To: and writes in the mail the correct one (the 
>qmail supplied one).
> 
Is this for email delivered to the catch all account from the
.qmail-default file, or a straight vdelivermail from the authentication 
database.

> I don't know if this could cause other problem, probably some problems guessing if a 
>mail is looping,
> but it works for me. Isn't mail looping checked by qmail itself? In my case, at the 
>moment,
> having a correct Delivered-To: is more important. You can use another header for 
>your looping-detection
> delivered-to.

Not in all cases. Now that vpopmail supports .qmail files in the users
directories, mail loops can be created, since qmail isn't involved.

example:

email to user1@domain
vdelivermail checks database and gets
/home/vpopmail/domains/domain/user1
from the database. Finds a .qmail file there containing.
&user2@domain.

vdelivermail then checks if user2@domain is in the database. If not
it sends it to qmail-inject. If it finds it then it gets the users
directory /home/vpopmail/domains/domain/user2. If that directory
has a .qmail file containing &user1@domain then it will deliver
to user1@domain.  Hence the loop.

Ken Jones
 





  1   2   3   4   5   6   7   8   9   10   >