Pop3 protocol activation

VF en dessous.

:uk:/:us: Message template (english)

My YunoHost server

Hardware: Old laptop or computer
YunoHost version: 11.2.5 (stable).
I have access to my server : Through SSH | through the webadmin | direct access via keyboard / screen | …
Are you in a special context, or did you perform some particular tweaking on your YunoHost instance ? : no

Description of my issue

I need to activate pop3 to receive ListMonk bounce email.

When I activate pop3 in the webadmin, I get an error

Script execution failed : /usr/share/yunohost/hooks/conf_regen/25-dovecot

In the log, I can see error about the packet « dovecot-pop3d » and these messages

dovecot[276365]: Fatal: service(pop3) access(/usr/lib/dovecot/pop3) failed: No such file or directory
dovecot[278309]: Fatal: service(pop3-login) access(/usr/lib/dovecot/pop3-login) failed: No such file or directory

Keeping the option enabled in the web administrator, I installed the package manually, created the two folders and restarted the service:

sudo apt-get install dovecot-pop3d
sudo mkdir /usr/lib/dovecot/pop3
sudo mkdir /usr/lib/dovecot/pop3-login
sudo sudo systemctl restart dovecot.service

The service has started, now, I can test it …

Warning: if you disable the option in the web admin interface, the dovecot-pop3d package is uninstalled.

Could the problem come from the 25-dovecot script, which doesn’t install the package or create the folders?

Cyril


:fr: Modèle de message (français)

Mon serveur YunoHost

Matériel: Vieil ordinateur
Version de YunoHost: 11.2.5 (stable)
J’ai accès à mon serveur : En SSH | Par la webadmin | En direct avec un clavier/écran | …
Êtes-vous dans un contexte particulier ou avez-vous effectué des modificiations particulières sur votre instance ? : non

Description du problème

J’ai besoin d’activer Pop3 pour recevoir des e-mails de rebond de ListMonk.

Lorsque j’active Pop3 dans le webadmin, j’obtiens une erreur

Échec de l'exécution du script : /usr/share/yunohost/hooks/conf_regen/25-dovecot

Dans le journal, je vois l’erreur concernant le paquet " dovecot-pop3d " et les messages suivants

dovecot[276365]: Fatal: service(pop3) access(/usr/lib/dovecot/pop3) failed: No such file or directory
dovecot[278309]: Fatal: service(pop3-login) access(/usr/lib/dovecot/pop3-login) failed: No such file or directory

En gardant l’option activée dans l’administrateur web, j’ai installé le paquet manuellement, créé les deux dossiers et redémarré le service :

sudo apt-get install dovecot-pop3d
sudo mkdir /usr/lib/dovecot/pop3
sudo mkdir /usr/lib/dovecot/pop3-login
sudo sudo systemctl restart dovecot.service

Le service a démarré, je peux maintenant le tester …

Attention, si on désactive l’option dans l’interface admin web, le paquet dovecot-pop3d est désintallé.

Est-ce que le problèmepourrait venir du script 25-dovecot qui n’installe pas le paquet et ne créé pas les dossiers ?

Cyril

1 Like

There are still some steps that are missing :

I have to modified /etc/dovecot/dovecot.conf to add

protocols = imap sieve pop3s pop3
protocol pop3 { 
        login_executable = /usr/lib/dovecot/pop3-login
        mail_executable = /usr/lib/dovecot/pop3
 }

give me :

dovecot: config: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:11: ‘pop3s’ protocol is no longer necessary, remove it
dovecot: config: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:95: login_executable has been replaced by service { executable }
dovecot: config: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:96: mail_executable has been replaced by service { executable }

so I change to

protocols = imap sieve pop3
protocol pop3 { 
        mail_plugins = $mail_plugins antispam
 }

(plugin are probably usefull)

and open port 995 (no need for port 110)
# yunohost firewall allow TCP 995

(get it from here : How to enable pop3 in YunoHost?)

Then restart again the service

Now, I can configure thunderbird to use pop3 but, I don’t receive my mail.
And I can see this error in the log :

service(pop3-login): Fatal: execv(/usr/lib/dovecot/pop3-login) failed: Permission denied

I found something on this page : Problème Pop3 Dovecot - Support Debian - debian-fr.org

This is strange, I had to reinstall the packet dovecot-pop3d

sudo apt-get install dovecot-pop3d

And now it’s working (no need to restart the dovecot service)
I can receive my mail in thunderbird with pop3 protocol.

Now I can play with ListMonk, but this is another story.

2 Likes

When I retrieve my mails with pop3 in thunderbird, they don’t appear in the mailbox configured in imap.
It seems that this option needs to be added to /etc/dovecot/dovecot.conf

pop3_no_flag_updates = yes

protocol pop3 { 
        mail_plugins = $mail_plugins antispam
        pop3_no_flag_updates = yes
 }
2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.