Re: [vchkpw] /home/vpopmail/etc/tcp.smtp.cdb keeps being rebuild

2004-09-22 Thread Jeremy Kitchen
On Monday 13 September 2004 09:08 am, Miolinux wrote:
 I installed Matt Simersons tcpserver-mysql patch,
 and i configured vpopmail 5.4.6 with:

is there some reason you have done this?  If you're trying to share the relay 
information across servers, check out Bruce Guenter's relay-ctrl package 
(http://untroubled.org/relay-ctrl) as it's better suited for this, and is 
also safe to use across NFS (I've done it).

Also, this way, you don't have to muck around with some patch to ucspi-tcp 
that is specific to qmail (even though ucspi-tcp's most common use is 
probably for qmail, it CAN be used for other things, y'know ;) or modifying 
vpopmail code to not rebuild the cdb file, etc.

Optionally, you can also check out Gerrit Pape's ipsvd 
(http://smarden.org/ipsvd) , which is a ucspi-compliant (and also under a 
lesser restrictive license than ucspi-tcp) replacement for djb's ucspi-tcp, 
which can do pop-before-smtp authentication as described in this thread on 
the [EMAIL PROTECTED] mailing list: 
http://article.gmane.org/gmane.comp.misc.pape.general/743

I would assume that this, also, is safe across NFS, however, as I have not 
used ipsvd before, I can't say for sure.  I CAN say for sure, however, that 
relay-ctrl IS safe over NFS.

Gotta love UNIX so many options.

-Jeremy

-- 
Jeremy Kitchen ++ Systems Administrator ++ Inter7 Internet Technologies, Inc.
  [EMAIL PROTECTED] ++ www.inter7.com ++ 866.528.3530 ++ 815.776.9465 int'l
kitchen @ #qmail #gentoo on EFnet ++ scriptkitchen.com/qmail
   GnuPG Key ID: 481BF7E2 ++ scriptkitchen.com/kitchen.asc


pgpHxpRBQKrnB.pgp
Description: PGP signature


Re: [vchkpw] /home/vpopmail/etc/tcp.smtp.cdb keeps being rebuild

2004-09-22 Thread Miolinux
X-Istence wrote:
On Sep 13, 2004, at 11:09 AM, Miolinux wrote:
It sounds like a patch needs to be written for it. But what you are 
doing is highly uncommon (In my judgement), so i think it was just 
something that was overlooked.

I will see if i can get something done tommorow.
X-Istence
Thanks a lot, but i managed to solve the question (even if i don't know 
exactly how...)

I have set up a test server with a similar configuration and everything 
worked fine, so i though the
problem was in upgrading vpopmail.
I removed vpopmail from server and installed from scratch. (same options 
of course)

Now it works as expected that is without rebuilding tcp.smtp.cdb but 
meantime updating mysql table.

However thanks a lot for the relpy.


Re: [vchkpw] Norwegian characters

2004-09-22 Thread Flavio Curti
Hi
On Tue, 21 Sep 2004 11:47:24 -0700, Tom Collins [EMAIL PROTECTED] wrote:
 I think I kept the original email on this, so I'll take another look at
 it.  Is there enough demand to have this added to vpopmail and
 QmailAdmin?  Is anyone using simple command-line programs to convert
 from unicode (or 8-bit) domain names to their punycode equivalents?
It would certainly make sense for the authentication code (in
libvpopmail?) as the end user could use their normal domain name then.
As for the ISP, we have to work with the punycode domain anyway
(domain register, dns entries, ...) , so it may not be needed...

Thank you and regards

Flavio

-- 
http://no-way.org/~fcu/


Re: [vchkpw] What's vdeloldusers ?

2004-09-22 Thread Rainer Duffner
Am Mi, den 22.09.2004 schrieb Ken Jones um 0:18:
 On Tuesday 21 September 2004 04:28 pm, Rainer Duffner wrote:
  Hi,
 
  the programm doesn't show any help and there's no manpage or other
  documentation I can find via google.
 
 run: vdeloldusers -h for a list of options.

I knew the options, but the program didn't say what it actually was for.
Even the options are not explained.
Is -e for enumerate and -d for delete ?

 It is for deleting users who have not logged in for a certain time period.
 It may require mysql.

Ah. OK.
Thanks.

  And while I'm at it:  what's vkill for, and vqmaillocal ?
 vkill is similar to killall, except it searches for a string in the process 
 environment. killall will only kill processes of that name. 
 I wrote it to simplify creation of qmail init scripts. 
 NowI use a pid-patch to tcpserver to save the tcpservers pid 
 to /var/run/service.pid with a new -w option. like:
 tcpserver -w /var/run/smtp.pid .
 
 vqmaillocal is an abandoned attemtp at creating a qmail-local program
 that understands Maildir++ quotas.

If it's abandoned, it should perhaps be moved out of the install-target,
shouldn't it ?



cheers,
Rainer
-- 
===
~ Rainer Duffner - [EMAIL PROTECTED] ~
~   Freising - Munich - Germany   ~
~Unix - Linux - BSD - OpenSource - Security   ~
~  http://www.ultra-secure.de/~rainer/pubkey.pgp  ~
===



Re: [vchkpw] /home/vpopmail/etc/tcp.smtp.cdb keeps being rebuild

2004-09-22 Thread Miolinux
Jeremy Kitchen wrote:
On Monday 13 September 2004 09:08 am, Miolinux wrote:
 

I installed Matt Simersons tcpserver-mysql patch,
and i configured vpopmail 5.4.6 with:
   

is there some reason you have done this?  If you're trying to share the relay 
information across servers, check out Bruce Guenter's relay-ctrl package 
(http://untroubled.org/relay-ctrl) as it's better suited for this, and is 
also safe to use across NFS (I've done it).

Also, this way, you don't have to muck around with some patch to ucspi-tcp 
that is specific to qmail (even though ucspi-tcp's most common use is 
probably for qmail, it CAN be used for other things, y'know ;) or modifying 
vpopmail code to not rebuild the cdb file, etc.

Optionally, you can also check out Gerrit Pape's ipsvd 
(http://smarden.org/ipsvd) , which is a ucspi-compliant (and also under a 
lesser restrictive license than ucspi-tcp) replacement for djb's ucspi-tcp, 
which can do pop-before-smtp authentication as described in this thread on 
the [EMAIL PROTECTED] mailing list: 
http://article.gmane.org/gmane.comp.misc.pape.general/743

I would assume that this, also, is safe across NFS, however, as I have not 
used ipsvd before, I can't say for sure.  I CAN say for sure, however, that 
relay-ctrl IS safe over NFS.

Gotta love UNIX so many options.
-Jeremy
 

Thanks a lot for links i'll take a look at them, for now i solved the 
question, but new ways, possibly simpler or with more feature
are always welcomed  ^_^
Ipvsd seems really quite interesting...
However the tcpserver patch add only a new option (-S) that checks sql 
relay table, so i can use tcpserver normally.
I also start courier imap, clamd and spamassassin via tcpserver and i'm 
really happy specially for log management :-)

Thanks a lot.
Bye


Re: [vchkpw] load problem(Urgent)

2004-09-22 Thread Paulo Fragoso
Are you running recordio to log smtp sessions?
Paulo.
[EMAIL PROTECTED] wrote:
You should check your DNS setup, in much cases the slow problem is for 
these reason.

Regards.
 
  Hi,
 
  We have qmail+vpopmail,
  with smtpauth  pop-before-smtp.
  We have too many qmail-smtp instances running
  at most of the times.
  We normally run into slow smtp connections.
  It takes even 40 seconds to a minute to connect
  to the server(SMTP).
 
  Any pointers on how to resolve this issue.
  Also we use splogger, can anyone recommend a
  good analyser for this log.
 
  Regards,
  Tanmaya
--
Este mensaje fue enviado a través de Qmail Webmail.
Qnet - Servicios Internet
http://www.qnet.com.pe/


Re: [vchkpw] Norwegian characters

2004-09-22 Thread Tom Collins
On Sep 22, 2004, at 1:09 AM, Flavio Curti wrote:
On Tue, 21 Sep 2004 11:47:24 -0700, Tom Collins [EMAIL PROTECTED] 
wrote:
I think I kept the original email on this, so I'll take another look 
at
it.  Is there enough demand to have this added to vpopmail and
QmailAdmin?  Is anyone using simple command-line programs to convert
from unicode (or 8-bit) domain names to their punycode equivalents?
It would certainly make sense for the authentication code (in
libvpopmail?) as the end user could use their normal domain name then.
As for the ISP, we have to work with the punycode domain anyway
(domain register, dns entries, ...) , so it may not be needed...
Wouldn't the email client be responsible for converting to punycode 
before sending an authentication request?

I was under the impression that in order to properly convert to 
punycode, you needed to know the charset the data was sent in.  In an 
authentication context, you won't have that information.

I think that it makes sense for QmailAdmin (I'm pretty sure the http 
client tells the server what charset it used) though.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] What's vdeloldusers ?

2004-09-22 Thread Tom Collins
On Sep 22, 2004, at 1:22 AM, Rainer Duffner wrote:
vqmaillocal is an abandoned attemtp at creating a qmail-local program
that understands Maildir++ quotas.
If it's abandoned, it should perhaps be moved out of the 
install-target,
shouldn't it ?
In CVS, I've added a ChangeLog entry, removed it from the Makefile and 
added a comment to the source for the program.

The next release won't include that program in the install process.
--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


[vchkpw] vQregister and MySQL

2004-09-22 Thread Alessio C.
I have installed vqregister 2.6 on my slackware 9.0 (qmail, vpopmail
5.4.5 and mysql 3.23.56)
vqregister works fine but don't save data on mysql table
i have modified Makefile:
VDIR = /home/vpopmail
CC = gcc
BIN = vqregister
DEFS = -I$(VDIR)/include -I/usr/include/mysql
LINKDEFS =
LIBS = -L$(VDIR)/lib -lvpopmail -lcrypt -L/usr/lib/mysql -lmysqlclient
OBJS = main.o cgi.o template.o global.o misc.o config.o register.o
password.o \
vpopmail.o db.o field.o badhosts.o
INSTALL_DIR = /var/www/cgi-bin/vqregister
INSTALL_BIN = vqregister.cgi
INSTALL_UID = vpopmail
INSTALL_GID = vchkpw
and the vqregister.conf:
DB_Host localhost
DB_Name user_store
DB_User root
DB_Password root_password
DB_Fields user_info user,dom,pass,fname
I have created the database and the table:
CREATE DATABASE `user_store`;
CREATE TABLE `user_info` (
   `user` varchar(20) default NULL,
   `dom` varchar(20) default NULL,
   `pass` varchar(50) default NULL,
   `cemail` varchar(20) default NULL,
   `fname` varchar(20) default NULL
) TYPE=MyISAM;
vqregister add user but the table is empty
the file db_mysql.h is empty, is regular?
Someone can help me
Thanks


Re: [vchkpw] vQregister and MySQL

2004-09-22 Thread Rick Romero
On Wed, 2004-09-22 at 13:33, Alessio C. wrote:
 I have installed vqregister 2.6 on my slackware 9.0 (qmail, vpopmail
 5.4.5 and mysql 3.23.56)
 
 vqregister works fine but don't save data on mysql table
 
 i have modified Makefile:
 
 VDIR = /home/vpopmail
 CC = gcc
 BIN = vqregister
 DEFS = -I$(VDIR)/include -I/usr/include/mysql
 LINKDEFS =
 LIBS = -L$(VDIR)/lib -lvpopmail -lcrypt -L/usr/lib/mysql -lmysqlclient
 OBJS = main.o cgi.o template.o global.o misc.o config.o register.o
 password.o \
  vpopmail.o db.o field.o badhosts.o
 
 INSTALL_DIR = /var/www/cgi-bin/vqregister
 INSTALL_BIN = vqregister.cgi
 INSTALL_UID = vpopmail
 INSTALL_GID = vchkpw
 
 and the vqregister.conf:
 
 DB_Host localhost
 DB_Name user_store
 DB_User root
 DB_Password root_password
 DB_Fields user_info user,dom,pass,fname
 
 
 I have created the database and the table:
 
 CREATE DATABASE `user_store`;
 CREATE TABLE `user_info` (
 `user` varchar(20) default NULL,
 `dom` varchar(20) default NULL,
 `pass` varchar(50) default NULL,
 `cemail` varchar(20) default NULL,
 `fname` varchar(20) default NULL
 ) TYPE=MyISAM;
 
 vqregister add user but the table is empty
 
 the file db_mysql.h is empty, is regular?

You need to link db_mysql to db:

lrwxrwxrwx   1 root  wheel  10 May 20  2003 db.c - db_mysql.c
lrwxrwxrwx   1 root  wheel  10 May 20  2003 db.h - db_mysql.h

Rick


 Someone can help me
 Thanks



Re: [vchkpw] vQregister and MySQL

2004-09-22 Thread Alessio C.
Rick Romero ha scritto:
You need to link db_mysql to db:
lrwxrwxrwx   1 root  wheel  10 May 20  2003 db.c - db_mysql.c
lrwxrwxrwx   1 root  wheel  10 May 20  2003 db.h - db_mysql.h
Many many thanks Rick!


[vchkpw] Log all email per domain antivirus that notifies recipients

2004-09-22 Thread Bill Gradwohl
Two issues:
1) Using qmail  vpopmail, what methods are available to log all inbound 
and outbound email PER VIRTUAL DOMAIN?
2) We also need a way to notify the recipient of an email that contained 
a virus that the infected email was destroyed, and that it came from 
[EMAIL PROTECTED] with a subject line of whatever it was.

We have a law firm that wants to record all their communications in both 
directions. We are capturing inbound emails by appending 
[EMAIL PROTECTED] to the end of everyones .qmail file. 
What's missing is a way to capture the outbound emails.

Texas courts are currently in the process of requiring attorneys to use 
email to file and update their cases. They are using email as though it 
was a guaranteed delivery mechanism even though we all know it isn't. 
This pilot project is expected to go nationwide soon.

When the courts send out an email containing a virus (they use Windows 
boxes), the normal thing for a receiving MTA's virus checker to do is 
silently throw that email away and not notify anyone. In this case 
however, that email has legal ramifications so that either we have to 
let the infected email pass thru the server, extract only the infected 
portion of the email leaving the rest intact (no idea how to do that), 
or throw it away but notify the recipient of what was done. The subject 
line of these emails contains a case number that could be used as follow 
up by the receiving clerk at the law firm.

We currently use qscanq to call clamav for the heavy lifting, but that 
approach doesn't offer a way to notify anyone of what happened to an 
infected email - at least not any way I know of.

We'd like solutions that have per virtual domain granularity so other 
domains on the box don't have to do things the same way.

Suggestions?
--
Bill Gradwohl
[EMAIL PROTECTED]
http://www.ycc.com



Re: [vchkpw] Log all email per domain antivirus that notifies recipients

2004-09-22 Thread Matthew Walker
qmail-scanner can be configured to notify the sender and the recipient
of the infected email.


On Wed, 22 Sep 2004 14:14:29 -0500, Bill Gradwohl [EMAIL PROTECTED] wrote:
 Two issues:
 1) Using qmail  vpopmail, what methods are available to log all inbound
 and outbound email PER VIRTUAL DOMAIN?
 2) We also need a way to notify the recipient of an email that contained
 a virus that the infected email was destroyed, and that it came from
 [EMAIL PROTECTED] with a subject line of whatever it was.
 
 We have a law firm that wants to record all their communications in both
 directions. We are capturing inbound emails by appending
 [EMAIL PROTECTED] to the end of everyones .qmail file.
 What's missing is a way to capture the outbound emails.
 
 Texas courts are currently in the process of requiring attorneys to use
 email to file and update their cases. They are using email as though it
 was a guaranteed delivery mechanism even though we all know it isn't.
 This pilot project is expected to go nationwide soon.
 
 When the courts send out an email containing a virus (they use Windows
 boxes), the normal thing for a receiving MTA's virus checker to do is
 silently throw that email away and not notify anyone. In this case
 however, that email has legal ramifications so that either we have to
 let the infected email pass thru the server, extract only the infected
 portion of the email leaving the rest intact (no idea how to do that),
 or throw it away but notify the recipient of what was done. The subject
 line of these emails contains a case number that could be used as follow
 up by the receiving clerk at the law firm.
 
 We currently use qscanq to call clamav for the heavy lifting, but that
 approach doesn't offer a way to notify anyone of what happened to an
 infected email - at least not any way I know of.
 
 We'd like solutions that have per virtual domain granularity so other
 domains on the box don't have to do things the same way.
 
 Suggestions?
 
 --
 Bill Gradwohl
 [EMAIL PROTECTED]
 http://www.ycc.com
 



