The command --max-email-attachment-size is not executed

Closing as a duplicate of the following topic below. Please follow up there if you have further questions around this topic.

Nevertheless a short hint:

Both parameters needs to be passed as startup-parameters to the gvmd daemon. How this can be done heavily depends on how the GVM packages at Kali are configured. But i guess they are using systemd so the parameters needs to be added to the systemd unit / service file of gvmd. If you need further support with the configuration on the systemd files please get in touch with the Kali community at https://forums.kali.org/