Archive for the 'Unix / Linux / *BSD software' CategoryPage 3 of 6

An Anti-Spam gateway #10: amavisd-new

(NOTE: this is part of the “An Anti-Spam gateway” series)

Go to the amavisd-new site and download the latest version (2.3.3 at the time of writing). Uncompress it somewhere, then copy amavisd to /usr/local/sbin (for instance), and amavisd.conf to /etc.

Edit the /etc/amavisd.conf file. Add the following lines to the end:

$daemon_user = ‘amavis’;
$daemon_group = ‘amavis’;
$mydomain = ‘YOURDOMAIN’; # replace with your own domain, of course
$virus_quarantine_method = ”;
$spam_quarantine_method = ”;
$banned_files_quarantine_method = ”;
$bad_header_quarantine_method = ”;
$sa_tag_level_deflt = -202.0;
$sa_tag2_level_deflt = 8.31;
$sa_kill_level_deflt = 50;
$sa_dsn_cutoff_level = 50;
$mailfrom_notify_admin = “YOUR EMAIL”; # add \ before the @, as in cats\@allyourbase.com
$mailfrom_notify_recip = “YOUR EMAIL”; # add \ before the @, as in cats\@allyourbase.com
$mailfrom_notify_spamadmin = “YOUR EMAIL”;# add \ before the @, as in cats\@allyourbase.com
$final_virus_destiny = D_DISCARD;
$final_banned_destiny = D_DISCARD;
$final_spam_destiny = D_DISCARD;
$final_bad_header_destiny = D_PASS; # many badly configured servers out there
$warnvirusrecip = 1;
$warnbannedrecip = 1;

(a few lines may have wrapped around in the above. They all start with “$“)

Create the following directories, making sure they belong to user and group amavis:

/var/amavis/tmp
/var/amavis/var,
/var/amavis/db

Run amavisd, and check if it’s listening in port 10024. If not, there should be some error message telling you what the problem (in /etc/amavisd.conf) is.

We’re almost done, now. Next: configuring Postfix to work with amavisd-new.

An Anti-Spam gateway #9: ClamAV

(NOTE: this is part of the “An Anti-Spam gateway” series)

Now for the anti-virus. Go to the ClamAV site, download the latest stable version, uncompress it, then compile and install it:

./configure --with-user=amavis --with-group=amavis --sysconfdir=/etc
make
make install

(note: 3 lines. The first one ends with “–sysconfdir=/etc”)

Edit the /etc/freshclam.conf file. At the end, add the following line:

DatabaseMirror db.XY.clamav.net

replacing the XX with your country code (e.g. “us”, “uk”, “pt”, etc.)

Now, edit the /etc/clamd.conf file.

Near the beginning, comment out or delete the “Example” line. Then, add the following lines at the end:

TCPAddr 127.0.0.1
User amavis

Test if ClamAV is able to update itself:

freshclam --log-verbose

If there are any problems, it should tell you.

Finally, make it so that

/usr/local/bin/freshclam -d

(note the “-d”)

and

/usr/local/sbin/clamd

are run when the system boots. That will depend on your Unix variant.

An Anti-Spam gateway #8: MySQL and SpamAssassin

(NOTE: this is part of the “An Anti-Spam gateway” series)

Thought I’d forgotten about this one, didn’t you? :)

Ready to make SpamAssassin actually use MySQL for the bayes database?

Start by creating the database itself:

mysql
CREATE DATABASE bayes;
GRANT ALL PRIVILEGES on bayes.* TO bayes@localhost IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES on bayes.* TO bayes@10.0.0.1 IDENTIFIED BY 'password';
EXIT

changing password to something else, of course

Next, I know you’ve already installed SpamAssassin using CPAN, but go to www.spamassassin.org and download it manually; you’ll be needing a file from the distribution, and while it should still be in /root/.CPAN, it’s simpler this way. Uncompress the .tar.gz and go to the sql/ directory. Then type:

mysql -u bayes -p < bayes_mysql.sql

It’ll ask for a password, which is the one you used when creating the database.

Now, edit the file /etc/mail/spamassassin/local.cf. Add the following lines:

bayes_store_module Mail::SpamAssassin::BayesStore::MySQL
bayes_sql_dsn DBI:mysql:bayes:localhost
bayes_sql_username bayes
bayes_sql_password password

(again, replace password with the proper one.)

SpamAssassin is now configured to store bayes data on MySQL. Wasn’t too hard, was it? :)

Firefox 1.5.0.1 is out

Use “Check for Updates” in the Help menu, or simply wait for it to warn you. If, for some reason, you are not using Firefox, you can get it from Getfirefox.com.

Just bugfixes, so should be a peaceful update for everyone. I’m already using it on XP, at home, and will update it on Linux, at work, tomorrow.

SeaMonkey 1.0 released

