Re: [vchkpw] qmail install script 1.3.7.1

2004-08-02 Thread Greg Kopp
OK. But did I really need to see this crossposted on so many lists?

On Sat, 31 Jul 2004 15:11:34 +0200, Franck [EMAIL PROTECTED] wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Hello,
 
 A new version of my installing's script for qmail are released (1.3.7.1).
 More bugfix are cleaned :)
 All feedback are welcome please ...
 
 http://www.linuxpourtous.com/download/qmail/releases/
 install_qmail-1.3.7.1.tar.gz
 http://www.linuxpourtous.com/download/qmail/CHANGELOG
 http://www.linuxpourtous.com/download/qmail/README
 http://www.linuxpourtous.com/forum/viewforum.php?f=8
 
 2004-07-31 v1.3.7.1
 
 * Major bugfixes
 * Added patch to correct compilation problem in qmail
 * Remove all \015 (\r\n) in few files
 
 ++
 - --
 Franck
 
 http://www.linuxpourtous.com
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.2.4 (GNU/Linux)
 
 iD8DBQFBC5qJ1zwfep5k9qERAhY1AKC51roCSXh00rtPuPWedEAHmCX5hQCfTXju
 5Owt0zFNWU+uMZNOJWU45F8=
 =9/f/
 -END PGP SIGNATURE-
 



Re: [vchkpw] good howto

2004-07-16 Thread Greg Kopp
depends on how you run qmail. If you run it as you should with
tcpserver and daemontools, you can just have it in your inittab and it
will automatically run as a service.


- Original Message -
From: [EMAIL PROTECTED] [EMAIL PROTECTED]
Date: Fri, 16 Jul 2004 11:49:12 +0530 (IST)
Subject: Re: [vchkpw] good howto
To: [EMAIL PROTECTED]



HI,

I want to start qmail service automatically at boot time ,
If anyone have idea regarding please help me . I want howto

Regards

venu



--
This Message and any attachments is intended solely for the addresses
and is confidential.
 
If you receive this message in error or if you are not the intended
recipient, please delete the mail.
 
Any use not in accord with its purpose, any dissemination or
disclosure, either whole or partial, is prohibited.
 
Please inform us in case of erroneous delivery, thanks for your cooperation.


Re: [vchkpw] good howto

2004-07-15 Thread Greg Kopp
www.qmailrocks.org

BEST how-to I have ever com accross. Has instructions to install:

The step-by-step QMR qmail installation includes the following:

1. Qmail itself - qmail, ucspi-tcp, daemontools and an enhanced qmail
logging configuration.
2. 3 qmail patches - qmail-103(a standard patch), qmailqueue(allows
alternative queueing) and auth-jms1.3(SMTP authentication)
3 . EZmlm - A fast and easy to use mailing list manager that works
through qmail.
4 . Autoresponder - Enables auto-responder capabilities on your qmail server.
5 . Vpopmail - Enables virtual e-mail hosting for multiple domains.
Available with or without mysql intergration.
6 . Vqadmin - A web based interface to manage Vpopmail virtual domains
on your qmail server.
7 . Maildrop - A server-wide mail filtering tool.
8 . Qmailadmin - A web based interface for managing Vpopmail virtual
e-mail accounts.
9 . Courier-imap/imap-ssl - The popular IMAP/IMAPS server that
supports Vpopmail.
10. Squirrelmail - A web based mail client.
11. Clam Antivirus - a virus scanner for all incoming e-mail. Tied in
via qmail-scanner.
13. SpamAssassin - Tied in via Qmail-scanner. A server-wide SPAM filter.
14. qmail-scanner - Allows the use of Clam Antivirus and SpamAssassin
as well as other tools.
15. qms-analog - a patch for qmailscanner that allows for extra
options as well as cool logging features.
16. qmailanalog - A qmail log analysis tool. Analyzes qmail logs and
then sends reports via e-mail.
17. q-trap - A domain level word based e-mail filter.

Including paths for RH, BSD, Fedora, Debian, Slackware and a beta of Solaris.

Greg

On Thu, 15 Jul 2004 09:18:03 -0700, Tom Collins [EMAIL PROTECTED] wrote:
 On Jul 15, 2004, at 2:38 AM, Michiels Tom ((Uptime)) wrote:
  Can somebody point me to a good howto for installing and configuring
  vpopmail together with squirrelmail/qmail/antispam/antivirus on a
  Debian machine ?
 
 http://shupp.org/toaster/
 http://www.pipeline.com.au/staff/mbowe/isp/webmail-server.htm
 
 --
 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] vpopmail and mailfilter

2004-07-03 Thread Greg Kopp
Brian,

