<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>viaVerio :: Configuring Email virtusertable</title>
	<copyright>Copyright (c) 2007 Verio Inc. All rights reserved.</copyright>
    <link>http://www.viaverio.com/index.cfm?page_id=574</link>
    <description>Configuring Email virtusertable</description>
    <language>en-us</language>
    <lastBuildDate>Tue, 06 Nov 2007 15:47:19 GMT</lastBuildDate>
	<managingEditor>sales@verio.net</managingEditor>
	<webMaster>sales@verio.net</webMaster>
	<ttl>5</ttl>	
    <image>
      <title>viaVerio :: Configuring Email virtusertable</title>
	  <width>149</width>
	  <height>70</height>
	  <link>http://www.viaverio.com</link>
      <url>http://www.viaverio.com/images2/nav/viaverio_logo.gif</url>
    </image>
	<item>
	  <title>Configuring Email virtusertable</title>
	  <link>http://www.viaverio.com/rss/page_574.rss</link>
	  <guid isPermaLink="true">http://www.viaverio.com/rss/page_574.rss</guid>
	  <pubDate>Wed, 13 Oct 2004 12:00:00 GMT</pubDate>
	  <description>
	    <![CDATA[ &lt;p&gt;Incoming email messages can be sorted based on the recipient domain name with the &lt;i&gt;virtusertable&lt;/i&gt; utility. Because user accounts are not directly associated with any specific domain names, a &lt;i&gt;virtusertable&lt;/i&gt; must be used to differentiate between recipient domain names. For example, a virtusertable mapping will allow you to direct email messages for &lt;i&gt;webmaster@mydomain.name&lt;/i&gt; and &lt;i&gt;webmaster@subhost.name&lt;/i&gt; to different users on the VPS v2/v3.&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;p&gt;&lt;br&gt;&lt;h3&gt;Configuring Virtusertable mappings&lt;/h3&gt;&lt;p&gt;&lt;br&gt;&lt;p&gt;&lt;br&gt;&lt;p&gt;In order to create virtusertable mappings, you must first create a text file in the &lt;i&gt;/etc/mail/&lt;/i&gt; directory of your server (there is a sample file in that directory named &lt;i&gt;virtusertable.sample&lt;/i&gt;). The sample file contains virtusertable mapping examples.&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;p&gt;&lt;br&gt;&lt;p&gt;Each entry in a virtusertable must be on a single line. The original recipient address on the left hand side, with one or more spaces or tabs separating it from the right hand side, which contains the destination address. Using the example above, the virtusertable mapping would be as follows:&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;p&gt;&lt;br&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br&gt;&lt;pre&gt;&lt;p&gt;&lt;br&gt;webmaster@mydomain.name     tom&lt;p&gt;&lt;br&gt;webmaster@subhost.name      steve&lt;p&gt;&lt;br&gt;&lt;/pre&gt;&lt;p&gt;&lt;br&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;br&gt;&lt;p&gt;&lt;br&gt;&lt;p&gt;The original recipient is the email address that people will send messages to and can be either a full address (&lt;i&gt;username@domain.name&lt;/i&gt;), or a catchall for all messages to the specified domain (&lt;i&gt;@domain.name&lt;/i&gt;). If you want to create multiple virtusertable entries for a single domain, make sure that you put the catchall below any other entries for that same domain name. For example:&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;p&gt;&lt;br&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br&gt;&lt;pre&gt;&lt;p&gt;&lt;br&gt;webmaster@mydomain.name    tom&lt;p&gt;&lt;br&gt;support@mydomain.name      someuser@hotmail.com&lt;p&gt;&lt;br&gt;john@mydomain.name         john&lt;p&gt;&lt;br&gt;@mydomain.name              john&lt;p&gt;&lt;br&gt;&lt;/pre&gt;&lt;p&gt;&lt;br&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;br&gt;&lt;p&gt;&lt;br&gt;&lt;p&gt;The destination address should be a local user, an alias, or a remote email address. You may also use a &lt;i&gt;%1&lt;/i&gt; to indicate that the original user should be prepended to a catchall.&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;p&gt;&lt;br&gt;&lt;p&gt;Any time you make a change to the &lt;i&gt;/etc/mail/virtusertable&lt;/i&gt; text file, you will need to create a database (.db) file that &lt;a href=&quot;/index.cfm?page_id=265&quot;&gt;sendmail&lt;/a&gt; will read. The following command will create the &lt;i&gt;/etc/mail/virtusertable.db&lt;/i&gt; file when run by root:&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;p&gt;&lt;br&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br&gt;&lt;pre&gt;&lt;p&gt;&lt;br&gt;# makemap hash /etc/mail/virtusertable &amp;lt; /etc/mail/virtusertable&lt;p&gt;&lt;br&gt;&lt;/pre&gt;&lt;p&gt;&lt;br&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;br&gt;&lt;p&gt;&lt;br&gt;&lt;p&gt;Also the &lt;i&gt;vnewvirtmaps&lt;/i&gt; command has been created for the VPS v2/v3 server as an additional command that is easier to remember. Both commands will accomplish the same task and create a new database file however the &lt;i&gt;vnewvirtmaps&lt;/i&gt; command is only available on VPS servers. To use the &lt;i&gt;vnewvirtmaps&lt;/i&gt; command to create a database file for your virtusertable, run the following command:&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br&gt;&lt;pre&gt;&lt;p&gt;&lt;br&gt;# vnewvirtmaps&lt;p&gt;&lt;br&gt;&lt;/pre&gt;&lt;p&gt;&lt;br&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;br&gt;&lt;p&gt;&lt;br&gt;&lt;h3&gt;Example Virtusertable Entries&lt;/h3&gt;&lt;p&gt;&lt;br&gt;&lt;p&gt;&lt;br&gt;&lt;p&gt;The following entry would deliver any message sent to &lt;i&gt;floyd@super-host.com&lt;/i&gt; to the local account &lt;i&gt;floydr&lt;/i&gt;.&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;p&gt;&lt;br&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br&gt;&lt;pre&gt;&lt;p&gt;&lt;br&gt;floyd@super-host.com       floydr&lt;p&gt;&lt;br&gt;&lt;/pre&gt;&lt;p&gt;&lt;br&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;br&gt;&lt;p&gt;&lt;br&gt;&lt;p&gt;The next entry will deliver a message sent to &lt;i&gt;john@super-host.com&lt;/i&gt; to his email account with his ISP.&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;p&gt;&lt;br&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br&gt;&lt;pre&gt;&lt;p&gt;&lt;br&gt;john@super-host.com        jfranklin@my-isp.com&lt;p&gt;&lt;br&gt;&lt;/pre&gt;&lt;p&gt;&lt;br&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;br&gt;&lt;p&gt;&lt;br&gt;&lt;p&gt;Any other email sent to the &lt;i&gt;super-host.com&lt;/i&gt; domain will go to Floyd&apos;s local account.&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;p&gt;&lt;br&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br&gt;&lt;pre&gt;&lt;p&gt;&lt;br&gt;@super-host.com            floydr&lt;p&gt;&lt;br&gt;&lt;/pre&gt;&lt;p&gt;&lt;br&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;br&gt;&lt;p&gt;&lt;br&gt;&lt;p&gt;Anything sent to a user at &lt;i&gt;funsites.com&lt;/i&gt; will be sent to &lt;i&gt;awesome-web.com&lt;/i&gt;, but will not change the username the message was originally sent to (only the domain is modified).&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;p&gt;&lt;br&gt;&lt;blockquote&gt;&lt;p&gt;&lt;br&gt;&lt;pre&gt;&lt;p&gt;&lt;br&gt;@funsites.com              %1@awesome-web.com&lt;p&gt;&lt;br&gt;&lt;/pre&gt;&lt;p&gt;&lt;br&gt;&lt;/blockquote&gt;]]>
	  </description>
	  <author>Content V1</author>
	</item>
  </channel>
</rss> 
