Francis P. Ling writes:

> Sam Varshavchik writes: 
> 
>> Francis P. Ling writes:   
>> 
>>> Hi all,   
>>> 
>>> 
>>> I know this more that Courier List, but bear with me for a while:    
>>> 
>>> 
>>> How to deny login from some IPs, just like the tcpserver rules? 
>>> Currently I start the courier-imap from:    
>>> 
>>> /usr/lib/courier-imap/libexec/imapd.rc start    
>>> 
>>> 
>>> Any help is appreciated.
>> 
>> Use a firewall: ipchains, iptables...   
>> 
>> There are some options to couriertcpd that can be used to do this, but 
>> there are no supporting scripts to build an access list.
> 
> I've dig thru the manpages for couriertcpd and found it rather 
> complicated. Has anyone got the tcpserver to work for IMAP? If yes, kindly 
> share the startup script. Mine keep getting errors. This is the line:  
> 
> 
> env - PATH="$PATH:/var/qmail/bin:/usr/local/bin" \
> tcpserver -u 123 -g 456 -H -R -x /etc/tcp.imap.cdb 0 imap2 \
> /usr/lib/courier-imap/libexec/imapd.rc start &  
> 
> The uid 123 is the vpopmail's and gid 456 is vchkpw's. This script won't 
> start well. Got some error:  
> 
> 
> /usr/lib/courier-imap/libexec/imapd.rc: /usr/lib/courier-imap/etc/imapd: 
> Permission denied  
> 
>  
> 
> Any idea?

If I start the tcpserver without the -u & -g flags, I get this: 


bind: Address already in use
ll_daemon_start: Resource temporarily unavailable 


Any idea, anyone? 


Thanks.
 -----------------------------------------------------------
Any  opinions,  explicit  or  implied,  are solely those of
the author and do not necessarily represent those of PANSAR
 -----------------------------------------------------------

Reply via email to