On 2022-08-16 13:17, Wietse Venema wrote:
Jonathan S?lea:
>
> All recipients[1], or only "valid" recipients[2]??
>
> [1] Makes sense if the mail is NOT delivered. Examples of that are
> spamtraps or honeypots.
Yes, that is the case here - honeypots/spamtraps.
Postfix can do that (bit see suggestion at the end).
/etc/postfix/main.cf:
virtual_alias_maps = regexp:/etc/postfix/trap.pcre
/etc/postfix/trap.pcre:
.+ some@local.address
Instead of .+ you can make it more specific as needed.
> [2] Requires that the Postfix SMTP server can figure out what
> addresses are valid. Otherwise, you will become a backscatter
> source.
Alright, so basically it is not really a postfix-question?
You could use the Postfix smtp-sink program in "capture to file" mode.
That program does not support TLS.
Wietse
Thank you Wietse and also Victor who came with a great answer - as
always.
This seems indeed to work as it should.
--
Jonathan Sélea