<div class="gmail_quote">On Wed, May 23, 2012 at 8:34 AM, Roland Soderstrom <span dir="ltr"><<a href="mailto:Rolands@logicaltech.com.au" target="_blank">Rolands@logicaltech.com.au</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">







<div lang="EN-AU" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:Calibri,sans-serif;font-size:11pt">If they are different just make a mail alias in the external  host.</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">For sendmail it is /etc/mail/aliases</span></p></div></div></blockquote><div><br></div><div>The aliases file only maps incoming mail (recipient address), not outgoing (sender address).</div>

<div><br></div><div>Postfix can do sender address mapping (see "man generic" and the ADDRESS_REWRITING_README), but if it's on the same server then you won't have a way of selecting one instance from another (unless they're running as different users).</div>

<div><br></div><div>However there are other ways to achieve what you want.  If you're using "nail" as your mail client (mail -V), you can define options such as "from" and "replyto" in .mailrc.  Maybe like this:</div>

<div><br></div><div>  set from=sender@add.ress</div><div><br></div><div>Or you could change "MAILC" in xymonserver.cfg and add an "-r" parameter, such as:</div><div><br></div><div>  MAILC="mail -r sender@add.ress"</div>

<div><br></div><div>J</div><div><br></div></div>