Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 2nd January 2007, 18:43
acoghlan acoghlan is offline
Junior Member
 
Join Date: Jan 2007
Posts: 12
Thanks: 0
Thanked 1 Time in 1 Post
Default 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.
Reply With Quote
Sponsored Links
  #2  
Old 3rd January 2007, 18:05
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

Take a look here: http://www.howtoforge.com/postfix_mailfilter
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 3rd January 2007, 18:43
acoghlan acoghlan is offline
Junior Member
 
Join Date: Jan 2007
Posts: 12
Thanks: 0
Thanked 1 Time in 1 Post
Default

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?
Reply With Quote
  #4  
Old 4th January 2007, 15:49
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

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
).
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 9th January 2007, 23:13
acoghlan acoghlan is offline
Junior Member
 
Join Date: Jan 2007
Posts: 12
Thanks: 0
Thanked 1 Time in 1 Post
Default

Ahh - apologies - i am a bit of a newbie. Got it now.
Reply With Quote
  #6  
Old 11th January 2007, 15:43
acoghlan acoghlan is offline
Junior Member
 
Join Date: Jan 2007
Posts: 12
Thanks: 0
Thanked 1 Time in 1 Post
Default

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.
Reply With Quote
The Following User Says Thank You to acoghlan For This Useful Post:
AbannyvabVask (27th November 2013)
  #7  
Old 11th January 2007, 16:03
martinfst martinfst is offline
Senior Member
 
Join Date: Dec 2006
Location: Hilversum, The Netherlands
Posts: 880
Thanks: 1
Thanked 18 Times in 17 Posts
Send a message via MSN to martinfst Send a message via Skype™ to martinfst
Default

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.
Reply With Quote
The Following User Says Thank You to martinfst For This Useful Post:
AbannyvabVask (27th November 2013)
  #8  
Old 11th January 2007, 18:14
acoghlan acoghlan is offline
Junior Member
 
Join Date: Jan 2007
Posts: 12
Thanks: 0
Thanked 1 Time in 1 Post
Default

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.....
Reply With Quote
  #9  
Old 11th January 2007, 19:34
martinfst martinfst is offline
Senior Member
 
Join Date: Dec 2006
Location: Hilversum, The Netherlands
Posts: 880
Thanks: 1
Thanked 18 Times in 17 Posts
Send a message via MSN to martinfst Send a message via Skype™ to martinfst
Default

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?
Reply With Quote
  #10  
Old 11th January 2007, 23:20
acoghlan acoghlan is offline
Junior Member
 
Join Date: Jan 2007
Posts: 12
Thanks: 0
Thanked 1 Time in 1 Post
 
Default

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.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Virtual Users And Domains With Postfix, Courier And MySQL [+ procmail ?] immobilia HOWTO-Related Questions 5 29th June 2006 23:20
Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP-AUTH, Quota, SpamAs mholownych HOWTO-Related Questions 10 29th May 2006 03:39
Virtual Users And Domains With Postfix, Courier And MySQL - "apt-get" and Courier burritonator HOWTO-Related Questions 3 15th March 2006 20:11
Problem with Virtual Users And Domains With Postfix, Courier And MySQL Howto fenix Server Operation 4 11th March 2006 02:53
Another Problem: Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP bluegrass Installation/Configuration 24 8th March 2006 01:41


All times are GMT +2. The time now is 11:40.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.