What Neruna does
Connects to IMAP host:4190 with the IMAP credentials. Neruna writes a marked block into the active script; without one, neruna is created and activated.
vacation :days 1, :addresses = own addresses; period via currentdate.
Server unreachable: the account stays listed with its last state and is checked again hourly.
Requirements
ManageSieve on IMAP host:4190, reachable from the client
STARTTLS with a valid certificate for the host (no login without TLS)
SASL PLAIN with the IMAP credentials
Extension vacation; for a period also date and relational
Sieve active at delivery (Dovecot: sieve plugin in LMTP or LDA)
Dovecot
Packages: dovecot-sieve, dovecot-managesieved. Dovecot 2.3 syntax; differs from 2.4. With LDA, add sieve in 15-lda.conf.
# /etc/dovecot/conf.d/20-managesieve.conf
protocols = $protocols sieve
service managesieve-login {
inet_listener sieve {
address = *
port = 4190
}
}
# /etc/dovecot/conf.d/20-lmtp.conf
protocol lmtp {
mail_plugins = $mail_plugins sieve
}
# /etc/dovecot/conf.d/90-sieve.conf
plugin {
sieve = file:~/sieve;active=~/.dovecot.sieve
}
Some setups (e.g. iRedMail) let ManageSieve listen on 127.0.0.1 only by default – port 4190 is then not reachable from outside. Set address = * in the service managesieve-login block (or the server's public IP).
Restart Dovecot, open 4190/tcp.
Testing
1. Capabilities (no login): expect vacation (date relational for periods) and STARTTLS.
nc mail.example.com 4190
"IMPLEMENTATION" "Dovecot Pigeonhole"
"SIEVE" "fileinto reject envelope … vacation … date relational …"
"STARTTLS"
"VERSION" "1.0"
OK "Dovecot ready."
LOGOUT
Windows, reachability only (expect TcpTestSucceeded : True):
Test-NetConnection mail.example.com -Port 4190
2. Certificate
openssl s_client -connect mail.example.com:4190 -starttls sieve -servername mail.example.com </dev/null | grep "Verify return code"
Verify return code: 0 (ok)
3. Login and scripts
sieve-connect -s mail.example.com -u anna@example.com --list
4. Function: switch on, send from a foreign address. One reply per sender per day.
Error messages
- “ManageSieve (port 4190) … is not reachable”
- Port blocked, service down, listening on localhost only (see Dovecot) or certificate doesn't match the host. Tests 1–2.
- “Sieve without ‘vacation’”
vacation missing or disabled (sieve_extensions).
- “no encrypted connection (STARTTLS)”
- TLS for ManageSieve missing (Dovecot: same SSL configuration as IMAP).
- “no login with user name and password (PLAIN)”
- PLAIN not offered (
auth_mechanisms = plain login).
- “Login for the out-of-office reply failed”
- IMAP credentials rejected for ManageSieve. Test 3.
- “… cannot limit … to a period”
date or relational missing.
- “The server rejected the out-of-office reply: …”
- The server's reason, e.g. script quota or an unknown extension in the existing script.
- Switched on, but no reply
- Sieve inactive at delivery, test from an own address, sender already answered today, or mailing list.
- Account missing under “Out of office”
- Server never reached or without vacation. Tests 1–3, then restart Neruna.
Microsoft 365 and Outlook.com
Graph mailboxSettings/automaticRepliesSetting, permission MailboxSettings.ReadWrite. Older sign-ins: Settings → Accounts → Edit → “Sign in to Microsoft again”. Admin consent may be required.
Microsoft 365: approving Neruna →