LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-11-2004, 06:38 PM   #1
bulzbb
Member
 
Registered: Feb 2004
Posts: 50

Rep: Reputation: 15
Question Slackware & postfix?


I've just installed slackware 9.1, and did not include sendmail in the installation (because I heard you need to get rid of sendmail if you want to install postfix).

So I downloaded postfix-2.0.18.tar.gz (about 1.4 Mb), and as normal user I typed:

$ tar -xvzf postfix-2.0.18.tar.gz
$ cd postfix-2.0.18

Once I'm in the directory, I type:

$ make

and the output is

make -f Makefile.in MAKELEVEL= Makefiles
set -e; for i in src/util src/global src/dns src/master src/postfix src/smtpstone src/sendmail src/error src/pickup src/cleanup src/smtpd src/local src/lmtp src/trivial-rewrite src/qmgr src/smtp src/bounce src/pipe src/showq src/postalias src/postcat src/postconf src/postdrop src/postkick src/postlock src/postlog src/postmap src/postqueue src/postsuper src/nqmgr src/qmqpd src/spawn src/flush src/virtual src/proxymap; do \
(set -e; echo "[$i]"; cd $i; rm -f Makefile; \
make -f Makefile.in Makefile MAKELEVEL=) || exit 1; \
done;
[src/util]
(set -e; echo "# DO NOT EDIT"; /bin/sh ../../makedefs && cat Makefile.in) >Makefile
No <db.h> include file found.
Install the appropriate db*-devel package first.
See the RELEASE_NOTES file for more information.
make: *** [Makefile] Error 1
make: *** [Makefiles] Error 1
make: *** [Makefiles] Error 2


Anyone have any idea what went wrong? Do I need to include sendmail package when installing Slackware?

Thanks.
 
Old 03-11-2004, 07:12 PM   #2
itsjustme
Senior Member
 
Registered: Mar 2003
Location: Earth
Distribution: Slackware, Ubuntu, Smoothwall
Posts: 1,571

Rep: Reputation: 47
Usually you run ./configure before make.

Maybe that's not the problem here. Could be though.
 
Old 03-11-2004, 07:24 PM   #3
hp_tux
Member
 
Registered: Mar 2004
Location: Germany
Distribution: Slackware 14
Posts: 87

Rep: Reputation: 15
Hello,

if you want things become a lot easier, you may take "postfix" for Slackware 9.1 from
http://www.linuxpackages.net!

cu

hp_tux
 
Old 03-11-2004, 10:06 PM   #4
bulzbb
Member
 
Registered: Feb 2004
Posts: 50

Original Poster
Rep: Reputation: 15
Hi,

Thanks for the site url. Another question is about pop3/smtp.

So I've been browing the internet about postfix, and I found that there is the need of having external program for pop3, is this correct? So far I only have MySQL installed.

And is that also apply to smtp? that there is need for extra software? If that is the case? what does postfix covers then?
 
Old 03-12-2004, 03:33 PM   #5
Rodrin
Member
 
Registered: May 2003
Location: Upstate NY, U.S.
Distribution: Slackware
Posts: 248

Rep: Reputation: 31
Postfix will accept mail to send via SMTP.

Just to clarify what a mail server is (Mail Transfer Agent, or MTA), it is a computer that sends and receives email over the Internet. You may be thinking, 'if it doesn't work with POP3 or IMAP or TLS, then how does it receive mail?' If you are at a Postfix server, you can read your email without any additional software. It was formerly commonplace for everyone with a mail account on a server to log directly into the server via telnet (or something else that gives you a remote session) and view their email that way, without using any of these protocols. These are client protocols for accessing mail remotely from a server.

It is also possible to run Postfix on each workstation as well as a central server and forward email from the server to the workstation. That way everyone could use email without ever using any of these protocols.

Last edited by Rodrin; 03-15-2004 at 09:08 AM.
 
Old 03-12-2004, 11:53 PM   #6
bulzbb
Member
 
Registered: Feb 2004
Posts: 50

Original Poster
Rep: Reputation: 15
Thanks for the clarification on MTA and pop3/imap. I've been browsing at www.postfix.org , and found that postfix can be utilised with MySQL, instead of Berkeley DB (And I dont think I have Berkeley DB installed. MySQL is installed and running).

So I downloaded Postfix 2.0.18, then I typed:

$ tar -xvzf postfix-2.0.18.tar.gz

Then I go to the directory of where the postfix untarred to and typed:

$ make -f Makefile.init makefiles \
'CCARGS=-DHAS_MYSQL -I/usr/include/mysql' \
'AUXLIBS=-L/usr/lib/mysql -lmysqlclient -lz -lm'

And get the following error message:

make -f Makefile.in MAKELEVEL= Makefiles
set -e; for i in src/util src/global src/dns src/master src/postfix src/smtpstone src/sendmail src/error src/pickup src/cleanup src/smtpd src/local src/lmtp src/trivial-rewrite src/qmgr src/smtp src/bounce src/pipe src/showq src/postalias src/postcat src/postconf src/postdrop src/postkick src/postlock src/postlog src/postmap src/postqueue src/postsuper src/nqmgr src/qmqpd src/spawn src/flush src/virtual src/proxymap; do \
(set -e; echo "[$i]"; cd $i; rm -f Makefile; \
make -f Makefile.in Makefile MAKELEVEL=) || exit 1; \
done;
[src/util]
(set -e; echo "# DO NOT EDIT"; /bin/sh ../../makedefs && cat Makefile.in) >Makefile
No <db.h> include file found.
Install the appropriate db*-devel package first.
See the RELEASE_NOTES file for more information.
make: *** [Makefile] Error 1
make: *** [Makefiles] Error 1
make: *** [makefiles] Error 2



Now, MySQL was installed out of the box (Together with Slackware 9.1 Installation). I believe the error is because of the lack of db.h file?

Is db.h related to Berkeley DB? Or if it's not, then do I need to do something when Installing MySQL? Or I misunderstood the error?

If it is related to Berkeley DB, does that mean I still need to install Berkeley DB, although I am going to use MySQL?

Thanks.
 
Old 11-18-2004, 06:01 PM   #7
hte
LQ Newbie
 
Registered: Apr 2004
Location: Denmark
Distribution: SuSE
Posts: 2

Rep: Reputation: 0
Lightbulb Compile postfix with berkeley-db

When compiling postfix on linux with berkeley-db and you get the: "No db.h found..." error, you can resolve it by:

Locating the "db.h" header file of berkeley-db (if you don't have it, then install berkeley-db development package containing header files, for your distro)
and then edit the "makedefs" file (located in the top-level dir where you untar'ed the postfix sourcecode):
Open "makedefs" in an editor and locate the "Linux.2*)" section of the file.
Fix all references to "db.h" so that they point to the correct location.

That should do it :-)
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
postfix & openLDAP paul_mat Linux - Networking 1 10-27-2005 11:33 AM
Fetchmail & postfix quadfour Linux - Software 1 10-14-2005 05:29 PM
(FreeBSD && Fedora Core 4 && Slackware 10.0) Filesystem Support taylor_venable *BSD 1 07-14-2005 02:24 PM
Fedora & Postfix & SpamAssassin bigdogg Linux - Software 20 09-16-2004 03:08 PM
Postfix & MySQL & POP3 on Redhat.. hct224 Linux - Newbie 0 05-20-2004 03:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration