Switching... » Courier http://switch.richard5.net How to build your Mac into a internet server using open source software Mon, 25 May 2009 14:13:02 +0000 en hourly 1 http://wordpress.org/?v=3.2.1 Upgrading the Courier-Auth module to 0.59.1 http://switch.richard5.net/2007/01/17/upgrading-the-courier-auth-module-to-0591/ http://switch.richard5.net/2007/01/17/upgrading-the-courier-auth-module-to-0591/#comments Wed, 17 Jan 2007 20:31:33 +0000 Richard5 http://switch.richard5.net/2007/01/17/upgrading-the-courier-auth-module-to-0591/ January is going to be a busy month with all these updates, just letting you know that the Courier-auth library got updated with a small bug fix that has no affect on us. It is a fix concerning anonymous LDAP binds and we don’t use LDAP in our setup. But it will explain why you will a see a new version when you go and download it. I’ve tested it myself and there are no changes to the workings in our setup.

]]>
http://switch.richard5.net/2007/01/17/upgrading-the-courier-auth-module-to-0591/feed/ 0
Updates on Courier IMAP, Authlib and maildrop. http://switch.richard5.net/2007/01/01/updates-on-courier-imap-authlib-and-maildrop/ http://switch.richard5.net/2007/01/01/updates-on-courier-imap-authlib-and-maildrop/#comments Mon, 01 Jan 2007 21:08:11 +0000 Richard5 http://switch.richard5.net/2007/01/01/updates-on-courier-imap-authlib-and-maildrop/ Sam Varshavchik has spend the last days of 2006 cleaning up unreleased patches and fixes so that he can start 2007 with a clean slate. The changes aren’t critical and even he says that if everything is working for you you don’t need to update.

The items that are of interest to us are the changes to IMAP, Authlib and maildrop. This updates them to the following versions: Courier-IMAP 4.1.2, Courier-Authlib 0.59 and Maildrop 2.0.3.

IMAP changes:

  • Fixed 64-bit issue with quota indication
  • Try to log bandwidth usage before getting killed by a signal
  • Fixed many compiler warnings
  • maildirmake: Clarify some error messages
  • Fixed some typos in man pages
  • message files created by the IMAP server will use the umask setting

Auth changes:

  • Fixed many compiler warnings
  • Try again if the LDAP server apparently closes the socket due to inactivity
  • Fix LDAP account enumeration
  • Fix up an error message
  • Added -f option to makeuserdb
  • Ported to openldap 2.3.27
  • Cleaned up RPM spec file
  • Ported code to gcc 4.1.1
  • courier-authlib should now be buildable by Solaris’s linker

maildrop changes:

  • Updated autoconf/automake/libtool build toolchain
  • Fixed several compiler warnings
  • Cleanup. Consolidate multiple quoted-printable implementations into one
  • Fixed an obscure bug in quoted-printable encoding

Don’t forget the command:

chmod o+x /usr/local/var/spool/authdaemon

After you installed the authlib binaries. Otherwise you’ll get the error: SASL authentication failure: cannot connect to Courier authdaemond: Permission denied.

]]>
http://switch.richard5.net/2007/01/01/updates-on-courier-imap-authlib-and-maildrop/feed/ 0
Added maildrop to the documentation set http://switch.richard5.net/2006/11/26/added-maildrop-to-the-documentation-set/ http://switch.richard5.net/2006/11/26/added-maildrop-to-the-documentation-set/#comments Sun, 26 Nov 2006 09:32:40 +0000 Richard5 http://switch.richard5.net/2006/11/26/added-maildrop-to-the-documentation-set/ As promised when delivering the DSPAM documentation I’ve finished how to setup maildrop today. I’ve got it running for a few days on my own server and I must say it works perfectly. All spam found by DSPAM is now put into a mailfolder of my choice and not in my inbox. I haven’t setup any fancy filtering yet just plain spam/nonspam filtering but it’s a start.

You can read all about how to setup maildrop in the documentation. If you have problems in using it please post your errors and problems in the forum.

