Quoting Vijay Sankar <[email protected]>:

Chris wrote:
Quoting Vijay Sankar <[email protected]>:

Chris wrote:
Hi,

I have been playing with this for hours now, and I'm getting
really  frustrated.

I'm building an email server, and I want to use smtp-vilter to
send  my emails through spamassassin and clamav.  I'm using obsd
4.5 and  sendmail.

I keep getting this in my logs:
Milter (smtp-vilter): local socket name
/var/smtp-vilter/smtp-vilter.sock unsafe
Milter (smtp-vilter): to error state
Milter: initialization failed, temp failing commands

This failure blocks all mail from being sent.

I have tried switching users on this socket, I have tried
switching  perms, right now, I have it owned by _vilter:_vilter
with the mode  at 0600... it doesn't get much more "safe" than
that...

What am I doing wrong here?


This thread helped me out quite a bit long time ago

http://www.mail-archive.com/[email protected]/msg03788.html

HTH,

Vijay

Hmm.. thanks vijay, but that just doesn't seem to help... :(






Do you have a /tmp directory defined in /etc/smtp-vilter.conf and is it
in /var/smtp-vilter?

Also

tmpfiles=g+r
tmpfiles=setgrp

Hi Vijay,

I do have those, in fact. Here is the contents of my
/etc/smtp-vilter/smtp-vilter.conf:

user=_vilter
group=_vilter
chroot=/var/smtp-vilter
tmpfiles=g+r
tmpfiles=setgrp
backend-path=/usr/local/lib/smtp-vilter
backend=clamd,spamd,attachment
config-file=clamd:/etc/smtp-vilter/clamd.conf
config-file=spamd:/etc/smtp-vilter/spamd.conf
config-file=attachment:/etc/smtp-vilter/attachment.conf
virus-strategy=notify-recipient
recipient-notification=/etc/smtp-vilter/recipient-notification
spam-strategy=mark
spam-subject-prefix="* SPAM *"
spam-header="X-Its-A-Nuisance: This is spam"
unwanted-strategy=mark
error-strategy=mark
port=unix:/var/smtp-vilter/smtp-vilter.sock
tmpdir=/tmp
log-facility=mail
logfile=/var/log/smtp-vilter.log
statfile=/var/smtpvilter/stats
option=logvirus
option=logspam
option=logunwanted
option=markall
react on virus add to table blacklist
react on spam delete from table whitelist
react on unwanted-content add to table blacklist
react on clean add to table cleanlist

The crazy thing is on my existing OBSD 3.8 email server, everything
works.  I have it configured almost exactly the same way, and it isn't
working on this new system -- and I cannot find any useful information
on googling "smtp-vilter.sock unsafe"...  I've played with with perms
until the cows came home...

Reply via email to