Re: New config fails

2021-11-07 Thread Matthieu C
Hi!
I discussed it 1-on-1 with Archange and we found the solution: the server
is in a local network so I changed the WAN IP to the LAN IP; now it works!

Best regards,


Le sam. 6 nov. 2021 à 22:58, Rodolphe Bréard  a écrit :

> On 06/11/2021 22:56, Archange wrote:
> > No, he commented those lines. ;)
> >
>
> Yep, I saw it like 10 seconds after sending the message, seems like I
> need some sleep…
>
> --
> Rodolphe Bréard
> https://rodolphe.breard.tf/
> B229 CCD5 6900 91E7 D5D6  189F 09BC 23A1 D556 2635
>
>

-- 
*Matthieu Chourrout*


Re: New config fails

2021-11-06 Thread Rodolphe Bréard

On 06/11/2021 22:56, Archange wrote:

No, he commented those lines. ;)



Yep, I saw it like 10 seconds after sending the message, seems like I 
need some sleep…


--
Rodolphe Bréard
https://rodolphe.breard.tf/
B229 CCD5 6900 91E7 D5D6  189F 09BC 23A1 D556 2635



Re: New config fails

2021-11-06 Thread Archange

Le 07/11/2021 à 01:53, Rodolphe Bréard a écrit :


On 06/11/2021 22:49, Matthieu C wrote:

Hi!

>

Hi!

On 06/11/2021 22:49, Matthieu C wrote:
However, my opensmtpd service fails to start (even manually) with 
this error:

smtpd[2160]: pony express: smtpd: bind: Cannot assign requested address
smtpd[2156]: smtpd: process pony socket closed



Seems like you kept the example IPv6 from the tutorial, therefore 
OpenSMTPD cannot listen on it.


No, he commented those lines. ;)




Re: New config fails

2021-11-06 Thread Archange

Le 07/11/2021 à 01:49, Matthieu C a écrit :

Hi!
I just setup a fresh install with opensmtpd and dovecot on my Ubuntu 
server with the help of this tutorial: 
https://rodolphe.breard.tf/en/article/how-to-deploy-a-personal-email-server/


However, my opensmtpd service fails to start (even manually) with this 
error:

smtpd[2160]: pony express: smtpd: bind: Cannot assign requested address
smtpd[2156]: smtpd: process pony socket closed

Here is my smtpd.conf (strangely located at /etc/ instead of 
/etc/smtpd/) : https://pastebin.com/SXJkLNrY
Do you have an idea of the source of the problem? Another toturial 
mentioned adding 127.0.0.1 mail.myhostname.fr 
 to /etc/hosts, but then I removed it.


I think the problem is here:

listen on 127.0.0.1 port 25 tls pki myhostname.fr hostname 
mail.myhostname.fr


listen on ::1 tls pki myhostname.fr hostname mail.myhostname.fr

On most modern Linux, ::1 implies 127.0.0.1. I would juste replace both with

listen on lo port 25 hostname mail.myhostname.fr

(No need for tls internally)


Re: New config fails

2021-11-06 Thread Rodolphe Bréard



On 06/11/2021 22:49, Matthieu C wrote:

Hi!

>

Hi!


On 06/11/2021 22:49, Matthieu C wrote:
However, my opensmtpd service fails to start (even manually) with this 
error:

smtpd[2160]: pony express: smtpd: bind: Cannot assign requested address
smtpd[2156]: smtpd: process pony socket closed



Seems like you kept the example IPv6 from the tutorial, therefore 
OpenSMTPD cannot listen on it.


--
Rodolphe Bréard
https://rodolphe.breard.tf/
B229 CCD5 6900 91E7 D5D6  189F 09BC 23A1 D556 2635