LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   sendmail-q (https://www.linuxquestions.org/questions/slackware-14/sendmail-q-534648/)

Nikosis 03-05-2007 12:48 AM

sendmail-q
 
Hi

I do have some sort of a problem when i build config.cf
1)
sh Build config.cf
Quote:

/usr/bin/m4: config.cf: No such file or directory
***ERROR: No System type defined (use OSTYPE macro)
2)after that i have config.cf.cf file

I'm just curious what is wrong, is it something with my config or with this command.

Thx

gilead 03-05-2007 02:31 AM

What document are you using for your instructions? The INSTALL file that comes with the sendmail sources gives the command sh Build sendmail.cf. This command needs to be run from the cf/cf directory in the sendmail sources once you've created/customised your sendmail.mc file.

Nikosis 03-05-2007 04:32 AM

/usr/share/sendmail/cf/cf/sendmail-slackware.mc - thats the file with some sort of instruction on the top of that file, probably wasn't updated.

But I just found out that m4 is preferred option, isn't ?

thx.

simcox1 03-05-2007 05:37 AM

The instructions at the top of that file are wrong.

They state:

cp sendmail-slackware.mc /usr/share/sendmail/cf/config.mc
cd /usr/share/sendmail/cf
sh Build config.cf

However, the Build script is in /usr/share/sendmail/cf/cf/. So you need to copy the slackware.mc there, and then run 'sh Build config.cf'.

Nikosis 03-05-2007 06:02 AM

Hi
Quote:

However, the Build script is in /usr/share/sendmail/cf/cf/. So you need to copy the slackware.mc there, and then run 'sh Build config.cf'.
That's exactly what I did, and where I had this error
Quote:

/usr/bin/m4: config.cf: No such file or directory
***ERROR: No System type defined (use OSTYPE macro)
I didn't have a chance to try sh build sendmail.cf, I'm gonna try right now, but I don't think it matters at all, config or sendmail
same thing
Quote:

/usr/bin/m4: config.cf: No such file or directory
***ERROR: No System type defined (use OSTYPE macro)
So, what is wrong with this?
Thx

ps. what did you mean by copy the "slackware.mc", because sendmail-slackware.mc is already there.

Nikosis 03-05-2007 07:05 AM

It was so simple, The file name has to be *.mc not *.cf.
So, sh Build *.mc is the right command.

simcox1 03-05-2007 07:09 AM

Yes. That's the other thing that's wrong with the instructions. I forgot about that.


All times are GMT -5. The time now is 03:33 PM.