I put individual .qmail files in the users directory. I filter all of
my mail into IMAP folders as it comes in this way.

Greg

On Fri, 2 Jul 2004 09:29:51 -0500, Brian Feeny [EMAIL PROTECTED] wrote:
 
 Greg,
 
 Thanks for the information.  Is it true though that if I have say
 /home/vpopmail/domains/test.com that I will have to make a
 .qmail-default
 in the test.com directory call the users .qmail's, or can I just simply
 put
 a .qmail in /home/vpopmail/domains/test.com/joe with:
 
  | /usr/local/bin/maildrop ./Maildir/mailfilter
 
 and have that work?  My impression was that at the point we have
 entered the
 individual users directory, we are now in vdeliver and not qmail-local.
 
 I have seen scripts on the internet that show how to have a
 .qmail-default call
 maildir for each user, but it would be much more elegant if I can just
 have a .qmail
 in each users directory inside the virtual domain.
 
 brian
 
 
 
 
 On Jul 2, 2004, at 8:55 AM, Greg Kopp wrote:
 
  It CAN use maildrop (mailfilter), but doesn't out of the box.
 
  In the users home directory (or the directory where the Maildir is
  located), create a file called .qmail (that's DOT qmail)
 
  And put this inside of it:
 
  | /usr/local/bin/maildrop ./Maildir/mailfilter
 
  This will cause all mail for that user to be piped through the
  mailfilter.
 
  Keep in mind that any paths to maildirs, etc, in each mailfilter file
  will have to be modified.
 
  Greg
 
  On Thu, 1 Jul 2004 19:45:16 -0500, Brian Feeny [EMAIL PROTECTED]
  wrote:
 
 
  When you use vpopmail, does it still use an LDA like mailfilter to
  deliver the mail,
  or is that now handled by vpopmail up until the very end?  I ask
  because I am migrating
  a bunch of users to vpopmail who now have .mailfilter files to sort
  mail etc, and want to know
  if vpopmail just does the final delivery lookup and hands off to an
  LDA
  or actually does the delivery
  itself?  And if it does the delivery itself does it have any scripting
  mechinism like mailfilter does?
 
  Brian
 
 
 
 --
 Brian Feeny, CCIE #8036 e: [EMAIL PROTECTED]
 Network Engineerp: 318.213.4709
 ShreveNet Inc.  f: 318.221.6612
 



Re: [vchkpw] vpopmail and mailfilter

2004-07-02 Thread Greg Kopp
It CAN use maildrop (mailfilter), but doesn't out of the box.

In the users home directory (or the directory where the Maildir is
located), create a file called .qmail (that's DOT qmail)

And put this inside of it:

| /usr/local/bin/maildrop ./Maildir/mailfilter

This will cause all mail for that user to be piped through the mailfilter.

Keep in mind that any paths to maildirs, etc, in each mailfilter file
will have to be modified.

Greg

On Thu, 1 Jul 2004 19:45:16 -0500, Brian Feeny [EMAIL PROTECTED] wrote:
 
 
 When you use vpopmail, does it still use an LDA like mailfilter to
 deliver the mail,
 or is that now handled by vpopmail up until the very end?  I ask
 because I am migrating
 a bunch of users to vpopmail who now have .mailfilter files to sort
 mail etc, and want to know
 if vpopmail just does the final delivery lookup and hands off to an LDA
 or actually does the delivery
 itself?  And if it does the delivery itself does it have any scripting
 mechinism like mailfilter does?
 
 Brian
 



Re: [vchkpw] OT: Using rblsmtpd and postmaster still receiving mail from all (even blacklisted) hosts

2004-06-25 Thread Greg Kopp
One would hope that they would be smart enough to possibly use a
different mail server or service at that point, like yahoo, hotmail,
or soon for most, gmail.

Greg

On Fri, 25 Jun 2004 16:18:31 +0200 (CEST), Jasper Metselaar
[EMAIL PROTECTED] wrote:
 
 
  Hi,
 
  I know this is not a vpopmail question, but I looked everywhere (I
  also tried the qmail mailing list, but haven't received a reply
  there. :-() to find an answer to this question and hopefully you
  can help me with this (or at least guide me in the right
  direction).
  Okay, here is my question:
 
  I use rblsmtpd to block mail from hosts that are listed on some
  blacklists, but I would like to keep my postmaster address(es)
  ([EMAIL PROTECTED]) receiving mail from all other hosts, even
  if they are listed on blacklists. Is there a way to achieve this?
 
  Hi,
 
  Since rblsmtpd works before the smtpd connection even occurs, it is
  not  possible to allow email through to a specific account.
 
  Regards,
 
  Rick
 
 Thanks Rick, I was afraid for that. :-(
 I was looking for a way to allow people to be able to reach me when
 they are blocked, so I can explain why they are blocked and help them
 to solve it if needed. To bad that rblsmtpd has no option to skip
 checking when mail is addressed to a specific address
 - Jasper
 



Re: [vchkpw] Migration from MySQL to CDB Files

2004-06-25 Thread Greg Kopp
I doubt this is a MySQL problem. We are using MySQL in several
environments, including vpopmail. My guess is I don't have as many
users as you, since I set my pop3 concurency at 30 with no problems.

Are you running qmail-scanner or spamassassin? These added quite a bit
of load to my mail server (dual 2.8 Xeons, 2GB RAM) but it still
averages at around 0.3 for the 5min average. It will spike if Razor is
slow to respond or one of our customers does a blast e-mail to thier
client base.

You can try and put MySQL on a seperate server and just have vpopmail
connect to the external database and see if that solves any load
problems.

BTW, What versions are you running?

On Fri, 25 Jun 2004 09:53:35 -0600, Jorge Valdes
[EMAIL PROTECTED] wrote:
 
 Hi,
 
 I have been having problems with resouce utilization with one of my qmail
 servers, which basically boils down to reaching the concurrencylimit of
 tcpserver for my pop3 connections (60) and this brings the server to its
 knees. The only recourse I have left is to reboot, since even console is
 not responsive.
 
 I have checked my logs, and basically, for each pop3 connection, an
 instance of mysql is generated to check password for a virtual domain user,
 this generates swapping. The load average shoots up to 300 and I have seen
 this go as high as 500.
 
 The server is running Linux RedHat 7.3 and has 512MB RAM and 1GB SWAP, for
 about 4000 users in 70 virtual domains. It also runs Apache for qmailadmin.
 Since there are not that many users per domain, less than 100 average, will
 CDB Files be a better solution to this problem?
 
 Currently running vpopmail 5.3.19 and qmailadmin 1.0.15
 
 
 --
 Jorge Valdes
 IT Manager
 Intercom El Salvador
 [EMAIL PROTECTED]
 



Re: [vchkpw] Exhaustive LOG

2004-06-11 Thread Greg Kopp
Martin Leduc wrote:
Hi,
Can I have the exhaustiv log with vchkpw?
Like
w.x.y.x session Open OK
SEND USER.. OK
SEND PASS.. OK
SEND LIST ... OK
RETR 1 .. ERROR
ERROR BECAUSE
Currently, I have customer who connect to my VPOPMAIL Server, see the 
amount of the Email to retrieve but dont retrieve it and Outlook tell

Contact your ADM
The only log I see is Connexion..OK  [EMAIL PROTECTED]:IP
Best Regards
Martin
_
MSN Search, le moteur de recherche qui pense comme vous !  
http://fr.ca.search.msn.com/

If you use tcpserver to launch the pop3 server, you could put recordio 
in the middle of the process and record all IO of the stream. Of course, 
if you have a busy server, your log will be HUGE.


Re: [vchkpw] SMTP Auth HOWTO?

2004-05-20 Thread Greg Kopp
The patch you are using is incredibly old.
You should consider auth-jms1.4a.patch from 
http://www.jms1.net/qmail/auth-jms1.4a.patch

If that link is broken, google on auth-jms1.4a.patch and look at the 
cached version.

You might also consider the qmail-requireauth.patch that allows you to 
set an environment variable to selectively require authentication. I had 
to manually apply the patch as some of the line numbers didn't jive. 
I've pasted it below.

Greg
*** qmail-smtpd-orig.c  Tue May 15 13:21:04 2001
--- qmail-smtpd.c   Tue May 15 13:26:04 2001
***
*** 72,77 
--- 72,79 
 int err_authabrt() { out(501 auth exchange cancelled (#5.0.0)\r\n); 
return -1; }
 int err_input() { out(501 malformed auth input (#5.5.4)\r\n); return 
-1; }

+ void err_authrequired() { out(503 you must authenticate first 
(#5.5.1)\r\n); }
+
 stralloc greeting = {0};

 void smtp_greet(code) char *code;
***
*** 93,98 
--- 95,102 
 char *remoteinfo;
 char *local;
 char *relayclient;
+ char *requireauth;
+ int authd = 0;
 stralloc helohost = {0};
 char *fakehelo; /* pointer into helohost, or 0 */
***
*** 143,148 
--- 147,153 
   if (!remotehost) remotehost = unknown;
   remoteinfo = env_get(TCPREMOTEINFO);
   relayclient = env_get(RELAYCLIENT);
+   requireauth = env_get(REQUIREAUTH);
   dohelo(remotehost);
 }
***
*** 259,264 
--- 264,270 
 }
 void smtp_mail(arg) char *arg;
 {
+   if (requireauth  !authd) { err_authrequired(); return; }
   if (!addrparse(arg)) { err_syntax(); return; }
   flagbarf = bmfcheck();
   seenmail = 1;
***
*** 425,431 
 char **childargs;
 substdio ssup;
 char upbuf[128];
- int authd = 0;
 int authgetl(void) {
   int i;
--- 431,436 

blist wrote:
I am installing vchkpw + SMTP AUTH + qmail.  I have installed qmail 
with this patch:
  qmail-smtpd-auth-0.31 from 
http://members.elysium.pl/brush/qmail-smtpd-auth/

Here is my run tcpserver script for qmail-smtpd:
exec /usr/local/bin/softlimit -m 1000 \
/usr/local/bin/tcpserver -v -H -R -l $LOCAL -x \
/usr/local/vpopmail/etc/tcp.smtp.cdb -c $MAXSMTPD -u \
$QMAILDUID -g vchkpw 192.168.5.50 25 \
/usr/local/bin/fixcrio \
/usr/local/bin/rblsmtpd -r relays.ordb.org \
/var/qmail/bin/qmail-smtpd ps1.prostream.net \
/usr/local/vpopmail/bin/vchkpw /bin/true 
I cannot get any users to authenticate when sending email.  I then 
tried taking out ps1.prostream.net after /var/qmail/bin/qmail-smtpd 
and it lets all users authenticate.  I am running SUSE 9.0 x86-64 with 
vpopmail 5.4.0

Any ideas why its not working?
Thanks,
Brooks Roy



Can mysql auth and cdb auth co-exist?

2000-09-06 Thread Greg Kopp

I ahve tried this with 4.8.7 as well as 4.9 and can't seem to get it to
work.

I want to enable BOTH mysql and cdb authentication so I can gradually move
my domains over from cdb to mysql.

Can this be done?

If you say yes, then what do I need to do? I only ask this question as I
have tried this a half dozen times on our existing qmail+vpopmail server and
it does not work. Once installed, I get these errors in /var/log/maillog:

Sep  5 17:31:29 voyager vpopmail[4402]: vchkpw: No virt found
[EMAIL PROTECTED]:207.206.15.107

No matter who tries to pop thier mail, a cdb based domain or a mysql based
domain.

My installation of qmail is very close to that in the LWQ faq. It has worked
fine for the past 9 months, and have no complaints. I just want to migrate
to mysql authentication. I would appreciate some help.




mysql and cdb authentication

2000-09-05 Thread Greg Kopp

I want to migrate my domains from cdb to mysql authentication.

I compiled vpopmail 4.8.7 with:

./configure \
--enable-roaming-users=y \
--enable-tcpserver-file=/etc/tcp.smtp \
--enable-relay-clear-minutes=30 \
--enable-logging=y \
--enable-hardquota=1500 \
--enable-mysql=y \
--enable-sqlincdir=/usr/include/mysql \
--enable-sqllibdir=/usr/lib/mysql

I changed vmysql.h to use "domains" as the default database, and I left
"vpopmail" as the default table name.

Once installed, I can't check my mail on any cdb domain.

Where did I go wrong?




RE: mysql and cdb authentication

2000-09-05 Thread Greg Kopp

I did that and it stil fails, now it's failing on both.

If I recompile vpopmail without mysql, it works again

 -Original Message-
 From: kbo [mailto:kbo]On Behalf Of Ken Jones
 Sent: Tuesday, September 05, 2000 3:19 PM
 To: Greg Kopp
 Cc: [EMAIL PROTECTED]
 Subject: Re: mysql and cdb authentication
 
 
 Greg Kopp wrote:
  
  I want to migrate my domains from cdb to mysql authentication.
  
  I compiled vpopmail 4.8.7 with:
  
  ./configure \
  --enable-roaming-users=y \
  --enable-tcpserver-file=/etc/tcp.smtp \
  --enable-relay-clear-minutes=30 \
  --enable-logging=y \
  --enable-hardquota=1500 \
  --enable-mysql=y \
  --enable-sqlincdir=/usr/include/mysql \
  --enable-sqllibdir=/usr/lib/mysql
  
  I changed vmysql.h to use "domains" as the default database, and I left
  "vpopmail" as the default table name.
  
  Once installed, I can't check my mail on any cdb domain.
  
  Where did I go wrong?
 
 You'll need to convert your vpasswd files into mysql. Use the 
 following command:
 
 ./vconvert -c -s
 
 That will convert every virtual domain. I recommend moving
 one domain and testing it.
 
 ./vconvert -c -s domainname
 
 Ken