Sunday, 25 August 2013

Squirrelmail Could not move/copy file. File not attached


FreeBSD 8.4-RC3
hw.machine: amd64; hw.ncpu: 2
CPU: Intel(R) Pentium(R) Dual  CPU  E2160  @ 1.80GHz (1800.01-MHz K8-class CPU)
real memory  = 2147483648 (2048 MB)


SquirrelMail is a PHP based webmail and include support for IMAP and SMTP protocols. Pages are rendering without needed JavaScript so that mean high compatibility with any browser.


I not remember now if Squirrelmail installation has been done trough ports, packages or just rsync while relocating server...
While using Squirrelmail 1.4 problem appeared with attachments which has been lost while the e-mail body has been delivered correctly. After keeping eyes on adding attachments there appeared on top of page message:
"Could not move/copy file. File not attached."
So what next?


Config file is located here:

There is line with attachment directory settings:
$attachment_dir = '/var/spool/squirrelmail/attach/';

In my case this directory was not exist so that was the problem.

Now solving it is easy:

1. create directory
mkdir /var/spool/squirrelmail/attach/

2. change permissions
chown www:www /var/spool/squirrelmail/attach/

Happy Squirrell Mailing :o)


Saturday, 27 April 2013

blocking P2P traffic - blocklist for firewall

Hi,  just lazy way to publish actual live IP address for P2P trackers.
Just add those IP to your firewall. If anybody is interested for updates just left a comment. Just thinking do it as a daily script with P2P blocked IP in a file.

Tuesday, 22 January 2013

Deluge on FreeBSD server


Deluge is powerfull, yet light BitTorrent client with rich WebUI. Is ideal candidate for low powered MiniITX Seed Boxes.
From security point, most interesting part here is secure connection with Socks5 Autentification.
SOCKS5 also allowing traffic to bypass Internet filtering to access content otherwise blocked by governments, workplaces, schools and country specific web services.

hw.machine: i386; hw.ncpu: 1
CPU: VIA Nehemiah (999.83-MHz 686-class CPU)
real memory  = 536870912 (512 MB)

Deluge Instalation:

Instalation is possible either from packages or ports.
Adding binary package will save time for slow lower power consumption processor (my system).

# pkg_add -r deluge
This command will install:
deluge          deluge-console  deluge-gtk      deluge-web      deluged

Running Deluge on FreeBSD:

For debug problems and watch logs it is good idea to start it as:
# deluged -d -L debug
It is possible to start deluge daemon at boot just add line > deluged_enable="YES" < to /etc/rc.conf

Web interface is stated by command:
# deluge-web
Then open a browser http(s)://YourServer:8112.
Substitute the word localhost with an IP address if the server is elsewhere.
When asked for a password, enter "deluge" as it is the default password.

Problems found:

FreeBSD ImportError: No module named zope.interface

I just install/reinstall port /usr/ports/devel/py-zope.interface:
# cd /usr/ports/devel/py-zope.interface && make deinstall reinstall clean

FreeBSD deluge performance warning: max outstanding disk writes reached

Upgrade libtorrent packages should by resolv this problem as it mention in developer site.

Upgrading Example (output depend on your system):

# pkg_version -vI | grep libtorrent py27-libtorrent-rasterbar-0.15.9    <   needs updating (index has 0.15.9_2)

So possible upgrade:
# portupgrade libtorrent-rasterbar-0.15.9
# portmaster py27-libtorrent-rasterbar*

SOCK setup:

GO to deluge preferences/proxy
My way to setup SOCKS5 proxy is start down there and fill the last (DHT) field. When I started on top (Peer) other fields were hidden and accessible just by key.

Config files:

- wiki/SOCKS

- deluge-na-freebsd-serveri