postfix got "file has 2 hard links" error frequently
I got a postfix error with "file has 2 hard links" frequently.
When the host bootup postfix is running well, but sometime will get
the error "postfix/
When I done the below command and become normal running.
but after few days will got the error again. I can't found the frequency.
Is anyone know how to fix this issue forever ?
sudo service postfix stop
ps -ef | grep postfix
cd /etc
sudo cp mailname mailname.cp
sudo mv mailname mailname.bad.001
sudo cp mailname.cp mailname
cd /var/spool/
sudo rm -f *
sudo service postfix start
sudo service postfix status
ps -ef | grep postfix
tail -10 /var/log/mail.err
tail -10 /var/log/mail.log
Error log:
more /etc/lsb*
DISTRIB_ID=Ubuntu
DISTRIB_
DISTRIB_
DISTRIB_
uname -a
Linux mars 4.15.0-202-generic #213-Ubuntu SMP Thu Jan 5 19:19:12 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
dpkg -l | grep postfix
ii postfix 3.3.0-1ubuntu0.4 amd64 High-performance mail transport agent
/var/log/syslog
Jan 16 07:12:31 mars postfix/
Jan 16 07:12:32 mars postfix/
Jan 16 07:12:32 mars postfix/
Jan 16 07:13:32 mars postfix/
Jan 16 07:13:33 mars postfix/
Jan 16 07:13:33 mars postfix/
Jan 16 07:14:12 mars postfix/
/var/log/mail.err
Jan 16 07:12:31 mars postfix/
Jan 16 07:13:32 mars postfix/
Jan 16 07:14:33 mars postfix/
Jan 16 07:15:34 mars postfix/
Jan 16 07:16:35 mars postfix/
/var/log/mail.log
Jan 16 07:12:31 mars postfix/
Jan 16 07:12:32 mars postfix/
Jan 16 07:12:32 mars postfix/
Jan 16 07:13:32 mars postfix/
Jan 16 07:13:33 mars postfix/
Jan 16 07:13:33 mars postfix/
Jan 16 07:14:12 mars postfix/
Jan 16 07:14:33 mars postfix/
list -il /etc/mailname*
23986809 -rw-r--r-- 1 root root 23 Jan 7 08:08 /etc/mailname
23986415 -rw-r--r-- 1 root root 23 Oct 31 11:12 /etc/mailname.
23986722 -rw-r--r-- 3 root root 23 Oct 31 11:12 /etc/mailname.
23986660 -rw-r--r-- 2 root root 23 Jan 7 08:08 /etc/mailname.
23986392 -rw-r--r-- 1 root root 23 Jan 7 08:08 /etc/mailname.cp
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu postfix Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Jack
- Solved:
- Last query:
- Last reply: