On 2 February 2017 at 13:21, Süleyman Düzdaban <
[email protected]> wrote:

> Hi,
>
> When I send an email from existent-address@mydomain to
> non-existent-address@mydomain postfix redirects email to postmaster.
> I want to reject email to addresses that do not exist in database.
>
>
> Postfix version: 2.9.6-2
>
> Thanks for any hints.
>
>
I have something like this:

/etc/postfix/main.cf (extract):
smtpd_relay_restrictions
    check_recipient_access pcre:/etc/postfix/filtered_names
    reject_unauth_destination

/etc/filtered_names:
/^(dominic|webmaster|postmaster|abuse|admin)@timedicer\.co\.uk$/  OK
/@timedicer\.co\.uk/ REJECT

so the idea is to list in filtered_names all permitted addresses@domain,
then emails to all others will be rejected

Reply via email to