RE: [vchkpw] vpopmail via NFS

2005-06-28 Thread Andre Fortin
I use NFS for my vpopmail directories, and haven't seen this..

I'm assuming you're using CDB files for auth; that means the DB files are
all on NFS.  If you don't have your root mapped properly, you won't be able
to create files.  Try using -maproot=0 (freebsd, others may be similar) in
your exports on the NFS server, and re-mount the NFS mountpoint; see if that
helps.

Andre

 -Original Message-
 From: James McMillan [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, June 28, 2005 11:47 AM
 To: vchkpw@inter7.com
 Subject: [vchkpw] vpopmail via NFS


 Has anyone tried to hold the vpopmail home as a NFS mount?
 I've gotten the mount setup properly, and the permissions are fine,
 however when adding a domain or a user I recieve the following error.

 minoru# ./bin/vadduser [EMAIL PROTECTED]
 Please enter password for [EMAIL PROTECTED]:
 enter password again:
 Failed while attempting to add user to auth backend
 Error: no auth connection

 If copy out all the files in the ~vpopmail mount, unmount, and copy the
 files into the now-local ~/vpopmail I do not have this problem.

 Has anyone done this, or know what the problem is?

 Thanks in advance.

 Jimmy McMillan

 --

 James McMillan
 V.P. Of Information Technology
 www.TheNetMark.com
 412 New Broadway
 Brooklawn, NJ 08030
 888.767.8750 X106





[vchkpw] enable-learn-passwords and Courier

2004-05-25 Thread Andre Fortin
Hi,

I'm using --enable-learn-passwords(netqmail 1.05 + vpopmail 5.4.0 +
courier-imap 3.0.4), and I've noticed that if someone logs in initially with
IMAP (via webmail), they are allowed to log in but the password does not get
learned.  Is this a known issue?  Is there a way around this?  We have a lot
of people using the webmail system exclusively, and I'd like to be able to
set their password that way so that they do not need to log in via pop3 once
to set their password..  Thanks in advance,

Andre



RE: [vchkpw] Failed deliveries to virtual mailbox

2004-05-13 Thread Andre Fortin
Thanks Ken,

The .qmail-default was trying to use a fastforward db (which I'm not using
anymore), and wasnt going to vdelivermail.. Thanks again.

Andre

-Original Message-
From: Ken Jones [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 12, 2004 5:07 PM
To: [EMAIL PROTECTED]
Subject: Re: [vchkpw] Failed deliveries to virtual mailbox


On Wednesday 12 May 2004 9:46 am, Andre Fortin wrote:
 Hi,

   I'm using vpopmail 5.2.1.  I host about 400 domains, some with just
.qmail
 files for forwarding and some with virtual users (MySQL backend).  I have
 one domain with a problem.

   This particular domain has always had simple .qmail files forwarding to
 another mail system.  Now, one use would like a virtual mailbox.  I added
 the mailbox with vadduser, removed the .qmail file, and it created the
 directory and the MySQL information.  The user shows up in vuserinfo
 without a problem, and is in the database.  The user can authenticate and
 check their pop3 mailbox without a problem.  However, when someone tries
to
 send them a message, it bounces saying the user does not exist.  If I add
 other usernames to that domain, the same problem occurs.  If I add users
to
 other domains they work fine.  It seems that only this domain is having
 problems delivering mail to virtual mailboxes.  Has anyone seen this
 before?  Is there a quick fix?  Perhaps I'm overlooking something
obvious..
  The .qmail files for forwarding work fine for this domain.  Thanks in
 advance,

1) Check the .qmail-default file to make sure it has a valid
vdelivermail setup. Check it against a working domain.

2) Check the /var/qmail/users/assign file for the domain against
the other domains. Make sure the /var/qmail/users/cdb file is
newer than the assign file. If not run qmail-newu

My bet would be a wacky .qmail-default file for the domain
since mail delivery is the only thing that uses that file.

Ken Jones



[vchkpw] Vpopbull does nothing

2003-03-30 Thread Andre Fortin
Hello,

I'm running vpopmail 5.2.1 with MySQL backend.  Everything works fine but
there is something strange with vpopbull.  If I run a command such as:

vpopbull -f filename -n -V

There is a printout of all the email addresses, like there should be.  But
when I specify a domain, it exits immediately, without printing any email
addresses.  Removing the -n doesnt help; the program still exits immediately
without sending the emails.  I have 394 virtual domains in the MySQL
database if that makes a difference.  Any ideas?  If you need more
information, let me know what you need and how to collect it and I will send
that info.  Thanks :)


Andre


PS: Configure line is:

./configure  --enable-default-domain=personainternet.com --enable-clear-pass
wd=y --enable-ip-alias-domains=y --enable-hard-quota --enable-defaultquota=5
000 --enable-mysql=y --enable-mysql-replication=y --enable-incdir=/usr/l
ocal/mysql/include/mysql/ --enable-libdir=/usr/local/mysql/lib/mysql/




RE: [vchkpw] Configure options for MySQL support?

2003-02-25 Thread Andre Fortin
This sounds like a good idea to me.. I'd like to see this in the future.


Andre

