Control: tags -1 moreinfo

Hi,

On 21:55 Fri 27 May     , zulu wrote:
> Package: dovecot-imapd
> Version: 1:2.2.24-1
> Severity: normal
> 
> Dear Maintainer,
> 
> At machine startup, dovecot-imap fail telling:
> May 27 21:37:51 cop21 dovecot[502]: Error: bind(192.168.0.36, 143) failed: 
> Cannot assign requested address
> May 27 21:37:51 cop21 dovecot[502]: Error: service(imap-login): 
> listen(192.168.0.36, 143) failed: Cannot assign requested address
> May 27 21:37:51 cop21 dovecot[502]: Error: bind(192.168.0.36, 993) failed: 
> Cannot assign requested address
> May 27 21:37:51 cop21 dovecot[502]: Error: service(imap-login): 
> listen(192.168.0.36, 993) failed: Cannot assign requested address
> May 27 21:37:51 cop21 dovecot[502]: Fatal: Failed to start listeners
> May 27 21:37:51 cop21 dovecot[502]: master: Error: bind(192.168.0.36, 143) 
> failed: Cannot assign requested address
> May 27 21:37:51 cop21 dovecot[502]: master: Error: service(imap-login): 
> listen(192.168.0.36, 143) failed: Cannot assign requested address
> May 27 21:37:51 cop21 dovecot[502]: master: Error: bind(192.168.0.36, 993) 
> failed: Cannot assign requested address
> May 27 21:37:51 cop21 dovecot[502]: master: Error: service(imap-login): 
> listen(192.168.0.36, 993) failed: Cannot assign requested address
> May 27 21:37:51 cop21 dovecot[502]: master: Fatal: Failed to start listeners
> May 27 21:37:51 cop21 systemd[1]: dovecot.service: Control process exited, 
> code=exited status=89
> May 27 21:37:51 cop21 systemd[1]: Failed to start Dovecot IMAP/POP3 email 
> server.
> May 27 21:37:51 cop21 systemd[1]: dovecot.service: Unit entered failed state.
> May 27 21:37:51 cop21 systemd[1]: dovecot.service: Failed with result 
> 'exit-code'.
> 
> manually restarting the service after boot works
> I suppose this is related to systemd not starting the network interface 
> before starting
> the dovecot-imap daemon?

Indeed, it looks like 192.168.0.36 has not been assigned (yet?) to the 
interface. Do you use /etc/network/interfaces or systemd-networkd for 
interface configuration? Can you provide the contents of 
/etc/network/interfaces or /etc/systemd/network/* respectively? Also, 
can you please provide the output of

 systemd-analyze dot dovecot.service network.target

As a workaround you could either use non-local binds (echo 1 > 
/proc/sys/net/ipv4/ip_nonlocal_bind) or bind to the wildcard address 
(0.0.0.0) if that's okay with your setup.

Regards,
Apollon

Reply via email to