Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Semper Fi, dude.


computers / alt.os.linux.mageia / Problem with postfix and ssh tunnel

SubjectAuthor
* Problem with postfix and ssh tunnelWilliam Unruh
`* Re: Problem with postfix and ssh tunnelDavid W. Hodgins
 `* Re: Problem with postfix and ssh tunnelWilliam Unruh
  `* Re: Problem with postfix and ssh tunnelDavid W. Hodgins
   `* Re: Problem with postfix and ssh tunnelWilliam Unruh
    +- Re: Problem with postfix and ssh tunnelWilliam Unruh
    `- Re: Problem with postfix and ssh tunnelDavid W. Hodgins

1
Problem with postfix and ssh tunnel

<v0pov3$283k6$1@dont-email.me>

  copy mid

https://news.novabbs.com/computers/article-flat.php?id=6254&group=alt.os.linux.mageia#6254

  copy link   Newsgroups: alt.os.linux.mageia
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: unr...@invalid.ca (William Unruh)
Newsgroups: alt.os.linux.mageia
Subject: Problem with postfix and ssh tunnel
Date: Tue, 30 Apr 2024 03:36:03 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 29
Message-ID: <v0pov3$283k6$1@dont-email.me>
Injection-Date: Tue, 30 Apr 2024 05:36:04 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="8f8869725bdb2ee97ec0a5a053b68544";
logging-data="2363014"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+9mZT5LGkbEKV0io+wPcV4"
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:2oPQVRmeD8/aW9J/kSncujIpwno=
 by: William Unruh - Tue, 30 Apr 2024 03:36 UTC

I have a machine AA which is outside a firewall of machine CC. for the
past 10 years I have been running an ssh tunnel to CC, and sending my
mail to CC as a relay.

autossh -M0 -nNT -L 1097:CC:25 CC

In postfix transport I have

* smtp:localhost:1097

As I say this has worked not for a long time. Suddenly it stopped
working last week.

I sent a testmail from AA to my account on CC.
I get the following error messages

Apr 29 16:38:02 AA postfix/pickup[621062]: D963C1054F1: uid=1000 from=<unruh>
Apr 29 16:38:02 AA postfix/cleanup[621154]: D963C1054F1: message-id=<444a3cbf-c530-b383-526e-ef91246c547@physics.ubc.ca>
Apr 29 16:38:02 AA postfix/qmgr[621063]: D963C1054F1: from=<unruh@physics.ubc.ca>, size=417, nrcpt=1 (queue active)
Apr 29 16:38:02 AA postfix/discard[621158]: warning: unexpected attribute nrequest from bounce socket (expecting: flags)
Apr 29 16:38:02 AA postfix/discard[621158]: warning: deliver_request_get: error receiving common attributes
Apr 29 16:38:02 AA postfix/smtp[621157]: D963C1054F1: to=<unruh@physics.ubc.ca>, relay=none, delay=0.12, delays=0.07/0.01/0.04/0, dsn=5.4.4, status=bounced (Host or domain name not found. Name service error for name=localhost type=A: Host not found)
Apr 29 16:38:02 AA postfix/qmgr[621063]: D963C1054F1: removed

The line "Host or domain name not found. Name service error for
name=localhost type=A: Host not found)" I find weird. Why and what is
trying to find localhost . localhost is not a part of the email message
I sent.

Re: Problem with postfix and ssh tunnel

<op.2m1pstu0a3w0dxdave@hodgins.homeip.net>

  copy mid

https://news.novabbs.com/computers/article-flat.php?id=6255&group=alt.os.linux.mageia#6255

  copy link   Newsgroups: alt.os.linux.mageia
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: dwhodg...@nomail.afraid.org (David W. Hodgins)
Newsgroups: alt.os.linux.mageia
Subject: Re: Problem with postfix and ssh tunnel
Date: Tue, 30 Apr 2024 10:42:19 -0400
Organization: A noiseless patient Spider
Lines: 34
Message-ID: <op.2m1pstu0a3w0dxdave@hodgins.homeip.net>
References: <v0pov3$283k6$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 30 Apr 2024 16:42:41 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="4c4aeb70bcc795ea7ffb03da06a556b1";
logging-data="2652308"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18qfbhqXLNcKdp7LpwJyMVRLEGbO0/UvsM="
User-Agent: Opera Mail/12.16 (Linux)
Cancel-Lock: sha1:jFRHlVmjlBWcQGsZ1d0PD6Asu7A=
 by: David W. Hodgins - Tue, 30 Apr 2024 14:42 UTC

On Mon, 29 Apr 2024 23:36:03 -0400, William Unruh <unruh@invalid.ca> wrote:

> I have a machine AA which is outside a firewall of machine CC. for the
> past 10 years I have been running an ssh tunnel to CC, and sending my
> mail to CC as a relay.
>
> autossh -M0 -nNT -L 1097:CC:25 CC
>
> In postfix transport I have
>
> * smtp:localhost:1097
>
> As I say this has worked not for a long time. Suddenly it stopped
> working last week.
>
> I sent a testmail from AA to my account on CC.
> I get the following error messages
>
> Apr 29 16:38:02 AA postfix/pickup[621062]: D963C1054F1: uid=1000 from=<unruh>
> Apr 29 16:38:02 AA postfix/cleanup[621154]: D963C1054F1: message-id=<444a3cbf-c530-b383-526e-ef91246c547@physics.ubc.ca>
> Apr 29 16:38:02 AA postfix/qmgr[621063]: D963C1054F1: from=<unruh@physics.ubc.ca>, size=417, nrcpt=1 (queue active)
> Apr 29 16:38:02 AA postfix/discard[621158]: warning: unexpected attribute nrequest from bounce socket (expecting: flags)
> Apr 29 16:38:02 AA postfix/discard[621158]: warning: deliver_request_get: error receiving common attributes
> Apr 29 16:38:02 AA postfix/smtp[621157]: D963C1054F1: to=<unruh@physics.ubc.ca>, relay=none, delay=0.12, delays=0.07/0.01/0.04/0, dsn=5.4.4, status=bounced (Host or domain name not found. Name service error for name=localhost type=A: Host not found)
> Apr 29 16:38:02 AA postfix/qmgr[621063]: D963C1054F1: removed
>
>
> The line "Host or domain name not found. Name service error for
> name=localhost type=A: Host not found)" I find weird. Why and what is
> trying to find localhost . localhost is not a part of the email message

Has /etc/hosts been deleted or lost due to an i/o error?

Regards, Dave Hodgins

Re: Problem with postfix and ssh tunnel

<v0r36c$2hm4q$1@dont-email.me>

  copy mid

https://news.novabbs.com/computers/article-flat.php?id=6256&group=alt.os.linux.mageia#6256

  copy link   Newsgroups: alt.os.linux.mageia
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: unr...@invalid.ca (William Unruh)
Newsgroups: alt.os.linux.mageia
Subject: Re: Problem with postfix and ssh tunnel
Date: Tue, 30 Apr 2024 15:36:44 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 47
Message-ID: <v0r36c$2hm4q$1@dont-email.me>
References: <v0pov3$283k6$1@dont-email.me>
<op.2m1pstu0a3w0dxdave@hodgins.homeip.net>
Injection-Date: Tue, 30 Apr 2024 17:36:45 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="8f8869725bdb2ee97ec0a5a053b68544";
logging-data="2676890"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/8Dt1HrqMJIVIiSu2Nzm8l"
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:ai1264PrcKS/Hkxo+nIOIw5YDHc=
 by: William Unruh - Tue, 30 Apr 2024 15:36 UTC

On 2024-04-30, David W. Hodgins <dwhodgins@nomail.afraid.org> wrote:
> On Mon, 29 Apr 2024 23:36:03 -0400, William Unruh <unruh@invalid.ca> wrote:
>
>> I have a machine AA which is outside a firewall of machine CC. for the
>> past 10 years I have been running an ssh tunnel to CC, and sending my
>> mail to CC as a relay.
>>
>> autossh -M0 -nNT -L 1097:CC:25 CC
>>
>> In postfix transport I have
>>
>> * smtp:localhost:1097
>>
>> As I say this has worked not for a long time. Suddenly it stopped
>> working last week.
>>
>> I sent a testmail from AA to my account on CC.
>> I get the following error messages
>>
>> Apr 29 16:38:02 AA postfix/pickup[621062]: D963C1054F1: uid=1000 from=<unruh>
>> Apr 29 16:38:02 AA postfix/cleanup[621154]: D963C1054F1: message-id=<444a3cbf-c530-b383-526e-ef91246c547@physics.ubc.ca>
>> Apr 29 16:38:02 AA postfix/qmgr[621063]: D963C1054F1: from=<unruh@physics.ubc.ca>, size=417, nrcpt=1 (queue active)
>> Apr 29 16:38:02 AA postfix/discard[621158]: warning: unexpected attribute nrequest from bounce socket (expecting: flags)
>> Apr 29 16:38:02 AA postfix/discard[621158]: warning: deliver_request_get: error receiving common attributes
>> Apr 29 16:38:02 AA postfix/smtp[621157]: D963C1054F1: to=<unruh@physics.ubc.ca>, relay=none, delay=0.12, delays=0.07/0.01/0.04/0, dsn=5.4.4, status=bounced (Host or domain name not found. Name service error for name=localhost type=A: Host not found)
>> Apr 29 16:38:02 AA postfix/qmgr[621063]: D963C1054F1: removed
>>
>>
>> The line "Host or domain name not found. Name service error for
>> name=localhost type=A: Host not found)" I find weird. Why and what is
>> trying to find localhost . localhost is not a part of the email message
>
> Has /etc/hosts been deleted or lost due to an i/o error?

Nope. There is an /etc/hosts and a /var/spool/postfix/etc/hosts files
both the same, both containing 127.0.0.1 localhost entries.
(in fact both identical). and both readable by UGO.

And host.conf contains
order hosts,bind
multi on
in both locations.

I have no idea where that message is coming from, Whether from AA or CC.
But both have good /etc/hosts
>
> Regards, Dave Hodgins

Re: Problem with postfix and ssh tunnel

<op.2m1yrbt3a3w0dxdave@hodgins.homeip.net>

  copy mid

https://news.novabbs.com/computers/article-flat.php?id=6257&group=alt.os.linux.mageia#6257

  copy link   Newsgroups: alt.os.linux.mageia
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: dwhodg...@nomail.afraid.org (David W. Hodgins)
Newsgroups: alt.os.linux.mageia
Subject: Re: Problem with postfix and ssh tunnel
Date: Tue, 30 Apr 2024 13:55:49 -0400
Organization: A noiseless patient Spider
Lines: 51
Message-ID: <op.2m1yrbt3a3w0dxdave@hodgins.homeip.net>
References: <v0pov3$283k6$1@dont-email.me>
<op.2m1pstu0a3w0dxdave@hodgins.homeip.net> <v0r36c$2hm4q$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 30 Apr 2024 19:56:05 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="4c4aeb70bcc795ea7ffb03da06a556b1";
logging-data="2745059"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19ABgMVJo1Yf/BO+OHJWj9bV6QXIykrkOM="
User-Agent: Opera Mail/12.16 (Linux)
Cancel-Lock: sha1:xYOZzBckhx1kf8M147mzLSoPX5c=
 by: David W. Hodgins - Tue, 30 Apr 2024 17:55 UTC

On Tue, 30 Apr 2024 11:36:44 -0400, William Unruh <unruh@invalid.ca> wrote:

> On 2024-04-30, David W. Hodgins <dwhodgins@nomail.afraid.org> wrote:
>> On Mon, 29 Apr 2024 23:36:03 -0400, William Unruh <unruh@invalid.ca> wrote:
>>
>>> I have a machine AA which is outside a firewall of machine CC. for the
>>> past 10 years I have been running an ssh tunnel to CC, and sending my
>>> mail to CC as a relay.
>>>
>>> autossh -M0 -nNT -L 1097:CC:25 CC
>>>
>>> In postfix transport I have
>>>
>>> * smtp:localhost:1097
>>>
>>> As I say this has worked not for a long time. Suddenly it stopped
>>> working last week.
>>>
>>> I sent a testmail from AA to my account on CC.
>>> I get the following error messages
>>>
>>> Apr 29 16:38:02 AA postfix/pickup[621062]: D963C1054F1: uid=1000 from=<unruh>
>>> Apr 29 16:38:02 AA postfix/cleanup[621154]: D963C1054F1: message-id=<444a3cbf-c530-b383-526e-ef91246c547@physics.ubc.ca>
>>> Apr 29 16:38:02 AA postfix/qmgr[621063]: D963C1054F1: from=<unruh@physics.ubc.ca>, size=417, nrcpt=1 (queue active)
>>> Apr 29 16:38:02 AA postfix/discard[621158]: warning: unexpected attribute nrequest from bounce socket (expecting: flags)
>>> Apr 29 16:38:02 AA postfix/discard[621158]: warning: deliver_request_get: error receiving common attributes
>>> Apr 29 16:38:02 AA postfix/smtp[621157]: D963C1054F1: to=<unruh@physics.ubc.ca>, relay=none, delay=0.12, delays=0.07/0.01/0.04/0, dsn=5.4.4, status=bounced (Host or domain name not found. Name service error for name=localhost type=A: Host not found)
>>> Apr 29 16:38:02 AA postfix/qmgr[621063]: D963C1054F1: removed
>>>
>>>
>>> The line "Host or domain name not found. Name service error for
>>> name=localhost type=A: Host not found)" I find weird. Why and what is
>>> trying to find localhost . localhost is not a part of the email message
>>
>> Has /etc/hosts been deleted or lost due to an i/o error?
>
> Nope. There is an /etc/hosts and a /var/spool/postfix/etc/hosts files
> both the same, both containing 127.0.0.1 localhost entries.
> (in fact both identical). and both readable by UGO.
>
> And host.conf contains
> order hosts,bind
> multi on
> in both locations.
>
> I have no idea where that message is coming from, Whether from AA or CC.
> But both have good /etc/hosts

What is the output of "systemctl status resolvconf.service"?

Regards, Dave Hodgins

Re: Problem with postfix and ssh tunnel

<v0rhec$2l7ob$1@dont-email.me>

  copy mid

https://news.novabbs.com/computers/article-flat.php?id=6258&group=alt.os.linux.mageia#6258

  copy link   Newsgroups: alt.os.linux.mageia
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: unr...@invalid.ca (William Unruh)
Newsgroups: alt.os.linux.mageia
Subject: Re: Problem with postfix and ssh tunnel
Date: Tue, 30 Apr 2024 19:39:56 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 70
Message-ID: <v0rhec$2l7ob$1@dont-email.me>
References: <v0pov3$283k6$1@dont-email.me>
<op.2m1pstu0a3w0dxdave@hodgins.homeip.net> <v0r36c$2hm4q$1@dont-email.me>
<op.2m1yrbt3a3w0dxdave@hodgins.homeip.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf8
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 30 Apr 2024 21:39:57 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="8f8869725bdb2ee97ec0a5a053b68544";
logging-data="2793227"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX194re9PE8NrlKbwTSaLcPMU"
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:ubmQ0Ol6rxwmYY6PwJA46OyjffA=
 by: William Unruh - Tue, 30 Apr 2024 19:39 UTC

On 2024-04-30, David W. Hodgins <dwhodgins@nomail.afraid.org> wrote:
> On Tue, 30 Apr 2024 11:36:44 -0400, William Unruh <unruh@invalid.ca> wrote:
>
>> On 2024-04-30, David W. Hodgins <dwhodgins@nomail.afraid.org> wrote:
>>> On Mon, 29 Apr 2024 23:36:03 -0400, William Unruh <unruh@invalid.ca> wrote:
>>>
>>>> I have a machine AA which is outside a firewall of machine CC. for the
>>>> past 10 years I have been running an ssh tunnel to CC, and sending my
>>>> mail to CC as a relay.
>>>>
>>>> autossh -M0 -nNT -L 1097:CC:25 CC
>>>>
>>>> In postfix transport I have
>>>>
>>>> * smtp:localhost:1097
>>>>
>>>> As I say this has worked not for a long time. Suddenly it stopped
>>>> working last week.
>>>>
>>>> I sent a testmail from AA to my account on CC.
>>>> I get the following error messages
>>>>
>>>> Apr 29 16:38:02 AA postfix/pickup[621062]: D963C1054F1: uid=1000 from=<unruh>
>>>> Apr 29 16:38:02 AA postfix/cleanup[621154]: D963C1054F1: message-id=<444a3cbf-c530-b383-526e-ef91246c547@physics.ubc.ca>
>>>> Apr 29 16:38:02 AA postfix/qmgr[621063]: D963C1054F1: from=<unruh@physics.ubc.ca>, size=417, nrcpt=1 (queue active)
>>>> Apr 29 16:38:02 AA postfix/discard[621158]: warning: unexpected attribute nrequest from bounce socket (expecting: flags)
>>>> Apr 29 16:38:02 AA postfix/discard[621158]: warning: deliver_request_get: error receiving common attributes
>>>> Apr 29 16:38:02 AA postfix/smtp[621157]: D963C1054F1: to=<unruh@physics.ubc.ca>, relay=none, delay=0.12, delays=0.07/0.01/0.04/0, dsn=5.4.4, status=bounced (Host or domain name not found. Name service error for name=localhost type=A: Host not found)
>>>> Apr 29 16:38:02 AA postfix/qmgr[621063]: D963C1054F1: removed
>>>>
>>>>
>>>> The line "Host or domain name not found. Name service error for
>>>> name=localhost type=A: Host not found)" I find weird. Why and what is
>>>> trying to find localhost . localhost is not a part of the email message
>>>
>>> Has /etc/hosts been deleted or lost due to an i/o error?
>>
>> Nope. There is an /etc/hosts and a /var/spool/postfix/etc/hosts files
>> both the same, both containing 127.0.0.1 localhost entries.
>> (in fact both identical). and both readable by UGO.
>>
>> And host.conf contains
>> order hosts,bind
>> multi on
>> in both locations.
>>
>> I have no idea where that message is coming from, Whether from AA or CC.
>> But both have good /etc/hosts
>
> What is the output of "systemctl status resolvconf.service"?
>
> Regards, Dave Hodgins

tunnel:0[unruh]>systemctl status resolvconf
● resolvconf.service - LSB: Nameserver information manager
Loaded: loaded (/etc/rc.d/init.d/resolvconf; generated)
Active: active (exited) since Sun 2024-04-21 21:44:58 PDT; 1 week 1 day ago
Docs: man:systemd-sysv-generator(8)
Process: 880 ExecStart=/etc/rc.d/init.d/resolvconf start (code=exited, status=0/SUCCES>
CPU: 63ms

Apr 21 21:44:57 CC.physics.ubc.ca systemd[1]: Starting LSB: Nameserver information man>
Apr 21 21:44:58 CC.physics.ubc.ca resolvconf[880]: Starting resolvconf: /etc/init.d/fu>
Apr 21 21:44:58 CC.physics.ubc.ca resolvconf[880]: [ OK ]
Apr 21 21:44:58 CC.physics.ubc.ca systemd[1]: Started LSB: Nameserver information mana

By the way, how do I stop the pager for systemctl and journalctl to stop
truncating instead of folding the lines that it prints out?

Re: Problem with postfix and ssh tunnel

<v0s986$2u6lb$1@dont-email.me>

  copy mid

https://news.novabbs.com/computers/article-flat.php?id=6259&group=alt.os.linux.mageia#6259

  copy link   Newsgroups: alt.os.linux.mageia
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: unr...@invalid.ca (William Unruh)
Newsgroups: alt.os.linux.mageia
Subject: Re: Problem with postfix and ssh tunnel
Date: Wed, 1 May 2024 02:26:14 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 100
Message-ID: <v0s986$2u6lb$1@dont-email.me>
References: <v0pov3$283k6$1@dont-email.me>
<op.2m1pstu0a3w0dxdave@hodgins.homeip.net> <v0r36c$2hm4q$1@dont-email.me>
<op.2m1yrbt3a3w0dxdave@hodgins.homeip.net> <v0rhec$2l7ob$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 01 May 2024 04:26:15 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="a43fe7d10b40bc511ce72563579e54af";
logging-data="3087019"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/hxpdMHywPVbo05/1qvdsI"
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:Y3ViiDLXyJSKROsv2lHuRfTvUIg=
 by: William Unruh - Wed, 1 May 2024 02:26 UTC

It is getting weirder. I have two machine CC and DD both behind a
wireless router. Both use the same address on an ssh tunnel to get
through to the server.

One of them has the problem with localhost, but the messages now are
geting through to the recipient. The othr one has no problem with
localhost, but gets delivered to a different mail gateway at the
university.
ssh tunnels
AA--1098--\ _______NN
\___________O___25__CC /
~~~~~~~~~~~U \_______EE
BB--1098--/
End of Mail relays
tunnel
Both machines AA an BB have an ssh tunnel which has port localhost:1098 on both
machines and the other end of the tunnels both deliver to port 25 on the server CC. Then CC send the
messages to two different mail-relays, which behave it seems very
differently. The one attached to AA (NN) sends back a message that it
cannot find localhost (at least that is what I assume it is doing)
but then delivers the mail to where it is supposed to go.
the one that BB gets its mail sent to (EE), does not seem to answer at
all, and a error message get sent that the Connection timed out, and it
EE keeps doing that.

And yet, I have made AA and BB as alike as I can. (I may have missed
something, but have no idea what).

On 2024-04-30, William Unruh <unruh@invalid.ca> wrote:
> On 2024-04-30, David W. Hodgins <dwhodgins@nomail.afraid.org> wrote:
>> On Tue, 30 Apr 2024 11:36:44 -0400, William Unruh <unruh@invalid.ca> wrote:
>>
>>> On 2024-04-30, David W. Hodgins <dwhodgins@nomail.afraid.org> wrote:
>>>> On Mon, 29 Apr 2024 23:36:03 -0400, William Unruh <unruh@invalid.ca> wrote:
>>>>
>>>>> I have a machine AA which is outside a firewall of machine CC. for the
>>>>> past 10 years I have been running an ssh tunnel to CC, and sending my
>>>>> mail to CC as a relay.
>>>>>
>>>>> autossh -M0 -nNT -L 1097:CC:25 CC
>>>>>
>>>>> In postfix transport I have
>>>>>
>>>>> * smtp:localhost:1097
>>>>>
>>>>> As I say this has worked not for a long time. Suddenly it stopped
>>>>> working last week.
>>>>>
>>>>> I sent a testmail from AA to my account on CC.
>>>>> I get the following error messages
>>>>>
>>>>> Apr 29 16:38:02 AA postfix/pickup[621062]: D963C1054F1: uid=1000 from=<unruh>
>>>>> Apr 29 16:38:02 AA postfix/cleanup[621154]: D963C1054F1: message-id=<444a3cbf-c530-b383-526e-ef91246c547@physics.ubc.ca>
>>>>> Apr 29 16:38:02 AA postfix/qmgr[621063]: D963C1054F1: from=<unruh@physics.ubc.ca>, size=417, nrcpt=1 (queue active)
>>>>> Apr 29 16:38:02 AA postfix/discard[621158]: warning: unexpected attribute nrequest from bounce socket (expecting: flags)
>>>>> Apr 29 16:38:02 AA postfix/discard[621158]: warning: deliver_request_get: error receiving common attributes
>>>>> Apr 29 16:38:02 AA postfix/smtp[621157]: D963C1054F1: to=<unruh@physics.ubc.ca>, relay=none, delay=0.12, delays=0.07/0.01/0.04/0, dsn=5.4.4, status=bounced (Host or domain name not found. Name service error for name=localhost type=A: Host not found)
>>>>> Apr 29 16:38:02 AA postfix/qmgr[621063]: D963C1054F1: removed
>>>>>
>>>>>
>>>>> The line "Host or domain name not found. Name service error for
>>>>> name=localhost type=A: Host not found)" I find weird. Why and what is
>>>>> trying to find localhost . localhost is not a part of the email message
>>>>
>>>> Has /etc/hosts been deleted or lost due to an i/o error?
>>>
>>> Nope. There is an /etc/hosts and a /var/spool/postfix/etc/hosts files
>>> both the same, both containing 127.0.0.1 localhost entries.
>>> (in fact both identical). and both readable by UGO.
>>>
>>> And host.conf contains
>>> order hosts,bind
>>> multi on
>>> in both locations.
>>>
>>> I have no idea where that message is coming from, Whether from AA or CC.
>>> But both have good /etc/hosts
>>
>> What is the output of "systemctl status resolvconf.service"?
>>
>> Regards, Dave Hodgins
>
> tunnel:0[unruh]>systemctl status resolvconf
> ● resolvconf.service - LSB: Nameserver information manager
> Loaded: loaded (/etc/rc.d/init.d/resolvconf; generated)
> Active: active (exited) since Sun 2024-04-21 21:44:58 PDT; 1 week 1 day ago
> Docs: man:systemd-sysv-generator(8)
> Process: 880 ExecStart=/etc/rc.d/init.d/resolvconf start (code=exited, status=0/SUCCES>
> CPU: 63ms
>
> Apr 21 21:44:57 CC.physics.ubc.ca systemd[1]: Starting LSB: Nameserver information man>
> Apr 21 21:44:58 CC.physics.ubc.ca resolvconf[880]: Starting resolvconf: /etc/init.d/fu>
> Apr 21 21:44:58 CC.physics.ubc.ca resolvconf[880]: [ OK ]
> Apr 21 21:44:58 CC.physics.ubc.ca systemd[1]: Started LSB: Nameserver information mana
>
>
>
> By the way, how do I stop the pager for systemctl and journalctl to stop
> truncating instead of folding the lines that it prints out?

Re: Problem with postfix and ssh tunnel

<op.2m2p5xvia3w0dxdave@hodgins.homeip.net>

  copy mid

https://news.novabbs.com/computers/article-flat.php?id=6260&group=alt.os.linux.mageia#6260

  copy link   Newsgroups: alt.os.linux.mageia
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: dwhodg...@nomail.afraid.org (David W. Hodgins)
Newsgroups: alt.os.linux.mageia
Subject: Re: Problem with postfix and ssh tunnel
Date: Tue, 30 Apr 2024 23:47:47 -0400
Organization: A noiseless patient Spider
Lines: 76
Message-ID: <op.2m2p5xvia3w0dxdave@hodgins.homeip.net>
References: <v0pov3$283k6$1@dont-email.me>
<op.2m1pstu0a3w0dxdave@hodgins.homeip.net> <v0r36c$2hm4q$1@dont-email.me>
<op.2m1yrbt3a3w0dxdave@hodgins.homeip.net> <v0rhec$2l7ob$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 01 May 2024 05:47:56 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="429fb2f3a43df6bcf88a462f2fc1e2df";
logging-data="3114955"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18C6W+pq+mTPukFdgkNNmIO/2AIphFahDU="
User-Agent: Opera Mail/12.16 (Linux)
Cancel-Lock: sha1:P5T/mi9b0qLl+mcGYq2BChwBs4Q=
 by: David W. Hodgins - Wed, 1 May 2024 03:47 UTC

On Tue, 30 Apr 2024 15:39:56 -0400, William Unruh <unruh@invalid.ca> wrote:

> On 2024-04-30, David W. Hodgins <dwhodgins@nomail.afraid.org> wrote:
>> On Tue, 30 Apr 2024 11:36:44 -0400, William Unruh <unruh@invalid.ca> wrote:
>>
>>> On 2024-04-30, David W. Hodgins <dwhodgins@nomail.afraid.org> wrote:
>>>> On Mon, 29 Apr 2024 23:36:03 -0400, William Unruh <unruh@invalid.ca> wrote:
>>>>
>>>>> I have a machine AA which is outside a firewall of machine CC. for the
>>>>> past 10 years I have been running an ssh tunnel to CC, and sending my
>>>>> mail to CC as a relay.
>>>>>
>>>>> autossh -M0 -nNT -L 1097:CC:25 CC
>>>>>
>>>>> In postfix transport I have
>>>>>
>>>>> * smtp:localhost:1097
>>>>>
>>>>> As I say this has worked not for a long time. Suddenly it stopped
>>>>> working last week.
>>>>>
>>>>> I sent a testmail from AA to my account on CC.
>>>>> I get the following error messages
>>>>>
>>>>> Apr 29 16:38:02 AA postfix/pickup[621062]: D963C1054F1: uid=1000 from=<unruh>
>>>>> Apr 29 16:38:02 AA postfix/cleanup[621154]: D963C1054F1: message-id=<444a3cbf-c530-b383-526e-ef91246c547@physics.ubc.ca>
>>>>> Apr 29 16:38:02 AA postfix/qmgr[621063]: D963C1054F1: from=<unruh@physics.ubc.ca>, size=417, nrcpt=1 (queue active)
>>>>> Apr 29 16:38:02 AA postfix/discard[621158]: warning: unexpected attribute nrequest from bounce socket (expecting: flags)
>>>>> Apr 29 16:38:02 AA postfix/discard[621158]: warning: deliver_request_get: error receiving common attributes
>>>>> Apr 29 16:38:02 AA postfix/smtp[621157]: D963C1054F1: to=<unruh@physics.ubc.ca>, relay=none, delay=0.12, delays=0.07/0.01/0.04/0, dsn=5.4.4, status=bounced (Host or domain name not found. Name service error for name=localhost type=A: Host not found)
>>>>> Apr 29 16:38:02 AA postfix/qmgr[621063]: D963C1054F1: removed
>>>>>
>>>>>
>>>>> The line "Host or domain name not found. Name service error for
>>>>> name=localhost type=A: Host not found)" I find weird. Why and what is
>>>>> trying to find localhost . localhost is not a part of the email message
>>>>
>>>> Has /etc/hosts been deleted or lost due to an i/o error?
>>>
>>> Nope. There is an /etc/hosts and a /var/spool/postfix/etc/hosts files
>>> both the same, both containing 127.0.0.1 localhost entries.
>>> (in fact both identical). and both readable by UGO.
>>>
>>> And host.conf contains
>>> order hosts,bind
>>> multi on
>>> in both locations.
>>>
>>> I have no idea where that message is coming from, Whether from AA or CC.
>>> But both have good /etc/hosts
>>
>> What is the output of "systemctl status resolvconf.service"?
>>
>> Regards, Dave Hodgins
>
> tunnel:0[unruh]>systemctl status resolvconf
> ● resolvconf.service - LSB: Nameserver information manager
> Loaded: loaded (/etc/rc.d/init.d/resolvconf; generated)
> Active: active (exited) since Sun 2024-04-21 21:44:58 PDT; 1 week 1 day ago
> Docs: man:systemd-sysv-generator(8)
> Process: 880 ExecStart=/etc/rc.d/init.d/resolvconf start (code=exited, status=0/SUCCES>
> CPU: 63ms
>
> Apr 21 21:44:57 CC.physics.ubc.ca systemd[1]: Starting LSB: Nameserver information man>
> Apr 21 21:44:58 CC.physics.ubc.ca resolvconf[880]: Starting resolvconf: /etc/init.d/fu>
> Apr 21 21:44:58 CC.physics.ubc.ca resolvconf[880]: [ OK ]
> Apr 21 21:44:58 CC.physics.ubc.ca systemd[1]: Started LSB: Nameserver information mana
>
>
>
> By the way, how do I stop the pager for systemctl and journalctl to stop
> truncating instead of folding the lines that it prints out?

Add the options "-l --no-pager".

Regards, Dave Hodgins


computers / alt.os.linux.mageia / Problem with postfix and ssh tunnel

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor