LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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-16-2021, 11:47 AM   #1
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,593

Rep: Reputation: 180Reputation: 180
Sendmail not working right on Slackware current


I've recently upgraded to Slackware Current. I use sendmail, but things aren't working right with that on Current. For one thing, seems to be running postfix instead of sendmail. maillog has only "hostname postfix/" messages and not "hostname sm-mta" or "hostname sendmail" messages like sendmail puts out. postfix apparently does not use /etc/mail/aliases. And, in general, I want to use sendmail. I have milters and other customization for sendmail I've invested time in.

My sendmail.mc file on Current is identical to the 14.2 one. Likewise rc.sendmail is identical and set to executable. When I run rc.sendmail I get:
Code:
$ /etc/rc.d/rc.sendmail restart
sendmail: no process found
Starting sendmail MTA daemon:  /usr/sbin/sendmail -L sm-mta -bd -q25m
Starting sendmail MSP queue runner:  /usr/sbin/sendmail -L sm-msp-queue -Ac -q25m
1 12:31:41 root@quadmon:/usr/share/sendmail/cf/cf
# postfix/postfix-script: fatal: the Postfix mail system is already running
I see nowhere that postix is run from rc.sendmail. At system start rc.M has:
Code:
rc.M:# authentication services for sendmail/postfix:
rc.M:# Start the mail server. Try the rc.sendmail script first, then try rc.postfix.
rc.M:elif [ -x /etc/rc.d/rc.postfix -a -x usr/sbin/postdrop ]; then
rc.M:  /etc/rc.d/rc.postfix start
rc.postfix is NOT executable.

I don't get how this is working. Can someone enlighten me?
 
Old 03-16-2021, 12:35 PM   #2
ctrlaltca
Member
 
Registered: May 2019
Location: Italy
Distribution: Slackware
Posts: 335

Rep: Reputation: 390Reputation: 390Reputation: 390Reputation: 390
The postfix package includes its own /usr/sbin/sendmail binary.
You may want to uninstall the postfix package and reinstall the sendmail package from extra/.
 
Old 03-16-2021, 07:59 PM   #3
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,593

Original Poster
Rep: Reputation: 180Reputation: 180
Quote:
Originally Posted by ctrlaltca View Post
The postfix package includes its own /usr/sbin/sendmail binary.
You may want to uninstall the postfix package and reinstall the sendmail package from extra/.
I uninstalled postfix, downloaded sendmail-8.16.1-i586-3.txz from extra and installed it. Before doing that I checked what was installed and it said that package was already installed. Nevertheless I did an installpkg.

Now, when I run sendmail I get:
Code:
# /usr/sbin/sendmail -d0.1
-su: sendmail: No such file or directory
The executable is in /usr/sbin and appears executable:
Code:
# ls -l /usr/sbin/sendmail
-r-xr-sr-x 1 root smmsp 844032 2020-10-20 17:39 /usr/sbin/sendmail*

# file /usr/sbin/sendmail
/usr/sbin/sendmail: setgid ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, stripped
Any idea what's wrong?
 
Old 03-16-2021, 08:13 PM   #4
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,593

Original Poster
Rep: Reputation: 180Reputation: 180
More info ...

I just noticed that the 'file' listing on that showed 32-bit, not 64. I downloaded the wrong package. I uninstalled the sendmail-8.16.1-x86_64-3 package, yet that binary is still there! So, I reinstalled sendmail-8.16.1-x86_64-3. That appears to do it.

I guess all I needed to do was removepkg postfix and not do the download from extra. Test emails now work and work with /etc/mail/aliases.

I'll give this a couple of days before I call it solved.

I take it that postfix and not sendmail is the way of the future for Slackware? I assume postfix can do everything sendmail does (aliases, milters, ...) but "differently"?

Last edited by mfoley; 03-18-2021 at 12:44 PM.
 
  


Reply

Tags
postfix, sendmail, slackware -current



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
Network Manager not working in 14.2/current, Wicd works in 14.2 but not -current? linus72 Slackware 6 04-30-2019 03:04 AM
Sendmail not working quite right kerinism1 Linux - Server 3 09-04-2007 11:50 AM
Sendmail Sendmail Sendmail lmcilwain Fedora 0 02-14-2006 02:01 PM

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

All times are GMT -5. The time now is 10:03 AM.

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