[SOLVED] Minor Bugfix for Current: Error output in maillog
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
This does not appear to be an issue with stock installs of 14.2 Stable, only Current.
Postfix 2.10.0 changed /var/spool/postfix/public/pickup from a fifo to a socket to avoid needless disk spinups when the mail system is idle. Here on -current I see the appropriate socket when postfix is started:
Code:
# ls -l /var/spool/postfix/public/pickup
srw-rw-rw- 1 postfix postfix 0 Feb 8 13:44 /var/spool/postfix/public/pickup=
Of course, you can still continue to use a fifo if you wish, but that's considered obsolete. You might want to take a look at your master.cf if you've made any changes to it or got it from someplace else. The pickup line ships containing "unix" which causes postfix to create the socket, but if it says "fifo" instead it might cause the behavior reported here.
My /etc/postfix/master.cf is "stock". I pulled a current ISO on alienbob's site in late January and did a fresh install, so I'm starting with postfix-3.4.8 and retaining none of my postfix config from previous installs. Also, the relevant line in /etc/postfix/master.cf is there:
Code:
pickup unix n - n 60 1 pickup
and yet the socket file is not created (and hence the error message).
Now I'm unsure what's going on ...
Last edited by kestralis; 02-09-2020 at 08:00 PM.
Reason: typos.
I had exact same problem till I made /etc/rc.d/rc.postfix executable and then started it. Now I have same as Pat.
So I needed only to start postfix one time to populate the folder with the needed sockets. Thanks for this.
I wonder if this step could be added to the installation or first-boot related scripts so no one else runs into this issue again? I'm sure we're not the only ones who don't set postfix to start at boot when doing a clean install.
So I needed only to start postfix one time to populate the folder with the needed sockets. Thanks for this.
I wonder if this step could be added to the installation or first-boot related scripts so no one else runs into this issue again? I'm sure we're not the only ones who don't set postfix to start at boot when doing a clean install.
I don't think the sockets are of any use if postfix isn't running.
Sorry to necropost this but just found this on my lap that is an ancient but fresh install of 15.0
Got 5 maillog files fulled with
Code:
Nov 1 22:21:01 Name postfix/postdrop[XXXXX]: warning: unable to look up public/pickup: No such file or directory
Nov 1 22:22:02 Name postfix/postdrop[XXXXX]: warning: unable to look up public/pickup: No such file or directory
Nov 1 22:23:02 Name postfix/postdrop[XXXXX]: warning: unable to look up public/pickup: No such file or directory
This occurs 3 times every 20 minutes, 9 lines per hour.
Just created the fifo before I found this thread.
I bet that could get some more attention...
Edit :
Now I checked on a fresh VM the maillog file... empty. Will try to set a cronjob an see if I can reproduce the error.
Perhaps could try this
Code:
for i in {cleanup,flush,pickup,postlog,qmgr,showq}; do mkdir -p /var/spool/postfix/public/ && python -c "import socket as s; sock = s.socket(s.AF_UNIX); sock.bind('/var/spool/postfix/public/$i')"; done
I bethat could get some more attention...
Last edited by Tonus; 11-04-2023 at 08:11 PM.
Reason: Try to reproduce the error
So I needed only to start postfix one time to populate the folder with the needed sockets. Thanks for this.
I wonder if this step could be added to the installation or first-boot related scripts so no one else runs into this issue again? I'm sure we're not the only ones who don't set postfix to start at boot when doing a clean install.
Quote:
Originally Posted by volkerdi
I don't think the sockets are of any use if postfix isn't running.
Unix systems are supposed to have a mail server. During many years, the mail server of choice was sendmail, nowadays postfix is the default mail server in Slackware.
The cron unix feature sends output from cron jobs by mail to the owner of the cron job. If you don't want such mails, you should make sure that all your cron jobs redirect their output (stdout and stderr) to /dev/null. If you want those mails, you will of course need a mail server running on the local machine. With no mail server running and cron jobs trying to send error messages or other output by mail you should instead expect to find error messages about lost mails in your log files.
If you really do not want any output from your cron jobs and no logs about failures to send such output you could make sure that crond is started with "-M /bin/true" which will simply use /bin/true to send mails and /bin/true allways reports success.
Remaining drawback : the message is not informative (file do not exist instead of no mail server) and messages are lost if I redirect to /dev/null whereas I got them when I start postfix if not.
I understand I was misusing cron but still think this could be fixed.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.