[vchkpw] qmail-smtp-auth patch

2004-09-22 Thread Itamar Reis Peixoto
how to install qmail-smtp-auth patch ?

what´s the best  smtp-auth patch?



Itamar Reis Peixoto
Analista Consultor
TreyNet Consultoria - Uberlândia
Tel : + 55 34 3231 0598
Cel:  +55 38 9107 1250
http://www.treynet.com.br



[vchkpw] do i need qmail-maildir++.patch?

2004-09-22 Thread Peter Nilsson
Hi! 

Is qmail-maildir++.patch needed to support quota anymore, if i use a new 
vpopmail would the quota work without this patch? 

Regards, 

Peter
Yanet.dk


Re: Re: [vchkpw] load problem(Urgent)[Solved]

2004-09-22 Thread Tanmaya Anand
Hi,

The issue is solved as of now.
But i would still request some tweaks
on making the system more scalable.

ALso, We are using splogger  no seperate 
SMTP logs.Can u suggest a good log analyser
for this

Regards,
Tanmaya

On Wed, 22 Sep 2004 Paulo Fragoso wrote :
Are you running recordio to log smtp sessions?

Paulo.

[EMAIL PROTECTED] wrote:
You should check your DNS setup, in much cases the slow problem is for these reason.

Regards.

  
   Hi,
  
   We have qmail+vpopmail,
   with smtpauth  pop-before-smtp.
   We have too many qmail-smtp instances running
   at most of the times.
   We normally run into slow smtp connections.
   It takes even 40 seconds to a minute to connect
   to the server(SMTP).
  
   Any pointers on how to resolve this issue.
   Also we use splogger, can anyone recommend a
   good analyser for this log.
  
   Regards,
   Tanmaya


--
Este mensaje fue enviado a través de Qmail Webmail.
Qnet - Servicios Internet
http://www.qnet.com.pe/


Re: [vchkpw] do i need qmail-maildir++.patch?

2004-09-22 Thread Ken Jones
On Wednesday 22 September 2004 05:37 pm, Peter Nilsson wrote:
 Hi!

 Is qmail-maildir++.patch needed to support quota anymore, if i use a new
 vpopmail would the quota work without this patch?

Quotas require Maildir++ support in all programs that update a users
email account. i.e. vpopmail, qmail and any other webmail applications.

vpopmail has Maildir++ support.
DJB's origninal qmail does not. 
You should verify your qmail code.

I would check qmail-pop3d.c and qmail-local.c
qmail-pop3d.c should quota code for when it deletes email.
qmail-local.c should have quota code for when it delivers email.

Without these updates, Maildir++ quotas will be wrong. 

Which ever brew of qmail you are using, verify it has the Maildir++
updates to qmail-pop3d.c and qmail-local.c.

It would be good if this requirement was documented somewhere.
vpopmail quota support requires Maildir++ support in qmail and any
other email applications running on the machine.

Ken Jones


Re: [vchkpw] Log all email per domain antivirus that notifies recipients

2004-09-22 Thread Ken Jones
On Wednesday 22 September 2004 02:14 pm, Bill Gradwohl wrote:
 Two issues:
 1) Using qmail  vpopmail, what methods are available to log all inbound
 and outbound email PER VIRTUAL DOMAIN?
 2) We also need a way to notify the recipient of an email that contained
 a virus that the infected email was destroyed, and that it came from
 [EMAIL PROTECTED] with a subject line of whatever it was.

 We have a law firm that wants to record all their communications in both
 directions. We are capturing inbound emails by appending
 [EMAIL PROTECTED] to the end of everyones .qmail file.
 What's missing is a way to capture the outbound emails.

 Texas courts are currently in the process of requiring attorneys to use
 email to file and update their cases. They are using email as though it
 was a guaranteed delivery mechanism even though we all know it isn't.
 This pilot project is expected to go nationwide soon.

 When the courts send out an email containing a virus (they use Windows
 boxes), the normal thing for a receiving MTA's virus checker to do is
 silently throw that email away and not notify anyone. In this case
 however, that email has legal ramifications so that either we have to
 let the infected email pass thru the server, extract only the infected
 portion of the email leaving the rest intact (no idea how to do that),
 or throw it away but notify the recipient of what was done. The subject
 line of these emails contains a case number that could be used as follow
 up by the receiving clerk at the law firm.

 We currently use qscanq to call clamav for the heavy lifting, but that
 approach doesn't offer a way to notify anyone of what happened to an
 infected email - at least not any way I know of.

 We'd like solutions that have per virtual domain granularity so other
 domains on the box don't have to do things the same way.

 Suggestions?

