Linux/System mail: Difference between revisions

From Wiki
(Die Seite wurde neu angelegt: „* create systemwide rule to add FROM data to mailx: /etc/bash.bashrc <blockquote> <pre> alias mail='mail -r vm-pbx@marcluerssen.de ([vm-pbx@mlnet])' </pre> </b…“)
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 2: Line 2:
<blockquote>
<blockquote>
<pre>
<pre>
alias mail='mail -r vm-pbx@marcluerssen.de ([vm-pbx@mlnet])'
alias mail='mail -a "From: $(hostname)@domain.de ([$(hostname)@$(hostname -d)])"'
</pre>
</pre>
</blockquote>
</blockquote>
[[Category:Linux/System]]
[[Category:Linux]]

Latest revision as of 13:59, 1 April 2017

  • create systemwide rule to add FROM data to mailx: /etc/bash.bashrc
alias mail='mail -a "From: $(hostname)@domain.de ([$(hostname)@$(hostname -d)])"'