Hello Viktor!

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
 |>|>||>
 |>|>||> which should complain about an invalid address.  How about
 ...
 |>|> 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?
 ...
 |>|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:
 ...
 |> 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!
 |And "defaultdomain" is configurable. Usually *not* identical to hostname.
 |
 |hostname is $servername + $domain like eagle.example.com
 |defaultdomain is something you use for mailing, like @company.com
 |
 |Many of the web servers I install are called "www" + $domain but  
 |mailing may not go under $domain!
 |
 |In case of Courier MTA the s-nail-hack would be to append the contents  
 |of /etc/courier/defaultdomain which is done *automatically* by the MTA  
 |(has an option which is on by default)
 |
 |Googling for Postfix....
 |
 |> Transform an incomplete address into a complete address. For  
 |> example, transform "username" into "[email protected]", or  
 |> transform "username@hostname" into "[email protected]".
 |
 |http://www.postfix.org/ADDRESS_REWRITING_README.html
 |
 |Please be so kind and reconsider your decision.

Yes, that is what i did right after sending the mail.
Thanks for the thread, pretty productive already, including
bugfixes:

  c59a20ff myaddrs(): Fix: do not return invalid *from* (Viktor SZÉPE)..
  efc59473 *expandargv*: hard error if unset (Viktor SZÉPE)..
  *from*, *sender*: verify upon `set' time (Viktor SZÉPE)
  Auto-append *hostname* in otherwise "valid <user>" address (Viktor SZÉPE)

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
sophisticated things i would like to keep for the future, i hope
we will have much more scripting capabilities, and such fancy
rewriting things probably belong there -- just think of the nice
sendmail(1) rewriting rules :).

Hope this approaches the fringe of satisfaction!
Ciao.

--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)

Reply via email to