Hi,

I've just set up a VM running OpenBSD 7.9. :)

In my LAN I have a central Postfix/Dovecot server that is used to collect mails from all my VMs, e.g. cron messages, update notifications from Linux machines running dnf-automatic or unattended-upgrades etc.

I'd like my OpenBSD VM to deliver all locally generated emails to my mail account on my central mail collector server, e.g. 10.10.20.10:25.

I tried this:

openbsd# cat /etc/mail/virtual
@openbsd.int.example.org    [email protected]
@openbsd                    [email protected]
@localhost                  [email protected]

openbsd# cat /etc/mail/smtpd.conf
table virtuals file:/etc/mail/virtual
listen on lo0
listen on socket
action "central" mda "/usr/bin/smtp -s smtp://10.10.20.10 %{dest}" \
    user _smtpd virtual <virtuals>
match from local for any action "central"

But unfortunately it doesn't work:

openbsd# echo "Test from $(hostname)" | mail -s "OpenBSD Test" root
openbsd# sendmail: command failed: 524 5.2.4 Mailing list expansion problem: <[email protected]>

Can you point me to the correct configuration?

Thanks a lot in advance and have a nice weekend!

Best regards,
Reg


Reply via email to