[vchkpw] chkuser 2.0.8 + syslog

2005-05-17 Thread Jimmy Stewpot
Hello,
I am currently trying to setup my chkuer 2.0.8 to log to syslog. 
Currently all of the information is coming out on /dev/console.

I currently have the following setup
#define CHKUSER_ENABLE_LOGGING
/*
 * Uncomment to enable logging of good rcpts
 * valid only if CHKUSER_ENABLE_LOGGING is defined
 */
#define CHKUSER_LOG_VALID_RCPT
/*
 * Uncomment to enable usage of a variable escluding any check on the 
sender.
 * The variable should be set in tcp.smtp for clients, with static IP, 
whose mailer
 * is composing bad sender addresses
 */
#define CHKUSER_SENDER_NOCHECK_VARIABLE SENDER_NOCHECK

Is there any way that I can get it to goto syslog?.
Thanks
Jimmy.


Re: [vchkpw] chkuser 2.0.8 + syslog

2005-05-18 Thread Jimmy Stewpot
tonix (Antonio Nati) wrote:
At 17.59 17/05/2005, you wrote:
On Tuesday 17 May 2005 11:47 am, tonix (Antonio Nati) wrote:
 Hi Jimmy,

 this does not look as a chkuser problem, but as a general qmail 
problem (as
 chkuser uses same logging routines of qmail). chkuser log goes whenever
 qmail logs go. Are your normal qmail-smtpd logs going to syslog?
I currently have no problems with email logging. I have also got the 
rblsmtpd syslogd patch working its only the chkuser stuff that does not 
end up in syslog.

however, qmail-smtpd doesn't actually log anything.. so you've had to 
add some
additional logging code :)

You are right! Around chkuser logging I have tcpserver logging 
(tcpserver starting qmail-smtpd). I consider it the same of qmail-smtpd 
(when existing :-)) in my previous comment.

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





Re: [vchkpw] chkuser 2.0.8 + syslog

2005-05-18 Thread Jimmy Stewpot
Thanks that worked really well!
tonix (Antonio Nati) wrote:
At 08.52 18/05/2005, you wrote:
tonix (Antonio Nati) wrote:
At 17.59 17/05/2005, you wrote:
On Tuesday 17 May 2005 11:47 am, tonix (Antonio Nati) wrote:
 Hi Jimmy,

 this does not look as a chkuser problem, but as a general qmail 
problem (as
 chkuser uses same logging routines of qmail). chkuser log goes 
whenever
 qmail logs go. Are your normal qmail-smtpd logs going to syslog?

I currently have no problems with email logging. I have also got the 
rblsmtpd syslogd patch working its only the chkuser stuff that does 
not end up in syslog.

This is my configuration for qmail-smtpd. It logs everything (chkuser 
included).

I don't use supervise, so you must change something if you use it.
/var/qmail/ucspi/tcpserver -l my.system.name \
-b 20 -c 40 -u 88 -g 83 \
-h -R -t 5 -v -p -x /vpopmail/etc/tcp.smtp.cdb my.system.address smtp \
/var/qmail/ucspi/rblsmtpd -r bl.spamcop.net -r sbl-xbl.spamhaus.org \
/var/qmail/bin/qmail-smtpd 21 | splogger mytag 
Tonino



Re: [vchkpw] chkuser 2.0.8 + syslog

2005-05-18 Thread Jimmy Stewpot

tonix (Antonio Nati) wrote:
At 08.52 18/05/2005, you wrote:
tonix (Antonio Nati) wrote:
At 17.59 17/05/2005, you wrote:
On Tuesday 17 May 2005 11:47 am, tonix (Antonio Nati) wrote:
 Hi Jimmy,

 this does not look as a chkuser problem, but as a general qmail 
problem (as
 chkuser uses same logging routines of qmail). chkuser log goes 
whenever
 qmail logs go. Are your normal qmail-smtpd logs going to syslog?

I currently have no problems with email logging. I have also got the 
rblsmtpd syslogd patch working its only the chkuser stuff that does 
not end up in syslog.

This is my configuration for qmail-smtpd. It logs everything (chkuser 
included).

I don't use supervise, so you must change something if you use it.
/var/qmail/ucspi/tcpserver -l my.system.name \
-b 20 -c 40 -u 88 -g 83 \
-h -R -t 5 -v -p -x /vpopmail/etc/tcp.smtp.cdb my.system.address smtp \
/var/qmail/ucspi/rblsmtpd -r bl.spamcop.net -r sbl-xbl.spamhaus.org \
/var/qmail/bin/qmail-smtpd 21 | splogger mytag 
When I added a similar line where i had /var/qmail/bin/splogger tcpserver 
It appeared to actually accept all emails regardless if the user was on 
the system or not. When I remove that line it will reject email for 
invalid users using chkuser.

Any ideas?
Tonino



Re: [vchkpw] chkuser 2.0.8 + syslog

