Re: [Solved] How to configure dovecot imap to listen on multiple ports?

2014-09-26 Thread Rick Thomas

I'm running Debian Wheezy with Dovecot version 2.1.7.   The following works for 
me:

- /etc/dovecot/local.conf ---
service imap-login {
  inet_listener imap {
#port = 143
  }
  inet_listener imaps {
port = 7993
ssl = yes
  }
  inet_listener imaps2 {
port = 993
ssl = yes
  }

  # Number of connections to handle before starting a new process. Typically
  # the only useful values are 0 (unlimited) or 1. 1 is more secure, but 0
  # is faster. 
  #service_count = 1

  # Number of processes to always keep waiting for more connections.
  #process_min_avail = 0

  # If you set service_count=0, you probably need to grow this.
  #vsz_limit = $default_vsz_limit
}
- /etc/dovecot/local.conf ---

Thanks for all the help!

Rick

Re: How to configure dovecot imap to listen on multiple ports?

2014-08-25 Thread Rick Thomas

OK, project for today: Give this a try…

Rick

On Aug 25, 2014, at 5:34 AM, Gedalya  wrote:

> On 08/24/2014 05:26 PM, Rick Thomas wrote:
>> Can I have multiple “service” clauses for the same service?  Each with a 
>> different port?
>> Or multiple “inet_listener imap”/“inet_listener imaps” clauses?
>> Or should I have something like this?
>> port = 143,30143
> 
> This works:
> 
> service imap-login {
>  inet_listener imap {
>port = 143
>  }
>  inet_listener imap2 {
>port = 144
>  }
>  #inet_listener imaps {
>  #  port = 993
>  #  ssl = yes
>  #}
> }
> 


Re: How to configure dovecot imap to listen on multiple ports?

2014-08-25 Thread Rick Thomas

Thanks! Gedalya and Jochen!

I hadn’t realized I could do that with iptables.  I’ll read-up on the 
documentation.

Rick

On Aug 25, 2014, at 5:38 AM, Gedalya  wrote:

> On 08/25/2014 08:26 AM, Jochen Bern wrote:
>> Well, if offering the*exact same*  functionality on a second port is all
>> that needs to be done, having the server's host firewall (iptables?)
>> duplicate the NAT on your border firewall for internal accesses should
>> do just fine; no need to majick it into the dovecot config (which opens
>> the possibility of functional differences being introduced unintentionally).
>> 
>> Assuming Red Hat or similar with no conflicting iptables rules (yet),
>> 
>> # iptables -t nat -A PREROUTING -p tcp --dport 30xxx -j DNAT --to :143
>> # iptables -t nat -A PREROUTING -p tcp --dport 30yyy -j DNAT --to :993
>> # service iptables save
>> 
>> Regards,
> Since you're redirecting to a port on the same host, the following is perhaps 
> more correct:
> 
> iptables -t nat -A PREROUTING -p tcp --dport 30143 -j REDIRECT --to-port 143
> 


Re: How to configure dovecot imap to listen on multiple ports?

2014-08-24 Thread Rick Thomas

On Aug 24, 2014, at 1:59 PM, Reindl Harald  wrote:

> 
> 
> Am 24.08.2014 um 22:45 schrieb Rick Thomas:
>> I need my dovecot imap server to listen on ports 143, 993, and also 30143 
>> and 30993.
> 
> no idea what that should gain

I have a dovecot imap server inside a NAT/firewall.

The NAT translates calls to port 30143 and 30993 (not the real ports, but just 
for example) coming from outside  to 143 and 993 inside.  So machines outside 
the NAT that want to talk to the server use ports 30xxx and machines inside the 
NAT use the regular ports.

Which works fine for machines that are at fixed locations.  But a laptop that’s 
sometimes inside, sometimes outside doesn’t have a fixed port to connect to.  
For those cases, I’d like the dovecot server to recognize the outside ports on 
the inside.


