advert

Sunday, 25 August 2013

Squirrelmail Could not move/copy file. File not attached


System:

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)

Introduction:

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.

Problem:

I not remember now if Squirrelmail installation has been done trough ports, packages or just rsync while relocating server...
anyway
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?

Solution:


Config file is located here:
/usr/local/www/squirrelmail/config/config.php


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)

References:
http://www.morpheushosting.sk/squirrelmail-could-not-movecopy-file-file-not-attached/



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.


195.12.159.2
195.12.159.3
195.12.159.65
93.91.144.139
93.91.155.200

31.172.124.28
31.172.124.29
31.172.124.2
31.172.124.3
192.121.121.30
178.239.54.153
178.239.54.160
80.237.196.38
91.224.160.192
91.224.160.192
192.162.100.180
180.100.162.192
91.144.184.194
91.144.184.195
91.144.184.196
91.144.184.197
91.144.184.198
91.144.184.197
208.91.197.104
109.163.231.236
109.235.54.214
109.235.54.214
109.235.54.214
188.40.70.27
188.40.70.29
188.40.117.12
208.83.20.164
194.54.80.150
190.93.254.57
190.93.255.57
37.220.34.73
89.188.127.134
87.248.186.252
188.138.92.161
208.83.20.164
208.83.20.164
193.107.19.56
216.172.175.68
188.126.66.2
188.126.66.2
216.172.175.68
210.244.71.11
72.8.150.19
62.212.85.66
59.175.182.146
151.98.14.121
95.215.60.44
67.230.162.171
208.95.173.194
59.175.182.146
188.138.91.212
78.46.100.44
208.113.146.30
91.121.17.16
85.17.73.236
91.144.184.234
85.159.237.127
95.143.193.20
95.143.193.20
46.108.241.10
46.108.241.10
199.83.49.5
72.20.40.29
62.149.13.46
109.163.231.254
80.82.209.126
95.211.218.88
188.138.124.79
69.64.49.158
180.153.120.112
113.16.67.208
67.159.61.12
193.203.62.149
91.121.167.142
93.95.227.118
174.137.63.116
95.211.10.142
188.119.152.40
185.10.208.40
212.117.168.177
141.101.117.111
141.101.116.111
95.169.190.186
208.43.99.82
208.43.99.82
94.23.74.89
212.117.166.163
109.236.86.194
93.186.176.111
93.186.176.111
188.126.66.10
46.188.19.172
188.138.122.45
178.239.54.151
109.201.148.59
210.118.88.200
80.94.76.8
94.242.250.241
173.201.35.31
207.241.226.111
174.137.49.178
188.126.66.12
85.217.128.182
89.146.207.130
188.126.66.11
85.17.177.202
70.34.194.6
88.198.247.173
46.28.68.185
205.204.91.140
70.33.217.45
88.208.233.43
85.17.29.160
174.137.63.116
141.101.116.174
141.101.117.174
193.34.145.85
95.211.160.100
93.190.138.129
176.31.238.151
207.58.171.223
74.82.218.37
74.82.218.37
46.149.20.44
95.211.10.142
217.197.85.174
184.107.151.70
5.39.69.177
124.217.230.57
85.25.109.26
91.194.235.182
108.162.199.132
108.162.198.132
94.23.162.78
46.108.240.144
84.247.80.242
193.41.86.181
37.1.207.82
193.34.145.85
69.42.215.246
81.95.180.4
91.123.156.246
184.168.221.93
124.217.250.26
31.170.179.179
46.254.16.105
46.254.16.105
46.254.16.105
174.139.122.154
95.211.181.132
91.197.128.131
63.143.37.68
213.133.160.42
213.133.160.42
207.241.239.206
188.126.66.21
46.108.240.169
84.19.191.179
88.80.28.216
217.77.220.40
92.46.53.180
217.77.220.40
188.126.66.20
91.143.87.155
85.17.188.144
87.118.119.5
82.192.90.185
82.192.90.185
212.117.177.190
109.163.231.254
176.31.104.229
176.31.104.229
88.80.16.39
89.38.207.2
70.33.217.78
70.33.217.78
88.129.153.50
88.129.153.50
88.129.153.50
88.129.153.50
88.129.153.50
91.209.8.124
85.170.54.237
82.220.34.151
95.31.253.5
194.220.18.10
194.220.18.10
216.227.208.68
64.74.223.40
178.63.225.231
178.157.81.106
66.232.127.2
97.64.208.13
46.28.105.11
46.28.105.11
83.149.71.82
95.169.186.44
94.242.254.12
87.118.123.22
87.118.122.22
94.23.30.185
111.73.45.105
93.186.176.111
93.186.176.111
63.223.110.224
77.235.52.19
84.200.213.160
178.32.53.250
46.4.194.175
195.191.182.2
195.191.182.2
85.114.132.51
94.75.239.203
108.162.196.71
108.162.197.71
69.43.161.177
208.87.35.103
111.73.45.105
195.60.248.37
195.60.248.37
31.192.250.70
94.102.52.14
85.159.233.238
77.120.117.6
59.36.96.77
69.43.161.178
208.95.173.193
94.242.250.241
94.242.250.241
80.90.240.184
72.18.146.212
80.90.240.184
221.1.81.45
201.40.6.156
114.31.8.13
80.249.163.1
85.17.222.25
203.150.0.67
184.173.36.114
96.45.180.162
94.242.251.110
94.242.251.110
208.83.20.164
27.254.46.225
213.152.160.80
94.23.160.4
103.31.186.78
174.137.49.34
174.137.49.34
87.98.229.99
199.91.172.202
199.101.99.188
199.101.99.188
188.190.99.56
188.190.99.56
88.147.254.249
81.30.145.168
184.168.221.93
85.17.154.26
66.185.224.146
95.211.132.111
129.121.184.204
95.211.132.111
202.103.67.135
46.17.96.142
46.17.96.142
188.165.207.189
176.56.227.21
88.198.55.196
208.113.154.44
118.112.142.202
60.222.231.183
66.160.198.101
74.82.218.35
129.121.184.204
212.108.220.132
87.98.165.94
208.71.113.167
208.71.113.167
176.74.176.167
122.227.228.13
142.4.35.138
114.112.95.200
82.192.92.79
199.233.234.42
95.168.193.142
31.131.31.68
178.63.85.238
140.211.166.32
195.2.241.54
87.98.165.94
61.147.113.90
66.154.43.209
204.8.34.34
61.147.113.90
37.59.37.144
212.233.245.245
81.234.121.9
91.218.38.197
208.87.35.103
178.63.131.192
74.63.201.221
94.23.24.105
64.85.172.206
141.101.116.193
141.101.117.193
174.139.181.162
88.80.29.6
96.45.183.82
87.98.202.49
91.200.42.88
69.41.161.29
174.139.181.162
174.139.181.162
46.165.212.22
188.241.14.119
95.211.87.196
91.205.41.133
46.28.64.10
5.9.85.41
64.74.223.42
95.211.87.196
219.136.249.19
91.229.76.16
184.175.5.87
46.17.96.138
78.47.96.203
69.63.169.6
92.48.119.31
212.117.163.32
80.101.113.178
37.1.206.9
130.239.18.37
46.105.124.215
46.105.124.215
46.105.124.215
87.118.116.127
46.28.71.78
69.31.6.159
188.190.99.34
87.236.199.47
199.195.250.183
8.19.35.215
95.215.245.133
95.215.245.133
95.215.245.133
221.1.15.172