Next up is to have maildrop create folders that not already exist in your inbox when needed and to have users have their own filtering rules. Hope you like it as it is currently…

]]>
http://switch.richard5.net/2006/11/26/added-maildrop-to-the-documentation-set/feed/ 2
Updates on Courier IMAP and Akismet anti spam plugin. http://switch.richard5.net/2006/05/25/updates-on-courier-imap-and-akismet-anti-spam-plugin/ http://switch.richard5.net/2006/05/25/updates-on-courier-imap-and-akismet-anti-spam-plugin/#comments Thu, 25 May 2006 12:14:39 +0000 Richard5 http://switch.richard5.net/2006/05/25/updates-on-courier-imap-and-akismet-anti-spam-plugin/ Just a small post to let you know about some updates that where released today. First the Courier IMAP server has had a minor upgrade which solves some minor issues (which hadn’t troubled me yet). But it’s good to know and I’ll be upgrading later this evening. You can get the new version 4.1.1 from http://www.courier-mta.org/download.php.

Second update is a new update of the Akismet plug-in for WordPress. This plug-in is a real time saver as is keeps 99% of all spam from showing up in my blog as you might have noticed. It’s up to version 1.15 and the changes are more cosmetical than functional and you can get it here. If you are running a WordPress blog you really can’t do without.

]]>
http://switch.richard5.net/2006/05/25/updates-on-courier-imap-and-akismet-anti-spam-plugin/feed/ 0
Update on progress for v2 http://switch.richard5.net/2006/04/23/update-on-progress-for-v2/ http://switch.richard5.net/2006/04/23/update-on-progress-for-v2/#comments Sun, 23 Apr 2006 20:11:08 +0000 Richard5 http://switch.richard5.net/2006/04/23/update-on-progress-for-v2/ Besides some of the time I have to spend on other things this weekend I found some time to improve and continue on the documentation for the ISP in a box v2.

I’ve checked the installation procedure again after some reports of errors of using the installation with phpMyAdmin. I seemed there was an important option missing from the configuration command.

Next stop was building the mail server, I ‘ve got the build process documented and checked properly. Next up is documenting the configuration of the mailserver.

You can have a look at the new pages for building the server, hope you like the new look. I’ve made some changes to the style sheet to make the commands and the configuration stick out a bit more and make them more readable.

I hope there are no issues with relocation of the MySQL, Apache, and PHP documentation, they where still located in the hierarchy of version 1 and I had to put them in the correct place. Sorry….

Donations where a bit slow these last 2 weeks, didn’t receive any, and the Adsense income these weeks has also been slow. A well, it’s not that important, I will need to be a bit patient. That will give me more time to document everything proper before launching myself at a new toy ;-)

]]>
http://switch.richard5.net/2006/04/23/update-on-progress-for-v2/feed/ 0
Updates on Postfix and Courier-IMAP. http://switch.richard5.net/2006/02/26/updates-on-postfix-and-courier-imap/ http://switch.richard5.net/2006/02/26/updates-on-postfix-and-courier-imap/#comments Sun, 26 Feb 2006 19:00:09 +0000 Richard5 http://switch.richard5.net/?p=74 It has been a very busy week and not just for me. Wietse Venema (author of Postfix) released a version 2.2.9 of the Postfix mail-server and I also got an email from Sam Varshavchik on the Courier-announce mailing list that there is an updated version of the Courier IMAP server. Which meant that I had to download, compile, install and test all these new versions again on my test server before I could update my own server and tell you it was safe to upgrade.

Wietse tells in his announcement that the update is a collection of back-ported fixes from the Postfix 2.3 development branch.

Most of this patch hardens the TLS implementation against DNS-based attacks, and eliminates some anomalies from the TLS per-site policy engine. See the TLS_README document for tips on how to avoid DNS-based attacks that can change the server hostname that Postfix uses for logging, for TLS per-site policies, and for server certificate verification.

The patch also adds a workaround that prevents Postfix from repeatedly trying to deliver mail to domains with a malformed MX record (for example, with a null MX hostname). Postfix 2.2.9 bounces such mail immediately.

I’ve downloaded my copy of 2.2.9, compiled and installed it and I can safely say that it is currently running perfectly on my Mac mini server without any problem. Upgrading was as simple as downloading the source, unpacking it and run the commands as documented in the building page. Here is an extract of it:

Unpack it into a directory, use the Terminal and get into the directory where you unpacked it. Issue the following commands as a normal user:

make -f Makefile.init makefiles CCARGS='-DUSE_TLS -DUSE_SASL_AUTH -I/usr/local/include/sasl -DHAS_SSL -I/usr/include/openssl -DHAS_MYSQL -I/Library/Mysql/include/mysql -DDEF_HTML_DIR=\"/Library/WebServer/Documents/PostfixDocs\" ' AUXLIBS='-L/usr/lib -lldap -L/usr/lib -llber -L/usr/local/lib -lssl -lsasl2 -L/Library/MySQL/lib/mysql -lmysqlclient -lz -lm'

