Re: [vchkpw] TMDA + vpopmail + qmail + squirrelmail (?)

2004-06-02 Thread Alan Murrell
Hi Marcio,

On Mon, 2004-05-31 at 05:29, Márcio Luciano Donada wrote:
 My webmail (squirrelmail) is in perfect workd, but, probleman in TMDA Tool,
 look,
 
 File not found:
 /usr/local/vpopmail/domains/domain.com/marcio/.tmda/lists/whitelist

What user is your web server running as?  I think it needs permissions
to read right through from the parent directory.  I think Vpopmail uses
the following directory permissions:

  drwx--

I get around this by running the web server as vpopmail:vchkpw (since
the webmail is sitting on the mail server, and is only used for webmail,
then this doesn't usually pose a problem)

Keep in mind as well that any files that are edited are done so as the
user the web server is running as; if that user is unable to write to
that file, then edits will fail.

HTH.

Alan





Re: [vchkpw] TMDA + vpopmail + qmail + squirrelmail (?)

2004-06-02 Thread Alan Murrell
Hi Marcio,

On Wed, 2004-06-02 at 06:43, Márcio Luciano Donada wrote:
 This user your web server is 'www' (apache 1.3.31 on FreeBSD 4.10-STABLE)
 Permissons is altered in the domains (vpopmail) drwx-- for drwxrwx--- 
 (770) e group www is on vchkpw, is probleman persist

Is it practical for you to run the server as 'vpopmail:vchkpw'?  If not,
I think you need to make the permissions on /usr/local/vpopmail to
drwxrwx--- and also all the way down to and including the user's mail
directory as well.

HTH.

Alan





Re: [vchkpw] IMAP login fails for default domain users

2004-05-30 Thread Alan Murrell
Hi Tom,

On Sun, 2004-05-30 at 10:38, Tom Collins wrote:
 It sounds like the vpopmail code in Courier-IMAP doesn't correctly 
 handle default domains.  I know that Michael Bowe did a lot of work on 
 that code recently -- are you using the latest release of Courier-IMAP?

Not the latest, but version 3.0.4 .  This was copiled from source.  I
have setup the same version of courier from RPM using the SRPMS at
http://www.qmailtoaster.com, on a test box, and Courier-IMAP is
logging users in using the default domain.

 If you're running MySQL, then I assume it isn't a permissions issue, 
 since Courier wouldn't be able to read the vpopmail.mysql file.

I am running MySQL on the backend.  I think you are meaning that
Courier-IMAP does not read the 'vpopmail.mysql' file; is that correct? 
Regardless, I just made it world-readble, and tried logging in:

[EMAIL PROTECTED] root]# telnet localhost 143
trying 127.0.0.1...
connected to van-srv41 [127.0.0.1]
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE
THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION
STARTTLS] Courier-IMAP ready. Copyright 1998-2004 Double Precision,
Inc.  See COPYING for distribution information.
A01 LOGIN alan SeEeCcRrEeTt
A01 NO Login failed.
Connection closed by foreign host.

(I rather suspected that wouldn;t work, but it was worth a try).

 If not, make sure that ~vpopmail/etc/defaultdomain is world-readable, 
 that could be part of the problem.  Keep in mind that ~vpopmail/etc/ 
 needs to be readable by the user that Courier-IMAP runs as.

[EMAIL PROTECTED] root]# ls -l ~vpopmail/etc
total 36
-rw-r--r--1 vpopmail vchkpw 12 May 30 15:53 defaultdomain
-rw-r--r--1 root root   25 May 28 07:53 inc_deps
-rw-r--r--1 root root   77 May 28 07:53 lib_deps
-rw-r--r--1 vpopmail vchkpw 26 May 28 07:48 tcp.smtp
-rw-r--r--1 vpopmail vchkpw  10580 May 30 15:41 tcp.smtp.cdb
-rw-r--r--1 vpopmail vchkpw   1107 May 28 07:53 vlimits.default
-rw-r--r--1 vpopmail vchkpw 42 May 28 07:38 vpopmail.mysql

I am suspecting there is something (unrelated) to this server, because I
have also tried recompiling Courier-IMAP, but it gets to a certain point
then hangs during the configure stage (and it takes a couple minutes to
get the full login prompt). This obviously is not your issue, but it's
just odd.

Anyway, any other ideas you may have would be greatly appreciated.

Sincerely,

Alan Murrell




Re: [vchkpw] TMDA + vpopmail + qmail + squirrelmail (?)

