2026-06-14 01:07:48 +08:00
|
|
|
#!/bin/sh
|
|
|
|
|
set -eu
|
|
|
|
|
: "${LANQIN_PUBLIC_HOSTNAME:=mail.example.com}"
|
|
|
|
|
postconf -e "myhostname = ${LANQIN_PUBLIC_HOSTNAME}"
|
|
|
|
|
postconf -e "myorigin = ${LANQIN_PUBLIC_HOSTNAME}"
|
2026-06-15 23:41:21 +08:00
|
|
|
postconf -e "milter_mail_macros = i {mail_addr} {client_addr} {client_name} {auth_authen}"
|
|
|
|
|
postconf -e "smtpd_milters = inet:rspamd:11332"
|
|
|
|
|
postconf -e "non_smtpd_milters = inet:rspamd:11332"
|
2026-06-14 01:07:48 +08:00
|
|
|
postfix check
|
|
|
|
|
exec postfix start-fg
|