Showing posts with label Debian. Show all posts
Showing posts with label Debian. Show all posts

Thursday, December 9, 2010

Debian SNMP daemon is not listening on addresses other than the loopback.

By default, with sarge/etch at least, the SNMP daemon will only listen on the loop back.
Instructions to fix:
Under /etc/default/snmpd there is a config file, edit it.
Find the line that looks like:
SNMPDOPTS='-Lsd -Lf /var/log/snmpd.log -u snmp -I -smux –p /var/run/snmpd.pid 127.0.0.1'
And change it to read:
SNMPDOPTS='-Lsd -Lf /var/log/snmpd.log -u snmp -I -smux –p /var/run/snmpd.pid'
Then restart the SNMP daemon.

Monday, November 1, 2010

Using the Amavis "Soft" White List

Adding individual users or entire domains to the Amavis soft white list is possible. This differs from the hard white list. The difference between the two is that a score is still computed for items on the soft list, and then the soft list value is added to the score to produce, hopefully, a ham value.

The file is 20-debian_defaults under /etc/amavis/conf.d/

Find the section with the static hash table that occurs after the normally commented line of #read_hash(“/var/amavis/sender_scores_sitewide”).

Add entries as follows into the static hash table:
'user@domain.tld' => -3.0,
'wholedomain.tld' => -3.0,

Use negative values to soft white list, use positive values to soft black list.

Generally you will want to use this in response to sender mail being bounced back as UBE "Unsolicited Bulk Email", and should be used before progressing to using the hard white list array.

Monday, October 25, 2010

Hard white listing with amavis-new

Previously I had discussed white listing in Amavis, which is a soft white list.
When this continues to fail it is time to modify the Perl code of “20-debian_defaults” to include a hard white list.

Choose a blank space in the Perl code before the soft white listing section, and create a new ARRAY.
Call the array @whitelist_sender_maps and include the domains that you want to globally hard white list.

Here is an example:

@whitelist_sender_maps = ([‘.somedomain.com’.’bronson@bronsonitinnovations.blogspot.com’])

Note: there is a “.” Before globally hard white listing an entire domain.

Thursday, September 23, 2010

Checking free disk space on Debian systems

A great APT package to use for checking free disk space is "discus". Discus displays disk usage of each file system in a textual bar graph format.
Install with
apt-get install discus
Output appears as such
Mount Total Used Avail Prcnt Graph
/ 48.09 GB 3.34 GB 44.75 GB 6.9% [*---------]
+ib/init/rw 505.4 MB 0 KB 505.4 MB 0.0% [----------]
/sys 0 KB 0 KB 0 KB 0.0% [----------]
+oc/bus/usb 0 KB 0 KB 0 KB 0.0% [----------]
/dev 10.0 MB 52 KB 9.9 MB 0.5% [----------]
/dev/shm 505.4 MB 0 KB 505.4 MB 0.0% [----------]