2004-05-30 Thread Alan Murrell
Hi Marcio,

On Sun, 2004-05-30 at 14:45, Márcio Luciano Donada wrote:
 Somebody of the group uses TMDA + qmail + vpopmail + squirrelmail? It would
 like to use plugin to carry through the possible changes in the TMDA that
 the customer comes to want, but I am not obtaining, if somebody uses, can
 give one help?

I recently got this setup with the help of someone on the TMDA list. I
am not sure if he is on this list, but I will post what he posted for me
on the TMDA list, and hope that he does not mind.  Full credit for this
setup goes to Carlos Averett (I will withold his email address for
privacy reasons)

In the 'tmdatools' Squirrelmail plugin:

= tmdatools_config.php =
 Added:
 // Cyt0plas - ok, let's do virtualhosting support here
 $uinfo = split ('@', $_SESSION['username']);
 $user = $uinfo[0]; $domain = $uinfo[1];

 Changed:
 $plugin_tmdatools_homedir = /home/vpopmail/domains/$domain;
 $plugin_tmdatools_editfiles[0][title] = Whitelist;
 $plugin_tmdatools_editfiles[0][fname] =
$plugin_tmdatools_homedir/$user/.tmda/lists/whitelist;

 $plugin_tmdatools_editfiles[1][title] = Blacklist;
 $plugin_tmdatools_editfiles[1][fname] =
$plugin_tmdatools_homedir/$user/.tmda/lists/blacklist;

 $plugin_tmdatools_editfiles[2][title] = Confirmed Senders;
 $plugin_tmdatools_editfiles[2][fname] =
$plugin_tmdatools_homedir/$user/.tmda/lists/confirmed;

 $plugin_tmdatools_editfiles[3][title] = TMDA User Config File;
 $plugin_tmdatools_editfiles[3][fname] =
$plugin_tmdatools_homedir/$user/.tmda/config;

 $plugin_tmdatools_editfiles[4][title] = TMDA Incoming Filter;
 $plugin_tmdatools_editfiles[4][fname] =
$plugin_tmdatools_homedir/$user/.tmda/filters/incoming;

 $plugin_tmdatools_editfiles[5][title] = TMDA Outgoing Filter;
 $plugin_tmdatools_editfiles[5][fname] =
$plugin_tmdatools_homedir/$user/.tmda/filters/outgoing;

 $plugin_tmdatools_editfiles[6][title] = Request Confirmation
Template;
 $plugin_tmdatools_editfiles[6][fname] =
$plugin_tmdatools_homedir/$user/.tmda/templates/confirm_request.txt;

 $plugin_tmdatools_editfiles[7][title] = Acceptance Confirmation
Template;
 $plugin_tmdatools_editfiles[7][fname] =
$plugin_tmdatools_homedir/$user/.tmda/templates/confirm_accept.txt;

 $plugin_tmdatools_editfiles[8][title] = Bounce Template;
 $plugin_tmdatools_editfiles[8][fname] =
$plugin_tmdatools_homedir/$user/.tmda/templates/bounce.txt;
= End tmdatools_config.php =

Note: I added [6], [7], and [8] to my own configuration to allow users
to custome those texts.

= Begin address.php =
Changed:
if ($tmdatools_submit)
{
  // Cyt0plas - Get user and domain
  $uinfo = split('@', $_SESSION['username']);
  $username = $uinfo[0]; $domain = $uinfo[1];

  $command = $plugin_tmdatools_tmdadir . bin/tmda-address;

  if (file_exists($command))
  {
$config = '/home/vpopmail/domains/' . $domain . '/' . $username .
'/.tmda/config';
$command .= ' -a ' . $username . '@' . $domain . ' -c ' . $config .
'
--'.$tmdatools_address.' '.$tmdatools_address_text;

$address = exec($command);

echo $address;
  }
  else
  {
echo _(File not found).': b'.$command.'/b';
  }
}
= End address.php =

= pending.php =
Added:
  // Cyt0plas - Get user and domain
  $uinfo = split('@', $_SESSION['username']);
  $username = $uinfo[0]; $domain = $uinfo[1];
  $config = '/home/vpopmail/domains/' . $domain . '/' . $username .
'/.tmda/config';

Changed:
Basically, I changed all occurences of
$tmdatools_pending = $plugin_tmdatools_tmdadir . bin/tmda-pending
to
$tmdatools_pending = $plugin_tmdatools_tmdadir . bin/tmda-pending -c
$config;
= End pending.php =

