Thursday, January 28, 2021

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 ABCD@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=<rdk@fw66-krz.krz> to=<ABCD@gmail.com>
> 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 -0000 (UTC)
> Stuart Henderson <stu@spacehopper.org> wrote:
>
> > On 2021-01-25, latincom <latincom@resist.ca> 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 - gsmtp quit 221 2.0.0 closing connection k2si3832128wrm.242 - gsmtp
> > Connection closed by foreign host.
> >
> >
>
>
>
> --
> Radek
>

No comments:

Post a Comment