Re: [vchkpw] vpopmail and qmailscanner

2004-06-16 Thread Christopher Tarricone
 My name is Lucas and i work for a isp in argentina
 
 i'm using vpopmail with qmailscanner (all qmail-toaster ) and they're working
 fine. i'm also have several domains on my server and i'd like to give
 different services to each one, for example, one domain get clamscanner,
 another domain get spamassassin and another get both. since this can't be done
 with the normal qmail-scanner-queue.pl (is that right?)  i thought that i
 could play with the tcpserver rules, setting up different QMAILQUEUE variables
 for certain domains or even network addresses  but i noted and read on the web
 that i have to set and export the QMAILQUEUE variable within
 /var/qmail/supervise/run to work with vpopmail (with pop-before-smtp).
 
 What i want to know is if is necesary to put the QMAILQUEUE variable within
 the /var/qmail/supervise/run script or how to disable the pop-before-smtp
 vpopmail feature (i cant compile so i hope there's a way with the vpopmail
 conf files).
 
 if you know other way of doing what i'm trying to do, i really wish to know
 
 thanx a lot
 

You might want to consider setting up maildrop or procmail scripts to
handle what you are talking about. For example: I run anti-virus on every
email but not every domain is using spamassassin. I use the attached
maildrop script for the spam scanning. I'm sure that there are better
scripts out there but this one works for me. Plus I have a relatively low
volume server, isoqlog reports an average of 1,213,785 total messages per
month for 2004.

I am sure something similar could be added for antivirus. Each domain
has their own website site  copy of Qmailadmin. Qmailadmin was compiled
with the following flags:

./configure \
--enable-spam-command=|/usr/local/bin/maildrop /etc/maildroprc \
--enable-modify-quota \
--enable-modify-spam \
--enable-no-cache



#-
# maildrop script
# Original code by: Jeremy Oddo (joddo at apixels dot net) 2002-10-27
# Modified by: Christopher Tarricone (chris at pds2k dot com) 2003-01-15
#-

import EXT
import HOST
VHOME=`/var/vpopmail/bin/vuserinfo -d [EMAIL PROTECTED]

if ( $SIZE  262144 )
{
xfilter /usr/bin/spamc -f -u [EMAIL PROTECTED]
if (/^X-Spam-Flag: *YES/)
{
`test -d $VHOME/Maildir/.JunkMail`
if( $RETURNCODE != 1 )
{
to $VHOME/Maildir/.JunkMail
exit
}
else
{
to $VHOME/Maildir
exit
}
}
else
{
to $VHOME/Maildir
exit
}
}
else
{
to $VHOME/Maildir
exit
}




[vchkpw] Problem adjusting vpopmail.c in 5.4.4

2004-06-09 Thread Christopher Tarricone
I am currently upgrading from 5.3.30 to 5.4.4. Everything worked great
except a little piece of custom code that I use for SPAM filtering. It saves
me from having to run maildirmake after every user is added. Everything
compiles and installs nicely, however when I do a ./vadduser [EMAIL PROTECTED]
I get
foo/
Maildir/
new/
cur/
tmp/

What I was hoping for was:
foo/
Maildir/
courierimapsubscribed
new/
cur/
tmp/
.JunkMail/
new/
cur/
tmp/


I have included the source for what I am doing currently and have done in
the past. Any help would be appreciated.


At line 2389 I add (my e-mail client wrapped some lines):

if (mkdir(.JunkMail,VPOPMAIL_DIR_MODE) == -1) { chdir(calling_dir);
return(-1); }
if (chdir(.JunkMail) == -1) { chdir(calling_dir); return(-1); }
if (mkdir(cur,VPOPMAIL_DIR_MODE) == -1) { chdir(calling_dir); return(-1);
}
if (mkdir(new,VPOPMAIL_DIR_MODE) == -1) { chdir(calling_dir); return(-1);
}
if (mkdir(tmp,VPOPMAIL_DIR_MODE) == -1) { chdir(calling_dir); return(-1);
}
chdir(..);

if ( (fs = fopen(courierimapsubscribed, w+))==NULL) {
   free(courierimapsubscribed);
   return(0);
   printf (Error creating IMAP subscribe file.\n);
} else {
   fprintf(fs, INBOX.Sent\n);
   fprintf(fs, INBOX.Trash\n);
   fprintf(fs, INBOX.Drafts\n);
   fprintf(fs, INBOX.JunkMail\n);
   fclose(fs);
}



I this currently works under 5.3.30 in the form of:

* BEGIN:  Create .JunkMail IMAP folder and IMAP subscribe file */
 if (mkdir(.JunkMail,VPOPMAIL_DIR_MODE) == -1){
   chdir(tmpbuf); free(tmpbuf); free(tmpdir);
   printf(make_user_dir: error 3\n);
   return(NULL);
 }

 if (chdir(.JunkMail) == -1) {
   chdir(tmpbuf); free(tmpbuf); free(tmpdir);
   printf(make_user_dir: error 4\n);
   return(NULL);
 }

 if (mkdir(cur,VPOPMAIL_DIR_MODE) == -1) {
   chdir(tmpbuf); free(tmpbuf); free(tmpdir);
   printf(make_user_dir: error 5\n);
   return(NULL);
 }

 if (mkdir(new,VPOPMAIL_DIR_MODE) == -1) {
   chdir(tmpbuf); free(tmpbuf); free(tmpdir);
   printf(make_user_dir: error 6\n);
   return(NULL);
 }

 if (mkdir(tmp,VPOPMAIL_DIR_MODE) == -1) {
   chdir(tmpbuf); free(tmpbuf); free(tmpdir);
   printf(make_user_dir: error 7\n);
   return(NULL);
 }

 chdir(..);
 
 if ( (fs = fopen(courierimapsubscribed, w+))==NULL) {
   free(courierimapsubscribed);
   return(0);
   printf (Error creating IMAP subscribe file.\n);
 } else {
   fprintf(fs, INBOX.Sent\n);
   fprintf(fs, INBOX.Trash\n);
   fprintf(fs, INBOX.Drafts\n);
   fprintf(fs, INBOX.JunkMail\n);
   fclose(fs);
 }
/* END:  Create .JunkMail IMAP folder and IMAP subscribe file */



junkmail.diff.txt
Description: Mac BinHex archive


Re: [vchkpw] Problem adjusting vpopmail.c in 5.4.4

2004-06-09 Thread Christopher Tarricone
 On Jun 9, 2004, at 8:24 AM, Christopher Tarricone wrote:
 What I was hoping for was:
 foo/
 Maildir/
 courierimapsubscribed
 new/
 cur/
 tmp/
 .JunkMail/
 new/
 cur/
 tmp/
 
 
 I have included the source for what I am doing currently and have done
 in
 the past. Any help would be appreciated.
 
 It's even easier now.
 
 Look in the source for this:
 
 const char *dirnames[] = {Maildir, Maildir/new, Maildir/cur,
Maildir/tmp};
 
 And update it like so:
 
 const char *dirnames[] = {Maildir, Maildir/new, Maildir/cur,
Maildir/tmp, .JunkMail, .JunkMail/new, .JunkMail/cur,
.JunkMail/tmp};
 
 The courierimapsubscribed code should work as included -- consider
 removing the chdir though so you don't mess up the rest of the code.
 
 Also take a look at http://vpopmail.sf.net/. in the patches section I
 think there's code to copy a skeleton directory for new users.
 
 --
 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/
 


That did it!!! Thank you


 



Re: [vchkpw] Problem adjusting vpopmail.c in 5.4.4

2004-06-09 Thread Christopher Tarricone
 Tom Collins wrote:
 Also take a look at http://vpopmail.sf.net/. in the patches
 section I
 think there's code to copy a skeleton directory for new users.
 
 Ah, that'd be useful: I currently have a script that wraps vadduser, rather
 than hacking on the source, so this'd make more sense.
 
 Cheers,
 Roger.
 
 

Here is the working diff



junkmail.diff.txt
Description: Mac BinHex archive


Re: [vchkpw] vpopmail and mysql

2004-06-09 Thread Christopher Tarricone
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Hello,
 
 vlimit don't work with MySQL :(
 ./configure \
 - --prefix=/var/qmail \
 - --enable-qmail-newu=/var/qmail/bin/qmail-newu \
 - --enable-vpopuser=VPOPUSER \
 - --enable-vpopgroup=VPOPGROUP \
 - --enable-roaming-users \
 - --enable-tcprules-prog=pacth_tcprule \
 - --enable-relay-clear-minutes=90 \
 - --enable-sqwebmail-pass \
 - --enable-qmail-ext \
 - --enable-ip-alias-domains \
 - --enable-domainquotas \
 - --enable-auth-module=mysql \
 - --enable-logging=p \
 - --enable-auth-logging \
 - --enable-mysql-logging \
 - --enable-libdir=path_mysql_lib \
 - --enable-valias \
 - --enable-mysql-logging \
 - --enable-clear-passwd \
 - --enable-mysql-limits
 
 But, table vlimit is still empty and in ~vpopmail/domain/my_domain, i've
 the .qmailadmin-limits and nothing in MySQL :( and i've too etc/
 vlimits.default
 
 Could anyone has a solution ?
 
 Regards
 - -- 
 Franck
 
 http://www.linuxpourtous.com
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.2.4 (GNU/Linux)
 
 iD8DBQFAx0pJ1zwfep5k9qERAtHqAJ9ilbIiu5fDVEyaF/KLrYY21x/3zgCeLx9E
 mnaqJwll3CbYsIT1gZu1acM=
 =kV9I
 -END PGP SIGNATURE-
 
 
I use MySQL with vpopmail and I do not have a vlimit table. I do have a file
in ~/vpopmail/etc/vlimits.default that is read vpopmail and used when I add
users via the command line or qmailadmin.

I just set mine up this morning and it seems to work for me...
./configure \
--enable-roaming-users=y \
--enable-logging=y  \
--enable-clear-passwd=y \
--enable-auth-module=mysql

And got this for a result:

   vpopmail 5.4.4
Current settings
---

vpopmail directory = /var/vpopmail
   uid = 518
   gid = 520
 roaming users = ON  --enable-roaming-users
tcpserver file = /var/vpopmail/etc/tcp.smtp
open_smtp file = /var/vpopmail/etc/open-smtp
rebuild tcpserver file = ON  --enable-rebuild-tcpserver-file (default)
 password learning = OFF --disable-learn-passwords (default)
 md5 passwords = ON  --enable-md5-passwords (default)
  file locking = ON  --enable-file-locking (default)
vdelivermail fsync = OFF --disable-file-sync (default)
 make seekable = ON  --enable-make-seekable (default)
  clear passwd = ON  --enable-clear-passwd (default)
 user dir hashing  = ON  --enable-users-big-dir (default)
address extensions = OFF --disable-qmail-ext (default)
  ip alias = OFF --disable-ip-alias-domains (default)
 domain quotas = OFF --disable-domainquotas (default)
   auth module = mysql --enable-auth-module=mysql
 mysql replication = OFF --disable-mysql-replication (default)
 mysql logging = OFF --disable-mysql-logging (default)
  mysql limits = OFF --disable-mysql-limits (default)
  MySQL valias = OFF --disable-valias (default)
  auth inc = -I/usr/include/mysql
  auth lib = -L/usr/lib/mysql  -lmysqlclient -lz -lm
  system passwords = OFF --disable-passwd (default)
pop syslog = show successful and failed login attempts
 --enable-logging=y
  auth logging = ON  --enable-auth-logging (default)
all domains in one SQL table = --enable-many-domains (default) 



Server Logs Please Help

2001-04-25 Thread Christopher Tarricone

I have included an excerpt of my start-up script. My server starts but does
not write anything to the log. The /var/log/qmail directory owned by
qmaill:nofiles with r/w permissions. Has anyone encountered this before?







#!/bin/sh

# Qmail Startup


# Source function library.
. /etc/rc.d/init.d/functions

HOSTNAME=`hostname`


# See how we were called.
case $1 in
  start)

echo -n Starting: 
env - PATH=/var/qmail/bin:/usr/local/bin \
qmail-start ./Maildir/ /usr/local/bin/accustamp \
| /usr/local/bin/setuidgid qmaill /usr/local/bin/cyclog /var/log/qmail 

echo -n qmail 

env - PATH=/var/qmail/bin:/usr/local/bin \
tcpserver -H -R -c100 0 pop-3 /var/qmail/bin/qmail-popup \
$HOSTNAME \
/var/vpopmail/bin/vchkpw /var/qmail/bin/qmail-pop3d Maildir 
/var/log/qmail/smtp.log 
echo -n pop 
# 
# This is commented out on purpose deamontools 0.80 does not
# require you to specify the location of the tcp.smtp file
# it is defined at compile time
#tcpserver -H -R -x /var/vpopmail/etc/tcp.smtp -c100 -u503 -g501 0 smtp
\

env - PATH=/var/qmail/bin:/usr/local/bin \
tcpserver -H -R -c100 -u503 -g501 0 smtp \
/var/qmail/bin/qmail-smtpd 21  /dev/null 
echo smtp




Please help! Nothing is written to logs

2001-03-23 Thread Christopher Tarricone

When I start qmail there is nothing written to the log. The mail server runs
fine but I have an empty log file. I am running Mandrake 7.1

case "$1" in
  start)

echo -n "Starting: "
env - PATH="/var/qmail/bin:/usr/local/bin" \
qmail-start ./Maildir/ /usr/local/bin/accustamp \
| /usr/local/bin/setuidgid qmaill /usr/local/bin/cyclog /var/log/qmail 
echo -n "qmail "




Help with logs

2001-03-22 Thread Christopher Tarricone

I had originally had inter7 setup my mail server over year ago. Since then I
have had a server crash and had to reinstall the software. I would like to
setup the mail log analysis like it was before. Does anyone have any type on
how to do this?


TIA




Qmail + Vpopmail Windows 2000

2001-02-10 Thread Christopher Tarricone

I have successfully avoided using Windows 2K Server in our environment.
Unfortunately I can hold out not longer. Has anyone successfully installed
Qmail  Vpopmail under NT?


--
Christopher Tarricone
PDS, Inc.
E-mail   [EMAIL PROTECTED]
phone860.450.1737
fax  860.450.1724

*
pds2k.com
Business Internet Hookability with an Attitude
We rock the Net!
-- 
The only secure computer is one that's unplugged, locked in a safe,
and buried 20 feet under the ground in a secret location... and I'm
not even too sure about that one"--Dennis Huges, FBI. 




Upgrading VPOPMail

2000-12-06 Thread Christopher Tarricone

I am currently running

ezmlm  0.53
ezmlm IDX 0.40
Qmail 1.03
VPOPMAIL 3.4.11

Should I upgrade? I am not having any problems with it at this point but I
am wondering if there were some good reasons for me to upgrade? 



Re: Saving A Copy On The Server

2000-07-17 Thread Christopher Tarricone

What would those permissions be? Vpopmaiol but be able to read and write
to the maildir directory

Gabriel Ambuehl wrote:

 Hello Christopher,

 Monday, July 17, 2000, 12:03:23 PM, you wrote:
  How would I have the mail server save a copy of an email locally even
  after a user has checked thier e-mail?

 Reconfigure the user's mailclient or change the permissions of the
 mails so that vpopmail can't delete them anymore...

 Best regards,
  Gabriel




Save A Copy Of All messages

2000-07-17 Thread Christopher Tarricone

Is there a way that you can setup of the server to allow the user to
check all of thier messages and then go to another location and then
check them again? What I would like to happen is this.. A person sends
me an e-mail when I check it that message stays on the server. If I were
to check it gain It would not come down as new mail but If I were to
goto another location and check for new mail it would put down all of
the messages that I have checked at the other loacation. This will allow
me to check mail at home and at the office so that I can duplicates of
all messages that are sent to me.

I am using vpopmail along with qmail