Net::SMTPAuthenticationError due to wrong mailgun server

Okay, Found the solution. I was using US mailgun server but actually it is EU. So it was mistake.