Tomas Macek:
> On Fri, 21 Dec 2018, Wietse Venema wrote:
> 
> > Tomas Macek:
> >>                    smtpd_recipient_restrictions =
> >>                        ...
> >>                        reject_unauth_destination
> >>                        check_recipient_access
> >>                            inline:{example.com=reject_unverified_recipient}
> >>                    unverified_recipient_reject_code = 550
> >>
> >>                In the above example, Postfix may contact a remote server 
> >> if the
> >>                recipient is aliased to a remote address.
> >> -----
> >>
> >> I'd like to go the way with the "check_recipient_access" option, but don't
> >> know how to do it with databased map:
> >>
> >> smtpd_recipient_restrictions =
> >>            ...
> >>    reject_unauth_destination
> >>    check_recipient_access pgsql:map_file ?????
> >>    unverified_recipient_reject_code = 550
> >>
> >> What is the correct settings instead of those "?????" please? Any hint?
> >
> > Use inline for reject_unverified_recipient, and use pgsql:map_file
> > for other things.
> >
> > smtpd_recipient_restrictions =
> >    ...
> >    reject_unauth_destination
> >    check_recipient_access inline:{example.com=reject_unverified_recipient}
> >    check_recipient_access pgsql:map_file
> > unverified_recipient_reject_code = 550
> 
> I filled in my alias domain name instead of the "example.com", but the 
> system still accepts mail to "nonexist...@alias-domain.com". The 
> example.com in the example above should be the destination or the alias 
> domain? Or is that a misunderstanding of the system from me?

In the table, specify the DOMAIN NAME FROM THE SMTP COMMAND.
It's called SMTPD_RECIPIENT_restrictions for a reason.

        Wietse

Reply via email to