Sample Header Ad - 728x90

What is a neat way to delete a stale amavisd pid_file on first boot after panic or power failure?

3 votes
1 answer
1514 views
Lion Mail Server component postfix/smtp 100% reproducible blocks inbound smtp mail delivery on first boot after a panic or power failure. Error messages from mail.log are like: postfix/smtp: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused postfix/smtp: 2F7131F9A97: to=, relay=none, delay=76041, delays=76040/0.36/0.05/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused) postfix/error: 550D61F9A99: to=, relay=none, delay=76040, delays=76040/0.39/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused) postfix/postscreen: NOQUEUE: reject: RCPT from [100.200.100.159]:65392: 450 4.3.2 Service currently unavailable; from=, to=, proto=ESMTP, helo= /usr/libexec/postfix/greylist.pl: Temporary message rejection to: from: sent from: [100.200.100.159] for: 60 seconds due to greylisting postfix/smtpd: NOQUEUE: reject: RCPT from host.domain.tld[100.200.100.159]: 450 4.7.1 : Recipient address rejected: Service is unavailable; from= to= proto=ESMTP helo= The issue seems to be related to the **amavis** content filter due to the connection to port number 10024 and amavisd being configured on that port. Amavis.log: /usr/bin/amavisd: (!)Net::Server: 2012/07/25-13:38:49 Pid_file already exists for running process (88)... aborting\n\n at line 277 in file /System/Library/Perl/Extras/5.12/Net/Server.pm ... /usr/bin/amavisd: Net::Server: 2012/07/25-13:38:49 Server closing! ...repeating roughly every 10 seconds... The **workaround** is to delete /var/amavis/amavisd.pid or reboot the machine. After the second boot the inbound smtp mail delivery is no longer stuck. The issue seems to be **related to** https://serverfault.com/questions/138690/amavisd-net-server-pid-file-already-exists-after-system-crash-and-startup **How to permanently fix** Apple Mail Server to accept smtp inbound messages on first boot, by removing the left over amavis pid_file from the previous unclean shutdown?
Asked by Pro Backup (4026 rep)
Jul 26, 2012, 09:23 AM
Last activity: Nov 15, 2021, 06:27 PM