2005-05-19 Thread Jimmy Stewpot

tonix (Antonio Nati) wrote:
At 10.48 18/05/2005, you wrote:
I currently have no problems with email logging. I have also got the 
rblsmtpd syslogd patch working its only the chkuser stuff that does 
not end up in syslog.

This is my configuration for qmail-smtpd. It logs everything (chkuser 
included).
I don't use supervise, so you must change something if you use it.
/var/qmail/ucspi/tcpserver -l my.system.name \
-b 20 -c 40 -u 88 -g 83 \
-h -R -t 5 -v -p -x /vpopmail/etc/tcp.smtp.cdb my.system.address smtp \
/var/qmail/ucspi/rblsmtpd -r bl.spamcop.net -r sbl-xbl.spamhaus.org \
/var/qmail/bin/qmail-smtpd 21 | splogger mytag 

When I added a similar line where i had /var/qmail/bin/splogger 
tcpserver 

Please don't say similar, as similar means a lot of things: post the 
complete starting commands.
/usr/local/bin/tcpserver -R -x /etc/tcp.smtp.cdb -c120 -u89 -g89 0 smtp 
/usr/local/bin/rblsmtpd -b -v -r sbl-xbl.spamhaus.org -r dnsbl.sorbs.net 
-r relays.ordb.org -r rhsbl.sorbs.net -r list.dsbl.org -r bl.spamcop.net 
/var/qmail/bin/qmail-smtpd 21 | /var/qmail/bin/splogger tcpserver 

That is the exact line.


It appeared to actually accept all emails regardless if the user was 
on the system or not. When I remove that line it will reject email for 
invalid users using chkuser.

Probably in your configuration you have the variable 
*CHKUSER_STARTING_VARIABLE* that must be defined, or is is defined in a 
wrong way. Check that.
Should I change
/* #define CHKUSER_STARTING_VARIABLE CHKUSER_START */
to
#define CHKUSER_STARTING_VARIABLE CHKUSER_ALWAYS_ON
?
Tonino


[vchkpw] simscan/vpopmail etc

2005-05-24 Thread Jimmy Stewpot
Hello,

I am currently running a fairly busy email server with around 30 domains
and several hundred high usage users sending and receiving email. I have
currently setup the system so that It is running without any virus
scanning. Its setup something like this

rblsmtpd -- qmail -- .qmail file (which then pipes to spamc) then
vpopmail delivers the email.

The whole system works fairly well however I would like to start using
virus scanning. I have been recommended simscan by people on the qmail
list. There are some questions that I have im hoping that people can answer.

Does simscan integrate perfectly with vpopmail. I cant see any reason
why it wouldnt but i would still like clarification on that.

Thanks

Jimmy.


[vchkpw] Massive Folders

2005-07-26 Thread Jimmy Stewpot
Hello,

I am managing a group of servers that is running Redhat Enterprise Linux
v3. The Issue that I have just discovered is that we have now over 32000
users. Thats causing a problem as ext3 file system does not support more
than 32000 folders in any one particular folder.

Is there any way to setup vpopmail so that it supports directory hashes
or anything similar to that. Does anyone have any solutions to resolve
this type of issue.

Regards,

Jimmy.


Re: [vchkpw] Massive Folders

2005-07-26 Thread Jimmy Stewpot
Hello,

It appears that the server has not created the users in a hash format.
Is there any way to convert the format to a hash easily?

Regards,

Jimmy

Rick Macdougall wrote:
 Jimmy Stewpot wrote:
 
 Hello,

 I am managing a group of servers that is running Redhat Enterprise Linux
 v3. The Issue that I have just discovered is that we have now over 32000
 users. Thats causing a problem as ext3 file system does not support more
 than 32000 folders in any one particular folder.

 Is there any way to setup vpopmail so that it supports directory hashes
 or anything similar to that. Does anyone have any solutions to resolve
 this type of issue.

  

 Hi,
 
 By default vpopmail does do directory hashing. IE you should have
 something like this for users.
 
 user1 home = ~vpopmail/domains/domain.com/user1
 user200 home = ~vpopmail/domains/domain.com/0/user200
 user400 home = ~vpopmail/domains/domain.com/Z/user400
 
 etc.
 
 Is this not what you are seeing ?
 
 Regards,
 
 Rick
 
 
 


Re: [vchkpw] Massive Folders

2005-07-27 Thread Jimmy Stewpot


Rick Macdougall wrote:
 Jimmy Stewpot wrote:
 
 Hello,

 It appears that the server has not created the users in a hash format.
 Is there any way to convert the format to a hash easily?
  

 Hi,
 
 Not without deleting and re-adding all the users I think.  Do you know
 how vpopmail was configured and what version it is ?

