[vchkpw] tcpserver logging of extra pop info

2003-12-28 Thread Peter Nilsson
Hi! 

I have some users that are sending mails trough my mailserver (pop before 
smtp), i have enabled-roaming-users when i compiled vpopmail and it is 
working perfect now. 

But i want to catch abuse if some user get a crasy idea and sends spam 
trough my mailserver, så i need extra info in my pop3 log 

Today my startup script contains this: 

# pop3 server:
echo -n "Starting pop: "
env - PATH="/var/qmail/bin:/usr/local/bin" \
tcpserver -H -R -v -l -c200 0 pop3 /var/qmail/bin/qmail-popup loke.yanet.dk 
\
/home/vpopmail/bin/vchkpw /var/qmail/bin/qmail-pop3d Maildir 2>&1 | \
/var/qmail/bin/splogger pop3d &
echo 

it creates this in my logfile: 

Dec 28 11:53:53 odin pop3d: 1072608833.464242 tcpserver: pid 31615 from 
217.157.31.98
Dec 28 11:53:53 odin pop3d: 1072608833.464265 tcpserver: ok 31615 
-c200:81.7.136.34:110 :217.157.31.98::32924
Dec 28 11:53:53 odin pop3d: 1072608833.560968 tcpserver: end 31615 status 
256
Dec 28 11:53:53 odin pop3d: 1072608833.561047 tcpserver: status: 0/40
Dec 28 11:53:58 odin pop3d: 1072608838.572219 tcpserver: status: 1/40
Dec 28 11:53:58 odin pop3d: 1072608838.572299 tcpserver: pid 31617 from 
217.157.31.98
Dec 28 11:53:58 odin pop3d: 1072608838.572320 tcpserver: ok 31617 
-c200:81.7.136.34:110 :217.157.31.98::32925
Dec 28 11:53:58 odin pop3d: 1072608838.673983 tcpserver: end 31617 status 
256 

I need some info about wich username is doing the pop sessionis it 
possible to get that kind off information 

