Re: [vchkpw] Using qmail-smtp-auth with vchkpw

2004-03-16 Thread Alex Pleiner
Markus,

* Markus Schmitt <[EMAIL PROTECTED]> [2004-03-15 16:46]:
> I am running netqmail-1.05 + vpopmail 5.4.3 + qmail-scanner 1.20st +
> SpamAssassin + Clamuko (ClamAV) + QmailAdmin.

> I patched netqmail with the Patch
> 'netqmail-1.05-tls-smtpauth-20040207.patch' to get ESTMP functions.

ok

> Now my Problem is that if i change uid / gid to vpopmail i get a "451
> tempory qq failed". So it tried with changing permissions of vchkpw and
> using Qmail's uid/gid or also qscan uid/qid.

> Now i could not authenticate with correct username / password through client
> (SMTP). Webmail (SqWebmail) works fine.
> POP3 works also fine.
> In the log files (smtpd/log or qmail/log or mail) i can't find any entry
> correspondending to vchkpw-smtp...

Ignore SpamAssassin, ClamAV, Qmail-Scanner and sqwebmail for the moment.
They have nothing to do with your problem. Try to get SMTP AUTH running
without them first.

Remove the hostname (mail.rotkreuz-kv-konstanz.de) from your startup
script -- it is not used anymore if you aure using smtp-auth.0.42 from
Erwin Hoffmann.

Check permissions:
$ ls -l /home/vpopmail/bin/vchkpw
-rwx--x--x1 vpopmail vchkpw  64104 Mar  9 10:58 /home/vpopmail/bin/vchkpw

Excerpt from my /var/qmail/supervise/qmail-smtpd/run:

QMAILDUID=`id -u vpopmail`
QMAILDGID=`id -g vpopmail`
MAXSMTPD=`head -1 /var/qmail/control/concurrencyincoming`
MYSELF=`head -1 /var/qmail/control/me`
RBL="" # please ignore me
[...]  # some sanity checks

exec /usr/local/bin/softlimit -m 2500 \
  tcpserver -v -R -l $MYSELF \
-u "$QMAILDUID" -g "$QMAILDGID" -c "$MAXSMTPD" \
-x /home/vpopmail/etc/tcp.smtp.cdb 0 smtp \
 $RBL /var/qmail/bin/qmail-smtpd \
 /home/vpopmail/bin/vchkpw /bin/true 2>&1

Further advice: do not set QMAILQUEUE in your startup file. It is quite
easy to patch vpopmail.c to write it to open-smtp by itself.

Contact my in private email if you need further advice.

Hope this helps,

Alex

-- 
Alex Pleiner
zeitform Internet Dienste Fraunhoferstrasse 5
  64283 Darmstadt, Germany
http://www.zeitform.deTel.: +49 (0)6151 155-635
mailto:[EMAIL PROTECTED]Fax:  +49 (0)6151 155-634
GnuPG/PGP Key-ID: 0x613C21EA


Re: [vchkpw] possible authvchkpw.c patch

2004-03-16 Thread Michael Bowe
Matthew,

Sorry for the delay in replying.

I believe your patch is correct.

I will submit the patch to MrSam for inclusion in the courier-imap
distribution.

Michael.


