Re: [nail-devel] "from" variable not working for rejections
Brought to you by:
gritter
From: <jg...@sd...> - 2016-12-15 19:08:38
|
Felipe Gasper <fe...@fe...> wrote: > mailx sends mail using the ?from? address I specify in > ~/.mailrc, but when the message fails it won?t send the > rejection to that address. It *does* send the rejection > as expected when I give an address with -r. Is this by > design? It seems like a bug; the docs imply that setting > ?from? in ~/.mailrc should be a substitute for the -r flag. > -FG Hi Felipe, I don't think this is a bug; the "From " field generally gets set by your MTA, ie. Sendmail or Postfix, whereas doing 'set from=fr...@mu...g' in either ~/.mailrc or ~/.nailrc sets the "From: " field. In my experience undeliverable messages get sent to "From " (usually at the very top of the message header) and that's the field that the '-r' option is overriding. Some setups - ie. multi-user systems - don't allow overriding "From ", but obviously yours does. If this is something you want to do regularly you might make a shell alias, ie. 'alias nail=nail -r fr...@mu...g' so you don't have to think about it. Or set it in your MTA's configuration. Hope this helps, Jeff |