Retry limit for logins

How can I set a limit to retry logging in for auth fail. I just got locked out of my email server. Error was poorly configured router for loopback causing auth error, kept retrying until rate limit reached on synology. Can I tell emClient to stop retrying in this case?