-Original Message-
From: Robin Bowes [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 10:13 AM
To: [EMAIL PROTECTED]
Subject: Re: [vchkpw] Configure options for MySQL support?


David,

On Tue, February 25, 2003 2:13 pm, David Richardson said:

 I don't plan on changing my MySQL params very often, but I'm _certain_
 that I'll forget to update vmysql.h during a recompile and I'll foobar my
 Vpopmail.

Can you guess what bit me resulting in my raising this as an issue?!!

 Perhaps we could just cobble together a helper perl script to query for
 and rewrite the vmysql.h params as part of the compile script(s) you use.

That's another possibility...

 Without a lot of other me too votes, is there interest from the vpopmail
 team in having this idea go a particular direction (into config/make or
 external perl)?  Is this even the appropriate venue to ask???

Let's wait and see...

R.
--
Robin Bowes | http://robinbowes.com





[vchkpw] vadddomain truncates rcpthosts after 50 entries

2003-02-14 Thread Andre Fortin
Heya,

Had a problem last night, where I had added a virtual domain for a customer.
Shortly afterwards, I was notified that mail was bouncing for many of our
primary domains.. Upon examination, /var/qmail/control/rcpthosts only had
one entry; the domain I had just added.  I restored from a backup, wc -l'd
rcpthosts, and noted there were 50 entries.  According to the documentation,
vadddomain should start using morercpthosts at this point, but instead it
overwrote rcpthosts with the single entry.  I tried adding the domain again
with the restored backup, and again it replaced the file with only the one
entry.  In the meantime, I've moved all the rcpthosts (except for some more
important ones) to morercpthosts and recompiled the cdb, but I'm wondering
if anyone knows how I can avoid this altogether?  I'd like to automate these
procedures, but if vadddomain is going to blow things up every 50 domains,
it's a little hard to do this :)

Any help would be greatly appreciated, Thanks


-
Andre Fortin, CCNA
Systems Administrator Technician
Persona Communications, Northern Division
500 Barrydowne Rd.
Sudbury, Ontario
[EMAIL PROTECTED]
Tel.: (705)560-1560 ext. 266






[vchkpw] qmail-local problem

2003-01-13 Thread Andre Fortin
Heya,

In my logs I'm noticing a problem delivering local mail..

deferral:
/var/vpopmail/bin/vdelivermail:_Cannot_fork:_Resource_temporarily_unavailabl
e/

The drive it is trying to write to is accessible to the system for
read/write functions and doesnt appear to be bogged down.  The permissions
are set properly.

Has anyone run into this before?

Andre





RE: [vchkpw] qmail-local problem

2003-01-13 Thread Andre Fortin
Scratch that;

