[Dovecot] Dynamic server address
Hi!
My mail server (ubuntu breezey badger) is connected by ADSL and has a dynamic address. I have noticed that, every day after the IP address changes, dovecot is no longer reachable from the net. Iguess this is because dovecot doesn't register this change and continues to listen on a non-existing interface/address.
I'm trying to solve this problem by putting a script in /etc/ppp/ip-up/ dovecot
#!/bin/sh # By kresho # dovecot ip-up script (/etc/ppp/ip-up.d/dovecot) #
/etc/init.d/dovecot restart
So far, it seems to work.
I doubt I'm the first one to come across this problem, yet I couldn't find anything similar on google.
Any comments?
kresho
Kresimir Tonkovic wrote:
My mail server (ubuntu breezey badger) is connected by ADSL and has a dynamic address. I have noticed that, every day after the IP address changes, dovecot is no longer reachable from the net. Iguess this is because dovecot doesn't register this change and continues to listen on a non-existing interface/address.
Any comments? Just make it listen on 0.0.0.0?
johannes
On 8/8/06, Johannes Berg <johannes@sipsolutions.net> wrote:
Kresimir Tonkovic wrote:
My mail server (ubuntu breezey badger) is connected by ADSL and has a dynamic address. I have noticed that, every day after the IP address changes, dovecot is no longer reachable from the net. Iguess this is because dovecot doesn't register this change and continues to listen on a non-existing interface/address.
Any comments? Just make it listen on 0.0.0.0?
johannes
Not an option. I want local users to connect by pop3 and remote by pop3s.
-- kresho
Kresimir Tonkovic wrote:
On 8/8/06, *Johannes Berg* <johannes@sipsolutions.net <mailto:johannes@sipsolutions.net>> wrote:
Kresimir Tonkovic wrote: > My mail server (ubuntu breezey badger) is connected by ADSL and has a > dynamic address. I have noticed that, every day after the IP address > changes, dovecot is no longer reachable from the net. Iguess this is > because dovecot doesn't register this change and continues to listen > on a non-existing interface/address. > Any comments? Just make it listen on 0.0.0.0 <http://0.0.0.0>? johannes
Not an option. I want local users to connect by pop3 and remote by pop3s.
You could have dovecot listen on 0.0.0.0 and then use an IPTABLES rule to drop anything that's not on your local subnet to 110.
Rick
-- kresho
participants (3)
-
Johannes Berg
-
Kresimir Tonkovic
-
Rick Romero