Change the "From" email address

Hello
I need to change the email address from which the campaigns are sent. Previously it was very easy to change it in config, but now it says “Relay not Permitted”. Please help.

Thank you