<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.qmailtoaster.org:80/index.php?action=history&amp;feed=atom&amp;title=Convert_Vpopmail_alias_into_qmail_alias</id>
	<title>Convert Vpopmail alias into qmail alias - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.qmailtoaster.org:80/index.php?action=history&amp;feed=atom&amp;title=Convert_Vpopmail_alias_into_qmail_alias"/>
	<link rel="alternate" type="text/html" href="http://wiki.qmailtoaster.org:80/index.php?title=Convert_Vpopmail_alias_into_qmail_alias&amp;action=history"/>
	<updated>2026-04-11T01:09:00Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>http://wiki.qmailtoaster.org:80/index.php?title=Convert_Vpopmail_alias_into_qmail_alias&amp;diff=155&amp;oldid=prev</id>
		<title>Ebroch: Created page with &quot;From P.V.Anthony &lt;pvanthony@singnet.com.sg&gt;    ---------------------- valias2dotqmail --------------------------------   !/bin/bash   #################################################################   # script to convert alias stored in database back to .qmail-alias   #   # Example.   # copy the script into the /home/vpopmail/domains/domain.com   # then run: sh valias2dotqmail   #   ################################################################    # file name for the...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.qmailtoaster.org:80/index.php?title=Convert_Vpopmail_alias_into_qmail_alias&amp;diff=155&amp;oldid=prev"/>
		<updated>2024-03-16T16:49:45Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;From P.V.Anthony &amp;lt;pvanthony@singnet.com.sg&amp;gt;    ---------------------- valias2dotqmail --------------------------------   !/bin/bash   #################################################################   # script to convert alias stored in database back to .qmail-alias   #   # Example.   # copy the script into the /home/vpopmail/domains/domain.com   # then run: sh valias2dotqmail   #   ################################################################    # file name for the...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;From P.V.Anthony &amp;lt;pvanthony@singnet.com.sg&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  ---------------------- valias2dotqmail --------------------------------&lt;br /&gt;
  !/bin/bash&lt;br /&gt;
  #################################################################&lt;br /&gt;
  # script to convert alias stored in database back to .qmail-alias&lt;br /&gt;
  #&lt;br /&gt;
  # Example.&lt;br /&gt;
  # copy the script into the /home/vpopmail/domains/domain.com&lt;br /&gt;
  # then run: sh valias2dotqmail&lt;br /&gt;
  #&lt;br /&gt;
  ################################################################&lt;br /&gt;
&lt;br /&gt;
  # file name for the email alias data.&lt;br /&gt;
  aliasFile=&amp;quot;email_alias.data&amp;quot;&lt;br /&gt;
&lt;br /&gt;
  # owners of the files&lt;br /&gt;
  owner=&amp;quot;vpopmail&amp;quot;&lt;br /&gt;
&lt;br /&gt;
  # group of the files&lt;br /&gt;
  group=&amp;quot;vchkpw&amp;quot;&lt;br /&gt;
&lt;br /&gt;
  # get the domain name from the current directory name&lt;br /&gt;
  domainName=$(basename $(pwd))&lt;br /&gt;
&lt;br /&gt;
  # get all the aliases.&lt;br /&gt;
  ~vpopmail/bin/valias -s $domainName &amp;gt; $aliasFile&lt;br /&gt;
&lt;br /&gt;
  #do the convert now&lt;br /&gt;
  while read addr&lt;br /&gt;
  do&lt;br /&gt;
        fileName=$(echo $addr | cut -d @ -f 1)&lt;br /&gt;
        echo $addr | cut -d &amp;quot; &amp;quot; -f 3 &amp;gt;&amp;gt; .qmail-$fileName&lt;br /&gt;
       &lt;br /&gt;
        # change the owner and group for the dotqmail file&lt;br /&gt;
        chown $owner:$group .qmail-$fileName&lt;br /&gt;
       &lt;br /&gt;
        # change permission of the dotqmail file&lt;br /&gt;
        chmod 600 .qmail-$fileName&lt;br /&gt;
       &lt;br /&gt;
  done &amp;lt; $aliasFile&lt;br /&gt;
&lt;br /&gt;
  # remove the data as we do not need it anymore&lt;br /&gt;
  rm $aliasFile&lt;br /&gt;
  --------------------------- end ---------------------------------------&lt;/div&gt;</summary>
		<author><name>Ebroch</name></author>
	</entry>
</feed>