Marcin Hlybin:
> Hello,
>
> I would like to block emails to particular recipient.
> check_recipient_access map works fine for emails sent through SMTP but
> it doesn't seem to work when sending email locally e.g. using command:
> $ echo | mail -s TEST [email protected]
None of the smtpd_mumble features works for mail that arrives via
the Postfix sendmail command.
You can work around that with (in master.cf)
pickup fifo n - n 60 1 pickup
-o content_filter=relay:127.0.0.1:25
Which causes local submissions to be re-injected via the local
Postfix SMTP server. This may cause surprises with mail being
blocked that until now wasn't.
Wietse
> I figured out workaround:
> 1. create alias in alias map from [email protected] to n...@localhost
> 2. add entry in /etc/aliases null: /dev/null
>
> It dumps unwanted mails perfectly but I believe there is better way to
> do that.
> Regards.
>
> --
> Marcin Hlybin, [email protected]
> Systems Administrator, tel. +48 5151 403 66
>
>
>