Unix & Linux Stack Exchange
Q&A for users of Linux, FreeBSD and other Unix-like operating systems
Latest Questions
1
votes
1
answers
984
views
How can I manage services running in a FreeBSD jail?
I’ve inherited some systems that runs on the FreeBSD operating system and inside jails. Basically the services running are old versions of `qmail`, `spamd`, Dovecot, etc. None of the versions are up to date or even maintainable any more. At present we can’t move from these systems but I would at lea...
I’ve inherited some systems that runs on the FreeBSD operating system and inside jails. Basically the services running are old versions of
qmail
, spamd
, Dovecot, etc. None of the versions are up to date or even maintainable any more.
At present we can’t move from these systems but I would at least like to be able to troubleshoot them.
My question:
Normally I would be able to run for example service qmail status
and get some info about the top level process. How do I do this inside a jail? In the case of the qmail
process I can use qmailctl
but what would be the equivalent for spamd
or Dovecot?
Also how do you go about troubleshooting these types of services? The logs don’t really give a very good steer on what could be going wrong.
MB.
(145 rep)
Jan 7, 2020, 05:53 PM
• Last activity: Jan 16, 2025, 01:13 PM
2
votes
1
answers
243
views
Can Postfix handle multiple address extensions like Qmail does (user-ext1-ext2@example.com)?
Qmail and Postfix support address extensions like `username-ext1@example.com` where emails will be delivered to `username`, if the delimiter is configured to `-`. Users can handle mails with `.forward` files in their home directory by default. (Or `.qmail` for Qmail.) Emails to `username-ext1@exampl...
Qmail and Postfix support address extensions like
username-ext1@example.com
where emails will be delivered to username
, if the delimiter is configured to -
.
Users can handle mails with .forward
files in their home directory by default. (Or .qmail
for Qmail.)
Emails to username-ext1@example.com
are handled by the .forward-ext1
file if it exists, otherwise .forward
is used as fallback.
For username-ext1-ext2@example.com
Qmail tries .qmail-ext1-ext2
, then .qmail-ext1
and finally .qmail
.
Postfix tries .forward-ext1-ext2
and then directly .forward
without caring about .forward-ext1
.
**How can I get Postfix to handle multiple address extensions?** I want to catch all mails to username-ext1-*@example.com
without parsing headers myself in .forward
. – Did I miss something?
(This would also be useful for users who want to have multiple VERP-style mailing lists with simple separate configurations.)
Robert Siemer
(2445 rep)
Feb 5, 2018, 09:41 AM
• Last activity: Mar 15, 2023, 08:56 AM
1
votes
1
answers
737
views
Your system needs to have a fully qualified domain name (fqdn)
I am trying to install some Qt libraries like this: ``` sudo apt-get install libqt5webengine5 libqt5webenginewidgets5 ``` But I keep getting such errors: ``` The hostname -f command returned: $1 Your system needs to have a fully qualified domain name (fqdn) in order to install the var-qmail packages...
I am trying to install some Qt libraries like this:
sudo apt-get install libqt5webengine5 libqt5webenginewidgets5
But I keep getting such errors:
The hostname -f command returned: $1
Your system needs to have a fully qualified domain name (fqdn) in
order to install the var-qmail packages.
Installation aborted.
dpkg: error processing package qmail (--configure):
installed qmail package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of qmail-run:
qmail-run depends on qmail (>= 1.06-2.1); however:
Package qmail is not configured yet.
No apport report written because the error message indicates its a followup error from a previous failure.
dpkg: error processing package qmail-run (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
qmail
qmail-run
E: Sub-process /usr/bin/dpkg returned an error code (1)
How can I install these libraries?
Edit:
ls: cannot access '–l': No such file or directory
qmail.list
qmail.md5sums
qmail.postinst
qmail.postrm
qmail.preinst
qmail-run.conffiles
qmail-run.list
qmail-run.md5sums
qmail-run.postinst
qmail-run.postrm
qmail-run.preinst
qmail-uids-gids.list
qmail-uids-gids.md5sums
qmail-uids-gids.postinst
qmail-uids-gids.postrm
qmail-uids-gids.preinst
The hostname -f command returned: Lenovo-V330-15IKB
You must have a fully qualified domain name (fqdn) for your system
to install the qmail and qmail-run packages.
Installation aborted.
dpkg: error processing package qmail-run (--configure):
installed qmail-run package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
qmail-run
E: Sub-process /usr/bin/dpkg returned an error code (1)
Error on sudo dpkg --configure -a
Setting up qmail-run (2.0.2+nmu1) ...
The hostname -f command returned: hammad-Lenovo-V330-15IKB
You must have a fully qualified domain name (fqdn) for your system
to install the qmail and qmail-run packages.
Installation aborted.
dpkg: error processing package qmail-run (--configure):
installed qmail-run package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
qmail-run
x89
(111 rep)
Apr 25, 2020, 01:18 PM
• Last activity: Jun 2, 2021, 05:28 AM
2
votes
2
answers
122
views
Drudging through email logs
I am in charge of maintaining a linux e-mail server running `qmail` on Red Hat Linux. Fairly often, I have to trace the path of some email through syslog and to be frank, this is rather tedious. Are there any desktop apps (or even command tools) that inspect the incoming and outgoing mail logs with...
I am in charge of maintaining a linux e-mail server running
qmail
on Red Hat Linux.
Fairly often, I have to trace the path of some email through syslog and to be frank, this is rather tedious.
Are there any desktop apps (or even command tools) that inspect the incoming and outgoing mail logs with better usability instead of clobbering bash commands together?
What I have in mind is some tool that I could import a log file and it would organize all the information for me, so that I could perform some searches on it, or view the path of email messages in and out of my system.
Perhaps this is lofty wishes at the moment, but I'm trying to see what my options are.
Marlon
(123 rep)
Jun 30, 2011, 09:11 PM
• Last activity: Aug 21, 2018, 01:30 AM
1
votes
1
answers
56
views
Make qmail dequeue only during certain time period per day
I am using qmail to send a large number of emails on behalf of many people. It varies between 400k and 600k emails per job. A `php` script queues up all of the messages, which takes a few hours. The messages then take about 24-48 hours to dequeue and get sent. The length of time is not a problem, bu...
I am using qmail to send a large number of emails on behalf of many people. It varies between 400k and 600k emails per job.
A
php
script queues up all of the messages, which takes a few hours. The messages then take about 24-48 hours to dequeue and get sent.
The length of time is not a problem, but I do not like that emails are sent at odd times (like in the middle of the night, or at sunrise).
**Is there a way I can tell qmail to only dequeue messages only during a certain time range?**
For example, tell it to only empty the queue between 6AM and 8PM, then just let it "sleep" after 8PM until 6AM the next day to finish the queue.
*Using CentOS 6.6 Final*
chiliNUT
(1809 rep)
Mar 11, 2015, 06:14 PM
• Last activity: Mar 11, 2015, 06:21 PM
0
votes
0
answers
209
views
sslserver using 100% cpu
I've a qmail setup with sslserver being used to secure the pop connections. Normally it runs very well, however some instances of sslserver start taking 100% cpu and its child process qmail-pop3d process is seen as zombie. The process has to be killed to solve the prb. The sslserver version is 0.70....
I've a qmail setup with sslserver being used to secure the pop connections. Normally it runs very well, however some instances of sslserver start taking 100% cpu and its child process qmail-pop3d process is seen as zombie. The process has to be killed to solve the prb. The sslserver version is 0.70. OS is CentOs 6.0 64 bit with 2.6.32-220 kernel. Any clues how I can debug this ?
amolkul
(33 rep)
Jul 21, 2014, 12:53 PM
3
votes
2
answers
6612
views
Remove messages from qmail queue without stopping qmail
I have 500k spam messages in my outgoing queue. From experience, I know this will take a long time to remove. All the tools I know of require stopping qmail to remove messages. Does anyone one know of a tool which will let me selectively delete messages from the queue without stopping mail services?
I have 500k spam messages in my outgoing queue.
From experience, I know this will take a long time to remove.
All the tools I know of require stopping qmail to remove messages.
Does anyone one know of a tool which will let me selectively delete messages from the queue without stopping mail services?
ollybee
(301 rep)
Nov 16, 2011, 09:38 AM
• Last activity: Jan 17, 2012, 05:13 PM
Showing page 1 of 7 total questions