I'm trying to get Postfix 3.7 running on a FreeBSD 13 server, with Cyrus
IMAP 3.4.2
The instructions on the Cyrus website
https://www.cyrusimap.org/quickstart.html
say I need this line in main.cf :
virtual_mailbox_maps = socketmap:unix:/var/imap/socket/smmap
But whenever I do, I get this error :
Sep 20 11:53:37 rollcage13 postfix/master[53402]: daemon started --
version 3.7-20210815, configuration /usr/local/etc/postfix
Sep 20 11:53:39 rollcage13 postfix/smtpd[53406]: fatal: need service
transport:endpoint instead of "unix"
Sep 20 11:53:40 rollcage13 postfix/master[53402]: warning: process
/usr/local/libexec/postfix/smtpd pid 53406 exit status 1
Sep 20 11:53:40 rollcage13 postfix/master[53402]: warning:
/usr/local/libexec/postfix/smtpd: bad command startup -- throttling
rollcage13:/usr/local/etc/postfix # ls -la /var/imap/socket/smmap
srwxrwxrwx 1 root mail 0 Sep 19 21:24 /var/imap/socket/smmap
smmap is running, as far as I can tell and all the other bits seem to be
ok, from main.cf
smtpd_sasl_type = cyrus
smtpd_sasl_path = smtpd
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
# Cyrus mailboxes, this almost seems to work?
virtual_mailbox_domains = /usr/local/etc/postfix/virtual_recipient_domains
virtual_mailbox_maps = socketmap:unix:/var/imap/socket/smmap
virtual_transport = lmtp:unix:/var/imap/socket/lmtp
There's not much here http://www.postfix.org/CYRUS_README.html to help.
I'm trying to use the automagic mailbox maps so that postfix queries
cyrus for if a mailbox exists, rather than maintain a duplicate table of
addresses - I think that's how it's supposed to work anyway?
If I comment out the virtual_mailbox_maps line, it at least gets rid of
the error message!
I'm a bit stuck, what's the obvious, dumb thing I've missed?
postconf -n
broken_sasl_auth_clients = yes
command_directory = /usr/local/sbin
compatibility_level = 3.6
daemon_directory = /usr/local/libexec/postfix
data_directory = /var/db/postfix
debug_peer_level = 2
debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd
$daemon_directory/$process_name $process_id & sleep 5
html_directory = /usr/local/share/doc/postfix
inet_interfaces = all
inet_protocols = ipv4
mail_owner = postfix
mailq_path = /usr/local/bin/mailq
manpage_directory = /usr/local/man
meta_directory = /usr/local/libexec/postfix
myhostname = rollcage13.aboc.net.au
mynetworks_style = host
newaliases_path = /usr/local/bin/newaliases
postscreen_access_list = permit_mynetworks,
cidr:/usr/local/etc/postfix/postscreen_access.cidr
postscreen_dnsbl_sites = zen.spamhaus.org*1 bl.spamcop.net*1
postscreen_dnsbl_threshold = 2
queue_directory = /var/spool/postfix
readme_directory = /usr/local/share/doc/postfix
sample_directory = /usr/local/etc/postfix
sendmail_path = /usr/local/sbin/sendmail
setgid_group = maildrop
shlib_directory = /usr/local/lib/postfix
smtpd_sasl_auth_enable = yes
smtpd_sasl_path = smtpd
smtpd_sasl_type = cyrus
unknown_local_recipient_reject_code = 550
virtual_mailbox_domains = /usr/local/etc/postfix/virtual_recipient_domains
virtual_mailbox_maps = socketmap:unix:/var/imap/socket/smmap
virtual_transport = lmtp:unix:/var/imap/socket/lmtp