On Mon, Aug 31, 2020 at 09:51:42AM +0100, dave wrote:
> Maybe I need to clarify a few things. My email server is not in my home
> network. My raspberry is, and it gets random IPs as sometimes it has to
> go through a VPN to the internet.
>
> Mail to my own domains is not permitted by default. This email from
> raspberry is sent to my own domain (the one I'm using on this list) and
> it fails the sender address domain not found and FQDN tests.
>
> There is no relaying needed.
Thanks, this makes the use-case dramatically more clear. If you're just
trying to avoid rejecting some non-fqdn forms, you can do that in
smtpd_sender_restrictions:
smtpd_sender_restrictions =
# Optionally allow trusted clients to use non-fqdn forms?
# permit_mynetworks
# permit_sasl_authenticated
#
# Allow some particular non-fqdn domains
check_sender_access some:table,
reject_non_fqdn-sender
smtpd_recipient_restrictions
permit_mynetworks,
permit_sasl_authenticated,
reject_unauth_destination,
...
# But no reject_non_fqdn_sender here, unless
# you choose to place it LAST with the exception
# list directly above it, and always below
# reject_unauth_destination
--
Viktor.