Marcelo Machado:
> I agree with everyone. Not a good idea but the customer is insisting on it.
>
> I will see what I can do. If anyone knows how to do this please help me.
The request appears to be a classical example of the XY problem:
asking for help to implement the wrong solution.
Speaking of which, smtpd_recipient_limit is not a per-user or
per-domain feature, therefore the options are:
- Configure master.cf with a dedicated smtpd service for this customer,
and point their systems to this service:
1.2.3.4:smtp inet n - n - - smtpd
-o smtpd_recipient_limit=1
This requires adding an IP address alias to the host.
- Configure a Milter to enforce a recipient count for mail from
this customer.
- Configure some content filter to enforce a recipient count for
mail from this customer.
Wietse