Workaround for #6126
(issue can be closed when fix to move mail_plugins to separate file is implemented)