simscan might be able to do it. It has per domain support for clamav
and spamassassin. A virus causes clamav-simscan-qmail-smtpd to
tell the sender MTA to send a bounce message back to the sender with a virus 
warning message. This is via the standard smtp protocol.

simscan would need some clean message code to send through the de-infected
message. ripmime will rip the message, if there is an un-rip message program 
we could problaby write the code.

We also might be able to cobble up some code to email a report to someone.

Ken Jones
Ken Jones


[vchkpw] Re: do i need qmail-maildir++.patch?

2004-09-22 Thread Peter Nilsson
ok, now i have patched the server with maildir++ support, but what would 
happend with all the quotas that are wrong now because of the missing patch? 

Ken Jones writes: 

On Wednesday 22 September 2004 05:37 pm, Peter Nilsson wrote:
Hi! 

Is qmail-maildir++.patch needed to support quota anymore, if i use a new
vpopmail would the quota work without this patch?
Quotas require Maildir++ support in all programs that update a users
email account. i.e. vpopmail, qmail and any other webmail applications. 

vpopmail has Maildir++ support.
DJB's origninal qmail does not. 
You should verify your qmail code. 

I would check qmail-pop3d.c and qmail-local.c
qmail-pop3d.c should quota code for when it deletes email.
qmail-local.c should have quota code for when it delivers email. 