I hope this helps.

Sincerely,

Alan Murrell




Re: [vchkpw] IMAP login fails for default domain users

2004-05-30 Thread Alan Murrell
On Sun, 2004-05-30 at 10:38, Tom Collins wrote:
 It sounds like the vpopmail code in Courier-IMAP doesn't correctly 
 handle default domains.  I know that Michael Bowe did a lot of work on 
 that code recently -- are you using the latest release of Courier-IMAP? 
   I just took a look at 3.0.4, and it appears to do everything that it 
 should -- the call to parse_email should set Domain to the default 
 domain if there isn't an '@' in the email address.

Okay, here is what I now have installed (on a test box):

  Qmail 1.03
  Vpopmail 5.4.3
  Courier-IMAP 3.0.4

I have compiled Vpopmail and Courier-IMAP according to Michael Bowe's
guide at
http://www.pipeline.com.au/staff/mbowe/isp/webmail-server.htm, except
I added the '--enable-roaming-users' options for Vpopmail, and had to
add '--with-redhat', since I am compiling on a RH system; other than
that, all else is identical.

However, now *no* IMAP logins are able to occur, whenther from default
domain or all other domains.

 If not, make sure that ~vpopmail/etc/defaultdomain is world-readable,

It is.

 that could be part of the problem.  Keep in mind that ~vpopmail/etc/ 
 needs to be readable by the user that Courier-IMAP runs as.

~vpopmail/etc/ is owned by vpopmail:vchkpw, and has permissions of 755

Thank you, again, for your assistance in this matter.

Sincerely,

Alan Murrell




[vchkpw] IMAP login fails for default domain users

2004-05-28 Thread Alan Murrell
Hello,

  Vpopmail 5.4.2
  Courier-imap 3.0.3

I compiled Qmail, Vpopmail, and Courier-Imap according to the following
HOWTO:

http://sylvestre.ledru.info/howto/howto_qmail_vpopmail.php

I also created the ~vpopmail/etc/defaultdomain file with the domain I
wanted in there for the default domain.

All POP logins work great, but with IMAP, only the virtual domains (or
rather, any domain other than the 'default domain') are able to login
in; the 'default domain' fails on IMAP login, regardless of whether I
user the '@defaultdomain.tld' or not (Note: '@defaultdomain' is of
course, a place-holder for the actual domain I used)

I have gone over a few other Qmail-Vpopmail-Courier-imap HOWTOS, and
cannot find anything wrong .

Of course, if I remove the 'defaultdomain' file, then the users under
the '@defaultdomain.tld' can log in via IMAP (assuming they use the full
email address).

Unfortunately, it is not too practical for me to do this, since there
are several hundred users who are under the 'default domain', and almost
all log in with only the first part of their email address.

ANy ideas as to what is wrong, and possibly how to correct would be
greatly appreciated!

TIA,

Alan Murrell




Re: [vchkpw] synchronize control files

2003-09-18 Thread Alan Murrell
Hi Jeff,

--- Jeff Oliver [EMAIL PROTECTED] wrote:
 Basically we have n+1 qmail+vpopmail+mysql, each
 sharing an NFS datastore for the vpopmail directory.
 (and only for that directory)

We have a similar setup.  What we are doing is sharing
the following directories off the NFS server (which
also holds our MySQL database):

  NFS Server-   NFS clients
 /maildirs  - /home/vpopmail/domains
 /var/qmail/control - /var/qmail/control
 /var/qmail/users   - /var/qmail/users

so naturally, all the mail servers are getting the
above three directories shared out to them, and any
changes on one get automatically reflected in the
others.  I then have the admin web interface (or shell
in, if that's how I wish to do it) into the NFS
server, and make the changes on there, which
immediately get reflected ont he other servers :-)

I hope this helps.

Alan Murrell [EMAIL PROTECTED]


__ 
Post your free ad now! http://personals.yahoo.ca



Re: [vchkpw] Unknown column 'pw_name' in 'field list'

2003-08-14 Thread Alan Murrell
Hello,

 You should not have multiple domain tables in the
 database if you configure with
 --enable-many-domains=y

Yep, that was it.  I thought the
'--enable-many-domians=y' was the option to allow one
table to be created for each domain.  Once I
recompiled with the option set to 'n', it now works. 
Thank you!

Now to finish off the install of QMailadmin, etc. :-)

Alan


__ 
Post your free ad now! http://personals.yahoo.ca



