LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-09-2020, 11:15 PM   #1
lucmove
Senior Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian
Posts: 1,432

Rep: Reputation: 110Reputation: 110
Installing qmail with the Debian package


The one big problem with qmail is the humongous mess it is. There are god knows how many versions out there, each with its own set of instructions and most of them are very old.

I am trying to install and run the default package in Debian 9. It has installed the following packages:

daemontools fastforward procmail qmail-run qmail-uids-gids runit ucspi-tcp

Now, it's not running. Maybe the bigger problem is that supervise isn't running either. All the instructions I have collected (including a VERY old installation script I made myself in 2004) include a ridiculousy long list of post-installation command lines, which I will never understand why they were not automated/included in the default installation in the first place. I will never understand why qmail has always had to be such an Ikea/Revell kit rather than a finished product.

Now, all the instructions I have often refer to /var/qmail/control/ which doesn't exist in the Debian package installation. And I don't know what else is different about it. I don't know which of all those endless post-installation command lines still have to be run or not, and if they will require any changes. Is that documented somewhere? The official Debian documentation clearly assumes you know qmail inside out and thus is not clear on many steps of the ordeal. Any guidance I can get here will be very appreciated.

TIA

Last edited by lucmove; 12-09-2020 at 11:17 PM.
 
Old 12-10-2020, 07:40 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi lucmove,

I would suggest to start reading the qmail documentation here.

Regards
 
Old 12-10-2020, 09:50 AM   #3
lucmove
Senior Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian
Posts: 1,432

Original Poster
Rep: Reputation: 110Reputation: 110
Quote:
Originally Posted by bathory View Post
Hi lucmove,

I would suggest to start reading the qmail documentation here.

Regards
I am VERY familiar with that. I have read that half a dozen times over the course of many years. But the Debian package is different than that. Every "distro" of qmail is a little different from that. There are pitfalls all over the place.
 
Old 12-10-2020, 10:32 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
Originally Posted by lucmove View Post
I am VERY familiar with that. I have read that half a dozen times over the course of many years. But the Debian package is different than that. Every "distro" of qmail is a little different from that. There are pitfalls all over the place.
I think that apart installation, the qmail configuration is quite the same, i.e. you need to fill /var/qmail/control with the various needed config files (see this)
 
1 members found this post helpful.
Old 12-10-2020, 12:15 PM   #5
lucmove
Senior Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian
Posts: 1,432

Original Poster
Rep: Reputation: 110Reputation: 110
Quote:
Originally Posted by bathory View Post
I think that apart installation, the qmail configuration is quite the same, i.e. you need to fill /var/qmail/control with the various needed config files (see this)
I am already familiar with that page too. I've had a copy in my HD for two weeks.

Thank you for telling me to google it. I don't know what I would do without your help.
 
Old 12-10-2020, 01:38 PM   #6
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
This is my go-to for qmail installation.
Read it all, probably several times. Nearly everything one needs to know and do is there.

This is the author's site, for when one needs to go to the "source"

HTH

Edit: If you have a specific question about something qmail, please ask it. We'd be happy to help.
You are getting the responses you are because you haven't posted a specific question. We can't provide much help for "Now, it's not running. Maybe the bigger problem is that supervise isn't running either"

I, for one, am not interested in debugging the debian qmail "package" -- Read and understand what J.M. Simpson and D.J. Bernstein have written if you're going to use qmail.

Last edited by scasey; 12-10-2020 at 01:52 PM.
 
Old 12-10-2020, 07:15 PM   #7
lucmove
Senior Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian
Posts: 1,432

Original Poster
Rep: Reputation: 110Reputation: 110
Quote:
Originally Posted by scasey View Post
This is my go-to for qmail installation.
Read it all, probably several times. Nearly everything one needs to know and do is there.

This is the author's site, for when one needs to go to the "source"

HTH

Edit: If you have a specific question about something qmail, please ask it. We'd be happy to help.
You are getting the responses you are because you haven't posted a specific question. We can't provide much help for "Now, it's not running. Maybe the bigger problem is that supervise isn't running either"

I, for one, am not interested in debugging the debian qmail "package" -- Read and understand what J.M. Simpson and D.J. Bernstein have written if you're going to use qmail.
What is different/specific about the Debian package and what post-installation command lines have to be run or not in its specific case is a pretty specific question... to anyone who wants to help rather than discredit the original poster (me) because yo-we-enforce-standards-around-here-mate. If you are "not interested" than it is my opinion that you should just very simply not participate in the thread. That's what I do about more than 99% of the threads that get posted in the "Zero Reply" section (rather because I unable to answer than not interested in helping but whatever), and I can assure you it's not a painful effort. It is quite the opposite. Puffing one's chest then judging and sternly lecturing people has absolutely become the most popular sport of all time, easily surpassing soccer, cricket, maybe even sex, but I get no value from that sport so I kindly ask that you go practice it with someone else. What you're doing to me is not consensual.
 
Old 12-11-2020, 03:08 AM   #8
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
Quote:
Originally Posted by lucmove View Post
What is different/specific about the Debian package and what post-installation command lines have to be run or not in its specific case is a pretty specific question...
Point taken.
The answer can be found by comparing what the Debian package does with what DJB documented.
 
Old 12-11-2020, 04:02 AM   #9
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,876

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
Have you looked in /usr/share/doc/qmail/ ?
 
Old 12-12-2020, 09:53 PM   #10
lucmove
Senior Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian
Posts: 1,432

Original Poster
Rep: Reputation: 110Reputation: 110
I have solved my problems this way:

Following advice on this page, I ran these commands:

Code:
#> ln -s /var/lib/qmail /var/qmail
#> ln -s /etc/service /service
#> ln -sf /etc/qmail/tcp.smtp /etc/
#> ln -sf /etc/qmail/tcp.smtp.cdb /etc/
I'm not sure that was necessary, but I did it.

Then I managed to start supervise from /etc/rc.local:

Code:
#!/bin/sh -e
svscanboot &
exit 0
Then supervise ran, but with these errors:

Code:
#> ps -ef | grep supervise
root       689   661  0 02:01 ?        00:00:00 readproctitle service errors: ...supervise: fatal: unable to acquire qmail-verify/supervise/lock: file does not exist supervise: fatal: unable to acquire log/supervise/lock: file does not exist supervise: fatal: unable to acquire log/supervise/lock: file does not exist supervise: fatal: unable to acquire log/supervise/lock: file does not exist supervise: fatal: unable to acquire qmail-smtpd/supervise/lock: file does not exist
After some investigation, I fixed it with this command:

Code:
#> mkdir -p /var/lib/supervise/qmail-send
Now qmail runs fine and delivers mail.

Maybe the last line and the rc.local trigger was all that was missing. Who knows? It's solved.
 
  


Reply

Tags
debian, qmail



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
[SOLVED] No package 'x11' found No package 'xext' found No package 'xdamage' found No package 'xfixes' found No package 'x11-xcb' found Jigsaw Linux From Scratch 14 02-23-2021 08:35 PM
qmail /service/qmail-send: unable to open supervise mangueJOE Linux - Networking 20 04-19-2016 11:27 PM
qmail +qmail-qfilter + qmail-scanner-queue+qmail-user-masq.pl problem countcobolt Linux - Networking 0 07-08-2004 11:29 AM
How do I install qmail-queue patch post install of qmail? cmisip Linux - Software 0 04-28-2003 11:10 PM
qmail help: where is the run script for qmail-smtpd? IceNineJon Linux - Software 2 12-03-2002 07:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:43 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