I have set up a FC5 postfix mail server using the guide "Virtual Users And Domains With Postfix, Courier And MySQL (Fedora Core 5)". I just wanted to say thank you for this howto article - i followed the instructions and it all worked first go - it has really saved me a bunch of time. HOWEVER I am trying to work out how to give users the ability to a) configure their own spam setting, and b) optionally have their spam email delivered to a junk email folder, instead of to the inbox. The reading I have done indicates that this is possible, but seems to be pointing to a .procmailrc file, but if I understand it correctly, we arent using procmail for the spam filtering. Furthermore, I think it is possible to configure Amavisd to pick up personalised settings from the database, but I cant figure it out. If anyone has a clue how to do this it would be greatly appreciated.
Hmm.. The problem right off the bat is that on my FC5 box, the /usr/local/src directory exists, but that folder is empty - apt-get src maildrop returns an error "-bash: apt-get: command not found". (This is the very first command on the list.) I have searched for "apt-get" and it is nowhere on the box. This howto appears to be targeted at Debian - does it also properly apply to FC5?
apt-get is for Debian and Ubuntu, for Fedora systems you must use yum (the packages might be named differently on Fedora. To search for a package, use Code: yum search [I]packagename[/I] ).
Trying to follow the instructions on http://www.howtoforge.com/postfix_mailfilter except that I am using a FC5 box rather than Debian. I downloaded maildrop from sourceforge (v2.0.3). Managed to run the './configure' command and the 'make' command successfully, however 'make install' failed - the output of 'make install' is as follows... Code: Making install in numlib make[1]: Entering directory `/usr/local/src/maildrop-2.0.3/numlib' make[2]: Entering directory `/usr/local/src/maildrop-2.0.3/numlib' make[2]: Nothing to be done for `install-exec-am'. make[2]: Nothing to be done for `install-data-am'. make[2]: Leaving directory `/usr/local/src/maildrop-2.0.3/numlib' make[1]: Leaving directory `/usr/local/src/maildrop-2.0.3/numlib' Making install in liblock make[1]: Entering directory `/usr/local/src/maildrop-2.0.3/liblock' make[2]: Entering directory `/usr/local/src/maildrop-2.0.3/liblock' make[2]: Nothing to be done for `install-exec-am'. make[2]: Nothing to be done for `install-data-am'. make[2]: Leaving directory `/usr/local/src/maildrop-2.0.3/liblock' make[1]: Leaving directory `/usr/local/src/maildrop-2.0.3/liblock' Making install in unicode make[1]: Entering directory `/usr/local/src/maildrop-2.0.3/unicode' make[2]: Entering directory `/usr/local/src/maildrop-2.0.3/unicode' make[2]: Nothing to be done for `install-exec-am'. make[2]: Nothing to be done for `install-data-am'. make[2]: Leaving directory `/usr/local/src/maildrop-2.0.3/unicode' make[1]: Leaving directory `/usr/local/src/maildrop-2.0.3/unicode' Making install in rfc822 make[1]: Entering directory `/usr/local/src/maildrop-2.0.3/rfc822' make install-am make[2]: Entering directory `/usr/local/src/maildrop-2.0.3/rfc822' make[3]: Entering directory `/usr/local/src/maildrop-2.0.3/rfc822' make[3]: Nothing to be done for `install-exec-am'. make[3]: Nothing to be done for `install-data-am'. make[3]: Leaving directory `/usr/local/src/maildrop-2.0.3/rfc822' make[2]: Leaving directory `/usr/local/src/maildrop-2.0.3/rfc822' make[1]: Leaving directory `/usr/local/src/maildrop-2.0.3/rfc822' Making install in rfc2045 make[1]: Entering directory `/usr/local/src/maildrop-2.0.3/rfc2045' make install-am make[2]: Entering directory `/usr/local/src/maildrop-2.0.3/rfc2045' make[3]: Entering directory `/usr/local/src/maildrop-2.0.3/rfc2045' make[3]: Nothing to be done for `install-exec-am'. make[3]: Nothing to be done for `install-data-am'. make[3]: Leaving directory `/usr/local/src/maildrop-2.0.3/rfc2045' make[2]: Leaving directory `/usr/local/src/maildrop-2.0.3/rfc2045' make[1]: Leaving directory `/usr/local/src/maildrop-2.0.3/rfc2045' Making install in gdbmobj make[1]: Entering directory `/usr/local/src/maildrop-2.0.3/gdbmobj' make[2]: Entering directory `/usr/local/src/maildrop-2.0.3/gdbmobj' make[2]: Nothing to be done for `install-exec-am'. make[2]: Nothing to be done for `install-data-am'. make[2]: Leaving directory `/usr/local/src/maildrop-2.0.3/gdbmobj' make[1]: Leaving directory `/usr/local/src/maildrop-2.0.3/gdbmobj' Making install in bdbobj make[1]: Entering directory `/usr/local/src/maildrop-2.0.3/bdbobj' source='testbdb.C' object='testbdb.o' libtool=no \ DEPDIR=.deps depmode=none /bin/sh ./../depcomp \ g++ -DHAVE_CONFIG_H -I. -I. -I. -fhandle-exceptions -c -o testbdb.o testbdb.C ./../depcomp: line 512: exec: g++: not found make[1]: *** [testbdb.o] Error 127 make[1]: Leaving directory `/usr/local/src/maildrop-2.0.3/bdbobj' make: *** [install-recursive] Error 1 Any thoughts? Has anyone out there actually done this successfully on a FC5 box?
You have not installed your C++ compiler (for some reason known to the developers renamed to g++) yet. Try Code: yum search g++ and next use the install option of yum. You may need more packages along the way.
Cheers - that got things moving; for the record I needed to run Code: yum install gcc-c++.i386 Make Install got a lot further this time - the output is as follows; Code: [root@ajc maildrop-2.0.3]# make install Making install in numlib make[1]: Entering directory `/usr/local/src/maildrop-2.0.3/numlib' make[2]: Entering directory `/usr/local/src/maildrop-2.0.3/numlib' make[2]: Nothing to be done for `install-exec-am'. make[2]: Nothing to be done for `install-data-am'. make[2]: Leaving directory `/usr/local/src/maildrop-2.0.3/numlib' make[1]: Leaving directory `/usr/local/src/maildrop-2.0.3/numlib' Making install in liblock make[1]: Entering directory `/usr/local/src/maildrop-2.0.3/liblock' make[2]: Entering directory `/usr/local/src/maildrop-2.0.3/liblock' make[2]: Nothing to be done for `install-exec-am'. make[2]: Nothing to be done for `install-data-am'. make[2]: Leaving directory `/usr/local/src/maildrop-2.0.3/liblock' make[1]: Leaving directory `/usr/local/src/maildrop-2.0.3/liblock' Making install in unicode make[1]: Entering directory `/usr/local/src/maildrop-2.0.3/unicode' make[2]: Entering directory `/usr/local/src/maildrop-2.0.3/unicode' make[2]: Nothing to be done for `install-exec-am'. make[2]: Nothing to be done for `install-data-am'. make[2]: Leaving directory `/usr/local/src/maildrop-2.0.3/unicode' make[1]: Leaving directory `/usr/local/src/maildrop-2.0.3/unicode' Making install in rfc822 make[1]: Entering directory `/usr/local/src/maildrop-2.0.3/rfc822' make install-am make[2]: Entering directory `/usr/local/src/maildrop-2.0.3/rfc822' make[3]: Entering directory `/usr/local/src/maildrop-2.0.3/rfc822' make[3]: Nothing to be done for `install-exec-am'. make[3]: Nothing to be done for `install-data-am'. make[3]: Leaving directory `/usr/local/src/maildrop-2.0.3/rfc822' make[2]: Leaving directory `/usr/local/src/maildrop-2.0.3/rfc822' make[1]: Leaving directory `/usr/local/src/maildrop-2.0.3/rfc822' Making install in rfc2045 make[1]: Entering directory `/usr/local/src/maildrop-2.0.3/rfc2045' make install-am make[2]: Entering directory `/usr/local/src/maildrop-2.0.3/rfc2045' make[3]: Entering directory `/usr/local/src/maildrop-2.0.3/rfc2045' make[3]: Nothing to be done for `install-exec-am'. make[3]: Nothing to be done for `install-data-am'. make[3]: Leaving directory `/usr/local/src/maildrop-2.0.3/rfc2045' make[2]: Leaving directory `/usr/local/src/maildrop-2.0.3/rfc2045' make[1]: Leaving directory `/usr/local/src/maildrop-2.0.3/rfc2045' Making install in gdbmobj make[1]: Entering directory `/usr/local/src/maildrop-2.0.3/gdbmobj' make[2]: Entering directory `/usr/local/src/maildrop-2.0.3/gdbmobj' make[2]: Nothing to be done for `install-exec-am'. make[2]: Nothing to be done for `install-data-am'. make[2]: Leaving directory `/usr/local/src/maildrop-2.0.3/gdbmobj' make[1]: Leaving directory `/usr/local/src/maildrop-2.0.3/gdbmobj' Making install in bdbobj make[1]: Entering directory `/usr/local/src/maildrop-2.0.3/bdbobj' source='testbdb.C' object='testbdb.o' libtool=no \ DEPDIR=.deps depmode=none /bin/sh ./../depcomp \ g++ -DHAVE_CONFIG_H -I. -I. -I. -fhandle-exceptions -c -o testbdb.o testbdb.C cc1plus: warning: -fhandle-exceptions has been renamed -fexceptions (and is now on by default) Linking testbdb libtool: ignoring unknown tag CXX make[2]: Entering directory `/usr/local/src/maildrop-2.0.3/bdbobj' make[2]: Nothing to be done for `install-exec-am'. make[2]: Nothing to be done for `install-data-am'. make[2]: Leaving directory `/usr/local/src/maildrop-2.0.3/bdbobj' make[1]: Leaving directory `/usr/local/src/maildrop-2.0.3/bdbobj' Making install in maildir make[1]: Entering directory `/usr/local/src/maildrop-2.0.3/maildir' echo '#define MAILDIRSHAREDRC "/usr/local/maildrop/etc/maildirshared"' >maildirsharedrc.h echo '#define MAILDIRFILTERCONFIG "/usr/local/maildrop/etc/maildirfilterconfig"' >maildirfilterconfig.h echo '#define QUOTAWARNMSG "/usr/local/maildrop/etc/quotawarnmsg"' >quotawarnmsg.h echo '#define MAILBOT "/usr/bin/mailbot"' >mailbot.h echo '#define AUTORESPONSEQUOTA "/usr/local/maildrop/etc/autoresponsesquota"' >autoresponsequota.h CONFIG_FILES=deliverquota.html CONFIG_HEADERS= /bin/sh ./config.status config.status: creating deliverquota.html config.status: executing depfiles commands CONFIG_FILES=maildirmake.html CONFIG_HEADERS= /bin/sh ./config.status config.status: creating maildirmake.html config.status: executing depfiles commands CONFIG_FILES=deliverquota.8 CONFIG_HEADERS= /bin/sh ./config.status config.status: creating deliverquota.8 config.status: executing depfiles commands CONFIG_FILES=maildirmake.1 CONFIG_HEADERS= /bin/sh ./config.status config.status: creating maildirmake.1 config.status: executing depfiles commands CONFIG_FILES=maildiracl.html CONFIG_HEADERS= /bin/sh ./config.status config.status: creating maildiracl.html config.status: executing depfiles commands CONFIG_FILES=maildiracl.1 CONFIG_HEADERS= /bin/sh ./config.status config.status: creating maildiracl.1 config.status: executing depfiles commands make install-am make[2]: Entering directory `/usr/local/src/maildrop-2.0.3/maildir' Compiling autoresponse.c Compiling maildiraclt.c Compiling maildircache.c Compiling maildircreate.c Compiling maildirfilename.c Compiling maildirgetnew.c Compiling maildirfilter.c Compiling maildirfilter2.c Compiling maildirflags.c Compiling maildirmkdir.c Compiling maildirgetquota.c Compiling maildirinfo.c Compiling maildirkeywords.c Compiling maildirkeywords2.c Compiling maildirkeywords3.c source='maildirkeywords4.cpp' object='maildirkeywords4.lo' libtool=yes \ DEPDIR=.deps depmode=none /bin/sh ./../depcomp \ /bin/sh ./libtool --tag=CXX --quiet --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I. -c -o maildirkeywords4.lo maildirkeywords4.cpp libtool: ignoring unknown tag CXX Compiling maildirlist.c Compiling maildirlock.c Compiling maildirmake2.c Compiling maildirnewshared.c Compiling maildirnewshared2.c Compiling maildiropen.c Compiling maildirparsequota.c Compiling maildirpath.c Compiling maildirpurgetmp.c Compiling maildirrename.c Compiling maildirsearch.c source='maildirsearchC.cpp' object='maildirsearchC.lo' libtool=yes \ DEPDIR=.deps depmode=none /bin/sh ./../depcomp \ /bin/sh ./libtool --tag=CXX --quiet --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I. -c -o maildirsearchC.lo maildirsearchC.cpp libtool: ignoring unknown tag CXX maildirsearch.h:97: error: using-declaration for non-member at class scope maildirsearch.h:97: error: expected ';' before '<' token make[2]: *** [maildirsearchC.lo] Error 1 make[2]: Leaving directory `/usr/local/src/maildrop-2.0.3/maildir' make[1]: *** [install] Error 2 make[1]: Leaving directory `/usr/local/src/maildrop-2.0.3/maildir' make: *** [install-recursive] Error 1 Any more bright ideas? I know you said to use the yum installer to do it all, but I have no idea how to do that without an RPM package, and I have no idea how to make the RPM (assuming that is what I would need to do). It feels like I am almost there, but just not quite.....
You're apparently missing the header files, which are in a development package, or maybe libtool is missing. I'm no RedHat user (anymore), so dunno. Maybe using yum to find 'libtool' and install that also?
Well, to round off this thread, I did manage to get all the way through. On an FC5 box, you need to first run: Code: yum install gcc-c++.i386 libtool.i386 libieee1284-devel.i386 libtool-ltdl-devel.i386 libedit-devel.i386 For the gurus out there, I will be honest and say I am not sure which of the libtool packages above fixed my earlier problems, I just know that one of them did! HOWEVER - I still couldnt actually get the system working. Please, oh Please could someone please do up a set of instructions for FC5 to match the original mail setup? btw - thanks martinfst for your help.