Hello to all:

I have been trying to integrate and to stand up dovecot, postfix, mailman3 and 
opendkim.  I have been studying the following:
- 
https://www.frontline.ro/en/blog/how-to-configure-opendkim-with-postfix-on-debian-12-bookworm
- 
https://docs.mailman3.org/projects/mailman/en/latest/src/mailman/docs/mta.html#postfix
- 
https://www.linuxbabe.com/mail-server/build-email-server-from-scratch-debian-postfix-smtp
- https://www.linuxbabe.com/mail-server/install-dovecot-imap-server-debian

This appears to be the best available coaching, but it would take me weeks to 
find the time to follow this post:
- https://pieterhollander.nl/post/mailserver/

I was trying to place the Maildir outside my Debian 12 virtual machine for 
easier backup.  The directory /Debian-12-dovecot-Maildir is setup as NFS share 
on my NAS.  I can orchestrate a daily backup or an rclone of that to OneDrive 
or some other cloud target via my NAS.

I have these errors:

Apr 02 11:17:01 shackleton12 postfix/local[795238]: CA26A2D23: passing 
<mail...@systemdatabase.ca> to transport=lmtp
Apr 02 11:17:01 shackleton12 postfix/local[795238]: warning: connect #1 to 
subsystem private/lmtp: Connection refused

Apr 02 11:07:00 shackleton12 systemd[1]: Starting dovecot.service - Dovecot 
IMAP/POP3 email server...
Apr 02 11:07:00 shackleton12 dovecot[789615]: Error: service(lmtp): Socket 
already exists: /var/spool/postfix/private/dovecot-lmtp
Apr 02 11:07:00 shackleton12 dovecot[789615]: master: Error: service(lmtp): 
Socket already exists: /var/spool/postfix/private/dovecot-lmtp
Apr 02 11:07:00 shackleton12 dovecot[789615]: Fatal: Failed to start listeners
Apr 02 11:07:00 shackleton12 dovecot[789615]: master: Fatal: Failed to start 
listeners
Apr 02 11:07:00 shackleton12 systemd[1]: dovecot.service: Main process exited, 
code=exited, status=89/n/a
Apr 02 11:07:00 shackleton12 systemd[1]: dovecot.service: Failed with result 
'exit-code'.
Apr 02 11:07:00 shackleton12 systemd[1]: Failed to start dovecot.service - 
Dovecot IMAP/POP3 email server.

postconf -n
doveconf -n

postconf -n

alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
compatibility_level = 3.6
inet_protocols = ipv4
local_recipient_maps = hash:/opt/mailman/mm/var/data/postfix_lmtp
mailbox_size_limit = 0
mailbox_transport = lmtp:unix:private/dovecot-lmtp
masquerade_domains = systemdatabase.ca
milter_default_action = accept
milter_protocol = 2
mydestination = $myhostname, systemdatabase.ca, localhost.systemdatabase.ca, 
localhost, systemdatabase.homelinux.com
mydomain = systemdatabase.ca
myhostname = systemdatabase.ca
mynetworks = 127.0.0.0/8
myorigin = systemdatabase.ca
non_smtpd_milters = $smtpd_milters
owner_request_special = no
proxy_interfaces = 192.168.1.8
readme_directory = no
recipient_delimiter = +
relay_domains = hash:/opt/mailman/mm/var/data/postfix_domains
relayhost = [smtp.bellnet.ca]:25
smtp_tls_loglevel = 1
smtp_tls_mandatory_protocols = !SSLv2, !SSLv3, !TLSv1, !TLSv1.1
smtp_tls_protocols = !SSLv2, !SSLv3, !TLSv1, !TLSv1.1
smtp_tls_security_level = may
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
smtpd_milters = inet:localhost:8891
smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated 
reject_unauth_destination permit_inet_interfaces
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated 
defer_unauth_destination permit_inet_interfaces
smtpd_tls_cert_file = /etc/letsencrypt/live/systemdatabase.ca-0001/fullchain.pem
smtpd_tls_key_file = /etc/letsencrypt/live/systemdatabase.ca-0001/privkey.pem
smtpd_tls_loglevel = 1
smtpd_tls_mandatory_protocols = !SSLv2, !SSLv3, !TLSv1, !TLSv1.1
smtpd_tls_protocols = !SSLv2, !SSLv3, !TLSv1, !TLSv1.1
smtpd_tls_security_level = may
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtputf8_enable = no
transport_maps = hash:/opt/mailman/mm/var/data/postfix_lmtp
unknown_local_recipient_reject_code = 550



doveconf -n

# 2.3.19.1 (9b53102964): /etc/dovecot/dovecot.conf
# Pigeonhole version 0.5.19 (4eae2f79)
# OS: Linux 6.1.0-32-amd64 x86_64 Debian 12.10 nfs4
# Hostname: shackleton12.systemdatabase.ca
auth_mechanisms = plain login
auth_username_format = %n
mail_location = maildir:/Debian-12-dovecot-Maildir/%d-%u-Maildir
mail_privileged_group = mail
namespace inbox {
  inbox = yes
  location = 
  mailbox Drafts {
    special_use = \Drafts
  }
  mailbox Junk {
    special_use = \Junk
  }
  mailbox Sent {
    special_use = \Sent
  }
  mailbox "Sent Messages" {
    special_use = \Sent
  }
  mailbox Trash {
    special_use = \Trash
  }
  prefix = 
}
passdb {
  driver = pam
}
protocols = imap lmtp
service auth {
  unix_listener /var/spool/postfix/private/auth {
    group = postfix
    mode = 0660
    user = postfix
  }
}
service lmtp {
  unix_listener /var/spool/postfix/private/dovecot-lmtp {
    group = postfix
    mode = 0600
    user = postfix
  }
}
ssl_cert = </etc/letsencrypt/live/systemdatabase.ca-0001/fullchain.pem
ssl_client_ca_dir = /etc/ssl/certs
ssl_dh = # hidden, use -P to show it
ssl_key = # hidden, use -P to show it
ssl_prefer_server_ciphers = yes
userdb {
  driver = passwd
}
_______________________________________________
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org

Reply via email to