LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 02-07-2020, 07:22 PM   #1
kestralis
LQ Newbie
 
Registered: Feb 2020
Distribution: Slackware
Posts: 19

Rep: Reputation: Disabled
Post Minor Bugfix for Current: Error output in maillog


In Slackware Current you might notice output in /var/log/maillog like this
Code:
postdrop: warning: unable to look up public/pickup: No such file or directory
following the execution of scheduled cron (dcron) tasks. Fortunately it's very easy to gratify postdrop. As root, just execute
Code:
# mkfifo /var/spool/postfix/public/pickup
# chown postfix:postdrop /var/spool/postfix/public/pickup
The error message goes away.

This does not appear to be an issue with stock installs of 14.2 Stable, only Current.
 
Old 02-08-2020, 01:50 PM   #2
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,508

Rep: Reputation: 8473Reputation: 8473Reputation: 8473Reputation: 8473Reputation: 8473Reputation: 8473Reputation: 8473Reputation: 8473Reputation: 8473Reputation: 8473Reputation: 8473
Quote:
Originally Posted by kestralis View Post
In Slackware Current you might notice output in /var/log/maillog like this
Code:
postdrop: warning: unable to look up public/pickup: No such file or directory
following the execution of scheduled cron (dcron) tasks. Fortunately it's very easy to gratify postdrop. As root, just execute
Code:
# mkfifo /var/spool/postfix/public/pickup
# chown postfix:postdrop /var/spool/postfix/public/pickup
The error message goes away.

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.
 
3 members found this post helpful.
Old 02-09-2020, 07:16 PM   #3
kestralis
LQ Newbie
 
Registered: Feb 2020
Distribution: Slackware
Posts: 19

Original Poster
Rep: Reputation: Disabled
Thank you for this info.

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.
 
Old 02-10-2020, 07:23 PM   #4
multios
Member
 
Registered: Mar 2006
Location: Homer, Alaska USA
Distribution: OpenBSD, FreeBSD, Slackware64-current
Posts: 276

Rep: Reputation: 58
kestralis,
I had exact same problem till I made /etc/rc.d/rc.postfix executable and then started it. Now I have same as Pat.
HTH
 
1 members found this post helpful.
Old 02-11-2020, 12:06 AM   #5
kestralis
LQ Newbie
 
Registered: Feb 2020
Distribution: Slackware
Posts: 19

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by multios View Post
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.
 
Old 02-11-2020, 01:19 PM   #6
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,508

Rep: Reputation: 8473Reputation: 8473Reputation: 8473Reputation: 8473Reputation: 8473Reputation: 8473Reputation: 8473Reputation: 8473Reputation: 8473Reputation: 8473Reputation: 8473
Quote:
Originally Posted by kestralis View Post
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.
 
1 members found this post helpful.
Old 02-12-2020, 05:18 AM   #7
franzen
Member
 
Registered: Nov 2012
Distribution: slackware
Posts: 535

Rep: Reputation: 379Reputation: 379Reputation: 379Reputation: 379
Quote:
Originally Posted by kestralis View Post
In Slackware Current you might notice output in /var/log/maillog like this
Code:
postdrop: warning: unable to look up public/pickup: No such file or directory
following the execution of scheduled cron (dcron) tasks.
It might be logrotate related, on what time did this occour in the log?
What other logentries are before/after that?
 
Old 11-02-2023, 05:59 AM   #8
Tonus
Senior Member
 
Registered: Jan 2007
Location: Paris, France
Distribution: Slackware-15.0
Posts: 1,405
Blog Entries: 3

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514
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
 
Old 11-05-2023, 05:01 AM   #9
henca
Member
 
Registered: Aug 2007
Location: Linköping, Sweden
Distribution: Slackware
Posts: 972

Rep: Reputation: 657Reputation: 657Reputation: 657Reputation: 657Reputation: 657Reputation: 657
Quote:
Originally Posted by kestralis View Post
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 View Post
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.

regards Henrik
 
2 members found this post helpful.
Old 11-05-2023, 05:25 AM   #10
Tonus
Senior Member
 
Registered: Jan 2007
Location: Paris, France
Distribution: Slackware-15.0
Posts: 1,405
Blog Entries: 3

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514
Thanks Henrik for your instructive reply.

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.

Regards
 
  


Reply



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
why is maillog on my server getting created in /var/log/maillog.3 ? weblink_dipti Linux - Software 2 06-16-2007 04:47 AM
Determine which patch file with minimal bugfix. dt4stat SUSE / openSUSE 1 03-21-2006 06:22 AM
unable to do security, bugfix or normal update! greythorne Mandriva 1 01-24-2005 04:01 AM
Stupid bugfix updates brought worse bugs Pyro_Linux Linux - Software 1 07-15-2004 07:26 AM
XMMS/KDE Bugfix: How do you apply the fix? Geoffrey_Firmin Linux - Software 1 06-16-2004 05:13 AM

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

All times are GMT -5. The time now is 01:36 PM.

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