> Matthew Kanar wrote:
>
> > I found that changing cdb passwords through courier-imap was failing for
> > others and me with the courier-imap developement release,
> > courier-imap-2.2.2.20040207.  This patch seems to correct the issue.
> > The change is very simple.  "vpw->pw_passwd" in authvchkpw.c is changed
> > to "vpw->pw_passwd == 0".  Somebody else, most notably Michael Bowe
> > <[EMAIL PROTECTED]>, should probably review the change.
> >
> > Thank You,
> > Matthew Kanar
> >
> > 2004-03-02  Matthew Kanar <[EMAIL PROTECTED]>
> >
> >* authlib/authvchkpw.c: Made a change so that vpopmail
> >password changes work again.
> >
> > --- ../courier-imap-2.2.2.20040207/authlib/authvchkpw.c 2004-01-14
> > 22:17:01.0 -0500
> > +++ authlib/authvchkpw.c2004-03-02 12:52:52.136420151 -0500
> > @@ -190,7 +190,7 @@
> > *   - user's password field in the passwd entry is empty
> > *   - supplied current password doesnt match stored password
> > */
> > -   if (vpw->pw_passwd || authcheckpassword(pass, vpw->pw_passwd)) {
> > +   if (vpw->pw_passwd == 0 || authcheckpassword(pass,
> > vpw->pw_passwd)) {
> >errno=EPERM;
> >return (-1);
> >}
>



[vchkpw] vpopmail and spamassassin problem

2004-03-16 Thread Lars E. D. Jensen
How do I configure vpopmail for spamassassin ?

I'm using vpopmail 5.4.0 and spamassassin 2.63.

I've added the following to /var/vpopmail/domains/dangvard.dk/.qmail-lars :

|preline spamc -t 45 -f -u [EMAIL PROTECTED] | /var/vpopmail/bin/vdelivermail ''
bounce-no-mailbox | fastforward -d /etc/aliases.cdb

But I still get untagged spam?

This is my local.cf:

required_hits 5.0
rewrite_subject 1
report_header 1
use_terse_report 1
defang_mime 1
use_dcc 1
dcc_add_header 1
dcc_dccifd_path /var/dcc/libexec/dccifd
use_razor2 1
use_pyzor 1
report_safe 0
subject_tag [SPAM]
skip_rbl_checks 1
check_mx_attempts 0
dns_available no
razor_timeout 5
pyzor_timeout 5
rbl_timeout 10


Thanks

Lars



[vchkpw] replication and vpopmail.mysql

2004-03-16 Thread Andrea Ubiali
Hi,

i'm trying vpopmail 5.4.3

I have a trouble with settings of vpopmail.mysql and replication.

My configure options here:

./configure --enable-auth-module=mysql --enable-logging=y
--enable-clear-passwd=y --enable-valias=y --enable-learn-passwords=y
--enable-auth-logging=y --enable-mysql-replication=y
then my vpopmail.mysql in /home/vpopmail/etc on my server test01 (named
localhost below)
localhost|0|vpopmail|myfirstpasswd|vpopmail
192.168.1.52|3306|vpopmail|mysecondpasswd|vpopmail
then on my localhost

mysql> grant select on vpopmail.* to [EMAIL PROTECTED] identified by
'myfirstpasswd';
and on 192.168.1.52

mysql> grant all on vpopmail.* to vpopmail@'192.168.1.45' identified by
'mysecondpasswd';
When i try to connect to port 110 of localhost i have the following error

vmysql: sql error[i]: Access denied for user: '[EMAIL PROTECTED]' to
database 'vpopmail'
looking in the mysql log file i can find the following lines

Connect Access denied for user: '[EMAIL PROTECTED]' (Using password: YES)
Connect [EMAIL PROTECTED] on vpopmail
Query   select pw_name, pw_passwd, pw_uid, pw_gid, pw_gecos, pw_dir,
pw_shell , pw_clear_passwd from vpopmail where pw_name = "test" and
pw_domain = "interac.it"
Connect [EMAIL PROTECTED] on vpopmail
Query   replace into lastauth set user="test", domain="interac.it",
remote_ip="81.208.57.37", timestamp=1079449554
I can't understand the first and the last line.

I have no problem if i remove the following line in the vpopmail.mysql file

localhost|0|vpopmail|myfirstpasswd|vpopmail

Is there something wrong in my configuration ?

Thanks. Andrea.

--
Andrea Ubiali
Interactive srl


smime.p7s
Description: S/MIME Cryptographic Signature


[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.

 








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

2004-03-16 Thread Jeremy Kitchen
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



Re: [vchkpw] Trash folder not counted for quotas

2004-03-16 Thread Rainer Duffner
Alex Borges wrote:

Ok, here is a couple of excerpts from the maildirquota.c file:

800:  if ( *subdir != '.' || strcmp(subdir, ".") == 0 ||
801:strcmp(subdir, "..") == 0 || strcmp(subdir, ".Trash") == 0)
836: if ( *subdir != '.' || strcmp(subdir, ".") == 0 ||
 strcmp(subdir, "..") == 0 || strcmp(subdir, ".Trash") == 0)
 return (0);
And well... i want to know if i can remove Trash from this exclusion
please, pretty please.
Yes, of course i can also change the name of my trash folder in my app,
i just dont want to...
Is there any reason why the folder named .Trash is not included in quota
accounting? Is that part of tyhe maildir++ spec or what?
 

I'd say it's a quick and dirty hack to enable people who are over quota 
the removal of mail.

The operation of putting something in the trash is most likely "copy", 
so people who are over quota wouldn't be able to delete.anything...



Rainer



Re: [vchkpw] Trash folder not counted for quotas

2004-03-16 Thread Rick Widmer


Rainer Duffner wrote:

Alex Borges wrote:

Is there any reason why the folder named .Trash is not included in quota
accounting? Is that part of tyhe maildir++ spec or what?
 

I'd say it's a quick and dirty hack to enable people who are over quota 
the removal of mail.

The operation of putting something in the trash is most likely "copy", 
so people who are over quota wouldn't be able to delete.anything...

If you want to do something about files in the trash, how about a cron
job that deletes anythging over a day or two old.
Rick