Re: [vchkpw] Problems authentication users with Courier IMAP

2006-02-21 Thread Muhammad Naeem
On 2/21/06, Thomas Korsgaard <[EMAIL PROTECTED]> wrote:
> Hello List,
>
> I'm new to mail servers, please bear with me if this is trivial.
>
> I've installed qmail, qmailadmin and vpopmail. That seemed to work fine. The
> mail server was running, and I could foreward emails, like I wanted. Though
> I wanted to get a webmail running, so I installed Courier IMAP, in order to
> use squirrelmail. This however stopped to mail forewarding. (?)
>
> I wanted to be able to use the users I created with vpopmail in the IMAP
> server, but there seems to be an authentication problem. Courier IMAP cannot
> "see" the users that I created with vpopmail. When I try to login to the
> IMAP server i get:
>
> Escape character is '^]'.
> * OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT
> THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION STARTTLS] Courier-IMAP
> ready. Copyright 1998-2005 Double Precision, Inc.  See COPYING for
> distribution information.
> . login [EMAIL PROTECTED] 12345678
> . NO Login failed.
>
> I've changed the authmodulelist in the authdaemonrc file to:
>
> authmodulelist="authvchkpw"
>
> And I've tied this as well:
>
>  authmodulelist="authuserdb authpam authpgsql authldap authmysql authcustom
> authpipe authvchkpw"
>
> Doesent change anything. The maillog says this:
>
> Feb 21 16:54:41 localhost authdaemond: Installing libauthuserdb
> Feb 21 16:54:41 localhost authdaemond: file not found
> Feb 21 16:54:41 localhost authdaemond: Installing libauthpam
> Feb 21 16:54:41 localhost authdaemond: Installation complete: authpam
> Feb 21 16:54:41 localhost authdaemond: Installing libauthpgsql
> Feb 21 16:54:41 localhost authdaemond: file not found
> Feb 21 16:54:41 localhost authdaemond: Installing libauthldap
> Feb 21 16:54:41 localhost authdaemond: file not found
> Feb 21 16:54:41 localhost authdaemond: Installing libauthmysql
> Feb 21 16:54:41 localhost authdaemond: file not found
> Feb 21 16:54:41 localhost authdaemond: Installing libauthcustom
> Feb 21 16:54:41 localhost authdaemond: Installation complete: authcustom
> Feb 21 16:54:41 localhost authdaemond: Installing libauthpipe
> Feb 21 16:54:41 localhost authdaemond: file not found
> Feb 21 16:54:41 localhost authdaemond: Installing libauthvchkpw
> Feb 21 16:54:41 localhost authdaemond: file not found
> Feb 21 16:55:03 localhost imapd: Connection, ip=[::: 127.0.0.1]
> Feb 21 16:55:03 localhost imapd: LOGIN FAILED, [EMAIL PROTECTED], ip=[:::
> 127.0.0.1]
> Feb 21 16:55:08 localhost imapd: LOGOUT, ip=[::: 127.0.0.1]
>
> Everytime I try to login to the server.  Is there any one here that might
> have a solution?
> It would be appreciated.
>
> Yours,
> Thomas
>
>

Get courier-authlib first and compile it with the option
--with-authvchkpw before compiling courier-imap.

/Naeem


Re: [vchkpw] Lazy admin seeks ezmlm script set

2006-02-21 Thread David Chaplin-Loebell

Alex Borges wrote:


Mhm... you guys take too long:
#!/bin/bash
CWDmine=$(pwd)
cd "/home/vpopmail/domains/$1"
 


It would be better to use cd `vdominfo -d $1` in case of hashed domains.


ls .qmail-* |egrep "^.qmail-[^-]*$" |sed -r -e 's/^.qmail-(.*)$/\1/g'
cd "$CWDmine"
 





Re: [vchkpw] Migrating all lists to another domain

2006-02-21 Thread Tom Collins

On Feb 21, 2006, at 11:09 AM, Alex Borges wrote:

Okay,

I wanna move about 50 ezmlm lists to a diferent domain.


[snip]


Now i suspect that copying directories and files will do the trick but
im not shure. Also, i wonder what ezmlm-make parameters should i use.

Im going through the source of qmailadmin right now and im shure to 
find

out exactly how those lists get made by it, but im also shure you guys
can come up with a better way to go about it.


QmailAdmin calls ezmlm-make.  The config file in the list's directory 
should tell you everything you need to know in regards to creating the 
list.


You should be able to use the config file to generate a call to 
ezmlm-make to create your new list, and then pipe the output of 
ezmlm-list (for the old list) to ezmlm-sub (for the new list) to 
transfer the subscribers, moderators (if appropriate) and digest 
subscribers (if appropriate) to the new list.