Something had done the equivalent of 'which vdelivermail  `which
vdelivermail`' and overwrote the contents of the file with its own
pathname.. Odd..  In any case, I restored from a backup and it seems alright
now.. Sorry for the waste of space :P

Andre

-Original Message-
From: Andre Fortin [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 13, 2003 12:46 PM
To: [EMAIL PROTECTED]
Subject: [vchkpw] qmail-local problem


Heya,

In my logs I'm noticing a problem delivering local mail..

deferral:
/var/vpopmail/bin/vdelivermail:_Cannot_fork:_Resource_temporarily_unavailabl
e/

The drive it is trying to write to is accessible to the system for
read/write functions and doesnt appear to be bogged down.  The permissions
are set properly.

Has anyone run into this before?

Andre






RE: [vchkpw] vpopmail clustering examples

2002-12-30 Thread Andre Fortin
We have a very similar set up.  We have a third machine as the MySQL master
which doesnt directly interact as a mail server, but it makes the MySQL
database triple-redundant without sacrificing performance.

For load balancing/redundancy, we are using Foundry
(http://www.foundrynetworks.com/) switches with the SLB (Server Load
Balancing) code.  Very powerful; it not only detects if the server is
running, or listening to port 25/110, but it actually understands SMTP and
POP3 and will make sure the SMTP and POP3 servers are responding properly as
part of its 'heartbeat' tests.. So, for example, if you had a machine that
had a problem and would still listen to port 25 but couldnt actually answer
with a '220', it would be treated as 'offline' instead of opening dead
connections for clients..  It also allows you to load balance between X
number of servers rather than just failing over in 'worst case scenario'
situations..

Andre

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
Super-User
Sent: Monday, December 30, 2002 12:33 PM
To: [EMAIL PROTECTED]
Subject: Re: [vchkpw] vpopmail clustering examples


Well, I don't have any examples, but here is what we are doing (using
mysql for authentication):

Ingredients:

2 qmail/vpopmail/mysql servers(load balanced)
2 mysql servers
1 nfs server

Preheat the oven to 350...

mysql:
One mysql server is the primary, and one the secondary (the secondary is
not
necessary, but I wanted a 'warm' standby).  In addition, the 2 vpopmail
servers are running a local mysql daemon.  The secondary server, and the
2
vpopmail servers are replication slaves of the primary.  (For
replication
information, see the documentation on the mysql site, its fairly
straightforward)

nfs:
The ~vpopmail/domains directory is nfs mounted from the nfs server.  The
/var/qmail/control directory and the /var/qmail/users directory are also
nfs
mounted.  (I had some trouble getting nfs to work.  In the mount
options, I
had to set anon=89 to get it to work properly)

Vpopmail:
Edit the vmysql.h header file so that the MYSQL_UPDATE_SERVER is the
primary
mysql server, and the MYSQL_READ_SERVER is localhost.  I'm sure that you
could set your read server to a remote host, but I think localhost would
be
faster, and it reduces network traffic.

So basically, each qmail/vpopmail server is running its own queue.
Mysql
updates are sent to the primary server, and replicated through to the
secondary, and the local mysql daemons.  The Maildirs and the control
files
are on nfs to ensure that both boxes are as similar as possible.

In the vipmap, for each domain we have the public IP, and the 2 private
IPs
set up.  I'm not certain whether having the public IP in the map is
necessary, but I don't think it hurts anything, so why not.

If you are using cdb for authentication, my first suggestion would be to
try mounting it over nfs so that all clients are working with the same
info.  This could cause some problems since multiple client's updates
might stomp on each other.  I'm not a cdb guru so maybe someone else has
some input?

By the way, in the near future, we're considering replacing our current
Solaris nfs box with 2 Redhat boxes, using heartbeat for failover, with
fibre channel for storage.  Is anyone doing something similar with
vpopmail or heartbeat?  If so, any input?


Thanks,
Duane Wylie




 -Original Message-
 From: John Runnels [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, December 29, 2002 8:40 PM
 To: [EMAIL PROTECTED]
 Subject: [vchkpw] vpopmail clustering examples

 is there anyone out there in vpopmail land that knows where there is any
 information on clustering or loadbalancing vpopmail. what I mean by this
is
 having multiple copies of vpopmail running on more than one server.

 the reason why I am asking the group in I am running into problems where
the
 systems are not in sync

 Help !!!

 I see the option in the compile but I have found no instructions on how to
 implement this.

 anyway thanks in advance of  all of the responses.

 (Including the flames)





RE: [vchkpw] More ip alias woes

2002-12-15 Thread Andre Fortin
I telnetted with the same result:

* BYE [ALERT] Fatal error: Maildir: No such file or directory

It authenticates against the correct domain, however it is unable to find
the Maildir/ for that user.. In the case where I have an account with the
same  username/password on the default domain and and the vipmap'd domain, I
am able to log in to the vipmap'd domain, but I get my default-domains
Maildir/ .  This indicates to me that the authentication takes place
properly, but authvchkpw tries to put me in the default domains directory
instead of the vipmap'd one.. Perhaps I'm wrong on that one, but for some
reason Courier/authvchkpw is not finding the right directory..

For the time being, I have put a note on our squirrel mail login page to use
the full email address(which works fine), but I'd like to let users on
certain vipmap'd domains log into squirrelmail without their full email
address... POP3 functionality is working fine, which is why I believe the
problem is with authvchkpw, but since it is built using libvpopmail.a, it
could also be a vpopmail issue.. Thanks again in advance for any help you
can give,

Andre

-Original Message-
From: Bill Shupp [mailto:[EMAIL PROTECTED]]
Sent: Sunday, December 15, 2002 11:40 AM
To: vpopmail
Subject: Re: [vchkpw] More ip alias woes


On Saturday, December 14, 2002, at 09:50  PM, Andre Fortin wrote:

 Hi,

 I'm using vpopmail with MySQL backend, and courier-imap for
 SquirrelMail
 webmail.  I am trying to use vipmap to authenticate different domains
 via
 IP, and have applied Bill's patch for getting aroun IPv6, but when I
 log in
 to a vipmap'd domain(other than the one in --enable-default-domain) it
 returns the following:

 ---

 Unknown error: Fatal error: Maildir: No such file or directory

 Read data:

 ---


 The default domain was a cdb domain before, so i made sure to move the
 vpasswd files out of the way to make sure it wasnt just grabbing the
 correct
 directory from the files rather than the MySQL database..

 If I log in with the complete email address, it works; It only causes
 this
 problem when I try to connect to the vipmap'd domain without using the
 complete email address.  I am not much of a coder, but I'm assuming the
 problem is that the authvchkpw module is looking at the
 user@default-domain
 instead of looking at user@ip-aliased-domain for the users directory..
 Not
 finding the user in the default domain, it will not have a proper
 directory
 to find its Maildir/ and exits with this error.  When logged into via
 the
 complete email address, Courier of course does not use the default
 domain
 and authenticates properly.. Am I right? Is there already a solution
 for
 this issue? Let me know if any more information is needed.. Thanks,

You mention that SquirrelMail does not work.  What if you telnet to 143
and test login that way?  My guess is that squirrelmail is not passing
the correct IP to courier-imap.  One possible workaround would be to
have squirrelmail look at the HTTP_HOST header and append the domain to
the login.  I used to do this for my customers.  I there's even a
plugin now.

Regards,

Bill Shupp






RE: [vchkpw] More ip alias woes

2002-12-15 Thread Andre Fortin
Squirrelmail is on a different computer than the mail server in question.
It accesses it via the IP that is in the ip_alias_map table in MySQL for
that domain.  Logging in manually to the Courier server brings up the same
Maildir: No such file or directory error.  The username/password
authentication works; if I type the wrong password, it fails the login..
Only if I use a proper username/password pair will it give the error.

Andre

-Original Message-
From: Jesse Guardiani [mailto:[EMAIL PROTECTED]]
Sent: Sunday, December 15, 2002 2:06 PM
To: Andre Fortin; vpopmail
Subject: Re: [vchkpw] More ip alias woes


How is squirrelmail accessing Courier-IMAP?
Does squirrelmail access Courier-IMAP on the same IP as squirrelmail is
accessed?

Does IP-based domain work for normal Courier-IMAP logins?

Jesse Guardiani, Systems Administrator
WingNET Internet Services,
P.O. Box 2605 // Cleveland, TN 37320-2605
423-559-LINK (v)  423-559-5145 (f)
http://www.wingnet.net

We are actively looking for companies that do a lot of long
distance faxing and want to cut their long distance bill by
up to 50%.  Contact [EMAIL PROTECTED] for more info.


- Original Message -
From: Andre Fortin [EMAIL PROTECTED]
To: vpopmail [EMAIL PROTECTED]
Sent: Sunday, December 15, 2002 12:50 AM
Subject: [vchkpw] More ip alias woes


 Hi,

 I'm using vpopmail with MySQL backend, and courier-imap for SquirrelMail
 webmail.  I am trying to use vipmap to authenticate different domains via
 IP, and have applied Bill's patch for getting aroun IPv6, but when I log
in
 to a vipmap'd domain(other than the one in --enable-default-domain) it
 returns the following:

 ---

 Unknown error: Fatal error: Maildir: No such file or directory

 Read data:

 ---


 The default domain was a cdb domain before, so i made sure to move the
 vpasswd files out of the way to make sure it wasnt just grabbing the
correct
 directory from the files rather than the MySQL database..

 If I log in with the complete email address, it works; It only causes this
 problem when I try to connect to the vipmap'd domain without using the
 complete email address.  I am not much of a coder, but I'm assuming the
 problem is that the authvchkpw module is looking at the
user@default-domain
 instead of looking at user@ip-aliased-domain for the users directory.. Not
 finding the user in the default domain, it will not have a proper
directory
 to find its Maildir/ and exits with this error.  When logged into via the
 complete email address, Courier of course does not use the default domain
 and authenticates properly.. Am I right? Is there already a solution for
 this issue? Let me know if any more information is needed.. Thanks,

 Andre








RE: [vchkpw] Vpopmail w/ MySQL, courier-imap issue

2002-12-14 Thread Andre Fortin
Heya,

For the archives, the reason for this is that vpopmail was not built with
the --enable-incdir and --enable-libdir options.  Vpopmail itself was able
to find the necessary MySQL files, however this information was not
available to Courier via vpopmail.a - for this reason, courier could not
find the mysql header files.

Andre

-Original Message-
From: Jesse Guardiani [mailto:[EMAIL PROTECTED]]
Sent: Saturday, December 14, 2002 12:57 PM
To: Andre Fortin; vpopmail
Subject: Re: [vchkpw] Vpopmail w/ MySQL, courier-imap issue


That's strange. Did you:

gmake install-strip

on vpopmail before compiling courier-imap?

I wonder why it's referencing your vpopmail src directory?


Jesse Guardiani, Systems Administrator
WingNET Internet Services,
P.O. Box 2605 // Cleveland, TN 37320-2605
423-559-LINK (v)  423-559-5145 (f)
http://www.wingnet.net

We are actively looking for companies that do a lot of long
distance faxing and want to cut their long distance bill by
up to 50%.  Contact [EMAIL PROTECTED] for more info.


- Original Message -
From: Andre Fortin [EMAIL PROTECTED]
To: vpopmail [EMAIL PROTECTED]
Sent: Saturday, December 14, 2002 2:37 AM
Subject: [vchkpw] Vpopmail w/ MySQL, courier-imap issue


 Heya..

 Having some issues with courier-imap. I am using vpopmail w/ MySQL auth,
and
 all works well.. However, when trying to compile Courier (running 'make'
as
 normal user, and ~vpopmail/lib is readable), I get the error at the end of
 this email (it is long so I wont put it in the middle of my message).

 OS: FreeBSD 4.7
 Vpopmail configure line:

/configure  --enable-default-domain=personainternet.com --enable-clear-passw

d=y --enable-ip-alias-domains=y --enable-hard-quota --enable-defaultquota=50
 00 --enable-mysql=y --enable-mysql-replication=y

 Courier configure line:

./configure --prefix=/usr/local/courier-imap --disable-root-check --without-

authpam --without-authldap --without-authpwd --without-authmysql --without-a

uthpgsql --without-authshadow --without-authuserdb --without-authcustom --wi
 thout-authcram --without-authdaemon --with-authvchkpw

 Any help is appreciated, thanks in advance.


 Andre





 -

 Error:


 Compiling modauthvchkpw.c
 gcc  -I/var/vpopmail/include -g -O2 -Wall -I.. -I./..   -o authvchkpw
 modauthvchkpw.o libauthmod.a libauth.a ../numlib/libnumlib.a
../md5/libmd5.a
 ../sha1/libsha1.a -L/var/vpopmail/lib -lvpopmail -lm -lcrypt
 /var/vpopmail/lib/libvpopmail.a(vauth.o): In function `vauth_open_update':
 /usr/src/vpopmail-5.2.1/vauth.c(.text+0x30): undefined reference to
 `mysql_init'
 /usr/src/vpopmail-5.2.1/vauth.c(.text+0x54): undefined reference to
 `mysql_real_connect'
 /usr/src/vpopmail-5.2.1/vauth.c(.text+0x6f): undefined reference to
 `mysql_error'
 /usr/src/vpopmail-5.2.1/vauth.c(.text+0xa3): undefined reference to
 `mysql_real_connect'
 /usr/src/vpopmail-5.2.1/vauth.c(.text+0xba): undefined reference to
 `mysql_error'
 /usr/src/vpopmail-5.2.1/vauth.c(.text+0x10b): undefined reference to
 `mysql_query'
 /usr/src/vpopmail-5.2.1/vauth.c(.text+0x122): undefined reference to
 `mysql_error'
 /usr/src/vpopmail-5.2.1/vauth.c(.text+0x141): undefined reference to
 `mysql_store_result'
 /usr/src/vpopmail-5.2.1/vauth.c(.text+0x14f): undefined reference to
 `mysql_free_result'
 /usr/src/vpopmail-5.2.1/vauth.c(.text+0x164): undefined reference to
 `mysql_select_db'
 /var/vpopmail/lib/libvpopmail.a(vauth.o): In function `vauth_open_read':
 /usr/src/vpopmail-5.2.1/vauth.c(.text+0x1b6): undefined reference to
 `mysql_init'
 /usr/src/vpopmail-5.2.1/vauth.c(.text+0x1da): undefined reference to
 `mysql_real_connect'
 /usr/src/vpopmail-5.2.1/vauth.c(.text+0x205): undefined reference to
 `mysql_real_connect'
 /var/vpopmail/lib/libvpopmail.a(vauth.o): In function
 `vauth_open_read_getall':
 /usr/src/vpopmail-5.2.1/vauth.c:234: undefined reference to `mysql_init'
 /usr/src/vpopmail-5.2.1/vauth.c:239: undefined reference to
 `mysql_real_connect'
 /usr/src/vpopmail-5.2.1/vauth.c:243: undefined reference to
 `mysql_real_connect'
 /var/vpopmail/lib/libvpopmail.a(vauth.o): In function `vauth_adddomain':
 /usr/src/vpopmail-5.2.1/vauth.c:239: undefined reference to `mysql_query'
 /usr/src/vpopmail-5.2.1/vauth.c:240: undefined reference to
 `mysql_store_result'
 /usr/src/vpopmail-5.2.1/vauth.c:242: undefined reference to
 `mysql_free_result'
 /var/vpopmail/lib/libvpopmail.a(vauth.o): In function `vauth_adduser':
 /usr/src/vpopmail-5.2.1/vauth.c(.text+0x4f5): undefined reference to
 `mysql_query'
 /usr/src/vpopmail-5.2.1/vauth.c(.text+0x509): undefined reference to
 `mysql_store_result'
 /usr/src/vpopmail-5.2.1/vauth.c(.text+0x517): undefined reference to
 `mysql_free_result'
 /usr/src/vpopmail-5.2.1/vauth.c(.text+0x52c): undefined reference to
 `mysql_error'
 /var/vpopmail/lib/libvpopmail.a(vauth.o): In function `vauth_getpw':
 /usr/src/vpopmail-5.2.1/vauth.c(.text+0x605): undefined reference to
 `mysql_query'
 /usr/src/vpopmail-5.2.1/vauth.c(.text+0x61e

[vchkpw] More ip alias woes

2002-12-14 Thread Andre Fortin
Hi,

I'm using vpopmail with MySQL backend, and courier-imap for SquirrelMail
webmail.  I am trying to use vipmap to authenticate different domains via
IP, and have applied Bill's patch for getting aroun IPv6, but when I log in
to a vipmap'd domain(other than the one in --enable-default-domain) it
returns the following:

---

Unknown error: Fatal error: Maildir: No such file or directory

Read data:

---


The default domain was a cdb domain before, so i made sure to move the
vpasswd files out of the way to make sure it wasnt just grabbing the correct
directory from the files rather than the MySQL database..

If I log in with the complete email address, it works; It only causes this
problem when I try to connect to the vipmap'd domain without using the
complete email address.  I am not much of a coder, but I'm assuming the
problem is that the authvchkpw module is looking at the user@default-domain
instead of looking at user@ip-aliased-domain for the users directory.. Not
finding the user in the default domain, it will not have a proper directory
to find its Maildir/ and exits with this error.  When logged into via the
complete email address, Courier of course does not use the default domain
and authenticates properly.. Am I right? Is there already a solution for
this issue? Let me know if any more information is needed.. Thanks,

Andre





[vchkpw] vconvert -c -m hashing problem, revisited

2002-12-13 Thread Andre Fortin
Heya,

Searched through the archives and saw a few people have already brought this
up, but I was wondering if/when this was going to be fixed?  I did my
cdb-mysql conversion last night and ran into this.. I ended up just copying
those directories(since all the domains in the numbered subdirectories were
quite small) to ~vpopmail/domains/ and then running vconvert, and I'll
probably end up deleting the directories that i copied to ~vpopmail/domains/
since their numbered directory is still in the assigns, vpopmail db, etc..

Has anyone else who has noticed this had any problems afterwards with
account management (adding/removing users or domains), or is the problem
only in the vconvert utility?  Any information is appreciated, thanks in
advance :)


-
Andre Fortin, CCNA
Systems Administrator Technician
Persona Communications, Northern Division
500 Barrydowne Rd.
Sudbury, Ontario
[EMAIL PROTECTED]
Tel.: (705)560-1560 ext. 266






[vchkpw] Vpopmail w/ MySQL, courier-imap issue

2002-12-13 Thread Andre Fortin
Heya..

Having some issues with courier-imap. I am using vpopmail w/ MySQL auth, and
all works well.. However, when trying to compile Courier (running 'make' as
normal user, and ~vpopmail/lib is readable), I get the error at the end of
this email (it is long so I wont put it in the middle of my message).

OS: FreeBSD 4.7
Vpopmail configure line:
/configure  --enable-default-domain=personainternet.com --enable-clear-passw
d=y --enable-ip-alias-domains=y --enable-hard-quota --enable-defaultquota=50
00 --enable-mysql=y --enable-mysql-replication=y

Courier configure line:
./configure --prefix=/usr/local/courier-imap --disable-root-check --without-
authpam --without-authldap --without-authpwd --without-authmysql --without-a
uthpgsql --without-authshadow --without-authuserdb --without-authcustom --wi
thout-authcram --without-authdaemon --with-authvchkpw

Any help is appreciated, thanks in advance.


Andre





-

Error:


Compiling modauthvchkpw.c
gcc  -I/var/vpopmail/include -g -O2 -Wall -I.. -I./..   -o authvchkpw
modauthvchkpw.o libauthmod.a libauth.a ../numlib/libnumlib.a ../md5/libmd5.a
../sha1/libsha1.a -L/var/vpopmail/lib -lvpopmail -lm -lcrypt
/var/vpopmail/lib/libvpopmail.a(vauth.o): In function `vauth_open_update':
/usr/src/vpopmail-5.2.1/vauth.c(.text+0x30): undefined reference to
`mysql_init'
/usr/src/vpopmail-5.2.1/vauth.c(.text+0x54): undefined reference to
`mysql_real_connect'
/usr/src/vpopmail-5.2.1/vauth.c(.text+0x6f): undefined reference to
`mysql_error'
/usr/src/vpopmail-5.2.1/vauth.c(.text+0xa3): undefined reference to
`mysql_real_connect'
/usr/src/vpopmail-5.2.1/vauth.c(.text+0xba): undefined reference to
`mysql_error'
/usr/src/vpopmail-5.2.1/vauth.c(.text+0x10b): undefined reference to
`mysql_query'
/usr/src/vpopmail-5.2.1/vauth.c(.text+0x122): undefined reference to
`mysql_error'
/usr/src/vpopmail-5.2.1/vauth.c(.text+0x141): undefined reference to
`mysql_store_result'
/usr/src/vpopmail-5.2.1/vauth.c(.text+0x14f): undefined reference to
`mysql_free_result'
/usr/src/vpopmail-5.2.1/vauth.c(.text+0x164): undefined reference to
`mysql_select_db'
/var/vpopmail/lib/libvpopmail.a(vauth.o): In function `vauth_open_read':
/usr/src/vpopmail-5.2.1/vauth.c(.text+0x1b6): undefined reference to
`mysql_init'
/usr/src/vpopmail-5.2.1/vauth.c(.text+0x1da): undefined reference to
`mysql_real_connect'
/usr/src/vpopmail-5.2.1/vauth.c(.text+0x205): undefined reference to
`mysql_real_connect'
/var/vpopmail/lib/libvpopmail.a(vauth.o): In function
`vauth_open_read_getall':
/usr/src/vpopmail-5.2.1/vauth.c:234: undefined reference to `mysql_init'
/usr/src/vpopmail-5.2.1/vauth.c:239: undefined reference to
`mysql_real_connect'
/usr/src/vpopmail-5.2.1/vauth.c:243: undefined reference to
`mysql_real_connect'
/var/vpopmail/lib/libvpopmail.a(vauth.o): In function `vauth_adddomain':
/usr/src/vpopmail-5.2.1/vauth.c:239: undefined reference to `mysql_query'
/usr/src/vpopmail-5.2.1/vauth.c:240: undefined reference to
`mysql_store_result'
/usr/src/vpopmail-5.2.1/vauth.c:242: undefined reference to
`mysql_free_result'
/var/vpopmail/lib/libvpopmail.a(vauth.o): In function `vauth_adduser':
/usr/src/vpopmail-5.2.1/vauth.c(.text+0x4f5): undefined reference to
`mysql_query'
/usr/src/vpopmail-5.2.1/vauth.c(.text+0x509): undefined reference to
`mysql_store_result'
/usr/src/vpopmail-5.2.1/vauth.c(.text+0x517): undefined reference to
`mysql_free_result'
/usr/src/vpopmail-5.2.1/vauth.c(.text+0x52c): undefined reference to
`mysql_error'
/var/vpopmail/lib/libvpopmail.a(vauth.o): In function `vauth_getpw':
/usr/src/vpopmail-5.2.1/vauth.c(.text+0x605): undefined reference to
`mysql_query'
/usr/src/vpopmail-5.2.1/vauth.c(.text+0x61e): undefined reference to
`mysql_error'
/usr/src/vpopmail-5.2.1/vauth.c(.text+0x635): undefined reference to
`mysql_store_result'
/usr/src/vpopmail-5.2.1/vauth.c(.text+0x661): undefined reference to
`mysql_num_rows'
/usr/src/vpopmail-5.2.1/vauth.c(.text+0x706): undefined reference to
`mysql_fetch_row'
/usr/src/vpopmail-5.2.1/vauth.c(.text+0x82e): undefined reference to
`mysql_free_result'
/usr/src/vpopmail-5.2.1/vauth.c(.text+0x842): undefined reference to
`mysql_free_result'
/var/vpopmail/lib/libvpopmail.a(vauth.o): In function `vauth_deldomain':
/usr/src/vpopmail-5.2.1/vauth.c(.text+0x8a2): undefined reference to
`mysql_query'
/usr/src/vpopmail-5.2.1/vauth.c(.text+0x8b6): undefined reference to
`mysql_store_result'
/usr/src/vpopmail-5.2.1/vauth.c(.text+0x8c4): undefined reference to
`mysql_free_result'
/usr/src/vpopmail-5.2.1/vauth.c(.text+0x8ee): undefined reference to
`mysql_query'
/usr/src/vpopmail-5.2.1/vauth.c(.text+0x902): undefined reference to
`mysql_store_result'
/usr/src/vpopmail-5.2.1/vauth.c(.text+0x910): undefined reference to
`mysql_free_result'
/var/vpopmail/lib/libvpopmail.a(vauth.o): In function `vauth_deluser':
/usr/src/vpopmail-5.2.1/vauth.c(.text+0x97a): undefined reference to
`mysql_query'
/usr/src/vpopmail-5.2.1/vauth.c(.text+0x993): undefined reference to

