I fixed the issue with Dovecot not starting on macOS Ventura by adding this to 10-master.conf:
But now when I try to login via Imap on port 143 I get the same error for imap-login:
Feb 20 15:55:41 imap-login: Error: Feb 20 15:55:41 service(imap-login): Fatal: setrlimit(RLIMIT_DATA, 268435456): Invalid argument
Feb 20 15:55:41 imap-login: Fatal: master: service(imap-login): child 11781 returned error 89 (Fatal failure)
Feb 20 15:55:41 master: Error: service(imap-login): command startup failed, throttling for 60.000 secs
Feb 20 16:13:04 imap-login: Error: Feb 20 16:13:04 service(imap-login): Fatal: setrlimit(RLIMIT_DATA, 268435456): Invalid argument
Feb 20 16:13:04 imap-login: Fatal: master: service(imap-login): child 20370 returned error 89 (Fatal failure)
Feb 20 16:13:04 master: Error: service(imap-login): command startup failed, throttling for 60.000 secs
sudo /usr/local/sbin/dovecot -n
# 2.3.20 (80a5ac675d): /usr/local/etc/dovecot/dovecot.conf
# OS: Darwin 22.3.0 arm64 apfs
# Hostname: mail-server-mac-studio.local
auth_mechanisms = plain login
auth_verbose = yes
auth_verbose_passwords = yes
default_internal_group = mail
default_internal_user = _dovecot
default_login_user = _dovenull
first_valid_gid = 0
first_valid_uid = 102
last_valid_gid = 501
last_valid_uid = 105
log_path = /var/log/dovecot.log
mail_gid = 102
mail_location = maildir:/usr/local/virtual/%d/%u
mail_uid = 102
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 {
args = /usr/local/etc/dovecot/dovecot-sql.conf.ext
driver = sql
}
protocols = imap pop3
service auth {
unix_listener /var/spool/postfix/private/auth {
group = _postfix
mode = 0660
user = _postfix
}
unix_listener auth-userdb {
mode = 0660
user = _vmail
}
}
service imap-login {
vsz_limit = 0
}
service log {
vsz_limit = 0
}
ssl_cert = </etc/letsencrypt/live/mail.bordo.com.au/fullchain.pem
ssl_dh = # hidden, use -P to show it
ssl_key = # hidden, use -P to show it
userdb {
driver = prefetch
}
userdb {
args = /usr/local/etc/dovecot/dovecot-sql.conf.ext
driver = sql
}
protocol imap {
mail_max_userip_connections = 40
}