<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.qnap.com/mediawiki/index.php?title=Setup_XMail&amp;feed=atom&amp;action=history</id>
	<title>Setup XMail - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.qnap.com/mediawiki/index.php?title=Setup_XMail&amp;feed=atom&amp;action=history"/>
	<link rel="alternate" type="text/html" href="https://wiki.qnap.com/mediawiki/index.php?title=Setup_XMail&amp;action=history"/>
	<updated>2022-09-01T03:10:35Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.2</generator>
	<entry>
		<id>https://wiki.qnap.com/mediawiki/index.php?title=Setup_XMail&amp;diff=287&amp;oldid=prev</id>
		<title>Admin: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://wiki.qnap.com/mediawiki/index.php?title=Setup_XMail&amp;diff=287&amp;oldid=prev"/>
		<updated>2015-06-18T10:31:22Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;XMail Mail Server&amp;lt;br&amp;gt;XMail is an Internet and intranet mail server featuring an ESMTP server, POP3 server, finger server, TLS support for SMTP and POP3 (both server and client side), multiple domains, no need for users to have a real system account, SMTP relay checking, DNS based maps check, custom (IP based and address based) spam protection, SMTP authentication (PLAIN LOGIN CRAM-MD5 POP3-before-SMTP and custom), a POP3 account syncronizer with external POP3 accounts, account aliases, domain aliases, custom mail processing, direct mail files delivery, custom mail filters, mailing lists, remote administration, custom mail exchangers, logging, and multi-platform code. XMail sources compile under GNU/Linux, FreeBSD, OpenBSD, NetBSD, OSX, Solaris and NT/2K/XP.&amp;lt;br&amp;gt;-------------------------------------------------------------------------------------------------------------------------------------------------------- &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
arrow: UPDATED 12/10/2007 &lt;br /&gt;
&lt;br /&gt;
XMail, Dovecot, Cyrus IMAP and many more MTA, MUA related softwares can now be installed as easy as typing in a line of text and hit enter thru Optware/IPKG.&amp;lt;br&amp;gt;Here are the details on how to install Optware/IPKG. &lt;br /&gt;
&lt;br /&gt;
Once installed type in this to install XMail: &lt;br /&gt;
&lt;br /&gt;
1. ipkg install xmail &lt;br /&gt;
&lt;br /&gt;
this to install dovecot: &lt;br /&gt;
&lt;br /&gt;
1. ipkg install dovecot &lt;br /&gt;
&lt;br /&gt;
and this to install Cyrus IMAPD &lt;br /&gt;
&lt;br /&gt;
1. ipkg install cyrus-imapd &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;Once installed and configurated you can then download their web&amp;lt;br&amp;gt;interface. &lt;br /&gt;
&lt;br /&gt;
For XMail you can download here. &lt;br /&gt;
&lt;br /&gt;
For Roundcube you can download here. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;-------------------------------------------------------------------------------------------------------------------------------------------------------- &lt;br /&gt;
&lt;br /&gt;
Step by Step Installation Guide &lt;br /&gt;
&lt;br /&gt;
Step 1. Download the file package &lt;br /&gt;
&lt;br /&gt;
Download the all-in-one package HERE onto the /share/Public directory on your NAS: &lt;br /&gt;
&lt;br /&gt;
Step 2. Install XMail chroot environment &lt;br /&gt;
&lt;br /&gt;
Telnet/SSH to your NAS. Upon command prompt type: &lt;br /&gt;
&lt;br /&gt;
For TS-109 &amp;amp;amp; TS-209 with single disk:&amp;lt;br&amp;gt;# mkdir /share/HDA_DATA/Xmail &lt;br /&gt;
&lt;br /&gt;
1. chmod 700 /share/HDA_DATA/Xmail &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;For TS-209 running RAID1:&amp;lt;br&amp;gt;# mkdir /share/MD0_DATA/Xmail &lt;br /&gt;
&lt;br /&gt;
1. chmod 700 /share/MD0_DATA/Xmail &lt;br /&gt;
&lt;br /&gt;
then untar &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;# cd /share/Public &lt;br /&gt;
&lt;br /&gt;
1. tar -zxvf xmail-1.24_phpxmail-1.5_ARM-chroot-tsx09.tar.gz &lt;br /&gt;
&lt;br /&gt;
1. cd xmail-1.24_phpxmail-1.5_ARM-chroot-tsx09 &lt;br /&gt;
&lt;br /&gt;
For TS-109 &amp;amp;amp; TS-209 with single disk:&amp;lt;br&amp;gt;# tar -C /share/HDA_DATA/Xmail -zxvf arm_chroot.tar.gz &lt;br /&gt;
&lt;br /&gt;
For TS-209 running RAID 1:&amp;lt;br&amp;gt;# tar -C /share/MD0_DATA/Xmail -zxvf arm_chroot.tar.gz &lt;br /&gt;
&lt;br /&gt;
Step 3. Port Forwarding &lt;br /&gt;
&lt;br /&gt;
Forward these ports: &lt;br /&gt;
&lt;br /&gt;
6017 (xmail remote control access)&amp;lt;br&amp;gt;25 (smtp)&amp;lt;br&amp;gt;110 (pop3) &lt;br /&gt;
&lt;br /&gt;
from your router to your NAS. Besides, obtain a DDNS account and setup in the Network Config/DDNS section of your TS-109/209 if you don't have a static WAN IP and a registered domain name. I was able to use my DDNS address (xxx.dyndns.org) as my POP3 and SMTP mailserver hostname as well as my mailserver's domain name (eg. test@xxx.dyndns.org). &lt;br /&gt;
&lt;br /&gt;
Step 4. create an CTRL admin account for XMail &lt;br /&gt;
&lt;br /&gt;
To creat an account/password we will need to Telnet/SSH to the NAS again&amp;amp;nbsp;: &lt;br /&gt;
&lt;br /&gt;
chroot &lt;br /&gt;
&lt;br /&gt;
For TS-109 &amp;amp;amp; TS-209 with single disk:&amp;lt;br&amp;gt;# chroot /share/HDA_DATA/Xmail &lt;br /&gt;
&lt;br /&gt;
For TS-209 running RAID 1:&amp;lt;br&amp;gt;# chroot /share/MD0_DATA/Xmail &lt;br /&gt;
&lt;br /&gt;
use the built-in application to generate encrypted password, if say your password is &amp;quot;password&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
1. XMCrypt password &lt;br /&gt;
&lt;br /&gt;
It should output this: &lt;br /&gt;
&lt;br /&gt;
1. 15041616120a1701 &lt;br /&gt;
&lt;br /&gt;
This is the encrypted value for the &amp;quot;password&amp;quot;. Although one already created as an example in the file package I will demonstrate how to do it as below: &lt;br /&gt;
&lt;br /&gt;
1. vi /var/MailRoot/ctrlaccounts.tab &lt;br /&gt;
&lt;br /&gt;
press &amp;quot;i&amp;quot; for insert mode then type in: &lt;br /&gt;
&lt;br /&gt;
admin &lt;br /&gt;
&lt;br /&gt;
press 'tab' once and type: &lt;br /&gt;
&lt;br /&gt;
15041616120a1701 (the password) &lt;br /&gt;
&lt;br /&gt;
Then press &amp;quot;Esc&amp;quot; then &amp;quot;:wq&amp;quot; then &amp;quot;Enter&amp;quot; to save and escape out vi mode. &lt;br /&gt;
&lt;br /&gt;
To start Xmail type: &lt;br /&gt;
&lt;br /&gt;
1. /etc/init.d/xmail start &lt;br /&gt;
&lt;br /&gt;
1. exit &lt;br /&gt;
&lt;br /&gt;
To check we issue &amp;quot;ps&amp;quot; to see whether or not the daemon is up and running (you should see an entry like this /bin/XMail). &lt;br /&gt;
&lt;br /&gt;
1. ps -ax &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;Step 5. Install PHPXmail &lt;br /&gt;
&lt;br /&gt;
Untar phpxmail from where we untarred the whole package at Step 2. &lt;br /&gt;
&lt;br /&gt;
1. cd /share/Public/xmail-1.24_phpxmail-1.5_ARM-chroot-tsx09 &lt;br /&gt;
&lt;br /&gt;
1. tar -C /share/Qweb zxvf phpxmail1.5.tar.gz &lt;br /&gt;
&lt;br /&gt;
Now open up your browser and type in &amp;quot;http://your-nas-ip/phpxmail/&amp;lt;br&amp;gt;you should then see this screen below if you have successfully started your XMail server demon. &lt;br /&gt;
&lt;br /&gt;
Image &lt;br /&gt;
&lt;br /&gt;
Now click on &amp;quot;Add new server&amp;quot; then type in the server infomation as below: &lt;br /&gt;
&lt;br /&gt;
Server hostname: qnap.kicks-**.net (Your NAS' Domain Name, or simply your DDNS name if you don't have a FQDN (Fully quarlified domain name).)&amp;lt;br&amp;gt;Server port: 6017 (Just leave it as default)&amp;lt;br&amp;gt;CTRL account: admin (The one we created at Step 4)&amp;lt;br&amp;gt;CTRL password: password (The one we created at Step 4 too) &lt;br /&gt;
&lt;br /&gt;
Then click on &amp;quot;Submit&amp;quot; you will be brought to the log-in page and just log in with the details you just set. Once in you can start to create your mail users or configure other settings as needed. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;Un-installation / Remove &lt;br /&gt;
&lt;br /&gt;
To uninstall Xmail:&amp;lt;br&amp;gt;Simply delete the entire chroot environment. (you might wanna back up your mails before you do this.) &lt;br /&gt;
&lt;br /&gt;
For TS-109 &amp;amp;amp; TS-209 with single disk:&amp;lt;br&amp;gt;# rm -rf /share/HDA_DATA/Xmail &lt;br /&gt;
&lt;br /&gt;
For TS-209 running RAID 1:&amp;lt;br&amp;gt;# rm -rf /share/MD0_DATA/Xmail &lt;br /&gt;
&lt;br /&gt;
To uninstall PHPXmail:&amp;lt;br&amp;gt;Same here just delete the entire script folder. &lt;br /&gt;
&lt;br /&gt;
1. rm -rf /share/Qweb/phpxmail &lt;br /&gt;
&lt;br /&gt;
Optional Tips and Tricks &lt;br /&gt;
&lt;br /&gt;
1. To get Xmail to start automatially on every reboot. &lt;br /&gt;
&lt;br /&gt;
1. mount /dev/mtdblock5 -t ext2 /tmp/config &lt;br /&gt;
&lt;br /&gt;
1. cd /tmp/config &lt;br /&gt;
&lt;br /&gt;
1. vi autorun.sh &lt;br /&gt;
&lt;br /&gt;
(add the following startup command to the file - autorun.sh) &lt;br /&gt;
&lt;br /&gt;
1. chroot /share/HDA_DATA/Xmail/etc/init.d/xmail start &lt;br /&gt;
&lt;br /&gt;
Save and close. &lt;br /&gt;
&lt;br /&gt;
1. chmod 755 autorun.sh &lt;br /&gt;
&lt;br /&gt;
1. cd / &lt;br /&gt;
&lt;br /&gt;
1. umount /dev/mtdblock5 &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;2. To save your bills and have full rights on mailserver administration. &lt;br /&gt;
&lt;br /&gt;
Simply pick up your phone and cancel your mail hosting after successful installation. &lt;br /&gt;
&lt;br /&gt;
(Nah, this one i am just kidding)&amp;amp;nbsp;:lol: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;Configuration and references &lt;br /&gt;
&lt;br /&gt;
So does it really work? Well I've successfully sent/received mails using it so the answer is 'yes'. As for details regarding the server config and how to use Xmail, I guess I'll leave that to you with the information and resources below. Good luck! &lt;br /&gt;
&lt;br /&gt;
XMail configuration&amp;lt;br&amp;gt;http://www.xmailserver.org/Readme.html#configuration &lt;br /&gt;
&lt;br /&gt;
XMail admin configuration&amp;lt;br&amp;gt;http://www.xmailserver.org/Readme.html# ... n_protocol &lt;br /&gt;
&lt;br /&gt;
PHPXMail support forum&amp;lt;br&amp;gt;http://nextcode.org/forums/ &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;Changelogs - 2007.11.12&amp;lt;br&amp;gt;*re-compress the chroot archive (arm_chroot.tar.gz) without the folder arm_root so your get straight to the root of chroot directory once decompressed.&amp;lt;br&amp;gt;*change the MailRoot location from /share/Xmail/MailRoot to the original location /var/MailRoot also edited the daemon file /etc/init.d/xmail to reflect the new path.&amp;lt;br&amp;gt;*moved the main executable binaries under /var/MailRoot/bin to /bin for ease of global access.&amp;lt;br&amp;gt;*remove the need for renaming sendmail to sendmail.foo&amp;lt;br&amp;gt;*add the &amp;quot;Un-installation / Remove&amp;quot; section.&amp;lt;br&amp;gt;*add the &amp;quot;Optional Tips and Tricks&amp;quot; section &lt;br /&gt;
&lt;br /&gt;
[http://pckeeper.zeobit.com PC keeper ] &lt;br /&gt;
&lt;br /&gt;
[http://www.techienow.com/ Remote Computer Support ]&amp;lt;br&amp;gt;[http://www.uninstallersoftware.net/Uninstaller.asp Uninstaller]&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
[http://essaywritingservices.org/prices.php write my paper] &lt;br /&gt;
&lt;br /&gt;
[[Category:Email_Server]]&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>