Comments on Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail (Fedora 10)
Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail (Fedora 10) This document describes how to install a mail server based on Postfix that is based on virtual users and domains, i.e. users and domains that are in a MySQL database. I'll also demonstrate the installation and configuration of Courier (Courier-POP3, Courier-IMAP), so that Courier can authenticate against the same MySQL database Postfix uses. The resulting Postfix server is capable of SMTP-AUTH and TLS and quota (quota is not built into Postfix by default, I'll show how to patch your Postfix appropriately). Passwords are stored in encrypted form in the database (most documents I found were dealing with plain text passwords which is a security risk). In addition to that, this tutorial covers the installation of Amavisd, SpamAssassin and ClamAV so that emails will be scanned for spam and viruses. I will also show how to install SquirrelMail as a webmail interface so that users can read and send emails and change their passwords.
4 Comment(s)
Comments
While building the RPMs for authlib and courier-imap, you may encounter an error saying that ltdl.h and fam.h are required (respectively). You can install these by doing the following:
ltdl.h-- Download and install the latest libtool and libtool-ltdl-devel packages from rpmfind.net
fam.h--As root, run:
yum intall -y gamin-devel
Since this tutorial is designed for Fedora 10, make sure you are getting the right build for your distribution.
Hopefully this will save some of you some time, as it added about an extra 20 minutes to my install progress finding the source of the error and a way to fix it.
mails are not getting delivered. they are stuck in deferred folder. any clue?
Hi. I have a problem. When i want login to realy user and realy domain on my server then the imap was error.
/var/log/mailllog
Jun 29 01:35:31 $mydomain imapd: Connection, ip=[::ffff:127.0.0.1]
Jun 29 01:35:31 $mydomain imapd: chdir $mydomain.cz/$user/: No such file or directory
Jun 29 01:35:31 $mydomain imapd: $user@$mydomain.cz: No such file or directory
$mydomain is realy domain
$user is realy user
For FC11 I downloaded the latest source files and found that they built to $HOME/rpm/RPMS/i586 rather than $HOME/rpm/RPMS/i386. I only diuscovered this when I tried to build courier-imap and it could not write the .rpm to the $HOME/rpm/RPMS/i586 folder as it had been created by sudo (root).
A quick chown and chgrp fixed it.
I presume that it would not have been a problem if I had created the $HOME/rpm/RPMS/i586 directory at the start of Step 4 above instead of $HOME/rpm/RPMS/i386.