Пытаюсь развернуть kopano для хождения почты внутри локалки без связи с внешним миром. Ставил примерно так:
apt install kopano-server kopano-utils
apt install kopano-webapp-apache2 kopano-l10n
kopano-cli --create-store
kopano-cli --create --create-store -u user1 --fullname "User 1" --password user1 --email user1@gtn.loc
kopano-cli --create --create-store -u user2 --fullname "User 2" --password user2 --email user2@gtn.loc
kopano-cli --list-users
Логинюсь в вебапп. Пишу письмо второму юзеру. Жамкаю «отправить». Вижу сообщение «Успешно отправлено». Второму ничего не приходит.
Выставил loglevel = 6, в логах на момент отправки ничего кроме кучи одинаковых строк:
kopano-server[423]: Error while connecting to search on "file:///var/run/kopano/search.sock"
kopano-server[423]: Accepted incoming connection from file:///var/run/kopano/server.sock
Ставлю из репы kopano-spooler, тот начинает ругаться на MTA:
postfix/smtpd[829]: fatal: in parameter smtpd_relay_restrictions or smtpd_recipient_restrictions, specify at least one working instance of: reject_unauth_destination, defer_unauth_destination, reject, defer, defer_if_permit or check_relay_domains
postfix/master[332]: warning: process /usr/lib/postfix/sbin/smtpd pid 829 exit status 1
postfix/master[332]: warning: /usr/lib/postfix/sbin/smtpd: bad command startup -- throttling
Письма так же не ходят. При отправке:
kopano-server[423]: Accepted incoming connection from file:///var/run/kopano/server.sock
kopano-spooler[890]: Number of messages in the queue: 5
kopano-spooler[890]: Executing "/usr/sbin/kopano-spooler" "kopano-spooler" "--send-message-entryid" "000000001458F3518C1D49B398EB9B495028486D01000000050000006BF70B29E69D4CCE93175EA65889199600000000" "--send-username-enc" "user2" "--log-fd" "4294967295" "--host" "default:" "--foreground" "localhost" "--port" "25" "--do-sentmail"
kopano-spooler[890]: Spooler process started on PID 908
kopano-spooler[908]: Starting kopano-spooler version 8.7.0 (pid 908 uid 108)
kopano-spooler[908]: Coredump status left at system default.
kopano-spooler[908]: Initializing provider "Kopano Directory Service"
kopano-spooler[908]: Initializing provider "Private Folders"
kopano-spooler[908]: Initializing provider "Public Folders"
kopano-spooler[908]: Initializing provider "Kopano Directory Service"
kopano-spooler[908]: Initializing provider "Private Folders"
kopano-spooler[908]: Initializing provider "Public Folders"
kopano-spooler[908]: PYTHONPATH = /usr/share/kopano-spooler/python
kopano-spooler[908]: * Loading plugins started
kopano-spooler[908]: ** Checking plugins in /var/lib/kopano/spooler/plugins
kopano-spooler[908]: * Loading plugins done
kopano-spooler[908]: Sending e-mail for user user2, subject: "iu", size: 1837
kopano-spooler[908]: * PreSending processing started
kopano-spooler[908]: * PreSending processing done
kopano-spooler[908]: Sending message with Message-ID: kcis.5022BD307EAA4575BD49AC92B6CB5274@kopano-deb.gtn.loc
kopano-spooler[908]: RCPT TO: user1@gtn.loc
kopano-spooler[908]: SMTP connecting to localhost:25
kopano-spooler[908]: SMTP server connected.