I’m a couple of days late, as I don’t use it myself; however, in those couple of days, I’ve seen, or read about, several people who do use the Mozilla suite, yet hadn’t known about the name change.

So, if you want to keep using Mozilla (not Firefox), it’s now called SeaMonkey, and the 1.0 version is out - which includes many engine improvements from Firefox 1.5 (but it’s still the suite, with the same look and feel, not a stand-alone browser like Firefox).

MySQL 5.0

On a whim, I upgraded MySQL on my server to 5.0.18. No problems so far, unlike 4.1.x, which had a few troubles with OpenBSD. It still has the bug where (when compiling in OpenBSD) the client libraries link to ../libmysql/.libs/libmysqlclient.so.15.0 instead of simply -lmysqlclient, but I simply had to repeat the compilations in the client/ subdirectory, replacing the former with the latter.

As far as I can see, there are no problems with current versions of WordPress, MediaWiki and phpBB, all of which I use here.

Firefox 2.0 alpha coming soon?

According to PCPro, yes.

This bit is intriguing:

As many of the engineers involved in the Firefox project are now also working for Google, it comes as no surprise to discover that improvements are planned for the integration with search. The objective is for the browser to adapt to the user’s search needs, rather than forcing a particular view of search on them.

Version 2.0 is expected to create a simple, flexible system that unifies all search back ends, make adding keywords easy and more obvious, allow for engines to be added and removed easily when upgrading and allow for simple configuration for business needs.

Among other things, they also mention “improvements to the tabbed browsing and other user interface enhancements”. Should be interesting…

Firefox: 20% in Europe, 15% in the U.S.!

Firefox World 200601

20% is a really nice number. Not only because, well, it’s a lot of people, but because, unlike the MS fanboys/apologists usually say, Firefox isn’t just used by “geeks” or “technical people”.

Because, sure as hell, geeks (and I consider myself one) don’t comprise 20% of the world’s population. Not even 5%.

This proves that ordinary, non-technically inclined people are also capable of being aware of Internet Explorer’s many problems and lack of modern features, and when aware of alternatives (and here I have to praise Spread Firefox for doing a great job in letting people know that “Internet Explorer” is not “The Internet”), can actually switch.

(Source: XiTi. It’s in French, but the images speak for themselves.)

Thunderbird 1.5 relased

Much like Firefox, the last RC - in this case, 1.5 RC 2 - is the same as the final version. If you already have that one, you have the latest Thunderbird.

For everyone else, you can get Thunderbird here.

Newspipe

After watching Rui mention Newspipe so often, I finally got around to try it out. For my needs, it’s not really a replacement for a “normal” aggregator such as Bloglines, but it offers me something else…

Newspipe is a small utility, written in Python, which converts a feed to HTML and sends it by email - by default, one email per post, but it can also do digests (all the new posts in a single email), and it’s customizable in several ways (for instance, to remove images, send text only, etc.).

Now, unlike Rui (I think), having news feeds in Thunderbird or Gmail isn’t really useful to me - I’d much rather read the stuff in Bloglines.

On the other hand, there are some feeds I usually only skim through, which are interesting but not prioritary. So, I had an idea - why not send those to an email account, which I can access by IMAP, with my cell phone? Whenever I have to wait for something, or I’m bored, and away from a computer, I simply take my N-Gage or my 6630 out of my pocket, open Profimail, and see what’s new from a small group of feeds - the ones I used to skip often in Bloglines.

After less than a day, it’s already been useful. :)

Apache 2.2.0 is out

The number one web server on the Internet has a new stable version, 2.2.0. The previous stable version was 2.0.55.

New features include Smart Filtering, Improved Caching, AJP Proxy, Proxy Load Balancing, Graceful Shutdown support, Large File Support, the Event MPM, and refactored Authentication/Authorization.

I’ll keep using OpenBSD’s customized 1.3.29, here, which comes as part of the OS. OpenBSD isn’t moving to 2.x because of licensing issues. But I’m betting most Linux distros will include Apache 2.2.x in their next versions.

More on Firefox 1.5, and “release candidates”

I wondered why I didn’t get the auto-update prompt, and so I went and got the 1.5 final version from the FTP site. I installed it, and… the build number is exactly the same as RC3. Which means, apparently, that 1.5RC3 and 1.5 final are the same!

This is what a release candidate should be - a candidate for the final version, which, if no new bugs are discovered, becomes the final version (otherwise, those bugs are fixed, and a second RC is released). But I’ve got so much used to the fact that “release candidate”, to most software authors, means just “what comes after beta” or “we can’t keep calling them betas forever”, that I didn’t even think that they would be using the term properly here! :)




Creative Commons Attribution-NonCommercial-NoDerivs 2.5 Portugal
Creative Commons Attribution-NonCommercial-NoDerivs 2.5 Portugal