Possible to drop connection after a period of time?

I’ve had several occasions where spammer email servers have connected to mine and sent maybe 5 or 10 emails, and then their connection just hangs there. Looking at the connections tab in IP > Firewall I can see the connection is still active, even though they aren’t sending anything, but the part that bothers me is the connection timeout. Some of them are upwards of 7 days.

Is there a way to drop the connection if they’re connected to that particular server and port for more than 10 minutes?

Thanks.

Yes, you can. Change values in /ip firewall connection tracking