Idézem/Quoting Steffen Nurpmeso <[email protected]>:

Heya, once again.

i wrote:
 |SZÉPE Viktor <[email protected]> wrote:
 ||Idézem/Quoting Steffen Nurpmeso <[email protected]>:
 ||> 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
  ...
 ||>|> 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?
  ...
 ||> 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.
 ||
 ||As sent in the previous email Courier MTA has this feature!
  ...
 ||Googling for Postfix....
 ||http://www.postfix.org/ADDRESS_REWRITING_README.html
 ||
 ||Please be so kind and reconsider your decision.
  ...
 |So this is what i did: if you specify a valid user name
 |(getpwnam(3) knows about it) then we will append *hostname* (or
 |what the system says that the hostname is if unset).  The more
  ...

It turns out we did not perform IDNA conversion on whatever
*hostname* / uname / etc. value we got, so this had to be changed.
Also, if you set *hostname* to the empty string we will henceforth
allow addresses without domain parts, assuming that the MTA will
perform that expansion.  Our builtin SMTP driver will use the
system hostname in this case.  We end up with (stripped):

  ?0[steffen@essex nail.git]$ </dev/null \
    ./s-nail -d -:/ -Sv15-compat -s ub -Sfullnames \
      -. 'hey <root>'
  s-nail: >>> MTA: /usr/sbin/sendmail, arguments: sendmail -i -- root@essex
  s-nail: >>> To: hey <root@essex>
  ?0[steffen@essex nail.git]$ </dev/null \
    ./s-nail -d -:/ -Sv15-compat -s ub -Sfullnames \
    -Shostname=xyhost -. 'hey <root>'
  s-nail: Setting up PseudoRandomNumberGenerator: *SSL RAND_*
  s-nail: >>> MTA: /usr/sbin/sendmail, arguments: sendmail -i -- root@xyhost
  s-nail: >>> From: steffen@xyhost
  s-nail: >>> To: hey <root@xyhost>
  s-nail: >>> Message-ID: <20180124170135.tNqDFzCH@xyhost>
  ?0[steffen@essex nail.git]$ </dev/null \
    ./s-nail -d -:/ -Sv15-compat -s ub -Sfullnames \
    -Shostname= -. 'hey <root>'
  s-nail: >>> MTA: /usr/sbin/sendmail, arguments: sendmail -i -- root
  s-nail: >>> From: steffen@essex
  s-nail: >>> To: hey <root>
  s-nail: >>> Message-ID: <20180124170148.yN0u6dFS@essex>
  ?0[steffen@essex nail.git]$

Now is this satisfactory Hungary, even though you have to add
"-Shostname= " to be upward compatible?
Just report if you really need something else, or find any other
possible improvement!

Thanks Viktor, and ciao!

;-)



SZÉPE Viktor, honlap üzemeltetés
https://github.com/szepeviktor/debian-server-tools/blob/master/CV.md
--
+36-20-4242498  [email protected]  skype: szepe.viktor
Budapest, III. kerület




Reply via email to