WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Postfix - Compiling/Building from scratch  (Read 7762 times)

Offline ChochkoBG

  • Newbie
  • *
  • Posts: 7
Postfix - Compiling/Building from scratch
« on: March 12, 2015, 07:54:54 AM »
Hello TC users,

At this momment I'm using the latest version of TC (Tiny Core Linux - Core Plus version 6.x).

I want to install Postfix and configure it. I used to read a lot of tuttorials in Google and in this Forum, but I still meet problems with Compiling (using the command "make").

Can somebody give me a exact link with the postfix source code (stable and working with TC 6.x) and a some little tuttorial how to compile/build it and tuttorial how to use "make" command in the Terminal to make and configure it ?

Thanks !!!

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Postfix - Compiling/Building from scratch
« Reply #1 on: March 12, 2015, 08:11:09 AM »
Core is a toolkit, not a ready to run distribution.
Core has a repository of precompiled application that you can install using the Apps tool.
It does not supply source code for other applications. 
If you do not know how to find source code and compile extensions, you can ask in the extension request thread for someone to build it for you

Inexperienced Linux users should not be running email servers.  Securing one is not trivial, any you may end up running an open relay.

Offline ChochkoBG

  • Newbie
  • *
  • Posts: 7
Re: Postfix - Compiling/Building from scratch
« Reply #2 on: March 12, 2015, 08:15:28 AM »
Anyway your answer didn't helped me. I need to install postfix, no matter how - ready from App Browser (do not exist in the repo) or manual build making.

Your answer is fully out of topic, Unexperienced Moderator, so please try to help me not to send me away.

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11213
Re: Postfix - Compiling/Building from scratch
« Reply #3 on: March 12, 2015, 08:18:56 AM »
Hi ChochkoBG
Information on building extensions can be found here:
http://wiki.tinycorelinux.net/wiki:creating_extensions

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Postfix - Compiling/Building from scratch
« Reply #4 on: March 12, 2015, 08:21:48 AM »
You don't seem to want to use the channels available to you, and your attitude toward people trying to help you is not appropriate.
If you can't compile postfix, I think you would be happier with a ready to run distribution that includes postfix.

Offline ChochkoBG

  • Newbie
  • *
  • Posts: 7
Re: Postfix - Compiling/Building from scratch
« Reply #5 on: March 12, 2015, 08:23:56 AM »
Thank, this is the correct reply.

Now i will read and i will try to build my extention.

Thank you for the answer i will write my result and if i have quetions i will ask you for help again.

Thanks!

Quote for gerald_clark:

I'm not toward peoples, even versus the Moderator. About your Off topic opinion - NO, I WANT TO USE TINY LINUX AS EMAIL SERVER.

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Postfix - Compiling/Building from scratch
« Reply #6 on: March 12, 2015, 08:30:54 AM »
I recommend you use gmail.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Postfix - Compiling/Building from scratch
« Reply #7 on: March 12, 2015, 08:41:50 AM »
Configuring and compiling postfix is more complex than just using make command. There are many options regarding databases, authentication as well as linux install locations, user and groups. It is challenging for an experienced person to install postfix from source and usually fails few times in the beginning.

Proper configuration also requires knowledge of Linux system, networking, security, etc. Not for beginners. The good point is that there are plenty of docs available how to do that.

Good luck.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline ChochkoBG

  • Newbie
  • *
  • Posts: 7
Re: Postfix - Compiling/Building from scratch
« Reply #8 on: March 12, 2015, 09:23:59 AM »
Yes, this is the point.

I think Postfix is one of the best Unix* SMTP Email Protocols.

From my eyes i see TC + Postfix + MySQL (or any DB) + Dovecot + Apache = The best Unix* Platform for Web Development even more.

Now I'm using the CorePlus, cause there is a XVesa and not only Console.
After compiling all of the modules that i need i will transfer it to the TC from 9 MB.

This is the Smallest compiled core, which is fully working.

So basically if it's possible to make at the beggining postfix to work will be great.

Thanks!

Offline ChochkoBG

  • Newbie
  • *
  • Posts: 7
Re: Postfix - Compiling/Building from scratch
« Reply #9 on: March 12, 2015, 09:32:28 AM »
After download the latest Postfix source version from the Official web-page and typing the "make" command after extracting the postfix files i receive the following error:

Code: [Select]
/home/tc/postfix-3.0.0# make
make -f Makefile.in MAKELEVEL= Makefiles
(echo "# Do not edit -- this file documents how Postfix was built for your machine."; /bin/sh makedefs) >makedefs.tmp
No <db.h> include file found.
Install the appropriate db*-devel package first.
Makefile.in:31: recipe for target 'Makefiles' failed
make: *** [Makefiles] Error 1
Makefile:21: recipe for target 'Makefiles' failed
make: *** [Makefiles] Error 2

Any solutions ?

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Postfix - Compiling/Building from scratch
« Reply #10 on: March 12, 2015, 09:32:38 AM »

I think Postfix is one of the best Unix* SMTP Email Protocols.


Postfix is not a protocol. It is an SMTP server, more precisely an MTA agent.
« Last Edit: March 12, 2015, 09:35:22 AM by bmarkus »
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Postfix - Compiling/Building from scratch
« Reply #11 on: March 12, 2015, 09:34:31 AM »
Any solutions ?

Yes. Read docs in the source. For example INSTALL before installing.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline ChochkoBG

  • Newbie
  • *
  • Posts: 7
Re: Postfix - Compiling/Building from scratch
« Reply #12 on: March 12, 2015, 09:48:05 AM »
I read this and the rest of the Manual document a few times.

The error is this here.

I think you mean:

Code: [Select]
"No <db.h> include file found.
Install the appropriate db*-devel package first."

So can you tell me is there any in TC repo and if there are, what is the name of this .tcz to install them and to continue the process ?

Thanks!!!

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11213
Re: Postfix - Compiling/Building from scratch
« Reply #13 on: March 12, 2015, 09:48:58 AM »
Hi ChochkoBG
Yes, and read the error messages:
Code: [Select]
Install the appropriate db*-devel package first.You could try installing  mariadb-dev.tcz  from the repository. Probably also  mariadb.tcz

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Postfix - Compiling/Building from scratch
« Reply #14 on: March 12, 2015, 09:54:25 AM »
I read this and the rest of the Manual document a few times.

Do it again. It is written to start with

Code: [Select]
make makefiles
before make.

It would be really better to spend some time reading docs, using Google how to install Postfix instead of using resources of 3-4 people to do it instead of you wasting their time to help in generic Postfix issues not related to TC.

Or if reading and understanding what you are reading is a problem, please, use Postfix community support. This place is not a Postfix support forum.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."