
2nd January 2007, 18:43
|
|
Junior Member
|
|
Join Date: Jan 2007
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Virtual Users And Domains With Postfix, Courier And MySQL User Spam Config
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.
Last edited by acoghlan; 2nd January 2007 at 19:04.
|

3rd January 2007, 18:05
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,594 Times in 2,445 Posts
|
|
|

3rd January 2007, 18:43
|
|
Junior Member
|
|
Join Date: Jan 2007
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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?
|

4th January 2007, 15:49
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,594 Times in 2,445 Posts
|
|
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 packagename
).
|

9th January 2007, 23:13
|
|
Junior Member
|
|
Join Date: Jan 2007
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Ahh - apologies - i am a bit of a newbie. Got it now.
|

11th January 2007, 15:43
|
|
Junior Member
|
|
Join Date: Jan 2007
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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?
Last edited by acoghlan; 11th January 2007 at 15:49.
|

11th January 2007, 16:03
|
|
Senior Member
|
|
Join Date: Dec 2006
Location: Hilversum, The Netherlands
Posts: 880
Thanks: 1
Thanked 16 Times in 15 Posts
|
|
You have not installed your C++ compiler (for some reason known to the developers renamed to g++) yet.
Try and next use the install option of yum. You may need more packages along the way.
|

11th January 2007, 18:14
|
|
Junior Member
|
|
Join Date: Jan 2007
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Quote:
|
Originally Posted by martinfst
You have not installed your C++ compiler (for some reason known to the developers renamed to g++) yet.
|
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.....
|

11th January 2007, 19:34
|
|
Senior Member
|
|
Join Date: Dec 2006
Location: Hilversum, The Netherlands
Posts: 880
Thanks: 1
Thanked 16 Times in 15 Posts
|
|
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?
|

11th January 2007, 23:20
|
|
Junior Member
|
|
Join Date: Jan 2007
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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.
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 16:14.
|
|
Recent comments
16 hours 22 min ago
16 hours 27 min ago
21 hours 25 min ago
1 day 4 hours ago
1 day 4 hours ago
1 day 6 hours ago
1 day 10 hours ago
1 day 17 hours ago
1 day 20 hours ago
1 day 22 hours ago