Sending mail from home lan still not being accepted on the internet

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Sending mail from home lan still not being accepted on the internet

Harry Putnam
HDW: HP wx8600 work station, 2x Xeon X5470, 3.33GHz
  Running Openindiana/hipster HOST (Ilumos branch of solaris 11)
  Running ubunto 17.04 inside Vbox vm on above host
  postfix-3.14, Sasl 2.1.27~

Attempting to get postfix setup

My situtation is single user on home lan with no real domain name
That is, hostname and dowmainname are made up just for home lan.
  u0.local.lan

To my inexperienced eyes the logs (below) appear to indicate that
authentication was accepted and message sent onward.

But then I get a message like this by email, with the subject line:

  Undelivered Mail Returned to Sender


                   The mail system

   <[hidden email]>: Cannot start TLS: handshake failure

with an attachement that says:

   Reporting-MTA: dns; mailauth.nyi.internal
  X-Postfix-Queue-ID: C44B420EF3

  X-Postfix-Sender: rfc822;
  hput3+mesmtpauthpersonality-20063881-7501917-reader==[hidden email]

  Arrival-Date: Sun, 13 Aug 2017 13:56:16 -0400 (EDT)

  Final-Recipient: rfc822; [hidden email]
  Original-Recipient: rfc822;[hidden email]
  Action: failed
  Status: 4.7.5
  Diagnostic-Code: X-Postfix; Cannot start TLS: handshake failure

I think this might mean my domain could not be resolved, but hopefully
someone here will know better how to interpret this.

So, how can I get this to work?  It appears my credential were ok.
Is that correct?

If my assumptions above are about right then what do I need to do to get
This to work.  Some kind of rewrite as the mail is sent out?

Perhaps masquerading?

just skimming http://www.postfix.org/ADDRESS_REWRITING_README.html
I see it talks about:
rewriting mail when it is recieved
rewriting mail when it is delivered.

But no heading for rewriting when sent, onless one of those above
covers that.

I'm thinking rewrite of the hostname and domain is what might be needed.

I'm not really getting how to make my host and domain into something
mail systems on the internet will not bounce.

Can anyone coach me on this?
Maybe at least let me know if I'm in the ball park.

-------        ---------       ---=---       ---------      --------

Logs from attempting to send a message like this:

mailx -v -s "TEST 170813_140410 u0" [hidden email] < ~/txtmsg.txt

-------        ---------       ---=---       ---------      --------
/var/log/mail.log:

Aug 13 14:37:55 u0 postfix/pickup[6727]: C630B180CB9: uid=1000
from=<reader>

Aug 13 14:37:55 u0 postfix/cleanup[6746]: C630B180CB9:
message-id=<20170813183755.C630B180CB9@u1>

Aug 13 14:37:55 u0 postfix/qmgr[6728]: C630B180CB9:
from=<[hidden email]>, size=1374, nrcpt=1 (queue active)

Aug 13 14:37:56 u0 postfix/smtp[6748]: C630B180CB9:
to=<[hidden email]>, relay=smtp.fastmail.com[66.111.4.139]:587,
delay=0.67, delays=0.12/0.1/0.36/0.09, dsn=2.0.0, status=sent (250 2.0.0
Ok: queued as 5A0A57E317)

Aug 13 14:37:56 u0 postfix/cleanup[6746]: 6943A180CBB:
message-id=<20170813183756.6943A180CBB@u1>

Aug 13 14:37:56 u0 postfix/qmgr[6728]: 6943A180CBB: from=<>, size=1939,
nrcpt=1 (queue active)

Aug 13 14:37:56 u0 postfix/bounce[6750]: C630B180CB9: sender delivery
status notification: 6943A180CBB

Aug 13 14:37:56 u0 postfix/qmgr[6728]: C630B180CB9: removed

-------        ---------       ---=---       ---------      --------
Reply | Threaded
Open this post in threaded view
|

Re: Sending mail from home lan still not being accepted on the internet

lists@lazygranch.com
Wouldn't you need something like no-ip so your router can be found?

Try to ping your router from a device not on your network such as from a cell phone.



  Original Message  
From: [hidden email]
Sent: August 13, 2017 11:54 AM
To: [hidden email]
Subject: Sending mail from home lan still not being accepted on the internet

HDW: HP wx8600 work station, 2x Xeon X5470, 3.33GHz
  Running Openindiana/hipster HOST (Ilumos branch of solaris 11)
  Running ubunto 17.04 inside Vbox vm on above host
  postfix-3.14, Sasl 2.1.27~