With the popuser in the log and the ipnumber sending spam, then i can find 
the user doing the abuse.toherwise i have to drop the whole thing :-( 

;-Peter
Yanet.dk


[vchkpw] Re: tcpserver logging of extra pop info

2003-12-28 Thread Peter Nilsson
thanks it helped...and without the -v option in the startup script then i 
get online one line pr. login with info about ipadresse + 
loginnameperfect 

;-Peter 

Tom Collins writes: 

On Dec 28, 2003, at 3:57 AM, Peter Nilsson wrote:
I need some info about wich username is doing the pop sessionis it 
possible to get that kind off information
With the popuser in the log and the ipnumber sending spam, then i can 
find the user doing the abuse.toherwise i have to drop the whole 
thing :-(
Take a look at the --enable-logging option.  You can recompile/install 
vpopmail, adding --enable-logging=y to your ./configure options.  It will 
then log all pop3 connections, not just the failures. 

--
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/ 





[vchkpw] vpopmail - maildirs names

2004-01-02 Thread Peter Nilsson
Hi! 

I have noticed that vpopmail creates a subfolder for every 100 domains like 
/home/vpopmail/domains/0/domainname.dk , is it possible to change the 
folders name and even place the folder on another disk when the first one i 
filled up with userdata? 

Can i move exiting domains to 
/home/vpopmail/domains/whateveriwant/domainname.dk ? is there anything that 
needed to be changei can imagine to change vpasswd in the domain folder 
so i reflects the new foldername 

Is it possible to change the settings in vpopmail so the next 100 domains 
will be created in the /home/vpopmail/domains/whateveriwant ? and if it is 
how is it done? 

;-Peter


Re: [vchkpw] Over quota report not return.

2004-01-27 Thread Peter Nilsson
just apply the qregex patch to qmail and put the bad adress into a
/var/qmail/control/badmailto

my file contains:

[\W\D!%#:\*\^]
[\(\)]
[\{\}]
@.*@
!@


you can put 

[EMAIL PROTECTED]

into it

 



[vchkpw] vpopmail don´t update mailquota

2004-09-18 Thread Peter Nilsson
Hi!
I have compiled a new vpopmail and new sqwebmail, i have a small problem
with vpopmail that don´t update mailquota when mail is checked.
I have compiled it with:
./configure --enable-roaming-users=y --enable-relay-clear-minutes=30
--enable-logging=y --enable-defaultquota=52428800
And sqwbmail is compiled with:
./configure --enable-webpass=vpopmail --without-gzip --without-authpam
--without-authuserdb --without-authpwd --without-authshadow
--without-authldap --with-authdaemon
--enable-imageurl=http://odin.yanet.dk/images/sqwebmail
--enable-imagedir=/home/yanet/public_html/images/sqwebmail
--enable-changepass --enable-cgibindir=/home/yanet/cgi-bin
--enable-autopurge=7 -without-ispell --enable-hardtimeout=5000
--enable-softtimeout=5000 --with-trashquota
And qmail is patched with qmail qmaildir++ patch
Any ideas?
regards,
Peter
Yanet.dk


[vchkpw] Re: vpopmail don´t update mailquota

2004-09-20 Thread Peter Nilsson
Dan Corrigan writes:
Peter Nilsson wrote:
Hi!
I have compiled a new vpopmail and new sqwebmail, i have a small problem
with vpopmail that don´t update mailquota when mail is checked.
I have compiled it with:
./configure --enable-roaming-users=y --enable-relay-clear-minutes=30
--enable-logging=y --enable-defaultquota=52428800
And sqwbmail is compiled with:
./configure --enable-webpass=vpopmail --without-gzip --without-authpam
--without-authuserdb --without-authpwd --without-authshadow
--without-authldap --with-authdaemon
--enable-imageurl=http://odin.yanet.dk/images/sqwebmail
--enable-imagedir=/home/yanet/public_html/images/sqwebmail
--enable-changepass --enable-cgibindir=/home/yanet/cgi-bin
--enable-autopurge=7 -without-ispell --enable-hardtimeout=5000
--enable-softtimeout=5000 --with-trashquota
And qmail is patched with qmail qmaildir++ patch
Any ideas?
regards,
Peter
Yanet.dk

Are you using ant NFS if your mail setup?
no but i forgot to compile with-trasquota so the problem is now solved



[vchkpw] Re: adding more storage: semiOT

2004-09-20 Thread Peter Nilsson
Hi
You can:
1. Close the qmail services
2. backup the vpopmail dir eks. /home/vpopmail with tar cvfpz vpopmail.tarz
/home/vpopmail
3. unmount /home
4. mount the new drive under /home
5. untar the files to the new drive with:
cd /
tar xvfpz /where_you_placed_the_tarfile/vpopmail.tarz /
6. start the qmail services
7. change the entry in your /etc/fstab and set the new drive name to the
entry with /home
I don´t know if your system is linux, but if it was done on my system it
would like this, but with a raid system (2 disks in raid1) just for some
extra security.
Do it when the users is at sleep ;-)
;-Peter
Yanet.dk
Payal Rathod writes:
Hi,
I have a 20Gb harddisk server with vpopmail (single domain) running on it.
A 12Gb partition is dedicated for users mails. We have around 50 users. But the
space has become insufficent over period of time. Now is there any way I
can add some other harddisk and start storing mails there? Also, I need
to add a few 10s of users more so I thought I can use storage of new
disk *too*. I don't want to destroy my old mails. Can someone point a
way to do these things?  This is the first time I ever faced such an issue.
Thanks for the help.
With warm regards,
-Payal



[vchkpw] Re: adding more storage: semiOT

2004-09-20 Thread Peter Nilsson
forgot to say that if you new the total storage of the two drive , then a 
raid 0 is the way to combine the disks, you can read the raid howto that 
follows with hte linux documentation, but i would recommend to use at least 
two disks on a mailserver i raid1 (mirror) 

;-Peter
Yanet.dk 

Payal Rathod writes: 

Hi,
I have a 20Gb harddisk server with vpopmail (single domain) running on it.
A 12Gb partition is dedicated for users mails. We have around 50 users. But the
space has become insufficent over period of time. Now is there any way I
can add some other harddisk and start storing mails there? Also, I need
to add a few 10s of users more so I thought I can use storage of new
disk *too*. I don't want to destroy my old mails. Can someone point a
way to do these things?  This is the first time I ever faced such an issue. 

Thanks for the help.
With warm regards,
-Payal



[vchkpw] do i need qmail-maildir++.patch?

2004-09-22 Thread Peter Nilsson
Hi! 

Is qmail-maildir++.patch needed to support quota anymore, if i use a new 
vpopmail would the quota work without this patch? 

Regards, 

Peter
Yanet.dk


[vchkpw] Re: do i need qmail-maildir++.patch?

2004-09-22 Thread Peter Nilsson
ok, now i have patched the server with maildir++ support, but what would 
happend with all the quotas that are wrong now because of the missing patch? 

Ken Jones writes: 

On Wednesday 22 September 2004 05:37 pm, Peter Nilsson wrote:
Hi! 

Is qmail-maildir++.patch needed to support quota anymore, if i use a new
vpopmail would the quota work without this patch?
Quotas require Maildir++ support in all programs that update a users
email account. i.e. vpopmail, qmail and any other webmail applications. 

vpopmail has Maildir++ support.
DJB's origninal qmail does not. 
You should verify your qmail code. 

I would check qmail-pop3d.c and qmail-local.c
qmail-pop3d.c should quota code for when it deletes email.
qmail-local.c should have quota code for when it delivers email. 

Without these updates, Maildir++ quotas will be wrong.  

Which ever brew of qmail you are using, verify it has the Maildir++
updates to qmail-pop3d.c and qmail-local.c. 

It would be good if this requirement was documented somewhere.
vpopmail quota support requires Maildir++ support in qmail and any
other email applications running on the machine. 

Ken Jones



[vchkpw] how can i change the default dir for domains?

2004-10-07 Thread Peter Nilsson
Hi! 

I have many users on my qmail system and vpopmail has decided to split them 
up in subdirs under /home/vpopmail/domains/0/domain.com etc, but somehow it 
has started to create new subdirs allmost every time I add a new 
domainnow i have many subdirs with only 2 - 5 domains in it. 

My questions are: 

1. Is it possible to force qmail to use another dir, like 
/home/vpopmail/myownchoise/domains/newdomain.com when i add new domains ? 

2. Can i move domains to other locations like above? (and just change it in 
/var/qmail/users/assign) ? 

;-Peter
Yanet.dk


[vchkpw] howto change quota for many users?

2004-12-23 Thread Peter Nilsson
Hi! 

I have vpopmail installed and about 2000 domains hostet, the system is 
filbased (no mysql used) and is working perfekt :-) 

Now i want to give ekstra space to all users so they have 100 MB quota 
instead of 50 MB. 

I have .qmailadmin-limit file in every dir with the old quota settings. 

Is there any way i can change quota on all accounts in one command or 
script? 

Regards 

Peter Nilsson
Yanet.dk


[vchkpw] Re: howto change quota for many users?

2004-12-30 Thread Peter Nilsson
Thanks, that helped me a lot.. :-)) 

Jeremy Kitchen writes: 

On Thursday 23 December 2004 09:37 am, Tom Collins wrote:
On Dec 23, 2004, at 12:49 AM, Peter Nilsson wrote:
> I have vpopmail installed and about 2000 domains hostet, the system is
> filbased (no mysql used) and is working perfekt :-)
> Now i want to give ekstra space to all users so they have 100 MB quota
> instead of 50 MB.
> I have .qmailadmin-limit file in every dir with the old quota settings.
> Is there any way i can change quota on all accounts in one command or
> script? 

Write a script to go through the output of `vdominfo -n`, which should
give you a list of domains.  Then call vmoddomlimits for each domain
and set the new quota. 

If you're not good at shell scripting, perhaps someone else on the list
can contribute a script that accomplishes your goals. 

for i in `~vpopmail/bin/vdominfo -n` ; do ~vpopmail/bin/vmoddomlimits 
-whatever $i ; done 

-Jeremy 

--
Jeremy Kitchen ++ Systems Administrator ++ Inter7 Internet Technologies, Inc.
  [EMAIL PROTECTED] ++ www.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]