On Sun, 26 Mar 2023, Edoardo La Greca wrote:
Hi there, I'm trying to set up a SMTP server using this guide https://blog.obtusenet.com/byoes-build-your-own-email-server/ but I cannot receive any email (the `mail` command says "No mail for edo"), neither from external SMTP servers, nor from the same server (by sending it from the SMTP server to the same server).
Basic debugging for this kind of problem is to connect by hand. $ openssl s_client -starttls smtp -connect mail.example.com:25 ... Lots of info about server certificates 250 HELP HELO mypc.example.com 250 mypc.example.com Hello [IPv6:2001:db8:8:808::dead:beef], pleased to meet you ... Can continue with MAIL FROM, RCPT TO, etc if you haven't seen the problem by now. BTW, "Invalid pubkey hash" could mean you have an ancient MD5 cert. I use sendmail with certs, opensmtpd for p2p email, so not familiar with all the errors.