Re: OpenSMTPD is not sending e-mail.
On Thu, Jan 28, 2021 at 08:41:46PM +0100, Radek wrote: > Hi, > a few days ago all my boxes using the same ISP stopped to send me emails from > local users and daemons (daily outputs and any other cronjob reports) to > @gmail.com. > I have tried to send email to a few not_gmail mailboxes - the same problem. > If i send emails from other boxes (using other ISP), they are received > correctly. > > Telnet test doesn't show the "220 mx.google." line. Does is mean that > port 25 is blocked by the ISP? > I would guess not since it shows you connected. > $ telnet gmail-smtp-in.l.google.com 25 > Trying 173.194.220.26... > Connected to gmail-smtp-in.l.google.com. > Escape character is '^]'. > Connection closed by foreign host. > > > $ smtpctl remove all > 14 envelopes removed > $ echo test-123 | mail -s test-123 a...@gmail.com > $ tail -n 30 /var/log/maillog > Jan 28 20:06:43 fw66-krz smtpd[69953]: 717b813accae5132 smtp connected > address=local host=fw66-krz.krz > Jan 28 20:06:43 fw66-krz smtpd[69953]: 717b813accae5132 smtp message > msgid=ba93721b size=331 nrcpt=1 proto=ESMTP > Jan 28 20:06:43 fw66-krz smtpd[69953]: 717b813accae5132 smtp envelope > evpid=ba93721b7de7a76f from= to= > Jan 28 20:06:43 fw66-krz smtpd[69953]: 717b813accae5132 smtp disconnected > reason=quit > Jan 28 20:06:57 fw66-krz smtpd[69953]: 717b8138ac37b4db mta error > reason=Connection closed unexpectedly > Jan 28 20:06:57 fw66-krz smtpd[69953]: smtp-out: Disabling route [] <-> > 142.250.96.27 (142.250.96.27) for 15s > Jan 28 20:07:12 fw66-krz smtpd[69953]: smtp-out: Enabling route [] <-> > 142.250.96.27 (142.250.96.27) > Jan 28 20:07:14 fw66-krz smtpd[69953]: 717b8139462f1927 mta error > reason=Connection closed unexpectedly > Jan 28 20:07:14 fw66-krz smtpd[69953]: smtp-out: Disabling route [] <-> > 108.177.112.27 (108.177.112.27) for 15s > Jan 28 20:07:14 fw66-krz smtpd[69953]: 717b813c3c64b02d mta connecting > address=smtp://142.250.96.27:25 host=142.250.96.27 > Jan 28 20:07:14 fw66-krz smtpd[69953]: 717b813c3c64b02d mta connected > Jan 28 20:07:29 fw66-krz smtpd[69953]: smtp-out: Enabling route [] <-> > 108.177.112.27 (108.177.112.27) > Jan 28 20:07:30 fw66-krz smtpd[69953]: 717b813ddb20a2c5 mta connecting > address=smtp://108.177.112.27:25 host=108.177.112.27 > Jan 28 20:07:30 fw66-krz smtpd[69953]: 717b813ddb20a2c5 mta connected > > > > > On Tue, 26 Jan 2021 11:26:17 - (UTC) > Stuart Henderson wrote: > > > On 2021-01-25, latincom wrote: > > > It had worked for many years; but this time OpenBSD 6.8; server and > > > Laptop, are not working as the man page says. > > > > > > I did an empiric test, because i am not qualified for a real test. > > > > > > Both are not able to send messages (e-mails), to other machines. > > > The message at maillog is the same: > > > > > > result="TempFail" stat="Network error on destination MXs" > > > > Perhaps your ISP blocks port 25. What do you get if you type > > "telnet gmail-smtp-in.l.google.com 25"? It should go something > > like this: > > > > $ telnet gmail-smtp-in.l.google.com 25 > > Trying 66.102.1.27... > > Connected to gmail-smtp-in.l.google.com. > > Escape character is '^]'. > > 220 mx.google.com ESMTP k2si3832128wrm.242 - gsmtpquit > > 221 2.0.0 closing > > connection k2si3832128wrm.242 - gsmtp > > Connection closed by foreign host. > > > > > > > > -- > Radek >
Re: OpenSMTPD is not sending e-mail.
Hi, a few days ago all my boxes using the same ISP stopped to send me emails from local users and daemons (daily outputs and any other cronjob reports) to @gmail.com. I have tried to send email to a few not_gmail mailboxes - the same problem. If i send emails from other boxes (using other ISP), they are received correctly. Telnet test doesn't show the "220 mx.google." line. Does is mean that port 25 is blocked by the ISP? $ telnet gmail-smtp-in.l.google.com 25 Trying 173.194.220.26... Connected to gmail-smtp-in.l.google.com. Escape character is '^]'. Connection closed by foreign host. $ smtpctl remove all 14 envelopes removed $ echo test-123 | mail -s test-123 a...@gmail.com $ tail -n 30 /var/log/maillog Jan 28 20:06:43 fw66-krz smtpd[69953]: 717b813accae5132 smtp connected address=local host=fw66-krz.krz Jan 28 20:06:43 fw66-krz smtpd[69953]: 717b813accae5132 smtp message msgid=ba93721b size=331 nrcpt=1 proto=ESMTP Jan 28 20:06:43 fw66-krz smtpd[69953]: 717b813accae5132 smtp envelope evpid=ba93721b7de7a76f from= to= Jan 28 20:06:43 fw66-krz smtpd[69953]: 717b813accae5132 smtp disconnected reason=quit Jan 28 20:06:57 fw66-krz smtpd[69953]: 717b8138ac37b4db mta error reason=Connection closed unexpectedly Jan 28 20:06:57 fw66-krz smtpd[69953]: smtp-out: Disabling route [] <-> 142.250.96.27 (142.250.96.27) for 15s Jan 28 20:07:12 fw66-krz smtpd[69953]: smtp-out: Enabling route [] <-> 142.250.96.27 (142.250.96.27) Jan 28 20:07:14 fw66-krz smtpd[69953]: 717b8139462f1927 mta error reason=Connection closed unexpectedly Jan 28 20:07:14 fw66-krz smtpd[69953]: smtp-out: Disabling route [] <-> 108.177.112.27 (108.177.112.27) for 15s Jan 28 20:07:14 fw66-krz smtpd[69953]: 717b813c3c64b02d mta connecting address=smtp://142.250.96.27:25 host=142.250.96.27 Jan 28 20:07:14 fw66-krz smtpd[69953]: 717b813c3c64b02d mta connected Jan 28 20:07:29 fw66-krz smtpd[69953]: smtp-out: Enabling route [] <-> 108.177.112.27 (108.177.112.27) Jan 28 20:07:30 fw66-krz smtpd[69953]: 717b813ddb20a2c5 mta connecting address=smtp://108.177.112.27:25 host=108.177.112.27 Jan 28 20:07:30 fw66-krz smtpd[69953]: 717b813ddb20a2c5 mta connected On Tue, 26 Jan 2021 11:26:17 - (UTC) Stuart Henderson wrote: > On 2021-01-25, latincom wrote: > > It had worked for many years; but this time OpenBSD 6.8; server and > > Laptop, are not working as the man page says. > > > > I did an empiric test, because i am not qualified for a real test. > > > > Both are not able to send messages (e-mails), to other machines. > > The message at maillog is the same: > > > > result="TempFail" stat="Network error on destination MXs" > > Perhaps your ISP blocks port 25. What do you get if you type > "telnet gmail-smtp-in.l.google.com 25"? It should go something > like this: > > $ telnet gmail-smtp-in.l.google.com 25 > Trying 66.102.1.27... > Connected to gmail-smtp-in.l.google.com. > Escape character is '^]'. > 220 mx.google.com ESMTP k2si3832128wrm.242 - gsmtpquit > 221 2.0.0 closing > connection k2si3832128wrm.242 - gsmtp > Connection closed by foreign host. > > -- Radek
Re: OpenSMTPD is not sending e-mail.
Diana Eichert wrote on Wed [2021-Jan-27 08:30:34 -0700]: > On Tue, Jan 26, 2021 at 5:25 PM latincom wrote: > > > > Hello misc@ > > > > I can not believe that the solution has been to open port 25, Vultr rent > > servers whit port 25 closed! > > > > Thanks so much to Stuart Henderson for the solution. > > Yes Vultr and many other VM providers block tcp port 25 by default, > however most will open it up if you request it. Vultr isn't my only VPS provider but I definitely recommend them. When I submitted a ticket requesting they open port 25, they responded within minutes on a weekend. BTW that info about 25 (and a few other ports I believe) being blocked by default is somewhere on their website. Mitch
Re: OpenSMTPD is not sending e-mail.
On Tue, Jan 26, 2021 at 5:25 PM latincom wrote: > > Hello misc@ > > I can not believe that the solution has been to open port 25, Vultr rent > servers whit port 25 closed! > > Thanks so much to Stuart Henderson for the solution. Yes Vultr and many other VM providers block tcp port 25 by default, however most will open it up if you request it.
Re: OpenSMTPD is not sending e-mail.
Hello misc@ I can not believe that the solution has been to open port 25, Vultr rent servers whit port 25 closed! Thanks so much to Stuart Henderson for the solution. On 2021-01-20 5:04 p.m., latincom wrote: I read the archives of OpenSMTPD, and found 2 messages related to ssl, nothing more. Can someone give me an advise where to look, please? did something stupid, maybe: I forgot, that the installer, ask for a name; then i wrote a name, which later change to a fqdn; according to man page; declared it in hosts and myname! From Log: mta delivery evpid=7465b44496df9b1a from= to= rcpt=<-> source="-" relay="openbsd.org" delay=11h8m1s result="TempFail" stat="Network error on destination MXs" smtp.conf: # $OpenBSD: smtpd.conf,v 1.14 2019/11/26 20:14:38 gilles Exp $ # This is the smtpd server system-wide configuration file. # See smtpd.conf(5) for more information. table aliases file:/etc/mail/aliases listen on socket # To accept external mail, replace with: listen on all # listen on all action "local_mail" mbox alias action "outbound" relay # Uncomment the following to accept external mail for domain "example.org" # match from any for domain "agroena.org" action "local_mail" match from local for local action "local_mail" match from local for any action "outbound" ssl: m# ls -l /etc/ssl/ total 764 -r--r--r-- 1 root bin 350172 Oct 4 23:47 cert.pem -r--r--r-- 1 root wheel 3791 Jan 10 23:57 fullchain.pem -rw-r--r-- 1 root wheel 2703 Oct 4 23:47 ikeca.cnf -r--r--r-- 1 root bin 745 Oct 4 23:47 openssl.cnf drwx-- 2 root wheel 512 Jan 10 23:57 private -r--r--r-- 1 root bin 1006 Oct 4 23:47 x509v3.cnfatch from local
Re: OpenSMTPD is not sending e-mail.
On 2021-01-25, latincom wrote: > It had worked for many years; but this time OpenBSD 6.8; server and > Laptop, are not working as the man page says. > > I did an empiric test, because i am not qualified for a real test. > > Both are not able to send messages (e-mails), to other machines. > The message at maillog is the same: > > result="TempFail" stat="Network error on destination MXs" Perhaps your ISP blocks port 25. What do you get if you type "telnet gmail-smtp-in.l.google.com 25"? It should go something like this: $ telnet gmail-smtp-in.l.google.com 25 Trying 66.102.1.27... Connected to gmail-smtp-in.l.google.com. Escape character is '^]'. 220 mx.google.com ESMTP k2si3832128wrm.242 - gsmtpquit 221 2.0.0 closing connection k2si3832128wrm.242 - gsmtp Connection closed by foreign host.
Re: OpenSMTPD is not sending e-mail.
Hello misc@ From smtpd.conf Man Page: "EXAMPLES The default smtpd.conf file which ships with OpenBSD listens on the loopback network interface (lo0) and allows for mail from users and daemons on the local machine, as well as permitting email to remote servers. Some more complex configurations are given below." It had worked for many years; but this time OpenBSD 6.8; server and Laptop, are not working as the man page says. I did an empiric test, because i am not qualified for a real test. Both are not able to send messages (e-mails), to other machines. The message at maillog is the same: result="TempFail" stat="Network error on destination MXs" I did 2 clean installations; one server, and one laptop; then i sended one message from server to Laptop, and viceverse. The message in both is the same. It was after this change in smtpd.conf: match from any for domain "agroena.org" action "local_mail" If i send an e-mail from other machine, it is received correctly. Is it possible that something is wrong in my installations? Thanks for your attention. On 2021-01-21 10:16 a.m., latincom wrote: Thanks for your answer, it is my DNS: Type Name Value TTL Actions a @ 45.77.204.237 1/2 Hour Edit a mail 45.77.204.237 1 Hour Edit cname www @ 1 Hour Edit cname _domainconnect _domainconnect.gd.domaincontrol.com 1 Hour Edit mx @ mail.agroena.org (Priority: 0) 1 Hour Edit ns @ ns61.domaincontrol.com 1 Hour ns @ ns62.domaincontrol.com 1 Hour soa @ Primary nameserver: ns61.domaincontrol.com. 1 Hour Full reference to 1 e-mail sended: Jan 21 17:13:47 sophie smtpd[41216]: smtp-out: Disabling route [] <-> 199.185.178.25 (mail.openbsd.org) for 15s Jan 21 17:13:47 sophie smtpd[41216]: smtp-out: No valid route for [connector:[]->[relay:openbsd.org,smtp],0x0] Jan 21 17:13:48 sophie smtpd[41216]: smtp-out: Enabling route [] <-> 209.85.232.27 (qt-in-f27.1e100.net) Jan 21 17:13:53 sophie smtpd[41216]: mta delivery evpid=7465b44496df9b1a from= to= rcpt=<-> source="-" relay="openbsd.org" delay=1d4h28m1s result="TempFail" stat="Network error on destination MXs" On 2021-01-20 11:49 p.m., Martijn van Duren wrote: You haven't given much log output, but "Network error on destination MXs" usually indicates something like DNS or network issues. Considering it states relay="openbsd.org", where it should be "mail.openbsd.org" my best guess is DNS issues. martijn@ On Wed, 2021-01-20 at 17:04 -0800, latincom wrote: I read the archives of OpenSMTPD, and found 2 messages related to ssl, nothing more. Can someone give me an advise where to look, please? did something stupid, maybe: I forgot, that the installer, ask for a name; then i wrote a name, which later change to a fqdn; according to man page; declared it in hosts and myname! From Log: mta delivery evpid=7465b44496df9b1a from= to= rcpt=<-> source="-" relay="openbsd.org" delay=11h8m1s result="TempFail" stat="Network error on destination MXs" smtp.conf: # $OpenBSD: smtpd.conf,v 1.14 2019/11/26 20:14:38 gilles Exp $ # This is the smtpd server system-wide configuration file. # See smtpd.conf(5) for more information. table aliases file:/etc/mail/aliases listen on socket # To accept external mail, replace with: listen on all # listen on all action "local_mail" mbox alias action "outbound" relay # Uncomment the following to accept external mail for domain "example.org" # match from any for domain "agroena.org" action "local_mail" match from local for local action "local_mail" match from local for any action "outbound" ssl: m# ls -l /etc/ssl/ total 764 -r--r--r-- 1 root bin 350172 Oct 4 23:47 cert.pem -r--r--r-- 1 root wheel 3791 Jan 10 23:57 fullchain.pem -rw-r--r-- 1 root wheel 2703 Oct 4 23:47 ikeca.cnf -r--r--r-- 1 root bin 745 Oct 4 23:47 openssl.cnf drwx-- 2 root wheel 512 Jan 10 23:57 private -r--r--r-- 1 root bin 1006 Oct 4 23:47 x509v3.cnfatch from local
Re: OpenSMTPD is not sending e-mail.
Thanks for your answer, it is my DNS: TypeNameValue TTL Actions a @ 45.77.204.237 1/2 HourEdit a mail45.77.204.237 1 Hour Edit cname www @ 1 Hour Edit cname _domainconnect _domainconnect.gd.domaincontrol.com 1 Hour Edit mx @ mail.agroena.org (Priority: 0) 1 Hour Edit ns @ ns61.domaincontrol.com 1 Hour ns @ ns62.domaincontrol.com 1 Hour soa @ Primary nameserver: ns61.domaincontrol.com. 1 Hour Full reference to 1 e-mail sended: Jan 21 17:13:47 sophie smtpd[41216]: smtp-out: Disabling route [] <-> 199.185.178.25 (mail.openbsd.org) for 15s Jan 21 17:13:47 sophie smtpd[41216]: smtp-out: No valid route for [connector:[]->[relay:openbsd.org,smtp],0x0] Jan 21 17:13:48 sophie smtpd[41216]: smtp-out: Enabling route [] <-> 209.85.232.27 (qt-in-f27.1e100.net) Jan 21 17:13:53 sophie smtpd[41216]: mta delivery evpid=7465b44496df9b1a from= to= rcpt=<-> source="-" relay="openbsd.org" delay=1d4h28m1s result="TempFail" stat="Network error on destination MXs" On 2021-01-20 11:49 p.m., Martijn van Duren wrote: You haven't given much log output, but "Network error on destination MXs" usually indicates something like DNS or network issues. Considering it states relay="openbsd.org", where it should be "mail.openbsd.org" my best guess is DNS issues. martijn@ On Wed, 2021-01-20 at 17:04 -0800, latincom wrote: I read the archives of OpenSMTPD, and found 2 messages related to ssl, nothing more. Can someone give me an advise where to look, please? did something stupid, maybe: I forgot, that the installer, ask for a name; then i wrote a name, which later change to a fqdn; according to man page; declared it in hosts and myname! From Log: mta delivery evpid=7465b44496df9b1a from= to= rcpt=<-> source="-" relay="openbsd.org" delay=11h8m1s result="TempFail" stat="Network error on destination MXs" smtp.conf: # $OpenBSD: smtpd.conf,v 1.14 2019/11/26 20:14:38 gilles Exp $ # This is the smtpd server system-wide configuration file. # See smtpd.conf(5) for more information. table aliases file:/etc/mail/aliases listen on socket # To accept external mail, replace with: listen on all # listen on all action "local_mail" mbox alias action "outbound" relay # Uncomment the following to accept external mail for domain "example.org" # match from any for domain "agroena.org" action "local_mail" match from local for local action "local_mail" match from local for any action "outbound" ssl: m# ls -l /etc/ssl/ total 764 -r--r--r-- 1 root bin 350172 Oct 4 23:47 cert.pem -r--r--r-- 1 root wheel 3791 Jan 10 23:57 fullchain.pem -rw-r--r-- 1 root wheel 2703 Oct 4 23:47 ikeca.cnf -r--r--r-- 1 root bin 745 Oct 4 23:47 openssl.cnf drwx-- 2 root wheel 512 Jan 10 23:57 private -r--r--r-- 1 root bin 1006 Oct 4 23:47 x509v3.cnfatch from local
Re: OpenSMTPD is not sending e-mail.
You haven't given much log output, but "Network error on destination MXs" usually indicates something like DNS or network issues. Considering it states relay="openbsd.org", where it should be "mail.openbsd.org" my best guess is DNS issues. martijn@ On Wed, 2021-01-20 at 17:04 -0800, latincom wrote: > I read the archives of OpenSMTPD, and found 2 messages related to ssl, > nothing more. Can someone give me an advise where to look, please? > > did something stupid, maybe: > I forgot, that the installer, ask for a name; then i wrote a name, which > later change to a fqdn; according to man page; declared it in hosts and > myname! > > From Log: > mta delivery evpid=7465b44496df9b1a from= > to= rcpt=<-> source="-" relay="openbsd.org" > delay=11h8m1s result="TempFail" stat="Network error on destination MXs" > > smtp.conf: > # $OpenBSD: smtpd.conf,v 1.14 2019/11/26 20:14:38 gilles Exp $ > > # This is the smtpd server system-wide configuration file. > # See smtpd.conf(5) for more information. > > table aliases file:/etc/mail/aliases > > listen on socket > > # To accept external mail, replace with: listen on all > # > listen on all > > action "local_mail" mbox alias > action "outbound" relay > > # Uncomment the following to accept external mail for domain "example.org" > # > match from any for domain "agroena.org" action "local_mail" > match from local for local action "local_mail" > match from local for any action "outbound" > > ssl: > m# ls -l /etc/ssl/ > total 764 > -r--r--r-- 1 root bin 350172 Oct 4 23:47 cert.pem > -r--r--r-- 1 root wheel 3791 Jan 10 23:57 fullchain.pem > -rw-r--r-- 1 root wheel 2703 Oct 4 23:47 ikeca.cnf > -r--r--r-- 1 root bin 745 Oct 4 23:47 openssl.cnf > drwx-- 2 root wheel 512 Jan 10 23:57 private > -r--r--r-- 1 root bin 1006 Oct 4 23:47 x509v3.cnfatch from local > > >
OpenSMTPD is not sending e-mail.
I read the archives of OpenSMTPD, and found 2 messages related to ssl, nothing more. Can someone give me an advise where to look, please? did something stupid, maybe: I forgot, that the installer, ask for a name; then i wrote a name, which later change to a fqdn; according to man page; declared it in hosts and myname! From Log: mta delivery evpid=7465b44496df9b1a from= to= rcpt=<-> source="-" relay="openbsd.org" delay=11h8m1s result="TempFail" stat="Network error on destination MXs" smtp.conf: # $OpenBSD: smtpd.conf,v 1.14 2019/11/26 20:14:38 gilles Exp $ # This is the smtpd server system-wide configuration file. # See smtpd.conf(5) for more information. table aliases file:/etc/mail/aliases listen on socket # To accept external mail, replace with: listen on all # listen on all action "local_mail" mbox alias action "outbound" relay # Uncomment the following to accept external mail for domain "example.org" # match from any for domain "agroena.org" action "local_mail" match from local for local action "local_mail" match from local for any action "outbound" ssl: m# ls -l /etc/ssl/ total 764 -r--r--r-- 1 root bin350172 Oct 4 23:47 cert.pem -r--r--r-- 1 root wheel3791 Jan 10 23:57 fullchain.pem -rw-r--r-- 1 root wheel2703 Oct 4 23:47 ikeca.cnf -r--r--r-- 1 root bin 745 Oct 4 23:47 openssl.cnf drwx-- 2 root wheel 512 Jan 10 23:57 private -r--r--r-- 1 root bin 1006 Oct 4 23:47 x509v3.cnfatch from local