[vchkpw] vadduser batch file

2002-11-25 Thread Andre Fortin
Hi,

In testing a conversion from a system user sendmail/qpopper set up to a cdb
vpopmail set up, I noticed if I tried to batch multiple 'vadduser' entries,
it would sometimes fail writing the cdb file and would build a cdb with only
the last few entries, and overwrite the live vpasswd.cdb file.  This is
obviously a problem :)

Is there any way to safeguard against this?  The plain text vpasswd file is
unaffected, so any vpasswd/vadduser/vdeluser command subsequentially entered
will rebuild the database properly, but we intend to have many batch entries
later on to synchronize with another external database, and we dont want
this happening in the middle of the day, even for a few minutes..

I could easily add a 'sleep x' statement in the batch file between commands,
but for large batch entries, this would overlap with the next batch run,
since we hope to run the sync once per minute.  Also, what would be a safe
value for 'x' if this was the only solution?  Any suggestions on this?

In responding, please keep in mind that we'd like to maintain CDB as opposed
to external databases(we already have enough problems synchronizing the
current DB2/MSSQL databases :).  I'd like to avoid having to run an LDAP or
MySQL server.

Thanks in advance,

-
Andre Fortin, CCNA
Systems Administrator Technician
Persona Communications, Northern Division
500 Barrydowne Rd.
Sudbury, Ontario
[EMAIL PROTECTED]
Tel.: (705)560-1560 ext. 266






