Customizing the QNAP TS-259 Pro

Reviews and other little ventures that don't quite fit into the other forums
Daniel Wee
Site Admin
Posts: 2449
Joined: Wed 25 Feb 25 2009 8:00 pm

Re: Customizing the QNAP TS-259 Pro

Post by Daniel Wee »

XMail configuration

The SSL certificates are not available by default after installation. This means that all TLS operations on both SMTP and POP ports will fail. To fix this, we need to create the appropriate certificates in theL0

/share/MD0_DATA/.qpkg/XDove/xmail/var/MailRoot/

directory. This you do by using OpenSSL as follows:-

openssl genrsa 2048 > server.key
openssl req -new -x509 -key server.key -out server.cert

The XMail server will need to be re-started here. Next, from mail client will connect and fail but you will have the option now of adding the last used SSL cert to the trusted group and after that it will work.

MX Records on DDNS should be left alone as it already points to the domain.

Daniel
Daniel Wee
Site Admin
Posts: 2449
Joined: Wed 25 Feb 25 2009 8:00 pm

Re: Customizing the QNAP TS-259 Pro

Post by Daniel Wee »

XMail port redirection

Since XDove insists on using 50025, 50110 and 50079 for SMTP, POP3 and Finger, we need to redirect the port usage. I initially hoped that modifying the CMDLINE file would do the trick but neither that nor the XMail commandline operations will force the port change. Consequently we had to install redir:-

ipkg install redir

and include the following in the autorun.sh script:-

/opt/bin/redir --lport=25 --cport=50025 --caddr=127.0.0.1 &
/opt/bin/redir --lport=110 --cport=50110 --caddr=127.0.0.1 &
/opt/bin/redir --lport=79 --cport=50079 --caddr=127.0.0.1 &

Daniel
Post Reply