need4swede
The error means your SMTP settings are not correct for the System Email sending the 2FA emails. Relaying not permitted means you are using a relay host/port and your mailserver does not allow that.
To be able to login again login to your osTicket database, go to the _plugin table, disable the plugin (set isactive to 0), go to the _plugin_instance table, and disable the plugin instance (set flags to 0). Now go to the _config table, search for key LIKE '%2fa%', and delete any records associated with your Agent account (should have namespace similar to staff.staff_id where staff_id will be your actual Staff ID - eg. staff.123). Then you can login and update your email settings and confirm 2FA emails are sending again.
Cheers.