Dnia 12.07.2024 o godz. 08:55:08 Francis Augusto Medeiros-Logeay via 
Postfix-users pisze:
> I want that mail sent to users who do not have a valid address (like
> when they are not on ldap) to bounce back, like it happens by
> default, but I'd also like these mail to be delivered to an specific
> mailbox.

It seems contradictory.

A SMTP server can either accept mail (and process it in any way, including
silent discard, which is definitely NOT recommended), or reject it (and then
the sender gets a bounce). You can't have both at once.

If you reject the mail, it doesn't get through to next stages of processing,
so you can't deliver it anywhere.

What you can do is to set up a SMTP proxy before your main server (I think
you can use another specially configured Postfix instance for this). That
proxy will add your "catchall" recipient to any incoming mail and forward it
to the main server. Then the main server can regularly reject the mail for
the non-existing recipient and accept it for the "catchall" one.
-- 
Regards,
   Jaroslaw Rafa
   r...@rafa.eu.org
--
"In a million years, when kids go to school, they're gonna know: once there
was a Hushpuppy, and she lived with her daddy in the Bathtub."
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to