I suspect you could simply copy the subscribers, mod/subscribers and 
digest/subscribers (I'm guessing on that digest path) from the old 
directory to the new one.


ezmlm-make is probably a better solution than just copying the list's 
confi directory and recreating the .qmail-list-whatever symlinks, as 
you'll have to edit the configuration files to use the new list's 
pathname, and change the old domain to the new domain in files like 
inhost.


Tom Collins
Tom Logic LLC
PO Box 5717
Napa, CA 94581
(707) 265-6622
(707) 265-6646 fax
[EMAIL PROTECTED]



[vchkpw] Migrating all lists to another domain

2006-02-21 Thread Alex Borges
Okay,

I wanna move about 50 ezmlm lists to a diferent domain.

I wanted to do it like this:

List all lists from source domain
for each of those
   create list in new domain
get users of source list in source domain
for each of those
create user in new list


Now i suspect that copying directories and files will do the trick but
im not shure. Also, i wonder what ezmlm-make parameters should i use.

Im going through the source of qmailadmin right now and im shure to find
out exactly how those lists get made by it, but im also shure you guys
can come up with a better way to go about it.

So, takers?
 



Re: [vchkpw] Lazy admin seeks ezmlm script set

2006-02-21 Thread Alex Borges
On Tue, 2006-02-21 at 12:07 -0600, Alex Borges wrote:
> Hey guys... im just as lazy as you guys, probably more so...
> 
> So, i was wondering if any of you have a script that will give me all
> the ezmlm lists for a vpopmail domain.
> 
Mhm... you guys take too long:
#!/bin/bash
CWDmine=$(pwd)
cd "/home/vpopmail/domains/$1"
ls .qmail-* |egrep "^.qmail-[^-]*$" |sed -r -e 's/^.qmail-(.*)$/\1/g'
cd "$CWDmine"

Anyhow what i really need is a way to migrate all lists in a domain
to another vpopmail domain if you guys know of simple a way to do
this, let me know.

> 
> YAWN
> 
> /me waits until his work is done by others



Re: [vchkpw] Lazy admin seeks ezmlm script set

2006-02-21 Thread Tom Collins

On Feb 21, 2006, at 10:07 AM, Alex Borges wrote:

Hey guys... im just as lazy as you guys, probably more so...

So, i was wondering if any of you have a script that will give me all
the ezmlm lists for a vpopmail domain.


QmailAdmin  will show them in a web 
interface...


`ls .qmail-*-owner` will work most of the time (although it's possible 
to have an xyz-owner alias that isn't related to a list).


`ls */config` works, but you'll need to strip the '/config' part to get 
the list name.


Hopefully you're not too lazy to take that start and create the script 
yourself.  ;-)


--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
You don't need a laptop to troubleshoot high-speed Internet: 
sniffter.com




[vchkpw] Lazy admin seeks ezmlm script set

2006-02-21 Thread Alex Borges
Hey guys... im just as lazy as you guys, probably more so...

So, i was wondering if any of you have a script that will give me all
the ezmlm lists for a vpopmail domain.


YAWN

/me waits until his work is done by others



Re: [vchkpw] chkuser + smtp auth, disable CHKUSER_RCPTLIMIT when correct smt auth. how??

2006-02-21 Thread Ibiltari
Thank you for the solution!! i was out these days and not reading mail
but today i will try the code and lest see how it works...

On 2/11/06, tonix (Antonio Nati) <[EMAIL PROTECTED]> wrote:
>  At 12.06 11/02/2006, you wrote:
>
>
>
> I'll publish this feature in next chkuser version (and rewrite the code in
> order to make it more easy and powerful - i.e. to make
> CHKUSER_EXCLUDE_VARIABLE indipendent from other variables).
>
>  And mainly I'll take care to call it CHKUSER_DISABLE_VARIABLE anywhere !!
>
>  Tonino
>
>
>


[vchkpw] Problems authentication users with Courier IMAP

2006-02-21 Thread Thomas Korsgaard
Hello List,I'm new to mail servers, please bear with me if this is trivial. I've installed qmail, qmailadmin and vpopmail. That seemed to work fine. The mail server was running, and I could foreward emails, like I wanted. Though I wanted to get a webmail running, so I installed Courier IMAP, in order to use squirrelmail. This however stopped to mail forewarding. (?)
I wanted to be able to use the users I created with vpopmail in the IMAP server, but there seems to be an authentication problem. Courier IMAP cannot "see" the users that I created with vpopmail. When I try to login to the IMAP server i get:
Escape character is '^]'.* OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION STARTTLS] Courier-IMAP ready. Copyright 1998-2005 Double Precision, Inc.  See COPYING for distribution information.
. login [EMAIL PROTECTED] 12345678. NO Login failed.I've changed the authmodulelist in the authdaemonrc file to: authmodulelist="authvchkpw"And I've tied this as well:
authmodulelist="authuserdb authpam authpgsql authldap authmysql authcustom authpipe authvchkpw"Doesent change anything. The maillog says this:Feb 21 16:54:41 localhost authdaemond: Installing libauthuserdb
Feb 21 16:54:41 localhost authdaemond: file not foundFeb 21 16:54:41 localhost authdaemond: Installing libauthpamFeb 21 16:54:41 localhost authdaemond: Installation complete: authpamFeb 21 16:54:41 localhost authdaemond: Installing libauthpgsql
Feb 21 16:54:41 localhost authdaemond: file not foundFeb 21 16:54:41 localhost authdaemond: Installing libauthldapFeb 21 16:54:41 localhost authdaemond: file not foundFeb 21 16:54:41 localhost authdaemond: Installing libauthmysql
Feb 21 16:54:41 localhost authdaemond: file not foundFeb 21 16:54:41 localhost authdaemond: Installing libauthcustomFeb 21 16:54:41 localhost authdaemond: Installation complete: authcustomFeb 21 16:54:41 localhost authdaemond: Installing libauthpipe
Feb 21 16:54:41 localhost authdaemond: file not foundFeb 21 16:54:41 localhost authdaemond: Installing libauthvchkpwFeb 21 16:54:41 localhost authdaemond: file not foundFeb 21 16:55:03 localhost imapd: Connection, ip=[:::
127.0.0.1]Feb 21 16:55:03 localhost imapd: LOGIN FAILED, [EMAIL PROTECTED], ip=[:::
127.0.0.1]Feb 21 16:55:08 localhost imapd: LOGOUT, ip=[:::
127.0.0.1]Everytime I try to login to the server.  Is there any one here that might have a solution? It would be appreciated.Yours,Thomas



