Pritunl VPN SMTP Settings

How do I set the smtp settings, can anyone give me example of how to set it ?

I have setup similar to kind like this :

But it is fail to send email .

The pritunl logs shown like this :

[snowy-forest-1265][2022-11-04 18:28:05,397][ERROR] Exception on /user/6305b500bcc0d0be61792b67/6305b503bcc0d0be61792b7c [PUT]
Traceback (most recent call last):
  File "/usr/lib/pritunl/lib/python3.6/site-packages/flask/", line 2073, in wsgi_app
    response = self.full_dispatch_request()
  File "/usr/lib/pritunl/lib/python3.6/site-packages/flask/", line 1518, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/usr/lib/pritunl/lib/python3.6/site-packages/flask/", line 1516, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/lib/pritunl/lib/python3.6/site-packages/flask/", line 1502, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
  File "/usr/lib/pritunl/lib/python3.6/site-packages/pritunl/auth/", line 10, in _wrapped
    return call(*args, **kwargs)
  File "/usr/lib/pritunl/lib/python3.6/site-packages/pritunl/handlers/", line 720, in user_put
  File "/usr/lib/pritunl/lib/python3.6/site-packages/pritunl/user/", line 1245, in send_key_email
  File "/usr/lib/pritunl/lib/python3.6/site-packages/pritunl/utils/", line 38, in send_email
    smtp_conn = smtplib.SMTP(email_server)
  File "/usr/lib64/python3.6/", line 251, in __init__
    (code, msg) = self.connect(host, port)
  File "/usr/lib64/python3.6/", line 336, in connect
    self.sock = self._get_socket(host, port, self.timeout)
  File "/usr/lib64/python3.6/", line 307, in _get_socket
  File "/usr/lib64/python3.6/", line 724, in create_connection
    raise err
  File "/usr/lib64/python3.6/", line 713, in create_connection
TimeoutError: [Errno 110] Connection timed out
  • List item

The port must be included in the SMTP server.

What do you mean by the port must be included, mind to clarify more, ?
May I know which port is pritunl using for email smtp?

Basically what I have tried is I have send an email using almalinux directly using msmtp package and it is working fine with the port 587 and using gmail and using host It is working fine. However it is not working fine when using pritunl.

Furthermore, I cant see port field in the pritunl advance settings . How do I resolve this?

Maybe what Zach means is something like or 587. Only guessing, never tried.

@zoli thanks, it work with

Now successfully working ! Thanks mate !

Just additional info : I can see by default from python code that pritunl use old smtp port that is no longer supported by gmail.