sorry for using the wrong form

to which one did you move it?
Removing the webserver from the trusted networks does not solve my issue (and by the way: I did search the forum and found that people had new problems when doing that like error message in the admin panel).
Moving the web server outside of the trusted network would require this server to authenticate before sending but this authentication is not done at the script level but at postfix level at the webserver. So any hacked script would still be possible to send authenticated email.
Or is there a second effect of moving the webserver out of the trusted network in that the messages offered for relaying would be filtered for spam? If so, that would indeed solve the problem...