# The smtp server does not work with the tryton version 5.2

**URL:** https://discuss.tryton.org/t/the-smtp-server-does-not-work-with-the-tryton-version-5-2/4474
**Category:** System Administrator
**Created:** [July 26, 2021, 3:58pm UTC](https://discuss.tryton.org/t/the-smtp-server-does-not-work-with-the-tryton-version-5-2/4474 "2021-07-26T15:58:07Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![mimo\_Alva](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/m/a698b9/32.png) [@mimo\_Alva](https://discuss.tryton.org/u/mimo_Alva)
#### Post date: [July 26, 2021, 3:58pm UTC](https://discuss.tryton.org/t/the-smtp-server-does-not-work-with-the-tryton-version-5-2/4474/1 "2021-07-26T15:58:07Z")

</div>

Hi,

After make a tick on **send email** on `Level` field when i try to create a dunning,there was an error shown below ,otherwise i have configured my `smtp server on trytond.conf` , my tryton version is 5.2.

**Is the version have a relation about that !?because when i have tested that on my own version 6.0 it works normally!**

this is the error:

> Traceback (most recent call last):  
> File “/trytond/wsgi.py”, line 104, in dispatch\_request  
> return endpoint(request, \*\*request.view\_args)  
> File “/trytond/protocols/dispatcher.py”, line 47, in rpc  
> return methods.get(request.rpc\_method, \_dispatch)(  
> File “/trytond/wsgi.py”, line 72, in auth\_required  
> return wrapped(\*args, \*\*kwargs)  
> File “/trytond/protocols/wrappers.py”, line 131, in wrapper  
> return func(request, pool, \*args, \*\*kwargs)  
> File “/trytond/protocols/dispatcher.py”, line 209, in \_dispatch  
> transaction.commit()  
> File “/trytond/transaction.py”, line 221, in commit  
> datamanager.tpc\_vote(self)  
> File “/trytond/sendmail.py”, line 101, in tpc\_vote  
> self.\_server = get\_smtp\_server(self.uri)  
> File “/trytond/sendmail.py”, line 59, in get\_smtp\_server  
> server = connector(uri.hostname, uri.port, \*\*extra)  
> File “/smtplib.py”, line 255, in **init**  
> (code, msg) = self.connect(host, port)  
> File “/smtplib.py”, line 339, in connect  
> self.sock = self.\_get\_socket(host, port, self.timeout)  
> File “/smtplib.py”, line 310, in \_get\_socket  
> return socket.create\_connection((host, port), timeout,  
> File “/socket.py”, line 808, in create\_connection  
> raise err  
> File “/socket.py”, line 796, in create\_connection  
> sock.connect(sa)  
> OSError: [Errno 101] Network is unreachable

thanks in advance.

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [July 26, 2021, 4:03pm UTC](https://discuss.tryton.org/t/the-smtp-server-does-not-work-with-the-tryton-version-5-2/4474/2 "2021-07-26T16:03:59Z")

</div>

Your SMTP server configured is not reachable. It is a configuration or network issue.

> [@mimo\_Alva](#):
>
> my tryton version is 5.2.

I strongly suggest you to use only supported tryton series.

---

<div class="post-metadata">

### Author: ![mimo\_Alva](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/m/a698b9/32.png) [@mimo\_Alva](https://discuss.tryton.org/u/mimo_Alva)
#### Post date: [July 26, 2021, 4:55pm UTC](https://discuss.tryton.org/t/the-smtp-server-does-not-work-with-the-tryton-version-5-2/4474/3 "2021-07-26T16:55:25Z")

</div>

> [@ced](#):
>
> Your SMTP server configured is not reachable. It is a configuration or network issue.

my network is fine and about the configuration of trytond.conf i have copy just the workful statements that i already used for my tryton 6.0 and work normally.

this is my own configuration (settings smtp) on trytond.conf

```auto
[email]
uri = smtp+tls://alvarespokomi@gmail.com:xxx@gmail.com:587
from = alvarespokomi@gmail.com

```

is there other settings i should made !

---

<div class="post-metadata">

### Author: ![German](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/german/32/143_2.png) [@German](https://discuss.tryton.org/u/German)
#### Post date: [July 26, 2021, 7:17pm UTC](https://discuss.tryton.org/t/the-smtp-server-does-not-work-with-the-tryton-version-5-2/4474/4 "2021-07-26T19:17:15Z")

</div>

The error says it’s a network issue. Please try to telnet the Gmail service from your server before any further validation.

---

<div class="post-metadata">

### Author: ![mimo\_Alva](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/m/a698b9/32.png) [@mimo\_Alva](https://discuss.tryton.org/u/mimo_Alva)
#### Post date: [July 27, 2021, 11:49am UTC](https://discuss.tryton.org/t/the-smtp-server-does-not-work-with-the-tryton-version-5-2/4474/5 "2021-07-27T11:49:01Z")

</div>

> [@German](#):
>
> Please try to telnet the Gmail service from your server before any further validation.

Hi,

what do you mean by telnet the Gmail service from the server

---

<div class="post-metadata">

### Author: ![German](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/german/32/143_2.png) [@German](https://discuss.tryton.org/u/German)
#### Post date: [July 27, 2021, 1:14pm UTC](https://discuss.tryton.org/t/the-smtp-server-does-not-work-with-the-tryton-version-5-2/4474/6 "2021-07-27T13:14:19Z")

</div>

If you’re in a linux server:  
$telnet [smtp.gmail.com](http://smtp.gmail.com) 587

---

<div class="post-metadata">

### Author: ![herve\_02](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/h/7ea924/32.png) [@herve\_02](https://discuss.tryton.org/u/herve_02)
#### Post date: [November 29, 2025, 11:18pm UTC](https://discuss.tryton.org/t/the-smtp-server-does-not-work-with-the-tryton-version-5-2/4474/7 "2025-11-29T23:18:45Z")

</div>

_I use tryton 6.0.x on a linux server. and succed today to configure it_

A) i installed postfix and configure to use a smarthost (i choose internet with smarthost)

[https://www.cyberciti.biz/faq/how-to-configure-postfix-relayhost-smarthost-to-send-email-using-an-external-smptd/](https://www.cyberciti.biz/faq/how-to-configure-postfix-relayhost-smarthost-to-send-email-using-an-external-smptd/)

postfix system name mail is the user name server that you will use to send mail. for exemple if your FAI is [fai.com](http://fai.com) and you smtp user is [user@fai.com](mailto:user@fai.com) the system name mail (in postfix configuration) is [fai.com](http://fai.com)

get the infos from your isp for smtp to tweek main.conf

you will have to install one or 2 module more (postfix tells you in /var/log/messages/mail.info) i can’t remember i am not with the computer i tweek

B) in postfix main.conf

myhostname =[fai.com](http://fai.com)

C) ou must rename the from header in postfix

> <https://serverfault.com/questions/147921/forcing-the-from-address-when-postfix-relays-over-smtp>

at this moment the mail command can use the fai’ smtp

> **[How to Send Email in Linux from the Command Line | DigitalOcean](https://www.digitalocean.com/community/tutorials/send-email-linux-command-line)**
>
> Learn how to send email from the Linux command line using tools like mail, sendmail, and ssmtp. Step-by-step examples and best practices for automating email…

in tryton.conf you must configure the mail from info

```auto
[mail]
from="Sender Name" <address>

```

i did not touch anything else and it worked