as root user type the following commands:

make install

The IMAP server has just received some bug-fixes on which you can read here. The fixes are not significant but could be annoying if you encountered them. Doing the upgrade is as easy as the Postfix described above, just run the commands from the build page and you’re a happy bunny running the new version. The only thing you should not do is run the “make install-configure” command as this will overwrite all your configuration files !!! Here is the extract:

Start a Terminal session change the directory in the one you just extracted the software in and follow the instructions:

RANLIB="ranlib -c"
export RANLIB

This will prevent compiler errors, if you didn’t issue this command as the first one you will get an error saying :
"Undefined symbols: _rfc1035_default_resolver"

Next configure the make files with the authentication modules you just created:

./configure --prefix=/usr/local --with-authpwd=YES --without-authcram COURIERAUTHCONFIG=/usr/local/bin/courierauthconfig

Compile:

make

And then issue the install command as a root user:

make install

I’m running both updated versions on my server for a day now and I’m not noticing any errors or problems. Hope the update goes as easy for you as it did for me, if it doesn’t please let me know and we’ll work it out.

]]>
http://switch.richard5.net/2006/02/26/updates-on-postfix-and-courier-imap/feed/ 0
Upgrading the Courier-Auth module to 0.58 http://switch.richard5.net/2006/01/22/upgrading-the-courier-auth-module-to-058/ http://switch.richard5.net/2006/01/22/upgrading-the-courier-auth-module-to-058/#comments Sun, 22 Jan 2006 21:01:44 +0000 Richard5 http://switch.richard5.net/?p=66 Completely missed it, but I got a comment from Geva who mentioned an error during compilation. When I checked the error I found out that there has been an upgrade, the latest version is 0.58 instead of the 0.57 I used when I started this setup.

The related documentation has been updated and if you want to upgrade you can just download the new source-code and run the build commands as documented. Don’t forget the command:

chmod o+x /usr/local/var/spool/authdaemon

After you installed the compiled binaries. Otherwise you’ll get the error: SASL authentication failure: cannot connect to Courier authdaemond: Permission denied.

I’ve upgraded my server as soon as I found out. I found no real problems after the upgrade. the only thing I did wrong is that I forgot the chmod command myself and got the error as documented above.

I’ve subscribed myself to the Courier mailing list and others to prevent missing important updates like this and other pieces of software we use.

]]>
http://switch.richard5.net/2006/01/22/upgrading-the-courier-auth-module-to-058/feed/ 3
Installing the Roundcube webmail on the mac mini server http://switch.richard5.net/2006/01/06/installing-the-roundcube-webmail-on-the-mac-mini-server/ http://switch.richard5.net/2006/01/06/installing-the-roundcube-webmail-on-the-mac-mini-server/#comments Fri, 06 Jan 2006 14:56:48 +0000 Richard5 http://switch.richard5.net/?p=62 I’ve got the server running for some days now and I must say it’s handling the load quit well. The only thing I had trouble with migrating easily was the squirrel webmail program, it had some problems with the include path and I didn’t feel like re-installing it. I’ve received emails from people saying that I should use Roundcube for web based email, not getting squirrel to run was the perfect excuse I needed to try and install it.

It didn’t look to complicated and it turned out to be one of the easier installs on the server. This is what I had to do to get it working:

First you need to download the code from the Roundcube site, I’ve used roundcube_webmail_0.1-20051021.tar.gz.

Extract the archive into the directory /Library/Apache2/htdocs (if you have the Apache installation from Server Logistics like I did and documented).

Step into the directory roundcubemail-0.1-20051021 and change the permissions on the temp and logs directory so that the webserver can write into these directories with the following commands:
chown -R www:www temp
chown -R www:www logs

Next we need to create a database for Roundcube to use. Start up MySQL on the command line and issue the following commands in MySQL:

CREATE DATABASE roundcubemail;
GRANT ALL PRIVILEGES ON roundcubemail.* TO roundcube@localhost
IDENTIFIED BY 'PASSWORD';
FLUSH PRIVILEGES;
quit


Note: Change the PASSWORD into any password you would like to use, remember it as you need to put it in the configuration file later.

Next we need to create the database structure (tables and such), luckily a script to create all this has been included in the archive. You need to execute the following command to import the script into the database:

mysql -p roundcubemail <sql/mysql.initial.sql