> 
>> What syntax do I use in (I presume) the /etc/dovecot/conf.d/10-master.conf 
>> file to do this?
> 
> but try to duplicate these settings
> 
> (no i don't use "conf.d" directorys anywhere for good reasons)
> 
> # configure imap-proxy
> service imap-login {
>  inet_listener imap {
>address= *
>port   = 143
>  }
>  inet_listener imaps {
>address= *
>port   = 993
>  }
>  vsz_limit= 64M
>  service_count= 1
>  process_min_avail= 0
>  process_limit= 100
> }
> 

Can I have multiple “service” clauses for the same service?  Each with a 
different port?
Or multiple “inet_listener imap”/“inet_listener imaps” clauses?
Or should I have something like this?
port = 143,30143


How to configure dovecot imap to listen on multiple ports?

2014-08-24 Thread Rick Thomas

I need my dovecot imap server to listen on ports 143, 993, and also 30143 and 
30993.

What syntax do I use in (I presume) the /etc/dovecot/conf.d/10-master.conf file 
to do this?


Thanks!


Rick

Re: [Dovecot] listen to imap*s* on multiple ports?

2010-01-17 Thread Rick Thomas

Thanks for the pointer!

That worked fine.

Rick


On Jan 17, 2010, at 9:32 AM, Pascal Volk wrote:


A more recent version for Lenny is available in
the lenny-backports repository:
http://packages.debian.org/source/lenny-backports/dovecot




Re: [Dovecot] listen to imap*s* on multiple ports?

2010-01-16 Thread Rick Thomas

Pascal Volk wrote:

On 01/16/2010 03:36 AM Frank Cusack wrote:
  

How can I listen to ssl-wrapped IMAP on multiple ports? …



http://dovecot.org/list/dovecot/2010-January/045874.html
Please don't forget to substitute listen with ssl_listen


Regards,
Pascal
  

Hmmm... This doesn't work for me.  My dovecot.conf has

protocol imap {

# rbt - use conventional port for imap -- only used on local net
 listen = *:143
# rbt - use modified port for imaps -- for those logging in from afar
 ssl_listen = *:7993
 ssl_listen = *:993

}

I get:

   # invoke-rc.d dovecot restart
   Restarting IMAP/POP3 mail server: dovecot
   Fatal: ssl_listen: Can't resolve address *:7993 , *: Name or service 
not known

failed!

This is on a Debian Lenny system.  The version of Dovecot installed is 
"1:1.0.15-2.3+lenny1"


Do I need a later version?


Rick


Re: [Dovecot] How to configure dovecot to listen on multiple separate port numbers

2010-01-13 Thread Rick Thomas


On Jan 12, 2010, at 9:18 AM, Timo Sirainen wrote:


On 4.1.2010, at 22.26, Rick Thomas wrote:



Is there any way to tell dovecot to listen for imap/imaps requests  
on all interfaces on multiple separate ports?


For example, can I do this:


 protocol imap {
   listen = *:10143
   listen = *:143


listen = *:10143, *:143


Thank you, Timo!  That's exactly what I was looking for.

Enjoy!

Rick



Re: [Dovecot] How to configure dovecot to listen on multiple separate port numbers

2010-01-11 Thread Rick Thomas

I sent this a while ago, but got no answers.  Maybe it got lost?

Thanks!

Rick

Rick Thomas wrote:


Is there any way to tell dovecot to listen for imap/imaps requests on 
all interfaces on multiple separate ports?


For example, can I do this:


   protocol imap {
 listen = *:10143
 listen = *:143
 ssl_listen = *:10993
 ssl_listen = *:993
 ...
   }


Thanks!

Rick





[Dovecot] How to configure dovecot to listen on multiple separate port numbers

2010-01-04 Thread Rick Thomas


Is there any way to tell dovecot to listen for imap/imaps requests on  
all interfaces on multiple separate ports?


For example, can I do this:


   protocol imap {
 listen = *:10143
 listen = *:143
 ssl_listen = *:10993
 ssl_listen = *:993
 ...
   }


Thanks!

Rick