Service: Mail Delivery Agent (Dovecot) Stop  [SOLVED]

Have you discovered a bug? Tell us about it.
Post Reply
Tony20
Posts: 45
Joined: Tue 7. Apr 2020, 19:21

Service: Mail Delivery Agent (Dovecot) Stop

Post by Tony20 »

Image

I'm sure the cause of the problem is within KeyHelp
(Problems not related to KeyHelp belong in the Offtopic forum)


Server operating system + version
(e.g. Ubuntu 20.04)
Ubuntu 22.04
5.15.0-60-generic

Server virtualization technology used
(e.g. none, OpenVZ, KVM, XEN, etc.)
Dedicated Server

KeyHelp version + build number
(e.g. 22.0 - Build 2366)
23.0 (Build 2921)
Dovecot 2.3.16

Problem description / error messages

After Rebooting the server Mail Delivery Agent (Dovecot) service Stop.
When I click restart I get the following error message.
Sorry, the operation could not be performed correctly. (Permissions correct?)
Expected result


Actual result


Steps to reproduce


Additional information
(e.g. recent changes to the server, excerpts from log files (/var/log/*, /var/log/keyhelp/php-error.log, etc.))
I had Disable IPv6 on Ubuntu via GRUB Boot Loader.
GRUB_CMDLINE_LINUX="ipv6.disable=1"
User avatar
24unix
Posts: 1560
Joined: Sun 21. Jun 2020, 17:16
Location: Kollmar
Contact:

Re: Service: Mail Delivery Agent (Dovecot) Stop

Post by 24unix »

What gives

Code: Select all

systemctl status dovecot.service
What

Code: Select all

grep dove /var/log/mail.info|tail -30
Tony20 wrote: Sat 18. Feb 2023, 14:49 I had Disable IPv6 on Ubuntu via GRUB Boot Loader.
GRUB_CMDLINE_LINUX="ipv6.disable=1"
Why?
mfg Micha
--
If Bill Gates had a nickel for every time Windows crashed …
… oh wait, he does.
Tony20
Posts: 45
Joined: Tue 7. Apr 2020, 19:21

Re: Service: Mail Delivery Agent (Dovecot) Stop

Post by Tony20 »

24unix wrote: Sat 18. Feb 2023, 15:00 What gives

Code: Select all

systemctl status dovecot.service
root@panel:~# systemctl status dovecot.service
× dovecot.service - Dovecot IMAP/POP3 email server
Loaded: loaded (/lib/systemd/system/dovecot.service; enabled; vendor prese>
Active: failed (Result: exit-code) since Sat 2023-02-18 14:22:20 CET; 2h 2>
Docs: man:dovecot(1)
https://doc.dovecot.org/
Process: 19813 ExecStart=/usr/sbin/dovecot -F (code=exited, status=89)
Main PID: 19813 (code=exited, status=89)
CPU: 21ms

Feb 18 14:22:20 panel.x.com dovecot[19813]: master: Error: service(imap-lo>
Feb 18 14:22:20 panel.x.com dovecot[19813]: Error: socket() failed: Addres>
Feb 18 14:22:20 panel.x.com dovecot[19813]: Error: service(imap-login): li>
Feb 18 14:22:20 panel.x.com dovecot[19813]: master: Error: socket() failed>
Feb 18 14:22:20 panel.x.com dovecot[19813]: master: Error: service(imap-lo>
Feb 18 14:22:20 panel.x.com dovecot[19813]: Fatal: Failed to start listene>
Feb 18 14:22:20 panel.x.com dovecot[19813]: master: Fatal: Failed to start>
Feb 18 14:22:20 panel.x.com systemd[1]: dovecot.service: Main process exit>
Feb 18 14:22:20 panel.x.com systemd[1]: dovecot.service: Failed with resul>
Feb 18 14:22:20 panel.x.com systemd[1]: Failed to start Dovecot IMAP/POP3 >
lines 1-19/19 (END)...skipping...
× dovecot.service - Dovecot IMAP/POP3 email server
Loaded: loaded (/lib/systemd/system/dovecot.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sat 2023-02-18 14:22:20 CET; 2h 27min ago
Docs: man:dovecot(1)
https://doc.dovecot.org/
Process: 19813 ExecStart=/usr/sbin/dovecot -F (code=exited, status=89)
Main PID: 19813 (code=exited, status=89)
CPU: 21ms

Feb 18 14:22:20 panel.x.com dovecot[19813]: master: Error: service(imap-login): listen([::], 143) failed: Address family not supported by protocol
Feb 18 14:22:20 panel.x.com dovecot[19813]: Error: socket() failed: Address family not supported by protocol
Feb 18 14:22:20 panel.x.com dovecot[19813]: Error: service(imap-login): listen([::], 993) failed: Address family not supported by protocol
Feb 18 14:22:20 panel.x.com dovecot[19813]: master: Error: socket() failed: Address family not supported by protocol
Feb 18 14:22:20 panel.x.com dovecot[19813]: master: Error: service(imap-login): listen([::], 993) failed: Address family not supported by protocol
Feb 18 14:22:20 panel.x.com dovecot[19813]: Fatal: Failed to start listeners
Feb 18 14:22:20 panel.x.com dovecot[19813]: master: Fatal: Failed to start listeners
Feb 18 14:22:20 panel.x.com systemd[1]: dovecot.service: Main process exited, code=exited, status=89/n/a
Feb 18 14:22:20 panel.x.com systemd[1]: dovecot.service: Failed with result 'exit-code'.
Feb 18 14:22:20 panel.x.com systemd[1]: Failed to start Dovecot IMAP/POP3 email server.

Tony20 wrote: Sat 18. Feb 2023, 14:49 I had Disable IPv6 on Ubuntu via GRUB Boot Loader.
GRUB_CMDLINE_LINUX="ipv6.disable=1"
Why?
It look it's the disabling of the IPv6. the cause.
I did it, because I don't need the IPv6, I just like the IPv4.
Last edited by Tony20 on Sat 18. Feb 2023, 16:54, edited 1 time in total.
User avatar
24unix
Posts: 1560
Joined: Sun 21. Jun 2020, 17:16
Location: Kollmar
Contact:

Re: Service: Mail Delivery Agent (Dovecot) Stop

Post by 24unix »

Tony20 wrote: Sat 18. Feb 2023, 16:40 I did it, because I don't need the IPv6, I just like the IPv4.
You are ignoring the future.

You output is truncated. Make the Terminal larger.

"Error: socket() failed: Address" could be "is already in use".

What gives

Code: Select all

netstat -luntep|grep 143

Try

Code: Select all

dovecot -F
to get a more verbose output.
mfg Micha
--
If Bill Gates had a nickel for every time Windows crashed …
… oh wait, he does.
Tony20
Posts: 45
Joined: Tue 7. Apr 2020, 19:21

Re: Service: Mail Delivery Agent (Dovecot) Stop

Post by Tony20 »

24unix wrote: Sat 18. Feb 2023, 16:51
Tony20 wrote: Sat 18. Feb 2023, 16:40 I did it, because I don't need the IPv6, I just like the IPv4.
You are ignoring the future.

You output is truncated. Make the Terminal larger.

"Error: socket() failed: Address" could be "is already in use".

What gives

Code: Select all

netstat -luntep|grep 143
I get nothing with this

Try

Code: Select all

dovecot -F
to get a more verbose output.
root@panel:~# dovecot -F
Error: socket() failed: Address family not supported by protocol
Error: service(managesieve-login): listen([::], 4190) failed: Address family not supported by protocol
Error: socket() failed: Address family not supported by protocol
Error: service(pop3-login): listen([::], 110) failed: Address family not support ed by protocol
Error: socket() failed: Address family not supported by protocol
Error: service(pop3-login): listen([::], 995) failed: Address family not support ed by protocol
Error: socket() failed: Address family not supported by protocol
Error: service(imap-login): listen([::], 143) failed: Address family not support ed by protocol
Error: socket() failed: Address family not supported by protocol
Error: service(imap-login): listen([::], 993) failed: Address family not support ed by protocol
Fatal: Failed to start listeners
User avatar
24unix
Posts: 1560
Joined: Sun 21. Jun 2020, 17:16
Location: Kollmar
Contact:

Re: Service: Mail Delivery Agent (Dovecot) Stop  [SOLVED]

Post by 24unix »

Dovecot tries to bind to an IPv6 address, which it cannot, as you've disabled it.

Either enable IP6 (better) or disable IPv6 in Dovecot.
mfg Micha
--
If Bill Gates had a nickel for every time Windows crashed …
… oh wait, he does.
Tony20
Posts: 45
Joined: Tue 7. Apr 2020, 19:21

Re: Service: Mail Delivery Agent (Dovecot) Stop

Post by Tony20 »

24unix wrote: Sat 18. Feb 2023, 17:07 Dovecot tries to bind to an IPv6 address, which it cannot, as you've disabled it.

Either enable IP6 (better) or disable IPv6 in Dovecot.
Ok, I am going to try to enable IPv6, but this is what I get for Gateway IPv6: "fe80::1/128" in my provider panel., is this correct?
IPv6 is hard to config!
User avatar
24unix
Posts: 1560
Joined: Sun 21. Jun 2020, 17:16
Location: Kollmar
Contact:

Re: Service: Mail Delivery Agent (Dovecot) Stop

Post by 24unix »

Tony20 wrote: Sat 18. Feb 2023, 17:20
24unix wrote: Sat 18. Feb 2023, 17:07 Dovecot tries to bind to an IPv6 address, which it cannot, as you've disabled it.

Either enable IP6 (better) or disable IPv6 in Dovecot.
Ok, I am going to try to enable IPv6, but this is what I get for Gateway IPv6: "fe80::1/128" in my provider panel., is this correct?
That is no problem, link local for uplink is common.

https://labs.ripe.net/author/philip_hom ... addresses/
Tony20 wrote: Sat 18. Feb 2023, 17:20
IPv6 is hard to config!
No, its harder to understand than IPv4, but easier to handle.
mfg Micha
--
If Bill Gates had a nickel for every time Windows crashed …
… oh wait, he does.
Tony20
Posts: 45
Joined: Tue 7. Apr 2020, 19:21

Re: Service: Mail Delivery Agent (Dovecot) Stop

Post by Tony20 »

24unix , Thank you very much, I appreciate your help!
User avatar
24unix
Posts: 1560
Joined: Sun 21. Jun 2020, 17:16
Location: Kollmar
Contact:

Re: Service: Mail Delivery Agent (Dovecot) Stop

Post by 24unix »

Tony20 wrote: Sat 18. Feb 2023, 17:37 24unix , Thank you very much, I appreciate your help!
You're welcome.
mfg Micha
--
If Bill Gates had a nickel for every time Windows crashed …
… oh wait, he does.
Post Reply