Next step is modifying the configuration of Roundcube to reflect your situation. Step into the directory config and we will first edit the database connection. Edit the file db.inc.php and change the password in the following line with the password you used earlier:

rcmail_config['db_dsnw'] = 'mysql://roundcube:PASSWORD@localhost/roundcubemail';

Next file to edit is the main.inc.php and change the following lines:

$rcmail_config['enable_caching'] = FALSE;

Define the host as localhost

$rcmail_config['default_host'] = 'localhost';

But if you use IMAP over SSL as I do you need to use:

$rcmail_config['default_host'] = 'ssl://localhost:993';

If you’ve changed these lines your done with the configuration of Roundcube.

I like to use a subdomains to divide up the specific tasks my webserver does. I use http://webmail.richard5.net to allow users to access their mail. (Mental note: still need to provide SSL support for this). How you can set this up as well is as follows:

Go into /Library/Apache2/conf and edit the httpd.conf file. Uncomment the following line:

NameVirtualHost *:80

and add the following beneath it:


ServerAdmin webmaster@yourdomain.tld
DocumentRoot /Library/Apache2/htdocs/roundcubemail-0.1-20051021/
ServerName webmail.yourdomain.tld
ErrorLog logs/webmail-error_log
CustomLog logs/webmail-access_log combined

Then restart Apache by issuing the command:

/Library/Apache2/bin/apachectl restart

Point your browser to http://webmail.yourdomain.tld and you should see a login screen appear.

For errors you could check the logfiles to explain what went wrong. For Roundcube errors check the /Library/Apache2/htdocs/roundcubemail-0.1-20051021/logs/errors file and for general mail errors check the /var/log/mail.log file.

Hope you enjoy Roundcube as much as I do…

]]>
http://switch.richard5.net/2006/01/06/installing-the-roundcube-webmail-on-the-mac-mini-server/feed/ 3
Migrated to the mini, finally… http://switch.richard5.net/2006/01/03/migrated-to-the-mini-finally/ http://switch.richard5.net/2006/01/03/migrated-to-the-mini-finally/#comments Tue, 03 Jan 2006 14:55:07 +0000 Richard5 http://switch.richard5.net/?p=60 I’ve started the new year with migrating everything from my old Sun Ultra 5′s who have been running my internet services for the past few years to the Mac mini. The pages you are looking at now are served from a Mac mini as it was my intention for some time. The mini is setup using my own documentation with no deviation whatsoever.

It was quite easy doing the migration, just copying the HTML/PHP files, making a backup of all the databases and restoring them on the mini for the web part. For the mail server I used postfix admin to create all the mailboxes and aliases for all the domains. Then made backups from the original server and restored them on the new mini.

I did some tests on the web part, to see if everything was configured as it should and tested the mail server to see if it didn’t become another spam relay server and it blocked unwanted spammers from sending mail via my server. I asked a friend to try abuse my server and used the relay service at www.abuse.net to check independently. It all worked out. The server is secure, still could use some tweaking but I will report on that later.

]]>
http://switch.richard5.net/2006/01/03/migrated-to-the-mini-finally/feed/ 1
Configure IMAP with SSL and TLS for secure mail access http://switch.richard5.net/2005/12/22/configure-imap-with-ssl-and-tls-for-secure-mail-access/ http://switch.richard5.net/2005/12/22/configure-imap-with-ssl-and-tls-for-secure-mail-access/#comments Thu, 22 Dec 2005 20:17:03 +0000 Richard5 http://switch.richard5.net/?p=58 This is the final page I needed to write down to configure the mail-server and get a secure enough setup to my liking. The final page is like the last page I added an optional extra to get secure access to the mail folders located on the server. It’s a description of how to configure IMAP to use SSL and/or TLS so that an encrypted communication channel will be setup before any passwords or e-mails are send over the internet. Which will make the setup of the server more secure now there is no more snooping possible for passwords and usernames.

I’m quite happy now with the setup I got here for myself so the next phase for me is to get everything moved from my current servers to my Mac mini. The old server still running strong is an old Sun Ultra 5, which I got from my former employer. Sun Ultra 5 I’ve been hosting my sites and e-mail services from this machine for several years now and it’s time for retirement for this baby. I need to copy websites, databases and mail directories and test everything properly before scrapping the old machine and let the Mac mini take over. I’m guessing that my next electrical bill will be a lot cheaper when I’ve got the mini running.

]]>
http://switch.richard5.net/2005/12/22/configure-imap-with-ssl-and-tls-for-secure-mail-access/feed/ 0