Archive for the 'Sendmail' Category

Oct 11 2007

Miracle software with a simple name Dovecot

Published by admin under Sendmail

Over the years I used Dovecot as a companion for Sendmail. It is getting better with the time. In early versions I had to open the configuration file in Dovecot and tweak it (the tweaking itself was as simple as it could be). In recent versions one can use Dovecot as is - right “out of the box”.

The most surprising, positive effect that Dovecot has on me is that it just never crashes. Hundreds of megabytes go through this software, it receives it gracefully and without any visible (or invisible) problems.

There are still many interesting configurations that can be used with Dovecot. I am so glad that the Dovecot guys now have their own Wiki. Read it and you will find lots of tips and tricks that can help you one day.

No responses yet

Oct 01 2007

The Spamhaus Project

Published by admin under Sendmail

I have nothing but the utmost respect for the Spamhaus project.  What is Spamhaus? For those who don’t know I wll reproduce the quote from its web site:  “Spamhaus tracks the Internet’s Spammers, Spam Gangs and Spam Services, provides dependable realtime anti-spam protection for Internet networks, and works with Law Enforcement to identify and pursue spammers worldwide.

And this is not boasting but 100% true. You just need to add a line to your E-mail server like Sendmail or Postfix and you are all set! Spamhaus filter catches up to 70% of all junk and spam e-mails. In fact, there are several filters that you can set up with Spamhaus.

I heard some sysadmins comlaining that sometimes spamhaus jamms a couple of legimitate addresses. Yet, nothing happens without reason. Somehow these “legimitate addresses” got busted somewhere in most cases and were included in Spamhaus blacklists.  If one believes that such thing occured, he needs to go and resolve this issue with Spamhaus, not with you.

So, if you are interested in clearing your cluttered shiny new E-mail server from spam and junk, visit the Spamhaus project.

No responses yet

Sep 27 2007

How to set up Squirrelmail (Webmail)

Published by admin under Sendmail

Ok, so you installed and set up Sendmail and Dovecot and they are working in sync without any problems. What’s next?

Here comes webmail. If you don’t want a workhorse, nothing fancy (and sometimes confusing), your best bet is Squirrelmail - PHP based web application that runs on the Apache server and allows your users the ability to log in and read their email from any remote location through their favorite browser.  As I already mentioned, Squirrelmail supports only IMAP mailboxes (no POP3) . Yet, this webmail package has many extra plugin modules that have been written for it, and its simply a matter of downloading the plugin and running a configuration script; its that easy.

The package has two configuration files, one that enables the application for Apache and another containing the main PHP settings. The Apache configuration details an alias that points to the location of the main SquirrelMail directory, this would be viewed at http://localhost/webmail.

Location of the configuration file is at /etc/httpd/conf.d/squirrelmail.conf   And the main PHP configuration file is located at /etc/squirrelmail/config.php

The PHP settings are fairly easy to understand just by looking at them. You should only need to worry about the domain name ($domain), where the imap mailboxes are located ($imapServerAddress), and where to send outgoing emails for processing ($smtpServerAddress). If the webmail application is being run on the email server (like we’re doing), then leave the settings for localhost.

$domain                 = ‘example.com’;
$imapServerAddress      = ‘localhost’;
$imapPort               = 143;              <– plain IMAP protocol running on localhost (server)
$useSendmail            = true;
$smtpServerAddress      = ‘localhost’;
$smtpPort               = 25;
$sendmail_path          = ‘/usr/sbin/sendmail’;
$pop_before_smtp        = false;
$imap_server_type       = ‘uw’;

One of the big queries that always gets asked about any webmail system, is how to change the size of the file attachments users can send. Then look no further, this in fact is a PHP setting. You need to change the setting in the main PHP ini file, and it should be set to the same value the mail server is configured to accept.

Find the following separate 3 lines in the file /etc/php.ini and change the defaults to your desired size.

post_max_size = 30M
upload_max_filesize = 30M
memory_limit = 64M

That is all. You Squirrelmail should now be configured. Enjoy.

No responses yet

Sep 19 2007

How to configure Sendmail

Published by admin under Sendmail

I just love these quick Howto tutorials, especially if they make sense not only for a corporate sysadmin, but also for a regular guy with home DSL and one IP address who wants to run a decent e-mail server. Sendmail was always my preferred e-mail server among others. I tried Postfix, Qmail and Exim, each of them has its own benefits and drawbacks. Yet, Sendmail works for me fine for all those years.  Here is a very detailed tutorial that will set you up and running your own Sendmail server at no time.

No responses yet