Re: [vchkpw] Imap Access Disabled

2007-06-13 Thread Navid rasi

well

1. run this command
strace -ff -o /var/mydebug/ff 
/usr/local/libexec/couriertcpd -address=0 -maxprocs=40 -maxperip=4 -nodnslookup 
-noidentlookup 143 /usr/local/sbin/imaplogin /usr/local/bin/imapd Maildir


2.telnet 20 127.0.0.1 143




then this file come out in /var/mydeug
ff.8417
---

rt_sigaction(SIGCHLD, {SIG_DFL}, {0x8049e54, [CHLD], SA_RESTORER|SA_RESTART, 
0x6

41a48}, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [CHLD], NULL, 8) = 0
getsockname(4, {sa_family=AF_INET6, sin6_port=htons(143), 
inet_pton(AF_INET6, :

::127.0.0.1, sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, [28]) = 0
close(0)= 0
close(1)= 0
dup(4)  = 0
dup(4)  = 1
close(4)= 0
execve(/usr/local/sbin/imaplogin, [/usr/local/sbin/imaplogin, 
/usr/local/bi

n/imapd, Maildir], [/* 26 vars */]) = 0
uname({sys=Linux, node=TEST-MAIL, ...}) = 0
brk(0)  = 0x8b4f000
access(/etc/ld.so.preload, R_OK)  = -1 ENOENT (No such file or 
directory)
open(/usr/local/lib/courier-authlib/tls/i686/sse2/libcourierauthsasl.so.0, 
O_R

DONLY) = -1 ENOENT (No such file or directory)
stat64(/usr/local/lib/courier-authlib/tls/i686/sse2, 0xfee80718) = -1 
ENOENT (

No such file or directory)
open(/usr/local/lib/courier-authlib/tls/i686/libcourierauthsasl.so.0, 
O_RDONLY

) = -1 ENOENT (No such file or directory)
stat64(/usr/local/lib/courier-authlib/tls/i686, 0xfee80718) = -1 ENOENT 
(No su

ch file or directory)
open(/usr/local/lib/courier-authlib/tls/sse2/libcourierauthsasl.so.0, 
O_RDONLY

) = -1 ENOENT (No such file or directory)
stat64(/usr/local/lib/courier-authlib/tls/sse2, 0xfee80718) = -1 ENOENT 
(No su

ch file or directory)
open(/usr/local/lib/courier-authlib/tls/libcourierauthsasl.so.0, O_RDONLY) 
= -

1 ENOENT (No such file or directory)
stat64(/usr/local/lib/courier-authlib/tls, 0xfee80718) = -1 ENOENT (No 
such fi

le or directory)
open(/usr/local/lib/courier-authlib/i686/sse2/libcourierauthsasl.so.0, 
O_RDONL

Y) = -1 ENOENT (No such file or directory)
stat64(/usr/local/lib/courier-authlib/i686/sse2, 0xfee80718) = -1 ENOENT 
(No s

uch file or directory)
open(/usr/local/lib/courier-authlib/i686/libcourierauthsasl.so.0, 
O_RDONLY) =

-1 ENOENT (No such file or directory)
stat64(/usr/local/lib/courier-authlib/i686, 0xfee80718) = -1 ENOENT (No 
such f

ile or directory)
open(/usr/local/lib/courier-authlib/sse2/libcourierauthsasl.so.0, 
O_RDONLY) =

-1 ENOENT (No such file or directory)
stat64(/usr/local/lib/courier-authlib/sse2, 0xfee80718) = -1 ENOENT (No 
such f

ile or directory)
open(/usr/local/lib/courier-authlib/libcourierauthsasl.so.0, O_RDONLY) = 3
read(3, \177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0X\10\0\000..., 512) 
= 5

12
fstat64(3, {st_mode=S_IFREG|0755, st_size=7436, ...}) = 0
old_mmap(NULL, 10272, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) 
= 0x

f6ffd000
old_mmap(0xf6fff000, 4096, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYW

RITE, 3, 0x1000) = 0xf6fff000
close(3)= 0
open(/usr/local/lib/courier-authlib/libcourierauth.so.0, O_RDONLY) = 3
read(3, \177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\4!\0\000..., 512) 
= 51

2
fstat64(3, {st_mode=S_IFREG|0755, st_size=37420, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) 
= 0

xf6ffc000
old_mmap(NULL, 34884, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) 
= 0x

f6ff3000
old_mmap(0xf6ffb000, 4096, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYW

RITE, 3, 0x8000) = 0xf6ffb000
close(3)= 0
open(/usr/local/lib/courier-authlib/libc.so.6, O_RDONLY) = -1 ENOENT (No 
such

file or directory)
open(/etc/ld.so.cache, O_RDONLY)  = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=47991, ...}) = 0
old_mmap(NULL, 47991, PROT_READ, MAP_PRIVATE, 3, 0) = 0xf6fe7000
close(3)= 0
open(/lib/tls/libc.so.6, O_RDONLY)= 3
read(3, \177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 \357b\000..., 512) 
= 5

12
fstat64(3, {st_mode=S_IFREG|0755, st_size=1512400, ...}) = 0
old_mmap(0x61a000, 1207532, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 
3, 0

) = 0x61a000
old_mmap(0x73b000, 16384, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWR

ITE, 3, 0x12) = 0x73b000
old_mmap(0x73f000, 7404, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMO

US, -1, 0) = 0x73f000
close(3)= 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) 
= 0

xf6fe6000
mprotect(0x73b000, 8192, PROT_READ) = 0
mprotect(0x616000, 4096, PROT_READ) = 0
set_thread_area({entry_number:-1 - 6, base_addr:0xf6fe66c0, limit:1048575, 
seg_
32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, 
usea

ble:1}) = 0
munmap(0xf6fe7000, 47991)

[vchkpw] Throttling users

2007-06-13 Thread ed
Hi,

I'm thinking about ways to monitor how much mail our virtual users are
sending, is there a hook that I can place in vchkpw somewhere to handle
this?

What I'm thinking is that I need to pickup the mail files that are
being sent at the same time, so I could count the databytes of the mail
and the number of recipients.

(Although after writing this I think that I'm better off putting this in
qmail-smptd, or a qmail-queue-wrapper).

Is there a API style interface for working with vpopmail?

-- 
The SCSI Controller to www.fark.com is screaming like Bryan Bird
because of a translator who speaks Bocce. RedHat is playing
counter-strike. :: http://www.s5h.net/ :: http://www.s5h.net/gpg