<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.amahi.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Nemolomen</id>
	<title>Amahi Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.amahi.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Nemolomen"/>
	<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php/Special:Contributions/Nemolomen"/>
	<updated>2026-04-11T02:56:11Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.34.2</generator>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Amahi_Mail_System&amp;diff=9865</id>
		<title>Amahi Mail System</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Amahi_Mail_System&amp;diff=9865"/>
		<updated>2010-03-18T01:47:02Z</updated>

		<summary type="html">&lt;p&gt;Nemolomen: Reformatted and added information regarding adding new users, passwords and forwards&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Apps]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;DISCLAIMER:&amp;lt;/b&amp;gt; Although this has been tested, use at your own risk. I cannot guarantee that it will work for your system or not cause any serious problems.&lt;br /&gt;
&lt;br /&gt;
==== Purpose ====&lt;br /&gt;
The primary intent of the Amahi Mail System is to allow you to pull all ISP email into your server.  Keep in mind this is still under development.  &lt;br /&gt;
&lt;br /&gt;
* It allows you to send/receive mail from your HDA.  There are some quirks depending on if you have a registered domain with a paid service provider (i.e. [http://www.godaddy.com GoDaddy], [http://www.hostgator.com Host Gator]).  With these services, there is typically what is called a MX record associated with the domain name.  This will allow you to send/receive mail as your hostname (i.e. myhda@home.com).  &lt;br /&gt;
&lt;br /&gt;
* If you use the free ones (i.e. user.yourhda.com, [http://www.no-ip.org no-ip.org]), you will have to masquerade your email address as your ISP (i.e. myhda@yourisp.com).  This will ensure you can receive email replies from those you send from your HDA.&lt;br /&gt;
&lt;br /&gt;
==== Current Version ====&lt;br /&gt;
1.75 (Fedora 12) released 9 Feb 10&lt;br /&gt;
&lt;br /&gt;
[http://wiki.amahi.org/images/1/1c/Amahi-Mail-System.PNG Login Screen Shot]&lt;br /&gt;
&lt;br /&gt;
==== Change Log ====&lt;br /&gt;
* Added secure (https) webmail access.&lt;br /&gt;
* Added update to yum.conf file to exclude postfix from updates.&lt;br /&gt;
* Updated custom RPMs to latest version for Fedora 10.&lt;br /&gt;
* Added automated cronjob removal for uninstall.&lt;br /&gt;
* Optimized script code to eliminate redundancy.&lt;br /&gt;
* Corrected some minor bugs.&lt;br /&gt;
* Added mail quota exceeded notification.&lt;br /&gt;
* Customized login screen.&lt;br /&gt;
* Updated scripts and RPMs to Fedora 12.&lt;br /&gt;
&lt;br /&gt;
==== Script download links: ====&lt;br /&gt;
32-bit:  http://dl.getdropbox.com/u/1380867/32bit-virtual-mail-1.75.tar.gz&amp;lt;br /&amp;gt;&lt;br /&gt;
64-bit:  http://dl.getdropbox.com/u/1380867/64bit-virtual-mail-1.75.tar.gz&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== How to Install ====&lt;br /&gt;
Here's the sequence of events to get the virtual email server up and running:&lt;br /&gt;
# Restart your HDA so it's fresh for the install.  This is not required, just a recommendation.&lt;br /&gt;
# Create a web app in Amahi named '''webmail'''.&lt;br /&gt;
# Open a terminal window, become '''root''', and navigate to &amp;lt;u&amp;gt;/var/hda/web-apps/webmail&amp;lt;/u&amp;gt; directory.&lt;br /&gt;
# Download script file (pick the correct one for your system) to this directory and extract it into &amp;lt;u&amp;gt;html&amp;lt;/u&amp;gt; directory of webmail.&lt;br /&gt;
# From the &amp;lt;u&amp;gt;html&amp;lt;/u&amp;gt; directory, run the '''host-update-virtual-mail-1.75.sh''' script.  This will check your hostname.  If it is not correct, you will be given an opportunity to change it.&lt;br /&gt;
# Answer all the questions.  The answers will further customize your install.  '''Note:'''  Mail user name and password must be one word only (i.e. mailuser, mail_user, or mail.user are acceptable)&lt;br /&gt;
# Once it completes, run the '''install-virtual-mail-1.75.sh''' script. The dependencies will be installed first.  Depending on your system, 68 is the typical amount for install on a new system.&lt;br /&gt;
# Watch the script for errors.  This may help narrow down the problem if you cannot log in.&lt;br /&gt;
# Once the script is complete, note the user name and password.&lt;br /&gt;
# Navigate to &amp;lt;u&amp;gt;http://webmail&amp;lt;/u&amp;gt; and enter your login credentials.&lt;br /&gt;
# To uninstall, run the '''uninstall-virtual-mail-1.75.sh''' script.&lt;br /&gt;
&lt;br /&gt;
==== Tips ====&lt;br /&gt;
* To permanently change your hostname from '''localhost.localdomain''', see this [http://www.labtestproject.com/using_linux/permanently_change_hostname_on_fedora article].&lt;br /&gt;
* For https, most certificates are self-signed.  You may need to follow the procedures listed [[Web_Browser_Tips|here]] when accessing [http://webmail http://webmail].&lt;br /&gt;
*  These are the steps needed to add '''NEW''' users to the foo.com domain (does not include any DNS MX records).  Use [http://www.amahi.org/apps/phpmyadmin phpMyAdmin] to modify the ''mail'' database and substitute your information accordingly.&lt;br /&gt;
** In the '''mail''' mySQL database:&lt;br /&gt;
*** In the '''users''' table: &lt;br /&gt;
**** Insert a new record with the following information...&lt;br /&gt;
***** ''user'':  &amp;lt;u&amp;gt;user@foo.com&amp;lt;/u&amp;gt;&lt;br /&gt;
***** ''password'': choose 'ENCRYPT' for the function and enter the users password. (Alternatively, you can have the user enter their password and click the &amp;quot;Go&amp;quot; button)&lt;br /&gt;
***** ''quota'': do NOT edit this field (unless you know what you are doing)&lt;br /&gt;
***** Click the &amp;quot;Go&amp;quot; button&lt;br /&gt;
*** In the '''forwardings''' table:&lt;br /&gt;
**** Insert a new record for each forwarded email addresses to &amp;lt;u&amp;gt;user@foo.com&amp;lt;/u&amp;gt; and click the &amp;quot;Go&amp;quot; button&lt;br /&gt;
** Run the command line below to set up the /home/vmail/foo.com/user mail files:&lt;br /&gt;
 mailx -s Welcome user@foo.com &amp;lt; /var/hda/web-apps/webmail/html/patch/welcome.txt&lt;br /&gt;
*  These are the steps needed to add an additional mail domain (does not include any DNS MX records).  Use [http://www.amahi.org/apps/phpmyadmin phpMyAdmin] to modify the ''mail'' database and substitute your information accordingly.&lt;br /&gt;
** Creating a mail domain e.g. :&lt;br /&gt;
*** ''domain'' is: &amp;lt;u&amp;gt;bar.com&amp;lt;/u&amp;gt;&lt;br /&gt;
*** ''server'' is: &amp;lt;u&amp;gt;foo.bar.com&amp;lt;/u&amp;gt;&lt;br /&gt;
*** ''admin user'' is: &amp;lt;u&amp;gt;me@bar.com&amp;lt;/u&amp;gt;&lt;br /&gt;
** In the mail mySQL database tables:&lt;br /&gt;
*** ''domain'':  add &amp;lt;u&amp;gt;bar.com&amp;lt;/u&amp;gt;&lt;br /&gt;
*** ''transport'':  add &amp;lt;u&amp;gt;bar.com&amp;lt;/u&amp;gt;&lt;br /&gt;
*** ''user'':  add &amp;lt;u&amp;gt;me@bar.com&amp;lt;/u&amp;gt;&lt;br /&gt;
*** ''forward'':  add &amp;lt;u&amp;gt;postmaster@bar.com&amp;lt;/u&amp;gt;, and &amp;lt;u&amp;gt;abuse@bar.com&amp;lt;/u&amp;gt; to &amp;lt;u&amp;gt;me@bar.com&amp;lt;/u&amp;gt;&lt;br /&gt;
** Run the command line below to set up the /home/vmail/bar.com/me mail files:&lt;br /&gt;
 mailx -s Welcome me@bar.com &amp;lt; /var/hda/web-apps/webmail/html/patch/welcome.txt&lt;br /&gt;
==== Future Plans ====&lt;br /&gt;
* Add additional Squirrelmail [http://squirrelmail.org/plugins.php plugins].&lt;br /&gt;
* Database front end to manage users, accounts, etc.&lt;br /&gt;
* Include interface with fetchmail to automatically retrieve mail.&lt;br /&gt;
* Change dependency on MYSQL root user for database creation.&lt;br /&gt;
&lt;br /&gt;
==== Conclusion ====&lt;br /&gt;
You should now be able to log in to your account via webmail. There will be 2 messages, one is a welcome and the other is a SPAM test to show it's working. I forgot to mention that you can access the mail server from any email client (i.e. Thunderbird, MS Outlook, etc) as well within your network.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;NOTE:&amp;lt;/b&amp;gt;  These scripts were adapted from a tutorial authored by Falko Timme at [http://www.howtoforge.com/virtual-users-domains-postfix-courier-mysql-squirrelmail-fedora-12-x86_64 http://www.howtoforge.com/virtual-users-domains-postfix-courier-mysql-squirrelmail-fedora-12-x86_64].&lt;/div&gt;</summary>
		<author><name>Nemolomen</name></author>
		
	</entry>
</feed>