[vchkpw] Converting old virtualdomains

2002-11-18 Thread Andre Fortin
Hi,

I currently have an old qmail system, where the original admin had added
virtual domains by creating a user, adding an entry of domain.tld:v-user ,
and then adding ~v-user/.qmail-alias files, which normally aliased to local
system accounts.  Is there a tool out there or method to easily convert
these? Ultimately, I'd like to have these domains converted to vpopmail
domains with the .qmail- files in them, and then add new users as vpopmail
users for these domains..  Basically, is there a way I can avoid having to
manually move the aliases?


-
Andre Fortin, CCNA
Systems Administrator Technician
Persona Communications, Northern Division
500 Barrydowne Rd.
Sudbury, Ontario
[EMAIL PROTECTED]
Tel.: (705)560-1560 ext. 266






RE: [vchkpw] vipmap + courier-IMAP

2002-11-06 Thread Andre Fortin
Anyone else have any ideas on this one?

Andre

-Original Message-
From: Andre Fortin [mailto:afortin;personainc.ca]
Sent: Tuesday, November 05, 2002 9:37 AM
To: Rick Macdougall; [EMAIL PROTECTED]
Subject: RE: [vchkpw] vipmap + courier-IMAP


I applied the patch with no success..  The patch works, compiles cleanly,
but does not affect anything and the error continues.. Perhaps I'm patching
it incorrectly or missing a step that is otherwise obvious, but I'm not
aware of..