61.160.210.100
63.223.108.59
202.109.143.177
216.146.39.125
178.32.51.64
111.90.151.127
149.154.68.46
141.101.116.178
141.101.117.178
78.46.91.61
83.216.63.103
64.20.55.10
82.98.86.173
178.32.51.64
112.78.8.66
212.117.171.252
111.90.151.127
77.244.45.166
85.21.143.238
178.238.229.170
198.27.76.74
88.198.27.72
88.198.27.72
82.192.88.75
178.238.229.170
206.190.133.182
206.190.133.180
206.190.133.180
200.198.83.56
94.76.240.14
213.133.100.169
213.133.100.169
178.238.229.170
166.78.35.176
91.230.195.248
122.228.196.55
194.28.172.240
46.252.197.1
188.94.75.23
122.249.22.119
199.59.166.109
83.169.46.42
37.59.38.105
46.105.54.149
82.192.91.90
89.248.172.132
89.248.172.132
178.63.41.248
212.117.161.169
46.165.213.15
77.81.183.67
186.82.150.100
109.163.238.110
108.162.198.229
108.162.199.229
82.98.86.178
178.86.23.96
46.165.212.87
74.115.231.234
82.98.86.169
204.45.18.66
64.74.223.40
91.199.108.159
84.52.10.145
109.86.222.93
199.21.115.183
94.75.208.166
94.75.208.166
64.120.253.194
86.104.153.54
81.181.24.130
78.155.175.31

Tuesday, 22 January 2013

Deluge on FreeBSD server

Introduction:

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.

System:
FreeBSD 8.3-RELEASE
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
or
# 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:
/root/.config/deluge/

References:
- wiki/SOCKS
- forum.deluge-torrent.org

- deluge-na-freebsd-serveri