Re: [vchkpw] Integration of vpopmail+maildrop+chkuser

2006-02-21 Thread Tonix
> On 2/20/06, Tonix <[EMAIL PROTECTED]> wrote:
>> > On 2/18/06, Rick Macdougall <[EMAIL PROTECTED]> wrote:
>> >> Muhammad Naeem wrote:
>> >> > Now there is another issue and that is lets suppose that i have a
>> >> user whose mailbox size is 1MB and if i send a test email to that
>> account containing an attachment of 1.5MB means more than the size
>> of its mailbox the mail gets deferred and stuck in the qmail queue
>> and qmail logs it:
>> >> >
>> >> > 2006-02-18 11:15:00.290014500 delivery 7: deferral:
>> >> > user_is_over_quota//usr/local/bin/maildrop:_Unable_to_open_mailbox./
>> >> >
>> >> > what i want is to return this oversize email to sender
>> immediately
>> >> with a message like "user is over quota"
>> >> >
>> >> > I don't know how to implement this, i will be obliged if you can
>> >> help me out in this regard.
>> >> >
>> >>
>> >> Hi,
>> >>
>> >> You can use the CHKUSER_MBXQUOTA variable. Example below
>> >>
>> >> :allow,QMAILQUEUE="/var/qmail/bin/simscan",CHKUSER_MBXQUOTA="97"
>> >>
>> >>
>> >> Regards,
>> >>
>> >> Rick
>> >>
>> >
>> > Yes i am already using this line in my /etc/tcp.smtp but the mail is
>> not returned immediately to the sender infact it gets queued and
>> qmail keeps on trying to deliver it in the mailbox until the
>> queuelifetime expired.I want to send it back immediately. My
>> /etc/tcp.smtp line is:
>> >
>> > :allow,QMAILQUEUE="/var/qmail/bin/qmail-queue",CHKUSER_MBXQUOTA="95"
>> >
>> > I am using CHKUSER_MBXQUOTA="95" the mail will be returned to the
>> sender during smtp negotiation if the user's mailbox is already 95%
>> full and if lets say the mailbox is 70% full and the total mailbox
>> size is 1MB and i send a mail of size 500KB to that mailbox the mail
>> will be queued and returned to the sender after the expiry of
>> > queuelifetime.
>> >
>> > I hope i have clear the situation.
>>
>> Yes. As the patch is now, no way.
>>
>> Problem is to handle a big message when there are more recipients.
>> When there is one recipient only, I could set the acceptable message
>> size to the remaining user space. But what to do when there are more
>> recipients?
>>
>> I cannot refuse a message for one user if the other has enough space.
>>
>> Any comment is welcome.
>>
>> Tonino
>>
>> >
>> > Any help will be greatly appreciated.
>> >
>> > Regards
>> > Naeem
>>
>>
>>
>> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
>>  La tua posta elettronica senza virus su UfficioPostale.IT
>>Your virus free electronic mail on UfficioPostale.IT
>>
>>
>>
>
> I am not talking about the multiple recipients, what is the workable
> option for a single user.
>
> How to set the acceptable message size to the remaining user space, does
> it need to be worked out or is there any patch already available
> somewhere.
>

There is no workable way, within chkuser. I'll study how to integrate
this, but I cannot promise any date.

Ciao,

Tonino

> Thanks for your help.
>
> Regards
> Naeem



-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
 La tua posta elettronica senza virus su UfficioPostale.IT
   Your virus free electronic mail on UfficioPostale.IT




[vchkpw] Double mails problem

2006-02-21 Thread Halid Faith



Hello
I patched qmail-tap.patch to get a copy of outgoing 
mails for my domain.
it works but I am getting two mails for applied 
domain is same with destination mailaddress.
Do I have to put different mail address from the 
domain for not to be get double mails?
 
Thanks