[vchkpw] RE: Redundant server

2004-06-03 Thread David Petruzzella








Has anyone who is running vpopmail/qmail/mysql
created a backup/redundant or even a secondary server for the same domains? Im
looking to do that and I was wondering if there was any documentation
available. Also is there any documentation
I can read on how to properly backup the e-mails, users, config
files on the setup stated above. I
am running that on redhat 9. Any assistance will be greatly
appreciated.








RE: [vchkpw] RE: Redundant server

2004-06-03 Thread David Petruzzella
The reason why I asked about the script, is because backups are done by
a different machine. And my apologies for sending an off topic message,
but thank you for your reply you gave me a starting point.

-Original Message-
From: James Treworgy [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 03, 2004 11:26 AM
To: David Petruzzella
Cc: [EMAIL PROTECTED]
Subject: Re: [vchkpw] RE: Redundant server

This doesn't have anything to do with vpopmail. Very simple
qmail config. On your secondary server, add the domains for which you
are running backup to rcpthosts. Then add the backup server as a lower
priority MX to your DNS. The qmail server on the backup machine will
accept the mail, realize they are not locals (since they are NOT found
in virtualdomains on the backup server) and forward them to the
primary.

Not sure what you mean about backing up the secondary, this doesn't
really have to do with this service. However you back up the server in
general ought to be just fine for backing up any queued mail as well.

-- Jamie

Thursday, June 3, 2004, 11:31:30 AM, you wrote:

DP Has anyone who is running vpopmail/qmail/mysqlcreated a
DP backup/redundant or even a secondary server for the same domains?
DP I?mlooking to do that and I was wondering if there was any
DP documentationavailable.  Also is there any documentationI can read
DP on how to properly backup the e-mails, users, configfiles on the
DP setup stated above.  Iam running that on redhat 9.  Any assistance
DP will be greatlyappreciated.







-- 
Best regards,
 Jamesmailto:[EMAIL PROTECTED]





RE: [vchkpw] RE: Redundant server

2004-06-03 Thread David Petruzzella









Basically yes but the other half of the
cluster would be at a different office.



-Original
Message-
From: Patrick Donker
[mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 03, 2004
11:37 AM
To: [EMAIL PROTECTED]
Subject: Re: [vchkpw] RE:
Redundant server



David Petruzzella wrote:



Has anyone who is running vpopmail/qmail/mysql created a
backup/redundant or even a secondary server for the same domains? Im
looking to do that and I was wondering if there was any documentation
available. Also is there any documentation I can read on how to properly
backup the e-mails, users, config files on the setup stated above. I am
running that on redhat 9. Any assistance will be greatly appreciated.

Redundant as in Cluster?
There should be a cluster-howto available at tldp.org








RE: [vchkpw] RE: Redundant server

2004-06-03 Thread David Petruzzella
Thanks for the reply is there a document I can read some place?

-Original Message-
From: Ken Jones [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 03, 2004 11:40 AM
To: [EMAIL PROTECTED]
Subject: Re: [vchkpw] RE: Redundant server

On Thursday 03 June 2004 10:31 am, David Petruzzella wrote:
 Has anyone who is running vpopmail/qmail/mysql created a
 backup/redundant or even a secondary server for the same domains? I'm
 looking to do that and I was wondering if there was any documentation
 available.  Also is there any documentation I can read on how to
 properly backup the e-mails, users, config files on the setup stated
 above.  I am running that on redhat 9.  Any assistance will be greatly
 appreciated.

You can do most of it with an rsync setup. 
Rsync these directories over to the other machine
/var/qmail/control
/var/qmail/users
/home/vpopmail/domains
Be sure to have rsync delete files that don't exist on
the first machine. 

On the second machine don't use the virtualdomains
file. Instead have an smtproutes file to forward everything
over to the first machine.

In case of a failure of the first machine: on the second
machine put the virtualdomains file in place (from the
first machine) and remove the smtproutes file. 

It is easier if you use cdb, but if you need to use mysql,
setup mysql to replicate from the first machine to the
second machine. I'd recommend turning off auth_logging
if possible. That will signficantly reduce the replication
traffic.

If you have three machines use a standard cluster setup
with the third machine as an NFS server mounting the
/home/vpopmail/domains directory. 

Hope that helps,
Ken Jones





RE: [vchkpw] RE: Redundant server

2004-06-03 Thread David Petruzzella
Ok thanks for the help

-Original Message-
From: Ken Jones [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 03, 2004 1:06 PM
To: [EMAIL PROTECTED]
Subject: Re: [vchkpw] RE: Redundant server

On Thursday 03 June 2004 10:55 am, David Petruzzella wrote:
 Thanks for the reply is there a document I can read some place?

I think you just got it :)

Seriously, not that I know of. 


 -Original Message-
 From: Ken Jones [mailto:[EMAIL PROTECTED]
 Sent: Thursday, June 03, 2004 11:40 AM
 To: [EMAIL PROTECTED]
 Subject: Re: [vchkpw] RE: Redundant server

 On Thursday 03 June 2004 10:31 am, David Petruzzella wrote:
  Has anyone who is running vpopmail/qmail/mysql created a
  backup/redundant or even a secondary server for the same domains?
I'm
  looking to do that and I was wondering if there was any
documentation
  available.  Also is there any documentation I can read on how to
  properly backup the e-mails, users, config files on the setup stated
  above.  I am running that on redhat 9.  Any assistance will be
greatly
  appreciated.

 You can do most of it with an rsync setup.
 Rsync these directories over to the other machine
 /var/qmail/control
 /var/qmail/users
 /home/vpopmail/domains
 Be sure to have rsync delete files that don't exist on
 the first machine.

 On the second machine don't use the virtualdomains
 file. Instead have an smtproutes file to forward everything
 over to the first machine.

 In case of a failure of the first machine: on the second
 machine put the virtualdomains file in place (from the
 first machine) and remove the smtproutes file.

 It is easier if you use cdb, but if you need to use mysql,
 setup mysql to replicate from the first machine to the
 second machine. I'd recommend turning off auth_logging
 if possible. That will signficantly reduce the replication
 traffic.

 If you have three machines use a standard cluster setup
 with the third machine as an NFS server mounting the
 /home/vpopmail/domains directory.

 Hope that helps,
 Ken Jones





RE: [vchkpw] RE: Redundant server

2004-06-03 Thread David Petruzzella









What solution?



-Original Message-
From: Lucas G. Obredor
[mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 03, 2004 2:18 PM
To: [EMAIL PROTECTED]
Subject: Re: [vchkpw] RE:
Redundant server





Dear David,






   
 I'm running vpopmail/qmail and i find one solution to backup
all the users, and in case the server goes down, i can save all my users, but it's
not automatic, i mean it isn't redundant but it works fine

















Lucas G. Obredor
Sistemas
División Banda Ancha
Tel. 4469-7477 Int (2130)







- Original Message - 





From: David
Petruzzella 





To: [EMAIL PROTECTED]






Sent: Thursday, June 03, 2004 12:31 PM





Subject: [vchkpw]
RE: Redundant server









Has anyone who is running
vpopmail/qmail/mysql created a backup/redundant or even a secondary server for
the same domains? Im looking to do that and I was wondering if there was
any documentation available.  Also is
there any documentation I can read on how to properly backup the e-mails,
users, config files on the setup stated above. 
I am running that on redhat 9. 
Any assistance will be greatly appreciated.










RE: [vchkpw] SMTP AUTH with vchkpw

2004-03-30 Thread David Petruzzella
A1: The one I downloaded from here, it doesn't have a version on it.
Wget
http://archives.servercove.com/qmail/qmail-smtpd.c

A2: Here is a copy of my smtpd run file:
#!/bin/sh
QMAILDUID=85
NOFILESGID=85
exec /usr/local/bin/softlimit -m 200 \
/usr/local/bin/tcpserver \
  -H -l yourhost.yourdomain.com \
  -v -x /etc/tcp.smtp.cdb \
  -c 20 -R -u  -g  0 smtp \
/usr/local/bin/rblsmtpd -b -C \
  -r 'relays.ordb.org:Your message was rejected because the mail server
you use is configured to allow OPEN RELAY - More detailed information
regarding this problem is available from
http://www.ordb.org/lookup/?%IP% - Please forward this error through to
your email server support staff for easy resolution.' \
  -t 5 \
/var/qmail/bin/qmail-smtpd /home/vpopmail/bin/vchkpw /bin/true 21

A3: I use pam-0.75-48 and how do I show you its file mods.

A4: email goes through without a problem instead of prompting for a
password when authentication is not activated.

A5: smptd log shows no unusual activity and does not prompt for
authentication.

-Original Message-
From: Erwin Hoffmann [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 30, 2004 3:07 AM
To: [EMAIL PROTECTED]
Subject: RE: [vchkpw] SMTP AUTH with vchkpw

HI,

At 23:19 29.03.04 -0500, you wrote:
I seem to be having a hard time getting smpt auth to work, when ever I
try to send e-mail without authentication enabled it goes through fine.
My setup is qmail+vpopmail+mysql+courier-imap+squirrel mail any
suggestions?

If have to be specific to get a specific answer.

Q1: What SMTP Auth patch are you using for qmail ?
Q2: How do you call qmail-smtpd ?
Q3: What PAM do you use ? show us it's file mods !
Q4: What SMTP responses do you get ? 
Q5: What do the qmail-smtpd logs say ?

regards.
--eh.


-Original Message-
From: Erwin Hoffmann [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 29, 2004 8:22 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [vchkpw] SMTP AUTH with vchkpw

Hi Jeremy,


At 15:10 28.03.04 -0600, Jeremy Kitchen wrote:
On Sun, 2004-03-28 at 14:52, Werner Amon wrote:
 
 QMAILDUID=`id -u qmaild`
 
 NOFILESGID=`id -g qmaild`

[required post trimming]

 exec /usr/local/bin/softlimit -m 1000 /usr/local/bin/tcpserver
-v
-R -l
 $LOCAL -u $QMAILDUID -x /etc/tcp.smtp.cdb -c $MAXSMTPD -g
$NOFILESGID
 0 smtp \
 
 /var/qmail/bin/qmail-smtpd rhost1.zfx.com /bin/checkpassword
/bin/true
 21

 Change QMAILDUID and NOFILESGID from qmaild to vpopmail

yes.

 and change
 /var/qmail/bin/qmail-smtpd rhost1.zfx.com /bin/checkpassword
/bin/true 21
 to
 /var/qmail/bin/qmail-smtpd rhost1.zfx.com /home/vpopmail/bin/vchkpw
/bin/true 21

This might not be true. 

If Chris is using my version of the SMTP Auth patch 

http://www.fehcom.de/qmail/smtpauth.html

the domain argument rhost1.zfx.com has to be omitted.

regards.
--eh.

Dr. Erwin Hoffmann | FEHCom | http://www.fehcom.de/
Wiener Weg 8, 50858 Cologne | T: +49 221 484 4923 | F: ...24






Dr. Erwin Hoffmann | FEHCom | http://www.fehcom.de/
Wiener Weg 8, 50858 Cologne | T: +49 221 484 4923 | F: ...24





RE: [vchkpw] SMTP AUTH with vchkpw

2004-03-29 Thread David Petruzzella
I seem to be having a hard time getting smpt auth to work, when ever I
try to send e-mail without authentication enabled it goes through fine.
My setup is qmail+vpopmail+mysql+courier-imap+squirrel mail any
suggestions?

-Original Message-
From: Erwin Hoffmann [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 29, 2004 8:22 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [vchkpw] SMTP AUTH with vchkpw

Hi Jeremy,


At 15:10 28.03.04 -0600, Jeremy Kitchen wrote:
On Sun, 2004-03-28 at 14:52, Werner Amon wrote:
 
 QMAILDUID=`id -u qmaild`
 
 NOFILESGID=`id -g qmaild`

[required post trimming]

 exec /usr/local/bin/softlimit -m 1000 /usr/local/bin/tcpserver
-v
-R -l
 $LOCAL -u $QMAILDUID -x /etc/tcp.smtp.cdb -c $MAXSMTPD -g
$NOFILESGID
 0 smtp \
 
 /var/qmail/bin/qmail-smtpd rhost1.zfx.com /bin/checkpassword
/bin/true
 21

 Change QMAILDUID and NOFILESGID from qmaild to vpopmail

yes.

 and change
 /var/qmail/bin/qmail-smtpd rhost1.zfx.com /bin/checkpassword
/bin/true 21
 to
 /var/qmail/bin/qmail-smtpd rhost1.zfx.com /home/vpopmail/bin/vchkpw
/bin/true 21

This might not be true. 

If Chris is using my version of the SMTP Auth patch 

http://www.fehcom.de/qmail/smtpauth.html

the domain argument rhost1.zfx.com has to be omitted.

regards.
--eh.

Dr. Erwin Hoffmann | FEHCom | http://www.fehcom.de/
Wiener Weg 8, 50858 Cologne | T: +49 221 484 4923 | F: ...24





RE: [vchkpw] error 553

2004-03-25 Thread David Petruzzella
If your getting that error when your trying to send mail outside of your
local network, you just have to configure relaying, by adding a line to
your tcp.smtp file and rebuild the cdb file.

-Original Message-
From: Eric Smoker [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 25, 2004 4:57 AM
To: [EMAIL PROTECTED]
Subject: Re: [vchkpw] error 553

Check your /var/qmail/supervise/qmail-smtp/run file and make sure that 
tcpserver is pointing to your vpopmail cdb rather than the default qmail

cdb (i.e. tcpserver -x /usr/local/vpopmail/etc/tcp.smtp.cdb).

Juan Hernandez wrote:
 Hello, I just installed qmail and I am having a problem, my server 
 receives email just fine, and I can get it off my server, but I keep 
 getting a 553 host not in my rcpthosts, but I've added my ip subnet to

 my /usr/local/vpopmail/etc/tcp.smtp file, but I still can't ssend
email 
 out.  I've looked at the relaying pages and all.  any ideas are
greatly 
 appreciated.  Thanks in advanced
  






RE: [vchkpw] Migrating users from debian ipop to vpopmail withmysql.

2004-03-17 Thread David Petruzzella
The users are all system users and e-mail gets stored in a file in
/var/mail and what I meant was that we were using the default ipop
server that comes with debian.

-Original Message-
From: Jeremy Kitchen [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 16, 2004 11:42 AM
To: [EMAIL PROTECTED]
Subject: Re: [vchkpw] Migrating users from debian ipop to vpopmail
withmysql.

On Tue, 2004-03-16 at 10:44, David Petruzzella wrote:
 I have a box that is being decommissioned running debian with ipop and
 I need to migrate the e-mail from that server to the new server which
 is running qmail, vpopmail, courier-imap, with mysql authentication
 and I was wondering what is the easiest way of doing it with out
 loosing any e-mail which is the most important thing. If anyone has
 any suggestions, recommendations it will be greatly appreciated. 
 Thanks.

easiest way?  Hire someone.

alternative way?  Post more useful information, ie, what kind of users,
what kind of mailbox storage, etc.

'we are using debian and ipop' is really not useful.

-Jeremy
 
-- 
Jeremy Kitchen
Systems Administrator
[EMAIL PROTECTED]
Kitchen @ #qmail on EFNet - Join the party!
.
Inter7 Internet Technologies, Inc.
www.inter7.com
866.528.3530 toll free
847.492.0470 int'l
847.492.0632 fax
GNUPG key ID: 93BDD6CE






[vchkpw] Migrating users from debian ipop to vpopmail with mysql.

2004-03-16 Thread David Petruzzella








I have a box that is being decommissioned running debian with ipop and I need to
migrate the e-mail from that server to the new server which is running qmail, vpopmail, courier-imap, with mysql authentication
and I was wondering what is the easiest way of doing it with out loosing any
e-mail which is the most important thing.
If anyone has any suggestions, recommendations it will be greatly
appreciated. Thanks.