Without these updates, Maildir++ quotas will be wrong.  

Which ever brew of qmail you are using, verify it has the Maildir++
updates to qmail-pop3d.c and qmail-local.c. 

It would be good if this requirement was documented somewhere.
vpopmail quota support requires Maildir++ support in qmail and any
other email applications running on the machine. 

Ken Jones



Re: [vchkpw] Log all email per domain antivirus that notifies recipients

2004-09-22 Thread Jeremy Kitchen
On Wednesday 22 September 2004 02:14 pm, Bill Gradwohl wrote:
 Two issues:
 1) Using qmail  vpopmail, what methods are available to log all inbound
 and outbound email PER VIRTUAL DOMAIN?

http://cr.yp.to/qmail/faq/admin.html#copies

 2) We also need a way to notify the recipient of an email that contained
 a virus that the infected email was destroyed, and that it came from
 [EMAIL PROTECTED] with a subject line of whatever it was.
[snip]
 When the courts send out an email containing a virus [...]

This never happens.

However, qmail-scanner can be configured for different notifications.  I, 
personally, use --notify admin, and the admin address is a virus notification 
dropbox that I check occasionally.  If you're using qmail-scanner, I highly 
recommend to NOT notify anyone other than 'admin'.. because if you notify the 
sender, you're just spamming an innocent party, and if you notify the 
recipient, since they have little to no knowledge about how internet mail 
works, they might freak out and think that someone has stolen their email 
address or whatnot.  Things such as virus notifications are best left to 
those with a clue.

-Jeremy

-- 
Jeremy Kitchen ++ Systems Administrator ++ Inter7 Internet Technologies, Inc.
  [EMAIL PROTECTED] ++ www.inter7.com ++ 866.528.3530 ++ 815.776.9465 int'l
kitchen @ #qmail #gentoo on EFnet ++ scriptkitchen.com/qmail
   GnuPG Key ID: 481BF7E2 ++ scriptkitchen.com/kitchen.asc


pgpc51TYLvJAl.pgp
Description: PGP signature