<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: sendmail rule to explicitly reference aliases database in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-rule-to-explicitly-reference-aliases-database/m-p/2929152#M818239</link>
    <description>Are you rewriting the envelope and locally delivering the mail, or once the envelope is rewritten, delivering the mail to another host?</description>
    <pubDate>Mon, 17 Mar 2003 23:01:32 GMT</pubDate>
    <dc:creator>Christopher Caldwell</dc:creator>
    <dc:date>2003-03-17T23:01:32Z</dc:date>
    <item>
      <title>sendmail rule to explicitly reference aliases database</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-rule-to-explicitly-reference-aliases-database/m-p/2929150#M818237</link>
      <description>I have a need to take an existing recipient address, eg. user@domain1.com, and rewrite it to user@domain2.com. If the user isn't in the aliases file, I need to leave it alone and let Openmail handle it. I could put all of the addresses in aliases, if I had to.&lt;BR /&gt;Versions: HP-UX 10.20, sendmail 8.8.6.</description>
      <pubDate>Mon, 17 Mar 2003 22:04:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-rule-to-explicitly-reference-aliases-database/m-p/2929150#M818237</guid>
      <dc:creator>Jamie Harre</dc:creator>
      <dc:date>2003-03-17T22:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: sendmail rule to explicitly reference aliases database</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-rule-to-explicitly-reference-aliases-database/m-p/2929151#M818238</link>
      <description>In /etc/mail/sendmail.cf just&lt;BR /&gt;make sure you have the following lines&lt;BR /&gt;&lt;BR /&gt;# location of alias file&lt;BR /&gt;O AliasFile=/etc/mail/aliases&lt;BR /&gt;&lt;BR /&gt;and /etc/mail/aliases&lt;BR /&gt;would have&lt;BR /&gt;&lt;BR /&gt;user# : user#@domain2.com</description>
      <pubDate>Mon, 17 Mar 2003 22:30:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-rule-to-explicitly-reference-aliases-database/m-p/2929151#M818238</guid>
      <dc:creator>Paul Sperry</dc:creator>
      <dc:date>2003-03-17T22:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: sendmail rule to explicitly reference aliases database</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-rule-to-explicitly-reference-aliases-database/m-p/2929152#M818239</link>
      <description>Are you rewriting the envelope and locally delivering the mail, or once the envelope is rewritten, delivering the mail to another host?</description>
      <pubDate>Mon, 17 Mar 2003 23:01:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-rule-to-explicitly-reference-aliases-database/m-p/2929152#M818239</guid>
      <dc:creator>Christopher Caldwell</dc:creator>
      <dc:date>2003-03-17T23:01:32Z</dc:date>
    </item>
    <item>
      <title>Re: sendmail rule to explicitly reference aliases database</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-rule-to-explicitly-reference-aliases-database/m-p/2929153#M818240</link>
      <description>In re-writing, are you concerned with where the mail gets delivered, or what the envelope looks like, or both?&lt;BR /&gt;</description>
      <pubDate>Mon, 17 Mar 2003 23:03:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-rule-to-explicitly-reference-aliases-database/m-p/2929153#M818240</guid>
      <dc:creator>Christopher Caldwell</dc:creator>
      <dc:date>2003-03-17T23:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: sendmail rule to explicitly reference aliases database</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-rule-to-explicitly-reference-aliases-database/m-p/2929154#M818241</link>
      <description>The current sendmail.cf has the aliases file defined, and a test alias is defined and newaliases has been run.&lt;BR /&gt;What we are currently doing is turning everything with domain1 over to Openmail, with the following rule (no line break):&lt;BR /&gt;R$+ domain1.co.in $*           $#openmail $@ $j $: $1&amp;lt;$2domain1.co.in&amp;gt;&lt;BR /&gt;&lt;BR /&gt;This server is in India, as you might guess. The rule is in ruleset 0.&lt;BR /&gt;&lt;BR /&gt;My goal is to have specified users defined such that their message are rerouted to domain2, but the other users continue to get their mail the same way they do, today.&lt;BR /&gt;&lt;BR /&gt;In truth, if there is a better way to acheive that goal, that would be fine. I'm only concerned that too much change will introduce too much risk. Thanks.</description>
      <pubDate>Tue, 18 Mar 2003 15:29:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-rule-to-explicitly-reference-aliases-database/m-p/2929154#M818241</guid>
      <dc:creator>Jamie Harre</dc:creator>
      <dc:date>2003-03-18T15:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: sendmail rule to explicitly reference aliases database</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-rule-to-explicitly-reference-aliases-database/m-p/2929155#M818242</link>
      <description>I'd use the virtusertable feature of sendmail.&lt;BR /&gt;&lt;BR /&gt;Uncomment these rulesets:&lt;BR /&gt;#Kvirtuser dbm /etc/mail/virtusertable&lt;BR /&gt;&lt;BR /&gt;# handle virtual users&lt;BR /&gt;#R$+ &amp;lt; @ $=w . &amp;gt;        $: &amp;lt; $(virtuser $1 @ $2 $@ $1 $: @ $) &amp;gt; $1 &amp;lt; @ $2 . &amp;gt;&lt;BR /&gt;#R&amp;lt;@&amp;gt; $+ + $* &amp;lt; @ $* . &amp;gt;&lt;BR /&gt;                        $: &amp;lt; $(virtuser $1 + * @ $3 $@ $1 $: @ $) &amp;gt; $1 + $2 &amp;lt; @&lt;BR /&gt;$3 . &amp;gt;&lt;BR /&gt;#R&amp;lt;@&amp;gt; $+ + $* &amp;lt; @ $* . &amp;gt;&lt;BR /&gt;                        $: &amp;lt; $(virtuser $1 @ $3 $@ $1 $: @ $) &amp;gt; $1 + $2 &amp;lt; @ $3 .&lt;BR /&gt; &amp;gt;&lt;BR /&gt;#R&amp;lt;@&amp;gt; $+ &amp;lt; @ $+ . &amp;gt;     $: &amp;lt; $(virtuser @ $2 $@ $1 $: @ $) &amp;gt; $1 &amp;lt; @ $2 . &amp;gt;&lt;BR /&gt;#R&amp;lt;@&amp;gt; $+                        $: $1&lt;BR /&gt;#R&amp;lt; error : $- $+ &amp;gt; $*  $#error $@ $(dequote $1 $) $: $2&lt;BR /&gt;#R&amp;lt; $+ &amp;gt; $+ &amp;lt; @ $+ &amp;gt;    $: $&amp;gt;97 $1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Build a file called virtusertable in /etc/mail.&lt;BR /&gt;&lt;BR /&gt;On the left hand side of the file, you have an e-mail address (e.g. you@yourdomain.com); the corresponding right hand side is [user account|e-mail address|alias]&lt;BR /&gt;&lt;BR /&gt;So you'd end up with something like:&lt;BR /&gt;&lt;BR /&gt;you@domain1.com     you@domain2.com&lt;BR /&gt;&lt;BR /&gt;for each entry in the aliase table.  Leave the rest alone, or specify a local account&lt;BR /&gt;&lt;BR /&gt;local@domain1.com     local&lt;BR /&gt;&lt;BR /&gt;In addition, an e-mail address can appear on the right hand side of an entry in the alias table.&lt;BR /&gt;&lt;BR /&gt;To build the virtusertable type &lt;BR /&gt;&lt;BR /&gt;#/usr/sbin/makemap dbm /etc/mail/virtusertable &amp;lt; /etc/mail/virtusertable&lt;BR /&gt;&lt;BR /&gt;Restart sendmail (to make the changes in sendmail.cf take effect).&lt;BR /&gt;</description>
      <pubDate>Tue, 18 Mar 2003 17:01:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-rule-to-explicitly-reference-aliases-database/m-p/2929155#M818242</guid>
      <dc:creator>Christopher Caldwell</dc:creator>
      <dc:date>2003-03-18T17:01:01Z</dc:date>
    </item>
  </channel>
</rss>