To summarize: I've tried the patch, it failed(or I failed in applying it).

Andre

-Original Message-
From: Rick Macdougall [mailto:rickm;nougen.com]
Sent: Tuesday, November 05, 2002 9:25 AM
To: Andre Fortin; [EMAIL PROTECTED]
Subject: Re: [vchkpw] vipmap + courier-IMAP


Hi,

Yup,  read the archives to see what needs to be done.  Specifically, you'll
need a patch to vpopmail.c

Regards,

Rick

- Original Message -
From: Andre Fortin [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, November 05, 2002 9:07 AM
Subject: [vchkpw] vipmap + courier-IMAP


Hi,

I was wondering if anyone knew if it was possible to have Courier-IMAP use
vipmap'd domains? I've asked the question before, but never got a complete
answer..  If anyone can help me out, it would be appreciated.. Thanks

-
Andre Fortin, CCNA
Systems Administrator Technician
Persona Communications, Northern Division
500 Barrydowne Rd.
Sudbury, Ontario
[EMAIL PROTECTED]
Tel.: (705)560-1560 ext. 266









RE: [vchkpw] vipmap + courier-IMAP

2002-11-05 Thread Andre Fortin
I applied the patch with no success..  The patch works, compiles cleanly,
but does not affect anything and the error continues.. Perhaps I'm patching
it incorrectly or missing a step that is otherwise obvious, but I'm not
aware of..

To summarize: I've tried the patch, it failed(or I failed in applying it).

Andre

-Original Message-
From: Rick Macdougall [mailto:rickm;nougen.com]
Sent: Tuesday, November 05, 2002 9:25 AM
To: Andre Fortin; [EMAIL PROTECTED]
Subject: Re: [vchkpw] vipmap + courier-IMAP


Hi,

Yup,  read the archives to see what needs to be done.  Specifically, you'll
need a patch to vpopmail.c

Regards,

Rick

- Original Message -
From: Andre Fortin [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, November 05, 2002 9:07 AM
Subject: [vchkpw] vipmap + courier-IMAP


Hi,

I was wondering if anyone knew if it was possible to have Courier-IMAP use
vipmap'd domains? I've asked the question before, but never got a complete
answer..  If anyone can help me out, it would be appreciated.. Thanks

-
Andre Fortin, CCNA
Systems Administrator Technician
Persona Communications, Northern Division
500 Barrydowne Rd.
Sudbury, Ontario
[EMAIL PROTECTED]
Tel.: (705)560-1560 ext. 266








RE: [vchkpw] IMAP + vipmap

2002-11-01 Thread Andre Fortin
I'm still having a hard time with this..

courier imap has been recompiled, and so has vpopmail.  I need to be able to
use vipmap'd domains with both POP3 and IMAP.  The POP3 sessions work fine;
The problem is the imap sessions still use the --enable-default-domain
domain instead of the one specified using vipmap
and --enable-ip-alias-domains .. I've tried using Bill Shupp's patch but it
didnt change anything.. Perhaps I'm missing something that was implied but
not said?

Andre

-Original Message-
From: Bill Shupp [mailto:hostmaster;shupp.org]
Sent: Thursday, October 31, 2002 10:55 AM
To: [EMAIL PROTECTED]
Subject: Re: [vchkpw] IMAP + vipmap


On Thursday, October 31, 2002, at 07:51  AM, Andre Fortin wrote:

 Heya..

 I'm using 5.2.1 still..  I used the code I got from Rick on the list
 and put
 it into vpopmail.c .. The section in question now looks like this:

 #ifdef IP_ALIAS_DOMAINS
 tmpstr = getenv(TCPLOCALIP);

   /* courier-imap uses IPv6 */
   if ( tmpstr != NULL   tmpstr[0] == ':') {
 tmpstr +=2;
 while(*tmpstr!=':') ++tmpstr;
 ++tmpstr;
   }


 memset(host,0,156);
 if ( vget_ip_map(tmpstr,host,156)==0  !host_in_locals(host)){
 if ( strlen(host)  0 ) {
 strncpy( domain, host, 156 );
 }
 return;
 }
 #endif


 Does this look ok? I re-compiled/make install'd vpopmail, but the
 vipmaps
 still dont seem to be working.. Maybe I'm missing something obvious..
 Let me
 know if you see any problems with the way i put the code in, thanks :)

You need to recompile courier imap.  Please keep posts on the list.

Regards,

Bill Shupp







[vchkpw] IMAP + vipmap

2002-10-31 Thread Andre Fortin
Hi,

I have --enable-ip-alias-domains=y, and vipmap for a domain working fine via
pop3 using vchkpw.  I have courier-imapd running, and authvchkpw is being
used.  Should authvchkpw understand IP alias maps?

I've noticed this question has been asked before, but I don't see an answer
in the archives.. anyone have any more information?


-
Andre Fortin, CCNA
Systems Administrator Technician
Persona Communications, Northern Division
500 Barrydowne Rd.
Sudbury, Ontario
[EMAIL PROTECTED]
Tel.: (705)560-1560 ext. 266






RE: [vchkpw] IMAP + vipmap

2002-10-31 Thread Andre Fortin
I've recompiled courier-imap, but I'm still getting the same results.. Is
there anything special I need to do when compiling/configuring it?

Andre

-Original Message-
From: Bill Shupp [mailto:hostmaster;shupp.org]
Sent: Thursday, October 31, 2002 10:55 AM
To: [EMAIL PROTECTED]
Subject: Re: [vchkpw] IMAP + vipmap


On Thursday, October 31, 2002, at 07:51  AM, Andre Fortin wrote:

 Heya..

 I'm using 5.2.1 still..  I used the code I got from Rick on the list
 and put
 it into vpopmail.c .. The section in question now looks like this:

 #ifdef IP_ALIAS_DOMAINS
 tmpstr = getenv(TCPLOCALIP);

   /* courier-imap uses IPv6 */
   if ( tmpstr != NULL   tmpstr[0] == ':') {
 tmpstr +=2;
 while(*tmpstr!=':') ++tmpstr;
 ++tmpstr;
   }


 memset(host,0,156);
 if ( vget_ip_map(tmpstr,host,156)==0  !host_in_locals(host)){
 if ( strlen(host)  0 ) {
 strncpy( domain, host, 156 );
 }
 return;
 }
 #endif


 Does this look ok? I re-compiled/make install'd vpopmail, but the
 vipmaps
 still dont seem to be working.. Maybe I'm missing something obvious..
 Let me
 know if you see any problems with the way i put the code in, thanks :)

You need to recompile courier imap.  Please keep posts on the list.

Regards,

Bill Shupp







[vchkpw] Multiple default domains(failover)

2002-10-15 Thread Andre Fortin

Hello,

I'm in charge of 3 email systems.  One is sendmail, one is qmail with system
users and one is qmail/vpopmail.  I'd like to move everything to the
vpopmail system, however with thousands of email accounts on each of the
other domains/mail systems, as well as overlapping usernames, it would be
too much to ask them to start appending @olddomain1.com and @olddomain2.com.

Is there a way to make vpopmail failover to different default domains?  For
example, if a username/password pair do not work on the first default
domain, it will attempt to match on the second domain, failing that it will
try the 3rd domain, etc until there are no more default domains, then fail
if there is no match on any default domains..

I don't know if vpopmail has this functionality built in, or if anyone has
ever done this(I've seen no mention of this searching archives; maybe I've
been looking in the wrong place or not hard enough).  If anyone has any
suggestions or information, it would be greatly appreciated :)


-
Andre Fortin, CCNA
Systems Administrator Technician
Persona Communications, Northern Division
500 Barrydowne Rd.
Sudbury, Ontario
[EMAIL PROTECTED]
Tel.: (705)560-1560 ext. 266






RE: [vchkpw] Multiple default domains(failover)

