Re: POP/IMAP before SMTP

2006-05-31 Thread Daniel Corbe

Hi All!

I think I've figured out where my problem lies:  in the run script:

#!/bin/sh

HOSTNAME=`hostname -f`
MAXIMAP=`cat /usr/local/qmail/control/concurrencyimap`

exec /usr/local/bin/tcpserver -v -HR -l 0 -c $MAXIMAP 0 imap2 \
/usr/lib/courier-imap/sbin/imaplogin \
/usr/local/qmail/bin/auth_imap -d /usr/local/qmail/bin/pop_before_smtp \
/usr/lib/courier-imap/bin/imapd Maildir 21

Which produces this result:

Connected to localhost.
Escape character is '^]'.
* BYE imaplogin expected exactly two arguments.
Connection closed by foreign host.

I believe that imaplogin is interpreting those spaces as its own
seperate arguments.  I'm looking for suggestions on how to fix this.

Thanks


On 5/29/06, Daniel Corbe [EMAIL PROTECTED] wrote:

Dear Q-Mail LDAP community,

If I am reading auth_mod.c, auth_pop.c and auth_imap.c correctly,
auth_imap and auth_pop both take the -d path_to_auth_program
argument to call an external program that should manipulate your
tcprules files.

This seems to work correctly in auth_pop; however in my enviornment it
does not seem to work correctly in auth_imap.  I seem to be having
difficulty figuring out why and any assistance would be appriciated.

Also, for those of you who need an example/reference script which
shows how to manipulate the tcprules files, please see the attached
perl script.  Will need to be adapted to your enviornment.

Thanks for the help and best regards,

Daniel Corbe





Restricting pop3 / imap access

2006-05-31 Thread Diego Zuaneti Arruda

 Hi all,

  Somebody knows some way to restrict the access of some user only to POP3 
but not IMAP. I thought about something in the attribute it schema as noimap 
would not have access to the IMAP.


  Suggestions?



Thanks.

Diego.



Re: Restricting pop3 / imap access

2006-05-31 Thread Nicolas De Bari Embriz Garcia Rojas
Hi, you can try to use the accountStatus  on the ldiff of the user  
and  LDAP_FILTER (if you use courier-imap)  in conjunction that could  
help


On May 31, 2006, at 10:53 AM, Diego Zuaneti Arruda wrote:


 Hi all,

  Somebody knows some way to restrict the access of some user only  
to POP3 but not IMAP. I thought about something in the attribute it  
schema as noimap would not have access to the IMAP.


  Suggestions?



Thanks.

Diego.