AlmaLinux 9 up-to-date.
I’m installing some Roundcube plugins to create filters and blacklists.
I took a look at How To Enable Sieve Mail Filtering, including GUI rule editing but changing some things.
dnf install dovecot-pigeonhole
At Roundcube config file added managesieve:
$config['plugins'] = ['managesieve', 'acl', 'additional_message_headers', ...
$config['managesieve_host'] = 'localhost';
At 20-lmtp.conf I added (by default lmtp is the protocol available in Webmin, not lda)
mail_plugins = $mail_plugins sieve
At /etc/dovecot/conf.d/20-managesieve.conf I uncommented Protocols
protocols = $protocols sieve
and added
service managesieve-login {
inet_listener sieve {
port = 4190
}
}
At 90-sieve.conf I have the default setting
plugin {
sieve = file:~/sieve;active=~/.dovecot.sieve
}
From that tutorial
*Add two lines to the end of /etc/procmailrc (you can do this in the webmin GUI if you like)
:0 w
/usr/lib/dovecot/deliver
I added these 2 lines to /etc/procmailrc but libexec instead of lib directory.
csf has port 4190 enabled.
- Roundcube filter I’ve create is not working.
After restarting Dovecot I got
dovecot[7243]: master: Error: service(submission-login): listen(*, 587) failed: Address already in use
So I went to /etc/dovecot/dovecot.conf and delete “sieve” from
protocols = imap pop3 lmtp submission sieve
Start Dovecot okay but Postfix:
postfix/master[3390]: fatal: bind 0.0.0.0 port 587: Address already in use
Apr 07 15:47:45 … postfix/master[3389]: fatal: daemon initialization failure
Deleting submission protocol too both services started good.
Adding again submission, restarting Dovecot I got:
dovecot[173670]: master: Error: service(submission-login): listen(*, 587) failed: Address already in use
netstat -lnp | grep 587
tcp 0 0 0.0.0.0:587 0.0.0.0:* LISTEN 48765/master
tcp6 0 0 :::587 :::* LISTEN 48765/master
At this time I have all 5 protocols at dovecot conf and both services on but if I restart Dovecot (or reboot) I enter in port 587 issue again.
How did I got it when I couldn’t get Dovecot On?
I went to Webmin → Servers → Dovecot → Networking and Protocols and from Serve mail Protocols I only selected IMAP, POP3 and LMTP. Save and apply changes.
Then I repeated the operation including submission. Save and apply changes. Both services On also checked in maillog.
And finally added sieve as the fifth protocol. Save and apply changes. Both services On also checked in maillog.
I don’t know where is the magic, but it is circumstantial. Restarting the port already in use comes again.
- I don’t know how to fix that.
Thank you