P V Anthony via Postfix-users:
> Hi,
>
> I need advice on how to set postfix to not allow sending emails by
> command line or from php code.
>
> Can it be done?
The default setting allows everyone:
authorized_submit_users = static:anyone
To disable all users except root:
authorized_submit_users = root, !static:anyone
See https://www.postfix.org/postconf.5.html#authorized_submit_users
for more. This is available in Postfix 2.2 and later.
Wietse
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]