feat(PROJ-28): FQDN + smtp_out Konfiguration

- config: server.fqdn, SMTPOutConfig, smtp_out Abschnitt
- config: IMAPServerConfig.FQDN (runtime-gesetzt)
- main: FQDN-Fallback für SMTP EHLO, FQDN an IMAP-Server
- imapserver: Greeting nutzt server.fqdn (RFC 3501)
- smtpd/imapserver Modulversion 1.3

fix: Superadmin sieht keine Suche/IMAP/POP3 Nav-Links

- Navbar: Suche, IMAP Import, POP3 Import nur für non-superadmin
- Superadmin landet direkt auf Admin-Dashboard

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
sysops
2026-03-31 09:51:41 +02:00
parent 8d0f685fc9
commit 27040ffcb1
5 changed files with 53 additions and 25 deletions
+6 -2
View File
@@ -213,8 +213,12 @@ func (s *Server) handleConnection(conn net.Conn) {
state: stateNotAuth,
}
// Send greeting
sess.writeResponse("* OK archivmail IMAP4rev1 Read-Only Archive Server ready")
// Send greeting — use FQDN if configured (RFC 3501 §7.1)
fqdn := s.cfg.FQDN
if fqdn == "" {
fqdn = "archivmail"
}
sess.writeResponse("* OK " + fqdn + " IMAP4rev1 Read-Only Archive ready")
for {
// Reset idle timeout