Attempting to get postfix setup

My situtation is single user on home lan with no real domain name
That is, hostname and dowmainname are made up just for home lan.
  u0.local.lan

To my inexperienced eyes the logs (below) appear to indicate that
authentication was accepted and message sent onward.

But then I get a message like this by email, with the subject line:

  Undelivered Mail Returned to Sender


                   The mail system

   <[hidden email]>: Cannot start TLS: handshake failure

with an attachement that says:

   Reporting-MTA: dns; mailauth.nyi.internal
  X-Postfix-Queue-ID: C44B420EF3

  X-Postfix-Sender: rfc822;
  hput3+mesmtpauthpersonality-20063881-7501917-reader==[hidden email]

  Arrival-Date: Sun, 13 Aug 2017 13:56:16 -0400 (EDT)

  Final-Recipient: rfc822; [hidden email]
  Original-Recipient: rfc822;[hidden email]
  Action: failed
  Status: 4.7.5
  Diagnostic-Code: X-Postfix; Cannot start TLS: handshake failure

I think this might mean my domain could not be resolved, but hopefully
someone here will know better how to interpret this.

So, how can I get this to work?  It appears my credential were ok.
Is that correct?

If my assumptions above are about right then what do I need to do to get
This to work.  Some kind of rewrite as the mail is sent out?

Perhaps masquerading?

just skimming http://www.postfix.org/ADDRESS_REWRITING_README.html
I see it talks about:
rewriting mail when it is recieved
rewriting mail when it is delivered.

But no heading for rewriting when sent, onless one of those above
covers that.

I'm thinking rewrite of the hostname and domain is what might be needed.

I'm not really getting how to make my host and domain into something
mail systems on the internet will not bounce.

Can anyone coach me on this?
Maybe at least let me know if I'm in the ball park.

-------        ---------       ---=---       ---------      --------

Logs from attempting to send a message like this:

mailx -v -s "TEST 170813_140410 u0" [hidden email] < ~/txtmsg.txt

-------        ---------       ---=---       ---------      --------
/var/log/mail.log:

Aug 13 14:37:55 u0 postfix/pickup[6727]: C630B180CB9: uid=1000
from=<reader>

Aug 13 14:37:55 u0 postfix/cleanup[6746]: C630B180CB9:
message-id=<20170813183755.C630B180CB9@u1>

Aug 13 14:37:55 u0 postfix/qmgr[6728]: C630B180CB9:
from=<[hidden email]>, size=1374, nrcpt=1 (queue active)

Aug 13 14:37:56 u0 postfix/smtp[6748]: C630B180CB9:
to=<[hidden email]>, relay=smtp.fastmail.com[66.111.4.139]:587,
delay=0.67, delays=0.12/0.1/0.36/0.09, dsn=2.0.0, status=sent (250 2.0.0
Ok: queued as 5A0A57E317)

Aug 13 14:37:56 u0 postfix/cleanup[6746]: 6943A180CBB:
message-id=<20170813183756.6943A180CBB@u1>

Aug 13 14:37:56 u0 postfix/qmgr[6728]: 6943A180CBB: from=<>, size=1939,
nrcpt=1 (queue active)

Aug 13 14:37:56 u0 postfix/bounce[6750]: C630B180CB9: sender delivery
status notification: 6943A180CBB

Aug 13 14:37:56 u0 postfix/qmgr[6728]: C630B180CB9: removed

-------        ---------       ---=---       ---------      --------
Reply | Threaded
Open this post in threaded view
|

Re: Sending mail from home lan still not being accepted on the internet

Wietse Venema
In reply to this post by Harry Putnam
Harry Putnam:
> Logs from attempting to send a message like this:
>
> mailx -v -s "TEST 170813_140410 u0" [hidden email] < ~/txtmsg.txt

You're using mailx -v, therefore Postfix will send you an email
message with a summary of the delivery. I'll get back to that later.

Fist the message submitted with mailx -v:

> Aug 13 14:37:55 u0 postfix/pickup[6727]: C630B180CB9: uid=1000
> from=<reader>
>
> Aug 13 14:37:55 u0 postfix/cleanup[6746]: C630B180CB9:
> message-id=<20170813183755.C630B180CB9@u1>
>
> Aug 13 14:37:55 u0 postfix/qmgr[6728]: C630B180CB9:
> from=<[hidden email]>, size=1374, nrcpt=1 (queue active)
>
> Aug 13 14:37:56 u0 postfix/smtp[6748]: C630B180CB9:
> to=<[hidden email]>, relay=smtp.fastmail.com[66.111.4.139]:587,
> delay=0.67, delays=0.12/0.1/0.36/0.09, dsn=2.0.0, status=sent (250 2.0.0
> Ok: queued as 5A0A57E317)

The message was delivered to smtp.fastmail.com.

Then, Postfix sends an email with summary of what happened:

> Aug 13 14:37:56 u0 postfix/cleanup[6746]: 6943A180CBB:
> message-id=<20170813183756.6943A180CBB@u1>
>
> Aug 13 14:37:56 u0 postfix/qmgr[6728]: 6943A180CBB: from=<>, size=1939,
> nrcpt=1 (queue active)
>
> Aug 13 14:37:56 u0 postfix/bounce[6750]: C630B180CB9: sender delivery
> status notification: 6943A180CBB
>
> Aug 13 14:37:56 u0 postfix/qmgr[6728]: C630B180CB9: removed

Where is the rest of the logging for 6943A180CBB?

As for this:

>   Undelivered Mail Returned to Sender
>
>
>                    The mail system
>
>    <[hidden email]>: Cannot start TLS: handshake failure
>
> with an attachement that says:
>
>    Reporting-MTA: dns; mailauth.nyi.internal
>   X-Postfix-Queue-ID: C44B420EF3

That is UNRELATED to the logging above. It was sent by a mail system
that calls itself mailauth.nyi.internal. To find out more about
message C44B420EF3, ask the owner of that system what happened with
message C44B420EF3.

        Wietse
Reply | Threaded
Open this post in threaded view
|

Re: Sending mail from home lan still not being accepted on the internet

Harry Putnam


On Sun, Aug 13, 2017, at 21:13, Wietse Venema wrote:

[...]

> > Aug 13 14:37:55 u0 postfix/pickup[6727]: C630B180CB9: uid=1000
> > from=<reader>
> >
> > Aug 13 14:37:55 u0 postfix/cleanup[6746]: C630B180CB9:
> > message-id=<20170813183755.C630B180CB9@u1>
> >
> > Aug 13 14:37:55 u0 postfix/qmgr[6728]: C630B180CB9:
> > from=<[hidden email]>, size=1374, nrcpt=1 (queue active)
> >
> > Aug 13 14:37:56 u0 postfix/smtp[6748]: C630B180CB9:
> > to=<[hidden email]>, relay=smtp.fastmail.com[66.111.4.139]:587,
> > delay=0.67, delays=0.12/0.1/0.36/0.09, dsn=2.0.0, status=sent (250 2.0.0
> > Ok: queued as 5A0A57E317)
>
> The message was delivered to smtp.fastmail.com.

[...]

> Where is the rest of the logging for 6943A180CBB?

I sent what looked most relevant... but before finding and posting any
others, I have found
the problem so don't need to pester you further.

[...]
 
> >    Reporting-MTA: dns; mailauth.nyi.internal
> >   X-Postfix-Queue-ID: C44B420EF3
>
> That is UNRELATED to the logging above. It was sent by a mail system
> that calls itself mailauth.nyi.internal. To find out more about
> message C44B420EF3, ask the owner of that system what happened with
> message C44B420EF3.

I had trouble identifying which message that applied to but do it
believe it may be the
right one.  I suspect mailauth.nyi.internal is possibly the same machine
as smtp.fastmail.com
or an internal machine at fastmail that helps process smtp requests.  I
say that because I get
one of those for each email I attempt to send using that config.

But anyway, it turns out I needed to make use of the generic table found
in the pages you referred
me to in a previous thread.

I'm only guessing here and I hope you might comment as to whether this
is a reasonable guess.

I suspect the failure was do to the fact that smtp.fastmail.com could
not reserver the domain of the mail sender.
My local machine which has a made up domain.

Once I put the generic table into play where I have this line:
[hidden email]                     [hidden email]
(Left column is my fantasy [hidden email], right column is my address
at my IP comcast)
Then, sending messages  began to arrive at its destination instead of
bouncing.

Thanks for your kind help.  As you mentioned in a previous post, every
thing I needed can be found
at: http://www.postfix.org/SOHO_README.html , or a link found there.

I should have persevered a little longer before posting again, about the
mail failures.


 
thread