[vchkpw] Unknown column 'pw_name' in 'field list'

2003-08-14 Thread Alan Murrell
Hello,

  Mandrake 9.1
  Qmail 1.03
  Vpopmail 5.3.24

I am setting up a new server with the latest (devel)
version of vpopmail, using MySQL as the backend.  I
edited vmysql to point to the database server, and
have confirmed that the (MySQL) username and password
work by authenticating from the mail server to the
MySQL server using the 'mysql' program.

However, when I test POP authentication via telnet, I
get the following error:

--- CUT HERE ---
[EMAIL PROTECTED] vpopmail-5.3.24]# telnet localhost 110
Trying 127.0.0.1...
Connected to localhost (127.0.0.1).
Escape character is '^]'.
+OK [EMAIL PROTECTED]
user alan
+OK 
pass bofh123
vmysql: sql error[3]: Unknown column 'pw_name' in
'field list'
-ERR authorization failed
Connection closed by foreign host.
--- CUT HERE ---

I have checked several of the domain tables in the
database, and they do indeed have the 'pw_name'
column, and it appears to be defined in the 'vmysql.h'
file.  The README.mysql file does not shed any light
on this.

I was wondering if anyone here would be able to shed
some light on this, and let me know what I appear to
have done wrong?

In case it is relevent, my vpopmail configuration
looks like this:

--- CUT HERE ---
./configure --enable-tcprules-prog=/usr/bin/tcprules \
  --enable-tcpserverfile=/etc/tcp.smtp \
  --enable-clear-passwd=y \
  --enable-mysql=y \
  --enable-valias=y \
  --enable-file-locking=y \
  --enable-many-domains=y \
  --enable-defaultquota=25214400S,1000C \
  --enable-domainquotas=y
--- CUT HERE ---

TIA for your help and insight.

Alan Murrell [EMAIL PROTECTED]


__ 
Post your free ad now! http://personals.yahoo.ca



[vchkpw] vmysql.h patch ??

2003-07-16 Thread Alan Murrell
Hello,

There is a qmailadmin-toaster project which has
created RPMS for creating a Qmailadmin toaster.