It appears as though there has been some sort of hack together. The mail
store is in the /domain/all_users/Maildir/* The original mail store was
moved over from a non vpopmail system and new accounts have not been
created in the hash. Is there any easy way to migrate from large non
vpopmail to vpopmail setups?

I have been searching for tools to do this and have found very little.



 
 Regards,
 
 Rick
 
 
 


Re: [vchkpw] Massive Folders

2005-07-27 Thread Jimmy Stewpot
 Hi,
 
 I've done it a few times (sendmail to vpopmail, 30K+ users) with scripts
 etc to create the new users using the vpopmail tools, then again using
 scripts to get their Maildir directories from vpopmail and then moving
 the mail over.
 
 I've never just moved over an existing mail store directly, since of
 course, it doesn't create the hashes correctly.

How do you extract the existing cdb database so that you can view it and
then I can easily script it. Im just having problems with the cdb passwd
file.

 
 There are a few different ways to do it depending on your backend, if
 you are using MySQL, then you can just update the mysql database with
 the user and password, leaving the maildir directory blank and it will
 automatically be updated when you pop into the account or sendmail to
 the account (really fast for creating 10K+ users).  If you are using the
 cdb interface, then you will have to create the users using the vpopmail
 tools, which might take 5-15 minutes depending on the number of users,
 disk speeds, CPU etc.
 
 HTH,
 
 Rick
 
 
 


Re: [vchkpw] Massive Folders

2005-07-28 Thread Jimmy Stewpot

 There are a few different ways to do it depending on your backend, if
 you are using MySQL, then you can just update the mysql database with
 the user and password, leaving the maildir directory blank and it will
 automatically be updated when you pop into the account or sendmail to
 the account (really fast for creating 10K+ users).  If you are using the
 cdb interface, then you will have to create the users using the vpopmail
 tools, which might take 5-15 minutes depending on the number of users,
 disk speeds, CPU etc.

I have just written a script that would do a mysql update query to
md5('password'); into the mysql database. However the problem appears to
be that the passwords set by the vpasswd utility dont appear to be md5
in the same way that the mysql query with md5() function works?

Is that correct?

 HTH,
 
 Rick
 
 
 


Re: [vchkpw] Massive Folders

2005-07-28 Thread Jimmy Stewpot


Rick Macdougall wrote:
 Jimmy Stewpot wrote:
 
 I have just written a script that would do a mysql update query to

 md5('password'); into the mysql database. However the problem appears to
 be that the passwords set by the vpasswd utility dont appear to be md5
 in the same way that the mysql query with md5() function works?

 Is that correct?
  

 Hi,
 
 Yes, that is correct.  How are you running this script ?  Is it a perl
 or php program ?
 You can create the correct md5 password in perl or php and then update
 the database with it.

It appears as though the passwords all start with a $1 how do we go
about creating the right md5sums for example with php? I keep getting
b.s. information created and it will fail authentication.

p.s. thanks for all the help. I really appreciate it.

 
 Regards,
 
 Rick
 
 
 


Re: [vchkpw] Massive Folders

2005-07-28 Thread Jimmy Stewpot

 Hi,
 
 $encpass = crypt('password','$1$salthere$');

Where does vpopmail keep the salt or how does that work in regards to
the vpasswd utility etc?

 
 See http://ca.php.net/manual/en/function.crypt.php
 
 Regards,
 
 Rick
 
 
 
 
 


Re: [vchkpw] vpopmail management

2005-08-02 Thread Jimmy Stewpot


Rick Macdougall wrote:
 Jimmy Stewpot wrote:
 
 Hello,

 I have got a system now working brilliantly after some issues with
 massive mail stores. (see the Massive folders thread for more
 information and thanks to everyone that helped me with that one).

 I have an issue now where I am creating the users by inserting the
 information into the mysql database and then authenticating that user.
 That will then automatically create the folders for that users mail.
 However as far as I can tell there is no easy way to go through and
 delete the mail user when its deleted from the database. Is there any
 easy way to do that with vpopmail?

  

 Hi,
 
 ~vpopmail/bin/vdeluser username

The problem I have with that is the mail access system is separate to
the mail store system which is separate to the DB server doing the
authentication.

The way that I have put forward is when the users are deleted from the
DB I have the records copied into a todelete table. That to delete table
is then queried to create a text file then perl/bash just runs a for
loop each user.

Can anyone see any issues with that?


 
 Regards,
 
 Rick
 
 
 


[vchkpw] /var/qmail/alias/.qmail-user

2006-03-28 Thread Jimmy Stewpot

Hello,

I have a server that is setup as having vpopmail installed to run all of 
the emails without having system accounts. I have got users on the 
system that have cronjobs running. If those users have a crontab that 
runs and has an error it will email [EMAIL PROTECTED]  the hostname of the 
server does not have a virtual host setup in vpopmail but I have put 
aliases into /var/qmail/aliases/.qmail-username.


I would have expected that to route the email over to the users vpopmail 
account however it does not work. Any sugestions? or am I missing 
something totally stupid?


Regards,

Jimmy