SZÉPE Viktor <[email protected]> wrote:
|Idézem/Quoting Steffen Nurpmeso <[email protected]>:
|> Steffen Nurpmeso <[email protected]> wrote:
|>|SZÉPE Viktor <[email protected]> wrote:
|>||Idézem/Quoting Steffen Nurpmeso <[email protected]>:
|> ...
|>||> s-nail -E -S from="${DAEMON} <root>" -s "domain expiry alert" root
|>||>
|>||> which should complain about an invalid address. How about
|> ...
|> Just to clarify this Viktor, the above line will likely never
|> succeed because S-nail will refuse accepting the given value for
|> *from*, since "$DAEMON <root>" is not a valid e-mail address.
...
|All things were so nice with heirloom-mailx. It accepted domain-less
|recipients, and allowed the sendmail-option hack.
It did not perform any checks at all! It also did not support
specifying sendmail arguments freely, i think.
|Is there any way - maybe in the future - to bring back domain-less \
|addresses?
|But wait!
|
|$ s-nail -V
|v14.8.16
Ahhh! Of course i should have asked you which version you
actually use, sorry. Well, the v14.8 series i have passed about
31 months ago, puuh! Yes, that is very much different. Indeed.
|$ ls -la | s-nail -d -S from="TEST <root>" -s ub root
|...
|>>> MTA: "/usr/sbin/sendmail", arguments: "sendmail" "-i" "--" "root"
...
|>>> From: TEST <root>
...
|>>> User-Agent: s-nail v14.8.16
|
|It works. Would you like to break this feature?
It has been broken already in that <root> is not a valid address
and rejected starting with the 14.9 series. We need to make sure
to generate a valid address, this is a standard, Viktor. If you
do not set *from* at all and use a MTA it will do the same:
$ </dev/null s-nail -:/ -s test root
..
From steffen@localhost Tue Jan 23 16:46:12 2018
Received: from steffen (uid 1000)
(envelope-from steffen@localhost)
id 31d
by essex (DragonFly Mail Agent v0.11.13.gf8f802f);
Tue, 23 Jan 2018 16:46:12 +0100
Date: Tue, 23 Jan 2018 16:46:12 +0100
To: root
Subject: test
User-Agent: s-nail v14.9.6-40-gdd750017
Message-Id: <5a6758c4.31d.3704b0e1@essex>
From: <steffen@localhost>
You want some kind of "automatically add the hostname if there is
an address in <> and it has no domain part". Hmm. DMA adds
@localhost, as you can see. Hmmm.
$ cat <<_EOT| /usr/sbin/sendmail -i -- '<root>'
> Date: Tue, 23 Jan 2018 16:46:06 +0100
> To: root
> Subject: test
>
> _EOT
sendmail: invalid recipient `<root>'
It is not at the top of my list. Do not count on it, please.
--steffen
|
|Der Kragenbaer, The moon bear,
|der holt sich munter he cheerfully and one by one
|einen nach dem anderen runter wa.ks himself off
|(By Robert Gernhardt)