Warning: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in ..../includes/class_bootstrap.php(430) : eval()'d code on line 123 [How-To] Install and configure xmail an a wl500g

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

[How-To] Install and configure xmail an a wl500g

Yes it is possible to run a mail server on a wl500g, but it acts very slow and uses a lot of memory.
If you a running a webcam or a lot of other programs on the router, it would not be a pleasure to work with the
mail server. I only have experience with the wl500g, perhaps it will run like charm on a newer asus model
with a little bit more of ram.

So I use Olegs latest firmware 1.9.2.7-7f on a wl500g. (Thanks for his great work!)

We need a /opt partition on a external data storage. (I used a 128 MB USB-Drive on my test router).

If you start the xmail-deamon via standard init script "/opt/etc/init.d/S43xmail start" the deamon
is starting with 3 processes after a few moments, but if you try to connect via telnet on port 25 or 110
the connection are refused.

So I begin to change some instructions in the "/opt/var/MailRoot/xmail" file:

If you would like to have a log file from the mail services simple change "/dev/null" with the path and
filename from the logfile e.g. "/opt/var/log/mail.log"

The environment from the router seems to have problem with exporting the global variables. I don't
know why, but if anybody knows why, please tell me.
I also have problems get the server equitable started without the option "-Md", which is for verbose logging.
But I thing this is not really a big problem.

Now try to start the mail-server with "/opt/etc/init.d/S43xmail start".

Add a username for administrating the mail server and a password.
To create the password you need the programm "XMCrypt".

Simple run XMCrypt followed by the password to encrypt - e.g.:

Code:

[admin@MMXAP bin]$ XMCrypt password
15041616120a1701

If you use the user "administrator" with the password "password" the ctrlaccounts.tab must look like this:
!The parameters must be seperated by a [TAB] space!

Code:

"administrator" "15041616120a1701"

Restart the mail-server with "/opt/etc/init.d/S43xmail restart".

The easiest way to configure the mail server is the tool phpxmail. But you need a running webserver with
php to run this programm, but the webserver must not run on the router itself, you can also use
a external webserver.

I used phpxmail on the router itself, running on a lighttpd server with php-fcgi support, and it
works like charm.

If you would like to configure it without the tool CyberUX did a great tutorial.

Same problem with my system. Does anybody know how to disable POP3 thread in XMail? Now I have 13 threads from XMail according to 'ps'. Each uses ~3 MB, so only XMail uses more RAM than router has. :-(