[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: email lacks sender address



On Mon 25 Apr 2022 at 11:39:01 (-0400), Haines Brown wrote:
> On Sun, Apr 24, 2022 at 11:31:58PM -0500, David Wright wrote:
> > 
> > You need to look¹ at exim's logs (/var/log/exim4/mainlog,
> > /var/log/exim4/mainlog.1 and /var/log/exim4/mainlog.*.gz)
> > to see what it's trying to send. There should be a line
> > where mutt hands your email to exim
> >
> > DATE TIME UNIQUESTRING <= your-from-address U=username … message-ID
> > 
> > the string of interest    ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑
> > 
> > That should be followed by:
> > 
> > DATE TIME SAMESTRING => to-address A=this B=that …
> 
> 2022-04-24 10:44:02 1nidSz-00068k-QP rejected from <> U=Debian-exim: message to>
> Envelope-from: <>
> Envelope-to: <root@histomat.net>
> 
> I infer that exim is not being given the envelop address of the
> sender.

Right, so now we need to know the origin of that particular email.
What do the logs show happening at that time.

If you, personally, sent it, presumably from mutt, and presumably
knowing that you did, then there's a problem in mutt, or in your
ability to compose a conforming email.

If the system sent it, which seems more likely because it's to root,
then we need to determine why the system that sent it didn't "know"
who it was. Typical senders include cron, sudo, SMART, etc.

Also, you need to check whether "you" is receiving a failed message
on the system. Because of the contents of /etc/aliases, this is
normally redirected to root/postmaster → root → sysadmin, where
sysadmin is the First User (who set up the machine), ie it should
arrive in /var/mail/you.

> > > what does "test-server.example.net" refer to? Sorry for my ignorance.
> > 
> > Read https://en.wikipedia.org/wiki/Example.com
> 
> Thanks David, but that was not my question. What test server is being 
> takled about?
> 
> I guess that the mail server is my own machine and so try:
> 
>   $ swaks  --to <an email address> ria72@yahoo.com --from haines@histomat.net
>   ...
>   <-  250 STARTTLS
>     -> MAIL FROM:<haines@histomat.net>
>   <** 553 5.7.2 [TSS09] All messages from 32.210.108.191 will be 
>     permanently deferred; Retrying will NOT succeed. See 
>   https://postmaster.yahooinc.com/error-codes
>    -> QUIT
>   *** Remote host closed connection unexpectedly.
> 
> Incidentally, I get 
> 
>   $ hostname -A
>   lenin-16.home
> 
> that's strange. Should be lenin.histomat.net

Your example demonstrates what example.net (and its companions,
com/org/edu) is for: example.net is a real domain, designed for use
in internet documentation.

$ ping test-server.example.net
ping: test-server.example.net: Name or service not known
$ ping www.example.net
PING www.example.net (93.184.216.34) 56(84) bytes of data.
64 bytes from 93.184.216.34 (93.184.216.34): icmp_seq=1 ttl=57 time=25.5 ms
^C
--- www.example.net ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 25.477/25.477/25.477/0.000 ms
$ ping example.net
PING example.net (93.184.216.34) 56(84) bytes of data.
64 bytes from 93.184.216.34 (93.184.216.34): icmp_seq=1 ttl=57 time=24.1 ms
64 bytes from 93.184.216.34 (93.184.216.34): icmp_seq=2 ttl=57 time=23.6 ms
^C
--- example.net ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 2ms
rtt min/avg/max/mdev = 23.573/23.857/24.142/0.323 ms
$ 

Why do all telephone numbers in the movies start 555 …

Cheers,
David.


Reply to: