[vchkpw] .qmail file with users with dot

2003-06-13 Thread Bruno Morais
Hi, i´m using Qmail+Vpopmail+TMDA.
TMDA is used for controling spam.
The problem is that .qmail files works ok for users like
[EMAIL PROTECTED],  [EMAIL PROTECTED],
[EMAIL PROTECTED] but when i use
[EMAIL PROTECTED] qmail ignores the .qmail file and uses the
.qmail-default file.

So in this case, TMDA is not used for filtering mail and all mails passes to
Maildirs. All my email addresses have  [EMAIL PROTECTED] .

Anyone as any idea?
Thanks,

Bruno Morais
Dep. de Informática
[EMAIL PROTECTED]

MNAC - Electricidade Industrial, Lda
Rua das Alminhas 330/334 Serzedo
4405-443 Serzedo - Vila Nova de Gaia

www.mnac.pt
Tel: +351 22 7629136
Fax: +351 22 7629377




SV: [vchkpw] .qmail file with users with dot

2003-06-13 Thread Jonas Thomsen
 Hi, i´m using Qmail+Vpopmail+TMDA.
 TMDA is used for controling spam.
 The problem is that .qmail files works ok for users like 
 [EMAIL PROTECTED],  
 [EMAIL PROTECTED], 
 [EMAIL PROTECTED] but when i use 
 [EMAIL PROTECTED] qmail ignores the .qmail 
 file and uses the .qmail-default file.
 
 So in this case, TMDA is not used for filtering mail and all 
 mails passes to Maildirs. All my email addresses have  
 [EMAIL PROTECTED] .
 
 Anyone as any idea?
 Thanks,

On my system, those .qmail files have a : instead of a .. The .qmail
files have been generated by qmailadmin.


- Jonas





Re: [vchkpw] .qmail file with users with dot

2003-06-13 Thread James Raftery
On Fri, Jun 13, 2003 at 10:51:37AM +0100, Bruno Morais wrote:
 The problem is that .qmail files works ok for users like
 [EMAIL PROTECTED],  [EMAIL PROTECTED],
 [EMAIL PROTECTED] but when i use
 [EMAIL PROTECTED] qmail ignores the .qmail file and uses the
 .qmail-default file.

man dot-qmail(5). See the 'EXTENSION ADDRESSES' section.


ATB,
james



[vchkpw] Authentication Errors

2003-06-13 Thread David Bronson
Hello All,

I have been happily using vpopmail for about 2 years. Thank you for a
great tool.

I am in the process of setting up a new server and I am nearly through.
The problem I have is that authentication sometimes fails. I seem to
only have this issue from sqwebmail. I have seen in other mailing
lists that this has recently been a bug in vpopmail but I haven't found
a solution. Here are the specifics:

User [EMAIL PROTECTED] attempts to login from sqwebmail and types the username
and pass correctly. I am using mysql, so I look at the log and the
username string that is presented is johnn or johni or john/.

sqwebmail-3.5.3 and sqwebmail-3.5.2 and sqwebmail-3.5.1 (all the same) (ugh)
maildrop-1.5.3
vpopmail-5.3.20 and  vpopmail-5.2.1 (did same thing)
qmail-1.03

I can't help but think I may have something misconfigured. My production
server is working without a hitch.

BTW, I asked this question on the sqwebmail list and was told it is a
vpopmail/vchkpw bug. It still seems to only happen with sqwebmail
though (for me).

Thanks in advance,

-- 
David Bronson



[vchkpw] vpopbull WARNING

2003-06-13 Thread Benjamin Tomhave
If you choose to run vpopbull, I highly advise doing su vpopmail first.
If you run vpopbull as root, it will insert a file owned by root, and this
will essentially kill vpopmail (POP3 retrieval) until you can recursively
chown the files to the correct owner:group.  Just wanted to make others
aware of what just befell me.

---
Benjamin Tomhave, CISSP
Senior Systems Engineer
[EMAIL PROTECTED]
Sofast Communications  www.sofast.net




[vchkpw] Fwd: template .qmail file

2003-06-13 Thread Tom Collins
Begin forwarded message:
From: Ryan Summers [EMAIL PROTECTED]>
Date: Fri Jun 13, 2003  2:15:24  PM America/Phoenix
To: [EMAIL PROTECTED]
Subject: [qmailadmin] template .qmail file



Perhaps this is a strange request, but here goes...

It would be nice to have a template .qmail file that gets coppied into the vpopmail user's directory when creating a new user.  This would work sort of like how useradd takes /etc/skel and copies those files into the new user's home dir.

Reason for this?

I want to be able to use the .qmail file to call a script that filters spam (using the spamassassin spamc/spamd) 

Perhaps there's a better way to do this using qmail (filtering at the queue level perhaps)?  Any suggestions are more than welcome.

Anyways, the .qmail file will work for now.  I was able to hack the user.c addusernow() function so that it copies a .qmail file into the new user's directory.  If anybody is interested in how I did this let me know... its a pretty ugly hack though.

Ryan / Plastic Portal


MM Recordings http://www.mmrecordings.com

This request is probably more appropriate for vpopmail development.

Could one of the vpopmail developers consider submitting a patch to make_user_dir that would copy a default .qmail file (perhaps from ~vpopmail/etc?) into the new user's directory?

You could insert the code here:

if ( chdir(username) != 0 ) {
chdir(tmpbuf); free(tmpbuf); free(tmpdir);
printf( make_user_dir: error 2\n);
return(NULL);
}
/* insert code to copy default .qmail file */
if (mkdir(Maildir,VPOPMAIL_DIR_MODE) == -1){
chdir(tmpbuf); free(tmpbuf); free(tmpdir);
printf(make_user_dir: error 3\n);
return(NULL);
}

Thoughts?

--
Tom Collins
[EMAIL PROTECTED]



Re: [vchkpw] Fwd: template .qmail file

2003-06-13 Thread Tom Collins
On Friday, June 13, 2003, at 04:33  PM, Ron Guerin wrote:
It would be nice to have a template .qmail file that gets coppied into
the vpopmail user's directory when creating a new user.  This would
work sort of like how useradd takes /etc/skel and copies those files
into the new user's home dir.
This is a job for a BASH script around vadduser, not a patch.
That would work, but then you'd have different behavior when adding 
users from the command line (vadduser) and from qmailadmin (which uses 
the vpopmail libraries).  I was hoping for consistent behavior, perhaps 
even with other programs that might link into vpopmail.

A modification that used a skeleton directory could also be useful for 
those who want to have extra Maildirs automatically created (say for 
SPAM) on user creation.  A shell script wrapper does the trick on the 
command line, but not for qmailadmin.

--
Tom Collins
[EMAIL PROTECTED]