Page 1 of 1

bav.sock unsafe?

PostPosted: Sun Apr 25, 2010 7:41 pm
by cjscully
The following message is showing up repeatedly in my mail log:

Apr 25 06:40:01 mailer sm-mta[5507]: o3PAe1vd005507: Milter (bav): local socket name /home/openemm/var/run/bav.sock unsafe

I have no idea what it means or how to correct the problem.

PostPosted: Sun Apr 25, 2010 11:27 pm
by cjscully
I also noticed the following in my mail.err log:

Milter (bav): error connecting to filter: Connection refused by /home/openemm/var/run/bav.sock

Re: bav.sock unsafe?

PostPosted: Wed Oct 19, 2016 12:31 pm
by abu.sayeed
date | sendmail -v $USER

root... Connecting to [] via relay...
220 vNTDACLSEMMP001.ntdac.nazdaqTechnologies.local ESMTP Sendmail 8.14.7/8.14.7; Wed, 19 Oct 2016 17:28:10 +0600
>>> EHLO vNTDACLSEMMP001.ntdac.nazdaqTechnologies.local
250-vNTDACLSEMMP001.ntdac.nazdaqTechnologies.local Hello localhost [], pleased to meet you
250 HELP
>>> MAIL From:<root@vNTDACLSEMMP001.ntdac.nazdaqTechnologies.local> SIZE=29
451 4.3.2 Please try again later
root... Deferred: 451 4.3.2 Please try again later
Closing connection to []
>>> QUIT
221 2.0.0 vNTDACLSEMMP001.ntdac.nazdaqTechnologies.local closing connection

cat /var/log/maillog

vNTDACLSEMMP001 sendmail[3254]: u9JBCE1J003254: to=root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30029, relay=[] [], dsn=4.0.0, stat=Deferred: 451 4.3.2 Please try again later
vNTDACLSEMMP001 sendmail[3492]: u9JBSAEh003492: from=root, size=29, class=0, nrcpts=1, msgid=<201610191128.u9JBSAEh003492@vNTDACLSEMMP001.ntdac.nazdaqTechnologies.local>, relay=root@localhost
vNTDACLSEMMP001 sendmail[3493]: u9JBSAYx003493: Milter (bav): local socket name /home/openemm/var/run/bav.sock unsafe
vNTDACLSEMMP001 sendmail[3493]: u9JBSAYx003493: Milter (bav): to error state
vNTDACLSEMMP001 sendmail[3493]: u9JBSAYx003493: Milter: initialization failed, temp failing commands

I need help to solve this problem.

Re: bav.sock unsafe?

PostPosted: Thu Mar 30, 2017 12:07 am
by andrade.bga
Regarding the message:

Code: Select all
Milter (bav): local socket name /home/openemm/var/run/bav.sock unsafe
Milter (bav): to error state
Milter: initialization failed, temp failing commands

You should check this post:

If you run:

Code: Select all

and get that is missing, you should install libmilter (in my case, for Ubuntu server 16.04.2 LTS):

Code: Select all
sudo apt-get install libmilter-dev

Than you can check where the lib was installed:

Code: Select all
sudo dpkg -L libmilter-dev


After that you have to create a symlink as instructed in the above post link, in my case:

Code: Select all
sudo ln -s /usr/lib/x86_64-linux-gnu/ /lib/x86_64-linux-gnu/

Now /home/openemm/var/run/bav.sock gets loaded and there is now more error messages in /var/log/maillog. Note the difference between libmilter versions, but up until now i'm not having issues with that.