Dovecot & postfix - add allow_nets setting
Future request.
Dovecot has security setting called allow_nets that allow only login to mailbox from listed ip.
https://doc.dovecot.org/configuration_manual/authentication/allow_nets/
This setting control not only login to imap, pop3 byt also smtp.
Setting can be done for selected emails.