Hi,
I'm trying to configure smtpd to send some emails to my account at Yandex, but the mail server is returning an error: stat="550 5.7.0 Sender address rejected: not owned by authorized user This is on OpenBSD 7.5. The /etc/mail/smtpd.conf configuration is: # grep -v '^#' /etc/mail/smtpd.conf | grep -v '^$' table aliases file:/etc/mail/aliases table secrets file:/etc/mail/secrets listen on socket listen on lo0 action "local_mail" mbox alias <aliases> action "outbound" relay host smtps://la...@smtp.yandex.com:465 auth \ <secrets> mail-from luisvmen...@yandex.com match from local for local action "local_mail" match from local for any action "outbound" # cat /etc/mail/secrets label luisvmen...@yandex.com:mypassword The `smtpd -d` output for an email sent as: $ mail -s "exp" luisvmen...@yandex.com first line . Is: # smtpd -d info: OpenSMTPD 7.5.0 starting smtp connected address=local host=privacy.mydomain.net smtp message msgid=22222222 size=415 nrcpt=1 proto=ESMTP smtp envelope evpid=2222222233333333 from=<myu...@privacy.mydomain.net> to=<luisvmen...@yandex.com> smtp disconnected reason=quit mta connecting address=smtps://77.88.21.158:465 host=mail-smtp.stable.qloud-b.yandex.net mta connected mta tls ciphers=TLSv1.3:TLS_AES_256_GCM_SHA384:256 mta cert-check result="valid" fingerprint="SHA256:b47c39f8286a3301240a6474d9932a14eea3493d10e9f404d47dbcd78be5bff5" mta delivery evpid=2222222233333333 from=<luisvmen...@yandex.com> to=<luisvmen...@yandex.com> rcpt=<-> source="66.55.44.33" relay="77.88.21.158 (mail-smtp.stable.qloud-b.yandex.net)" delay=3s result="PermFail" stat="550 5.7.0 Sender address rejected: not owned by authorized user 1111111111-yyyyyyyyyyyy-rrrrrrrr" smtp connected address=local host=privacy.mydomain.net smtp message msgid=0123456e size=1955 nrcpt=1 proto=ESMTP smtp envelope evpid=0123456e2c8c3f0c from=<> to=<myu...@privacy.mydomain.net> smtp disconnected reason=quit mda delivery evpid=0123456e2c8c3f0c from=<> to=<myu...@privacy.mydomain.net> rcpt=<myu...@privacy.mydomain.net> user=myuser delay=0s result=Ok stat=Delivered mta disconnected reason=quit messages=0 The email that is delivered to my local user shows some more information: Received: from localhost (privacy.mydomain.net [local]) by privacy.mydomain.net (OpenSMTPD) with ESMTPA id 2222222 for <luisvmen...@yandex.com>; From: Luis Mendes <myu...@privacy.mydomain.net> So, it seems that the from is myu...@privacy.mydomain.net and not luisvmen...@yandex.com although I thought that adding the option mail-from luisvmen...@yandex.com to the action "outbound" in smtpd.conf would solve the issue. What should I do to solve this problem? Thanks, Luís