2002-10-15 Thread Andre Fortin

Thanks to all who helped; It looks like IP based virtual domains are the
answer :)

Andre

-Original Message-
From: Andre Fortin [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 15, 2002 10:55 AM
To: [EMAIL PROTECTED]
Subject: [vchkpw] Multiple default domains(failover)


Hello,

I'm in charge of 3 email systems.  One is sendmail, one is qmail with system
users and one is qmail/vpopmail.  I'd like to move everything to the
vpopmail system, however with thousands of email accounts on each of the
other domains/mail systems, as well as overlapping usernames, it would be
too much to ask them to start appending @olddomain1.com and @olddomain2.com.

Is there a way to make vpopmail failover to different default domains?  For
example, if a username/password pair do not work on the first default
domain, it will attempt to match on the second domain, failing that it will
try the 3rd domain, etc until there are no more default domains, then fail
if there is no match on any default domains..

I don't know if vpopmail has this functionality built in, or if anyone has
ever done this(I've seen no mention of this searching archives; maybe I've
been looking in the wrong place or not hard enough).  If anyone has any
suggestions or information, it would be greatly appreciated :)


-
Andre Fortin, CCNA
Systems Administrator Technician
Persona Communications, Northern Division
500 Barrydowne Rd.
Sudbury, Ontario
[EMAIL PROTECTED]
Tel.: (705)560-1560 ext. 266