As part of their software, they have patched vmysql.h
so that the database information is kept in a file
called sql in the /var/qmail/control directory
(actually, a more appropriate place would rpolly be
~vpopmail/etc, but that's another matter).

Anyway, I much prefer this idea of being able to
change MySQL server information via a single file, as
opposed to recompiling vpopmail (and all the tools
that uses it's libs, like Qmailadmin) whenever you
wish to change the server that the vpopmail MySQL
database is stored on.

I have included the patch below (it's for 5.3.8),
since it is open source, and hopefully this can make
it into the mainstream branch?

Please note: I am not the author of this patch, so
please do not give me credit for it; I am just trying
to bring good code to the masses :-)

Thanks!

Alan Murrell [EMAIL PROTECTED]


diff -Naur ./vmysql.c ../vpopmail-5.3.8/vmysql.c
--- ./vmysql.c  Sat Apr  6 16:30:30 2002
+++ ../vpopmail-5.3.8/vmysql.c  Thu Aug  1 01:40:08
2002
@@ -93,11 +93,50 @@
 void vcreate_lastauth_table();
 #endif

+/*
+ * Qmail Toaster Patch
+ */
+void leggi_parametri_sql() {
+
+   FILE *fp;
+   if(fp=fopen(/var/qmail/control/sql,r)) {
+   char line[256];
+   char tag[256];
+   char value[256];
+
+   while(fgets(line,256,fp)) {
+   char *comment;
+   if(comment=strchr(line,'#')) {
+   *comment='\0';
+   }
++   if(sscanf(line,%s\t%s\n,
tag, value) != 2) continue;
+
+   if(!strcasecmp(tag,server)) {
+   sprintf( MYSQL_UPDATE_SERVER,
%s, value ) ;
+   sprintf( MYSQL_READ_SERVER,  
%s, value ) ;
+   } else if(!strcasecmp(tag,user)) {
+   sprintf( MYSQL_UPDATE_USER,
%s, value ) ;
+   sprintf( MYSQL_READ_USER,
%s, value ) ;
+   } else if(!strcasecmp(tag,pass)) {
+   sprintf( MYSQL_UPDATE_PASSWD,
%s, value ) ;
+   sprintf( MYSQL_READ_PASSWD,
%s, value ) ;
+   }
+
+   }
+
+   }
+
+}
+
+
 /*
  * Open a connection to mysql for updates
  */
 int vauth_open_update()
 {
+leggi_parametri_sql() ;
+
 if ( update_open != 0 ) return(0);
 update_open = 1;

@@ -155,6 +194,8 @@
  */
 int vauth_open_read()
 {
+leggi_parametri_sql() ;
+
 /* if we are already connected, just return */
 if ( read_open != 0 ) return(0);
 read_open = 1;
@@ -186,6 +227,8 @@
  */
 int vauth_open_read_getall()
 {
+leggi_parametri_sql() ;
+

 /* if we are already connected, just return */
 if ( read_getall_open != 0 ) return(0);
diff -Naur ./vmysql.h ../vpopmail-5.3.8/vmysql.h
--- ./vmysql.h  Sat Apr  6 16:30:31 2002
+++ ../vpopmail-5.3.8/vmysql.h  Thu Aug  1 01:38:31
2002
@@ -19,14 +19,26 @@
 #define VPOPMAIL_MYSQL_H

 /* Edit to match your set up */
-#define MYSQL_UPDATE_SERVER localhost
-#define MYSQL_UPDATE_USER   root
-#define MYSQL_UPDATE_PASSWD secret
-
-#define MYSQL_READ_SERVER   localhost
-#define MYSQL_READ_USER root
-#define MYSQL_READ_PASSWD   secret
+//#define MYSQL_UPDATE_SERVER localhost
+//#define MYSQL_UPDATE_USER   root
+//#define MYSQL_UPDATE_PASSWD secret
+//
+//#define MYSQL_READ_SERVER   localhost
+//#define MYSQL_READ_USER root
+//#define MYSQL_READ_PASSWD   secret
 /* End of setup section*/
+
+/* QmailToaster patch */
+char db_host[256] ;
+char db_user[256] ;
+char db_password[256] ;
+char MYSQL_UPDATE_SERVER[256] ;
+char MYSQL_UPDATE_USER[256] ;
+char MYSQL_UPDATE_PASSWD[256] ;
+char MYSQL_READ_SERVER[256] ;
+char MYSQL_READ_USER[256] ;
+char MYSQL_READ_PASSWD[256] ;
+void leggi_parametri_sql() ;

 /* defaults - no need to change */
 #define MYSQL_VPORT 0



__ 
Post your free ad now! http://personals.yahoo.ca



Re: [vchkpw] Aliases not working with maildrop spamassassin?

2003-06-06 Thread Alan Murrell
Hi Jaspar,

 is sent to [EMAIL PROTECTED], qmail just dumps it
 directly into user's mailbox,completely out of the
 spam checking task.

My understanding is that when delivering mail,
vpopmail looks for these files in the following order:

  ~vpopmail/domains/domain.com/.qmail-user
  ~vpopmail/domains/domain.com/user/.qmail
  ~vpopmail/domains/domain.com/.qmail/default

It will process according to the first one it comes
across, then stop further checking.

So what is happening in your situation, is the
.qmail-test file is prcessed by delivering the mail to
user, and then no further processing is done (i.e.,
it does not then process the mail through the
recipient's .qmail* files).

As such, Aliases and Forwards will not be processed by
spamd.

I am not sure why this was done this way, but that the
way it is.  If I was a coder, I would prolly see if I
could change that behaviour myself :-)

HTH,

Alan Murrell [EMAIL PROTECTED]


__ 
Post your free ad now! http://personals.yahoo.ca



[vchkpw] Vpopmail's 'tcp.smtp' question...

2003-01-13 Thread Alan Murrell
Hello,

I meant to ask this a while ago, but never got around
to it...

I have noticed that when Vpopmail is installed, it has
it's own 'tcp'smtp' file.  If Qmail is installed, does
one use Qmail's 'tcp.smtp' file instead, or are both
'tcp.smtp' files used at the same time?  Or
alternatively, if Vpopmail's has a different function
altogether, what would it be?

Thank you, in advance, for your help.

Alan Murrell [EMAIL PROTECTED]


__ 
Post your free ad now! http://personals.yahoo.ca




Re: [vchkpw] Vpopmail's 'tcp.smtp' question...

2003-01-13 Thread Alan Murrell
Hello,

--- Ken Jones [EMAIL PROTECTED] wrote:
 If --enable-roaming-users=y during configuration,

Okay, so unless I have enabled romaining-users, then I
don't really need to worry about tcp.smtp for
Vpopmail, then?  Makes sense, I guess :-)

Alan


__ 
Post your free ad now! http://personals.yahoo.ca




RE: [vchkpw] vqadmin: Script not found or unable to stat ??

2003-01-05 Thread Alan Murrell
Hello,

--- John Johnson [EMAIL PROTECTED] wrote:
 You need to make the .htaccess file as indicated
 In the directions...

The vqadmin install creates one.  The only thing I
needed to change in there was the path tot he 'users'
file, and since it needed to be readable by the
webserver, I changed the owner from 'nobody' to 'www'
(the user Apache runs under).  I did try it as
'nobody' as well, and same issue.

I did notice that the 'vqadmin.cgi' file is owned by
root:wheel; is this correct, or should it be owned by
someone else (since the install program made ownership
of almost every other file vpopmail:vchkpw, I can only
assume that the root:wheel ownership was deliberate,
but I just want to make sure.

Alan


__ 
Post your free ad now! http://personals.yahoo.ca




Re: [vchkpw] why failed to change password in sqwebmail? expect not found...

2003-01-05 Thread Alan Murrell
Hi Banks,

--- Banks Jin [EMAIL PROTECTED] wrote:
 The error message in compiling time is: expect not
 found - will not be able to change passwds in

Sounds like you need to install the 'expect' package. 
You should be able to install it off your distro's CD,
or download it if it's not there.

HTH,

Alan


__ 
Post your free ad now! http://personals.yahoo.ca




[vchkpw] [slightly OT] mail vs web virtual hosting

2003-01-04 Thread Alan Murrell
Hello,

I am the SysAdmin for a small webhosting/colocation
company, and we are in the midst of re-designing our
network, particularly our mail servers.
 
While in one of our discussions regarding failover
load-balancing, an interesting question was brought
up:

Is it possible to have the mail boxes in different
locations on the server, and direct the user to their
mailbox based on the domain, or IP address the request
is coming in on?

Let me explain what I mean, using our web servers as
an example (yes, I know that HTTP and mail are
different protocols, but please bear with me)...

We have two Linux web servers, let's say IP addresses
of '192.168.1.1' and '192.168.1.2'.  Each server is
setup to listen on each IP address.

Each domain we setup is setup on one of the servers as
it's primary server, where the files are stored
served from the local hard drive.

The site is then setup on the other server, which
would server the site off an NFS mount from an NFS
server (the NFS server uses 'rsync' at midnight each
night to grab the updates/changes from the web servers
themselves).

The VirtualHost entries would look like this:

Primary:
VirtualHost 192.168.1.1:80
DocumentRoot
/websites/[0-9,a-z]/customerdomain.com
...
/VirtualHost

Secondary:
VirtualHost 192.168.1.1:80
DocumentRoot
/nfs/websites/[0-9,a-z]/customerdomain.com
...
/VirtualHost

Our router is then setup with priority load
balancing: it knows that if the host header contains
192.168.1.1, to go to Server A (which serves up
the site locally), but if he is down, go to Server B
(which serves the site off the NFS mount).  Of course,
the advantage to this setup is that we could lose
either server, and still be fine (some people just
would not be able to FTP their site chanes), *or* we
could lose the NFS server, and still be okay.  Of
course, if we lost a server *and* the NFS server, then
we piss off half of our customers :-)

So, now for the questions:

  1. Is something similar possible for mail servers
(it's not so much the contents of the email
directories I would care about as much as the
existence of the mailboxes themselves)
  2. If not possible (and I am almost sure it is not),
what is the reason?  I would guess it is the different
way the protocols work.  Is there material you could
point me towards to learn about this (the RFC's??)

(I do know from previous posts that Vpopmail/Qmail
does support IP-based domain hosting, but I am not
sure that this means it can serve up the contents of a
mail directory in a location other than, say,
'/home/vpopmail/domains/customerdomain.com/user/Maildir'...)

TIA for your patience regarding this slightly
off-topic post... :-)

Alan


__ 
Post your free ad now! http://personals.yahoo.ca




[vchkpw] vqadmin: Script not found or unable to stat ??

2003-01-04 Thread Alan Murrell
Hello,

I have QMail + Vpopmail + Qmailadmin setup on a
FreeBSD box, and all is working fine, thus far.  I
decided to download VQAdmin to take a look at it (all
is latest stable source downloaded today).

I followed the instructions, and the vqadmin stuff got
put into my /websites/q/qmailadmin/cgi-bin
directory, which is where I indicated it should go.

However, when I point by browser to
http://192.168.2.2/cgi-bin/vqadmin/html/main.htm, I
get prompted for the username/apssword, which I enter.
 But then I get the following page:

-
Forbidden
You don't have permission to access
/cgi-bin/vqadmin/html/main.html on this server.
-

And I find this in my Apache logs:

-
[Sat Jan  4 21:39:40 2003] [error] [client
192.168.1.2] file permissions deny server execution:
/var/www/cgi-bin/vqadmin/html/main.html
-
I have not changed the file permissions, and this is
what they are for this file:

-
-rw-r--r--  1 vpopmail  vchkpw  803 Jan  4 21:43
html/main.html
-

I have a feeling this has something to do with an HTML
file trying to be run from the cgi-bin, but if I move
them to the DocumentRoot, then the page does not show
up properly (the buttons have numbers on them, like
what is in HTML source).

Did I neglect to do something?  Do I need to add
something to the Directory structure I setup for
'/websites/q/qmailadmin/cgi-bin/vqadmin'?

TIA for your help.

Alan Murrell [EMAIL PROTECTED]


__ 
Post your free ad now! http://personals.yahoo.ca




[vchkpw] Looking up Vpopmail passwords

2002-12-30 Thread Alan Murrell
Hello,

We will be moving our mail system over to a
Qmail/Vpopmail solution very soon, and I am just
trying to decide between using the default flat file
format, or a MySQL backend.  My only concern at this
point is allowing our tech staff to look up a client's
password, should it become necessary.  Currently, the
email accounts are tied in to our billing database,
but this will no longer be the case.  I guess my
questions are:

  1. Is it possible to look up an email user's
password regardless of whether a the flat file
format is used, or the MySQL backend?  (i.e., is there
a web-based admin tool that will allow our tech staff
to do this)?
  2. Would using MySQL tend to be faster or slower
than using the flat file format?  We have just over
1200 email users, and expect this to grow
significantly in the next 12-18 months, so I would
like to have the better of the two in place now,rather
than looking at upgrading down the road.  (I like the
idea of using MySQL as the back end, as I think it
will allow us to write a custom interface, as well as
make certain things easier, like Spamassassin
administration, whcih we will be implementing, no?)

TIA for your input.

Alan Murrell [EMAIL PROTECTED]


__ 
Post your free ad now! http://personals.yahoo.ca




[vchkpw] vpopmail.h not found

2002-09-09 Thread Alan Murrell


Hello,

I know this may not be strictly a vpopmail problem per
se, but I thought I would try anyway, just in case you
are able to help.

I am using CoreLinux as my base
(http://coredistro.sf.net, which is basically just a
step up from Linux From Scratch), and have got Qmail,
ucspi-tcp, daemontools, and vpopmail installed.  I am
now trying to install Courier-IMAP.  It configures
gine, but during the 'make', exits with an error
saying it cannot find vpopmail.h.  I checked, and
vpopmail.h does exist in ~vpopmail/include.  When I
installed all of this on a Red Ht and Mandrake
machines previously (using the same configure
options), Courier-IMAP did not seem to have trouble
finding all the files it needed, including vpopmail.h.
 

I'm guessing I need to put ~vpopmail.h into the
include path somehow, but I did not see a configure
option for that.  Does anyone have any ideas?

TIA,


=
--
Alan Murrell [EMAIL PROTECTED]

__ 
Post your free ad now! http://personals.yahoo.ca



[vchkpw] [OT] list messages getting sent to abuse@verizon.net?

2002-09-09 Thread Alan Murrell


Hello,

I have noticed that the last couple of messages I sent
to the list seem to also get a response sent back to
me by [EMAIL PROTECTED]; I am guessing that that
address is somehow subscribed to the list?  Is it
possible to double-check that?  And if so, assuming
they're not supposed to be, would it be possible to
remove them?

Just in case you weren't aware :-)


=
--
Alan Murrell [EMAIL PROTECTED]

__ 
Post your free ad now! http://personals.yahoo.ca



[vchkpw] SqWebmail, Qmailadmin not authenticating

2002-09-05 Thread Alan Murrell

Hello,

Last week I setup Qmail + Vpopmail + Courier-IMAP +
Sqwebmail + Qmailadmin (and ucspi-tcp, of course!) for
a Customer (using vchkpw to authenticate).

Initially installed everything using Qinstall, but had
some problems with Vpopmail not authenticating.  On
someone's advice, I recompiled/installed Vpopmail and
Courier-IMAP with the following options:

Vpopmail:
./configure --enable-roaming-users=y
--enable-clear-passwd=y --enable-logging=e

Courier-IMAP:
./configure --disable-auto-rename-sent
--without-authpwd --without-autoshadow
--without-authpam --without-auth-userdb --
without-authmysql --without-authpgsql --without-ldap

Everything was authenticating properly afterwards. 
However, when I go to Sqwebmail (still compiled from
the Qinstall), I am unable to log in as any of the
virtual users: I get authentication failure.  I am
using the full email address as the username.

It's the same thing with Qmailadmin: I try to log in
as the postmaster for any of the virtual domains, and
get authentication failure.  On the same person's
advice, I tried recompiling Qmailadmin with almost the
same options as Courier-IMAP (i.e., turning off all
authentication methods except vchkpw), but that did
not help.  I also did add the '--htmldir',
'--html-libdir', and '--cgibindir' options to point to
the directories I was installing them to (I setup a
virtual host in my websites directory)

I am not sure what I have done wrong here, or why it
is not authenticating.  Maybe someone here does, or
has some suggestions?

TIA,


=
--
Alan Murrell [EMAIL PROTECTED]

__ 
Post your free ad now! http://personals.yahoo.ca



[vchkpw] Vpopmail: Best method for virtual hosts/domains?

2002-09-04 Thread Alan Murrell

Hello,

I am putting together a dedicated hosting box for a
Customer, who will be hosting several domains.  The
box will also handle their email.  I will be
installing Apache/PHP/MySQL/mod_perl/etc. from
Apachetoolbox, and will be using
Qmail/Vpopmail/QmailAdmin/Sqwebmail for the mail
solution.

My question is, which is the best way to handle the
virtual mail authorization?  I have used 'vhckpw' in
the past, but also notice that many people seem to
like using MySQL for that.  What are some of the
advantages/disadvantages of using MySQL over the
traditional' vhckpw?  Or are one of the other
authorization methods better?  I know this is a
subjective question.  I guess what UI'm looking for
are pros  cons, so I can then make my own decision
based ont hat.

TIA for your help and insight.


=
--
Alan Murrell [EMAIL PROTECTED]

__ 
Post your free ad now! http://personals.yahoo.ca



[vchkpw] vchkpw: vpopmail user not found

2002-08-30 Thread Alan Murrell

Hi!

I posted this earlier to the bulletin board archive,
but I wasn't subscribed to the list at the time.  I
don't know if it went out to the list, or just got
added to the archives, so I am posting directly to the
list, just in case.

I installed the latest Qmail, Vpopmail (stable, not
development), and Courier-IMAP (yes, I have
AUTHDAEMONS=vchkpw), daemontools, and ucspi-tcp,
following the instructions in Bill's Qmail Toaster
Guide.

I then created a virtual domain using vadddomain (for
this example, I will use virtualdomain1.com as the
domain). I then added '[EMAIL PROTECTED]',
and got prompted to create a password, which I did.

I sent a test email from my Yahoo! account, and it got
to the mailbox just fine. However, when I attempt to
retrieve the email using any mail client, I keep
getting prompted for the username/password. The
/var/log/maillog says:

vchkpw: vpopmail user not found
[EMAIL PROTECTED]:IP ADDRESS

I tried deleting then re-adding the domain, however,
it does not seem to work. It seems that I am only able
to either get login working correctly, or mail sent to
the mailbox correctly, but not both together (I was
having the problem before where loging in as the user
was working, but mail was being bounced back saying
user not know, even though the user *did* exist)

Because 'virtualdomain1.com' is not the default
domain, I was using '[EMAIL PROTECTED]' as
the username.

The odd thing is that I can only either:

  1. Be able to authenticate as a virtual user, but
mail sent to the user bounces back as user unknown
(I have since learned that this is the case if
Courier0IMAP is running the POP3 service); or
  2. Mail sent to a virtual user reached the mailbox,
but I am unable to authenticat (this seems to occur
when vpopmail is handling the POP3, instead of
Courier-IMAP)

I even tried using the Sqwebmail interface, since it
reads the users' mailboxes directly, as opposed to
acting as a POP/IMAP client, but I was still unable to
authenticate (I did not try it with Courier-IMAP
handling the POP service, however).

Your help greatly appreciated,


=
--
Alan Murrell [EMAIL PROTECTED]

__ 
Post your free ad now! http://personals.yahoo.ca