Solved

Install smf-zombie

Posted on 2009-06-29
6
982 Views
Last Modified: 2013-12-15
Hi,

I am trying to install a simple program called sfm-zombie but have the issue that it does not seem to create the needed socket file.

It does not show errors and all looks fine but if I restart sendmail it gives an error.

[root@app2 smf-zombie-1.2.1]# service sendmail restart
Shutting down sm-client: [  OK  ]
Shutting down sendmail: [  OK  ]
Starting sendmail: WARNING: Xsmf-zombie: local socket name /var/run/smfs/smf-zombie.sock missing
[  OK  ]
Starting sm-client: [  OK  ]
[root@app2 smf-zombie-1.2.1]#

Any idea how I can resolve this or create the needed socket file manually?

Best wishes,
Thomas
0
Comment
Question by:Thomanji
  • 3
  • 3
6 Comments
 
LVL 34

Expert Comment

by:Duncan Roe
ID: 24740844
Make sure there is a directory /var/run/smfs/
Make sure permissions on this directory are adequate for the user that Xsmf-zombie:runs as (should be no problem if root).
Socket files are created by a program opening a Unix / Local domain socket - is there a server you should be running?
0
 

Author Comment

by:Thomanji
ID: 24742254
Hi,

Thanks for the info.
Yes the directory exists. I did install smf-spf before which actually created a socket file in there.
I do the install as root so I think this should be of.

The program works with sendmail and procmail.

It is actually simple install as outlined here:

  Requirements: Linux/FreeBSD, Sendmail v8.11 and higher compiled with MILTER
support enabled, Sendmail Development Kit, POSIX threads library.

  Edit the Makefile according to version of your Sendmail program and OS.
Edit the config.h file if it is necessary (WHITE_LIST, SYSLOG_FACILITY
parameters). Set your owned domain(s) with the FAKE_HELO parameter.

  Under the root account:
make
make install
/usr/local/sbin/smf-zombie

  Add this milter to start-up scripts before starting the Sendmail daemon.

  Add these lines to your Sendmail configuration file:
define(`confMILTER_MACROS_HELO', confMILTER_MACROS_HELO`, {verify}')dnl
define(`confMILTER_MACROS_ENVFROM', confMILTER_MACROS_ENVFROM`, {msg_size}')dnl
INPUT_MAIL_FILTER(`smf-zombie', `S=unix:/var/smfs/smf-zombie.sock, T=S:30s;R:1m')dnl

  If you have another milters this milter should be the first.
Rebuild your Sendmail configuration file and restart the Sendmail daemon.

  Under Linux add this line to your syslog.conf file and restart the Syslog daemon:
local1.*      -/var/log/zombie-spam.log




I did follow these steps exactly and did not get any errors during install except that it did not produce the smf-zombie.sock file.

Any ideas what I could do?

Best wishes,
Thom
0
 
LVL 34

Accepted Solution

by:
Duncan Roe earned 500 total points
ID: 24743907
I'm not aware of any command-line utility to create unix sockets. Unlike named pipes, tar will not back them up, so I really think they must have little intrinsic use when not connected to a running process. Can you re-check the syntax of "S=unix:/var/smfs/smf-zombie.sock" in the INPUT_MAIL_FILTER line above - it may be correct but doesn't read like a normal URL; e.g. if that were "file" instead of "unix" it would have to be file:///var/smfs/smf-zombie.sock
0
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 

Author Comment

by:Thomanji
ID: 24752116
Hi,

Yes this seems to be correct because I installed smf-spf and it asked me to put the line:
INPUT_MAIL_FILTER(`smf-spf', `S=unix:/var/run/smfs/smf-spf.sock, T=S:30s;R:1m')dnl

Into the sendmail.mc
So this is the same style.

I will contact my ISP and see what they say.

Best wishes,
thom
0
 
LVL 34

Expert Comment

by:Duncan Roe
ID: 24753314
I really don't think it will help to contact your ISP - it has nothing to do with them. This is not a network address - it is an address inside your local machine. If it were mis-formatted, I would expect a log entry somewhere - such as in /var/log/mail. If no messages there, try putting the extra 2 slash characters in and start it again - do you get a message now?
0
 

Author Comment

by:Thomanji
ID: 24760210
Hi,

I did install already other programs from the same author. When I installed smf-spf all worked fine and the sock file was created. It had the exact same call in the sendmail.mc and works just fine. I did then install smf-clam and it also works file and has the same type of file call. Only smf-zombie has the issue that the sock file was not created. I do not think it has to do with the way it calls the file but with the fact that this file is not created. However, I did resolve the issue. It created the sock in a different location /var/smfs/ it was not there yesterday but this morning I found it in there after reading you message.

Thanks for the tips and discussion, I appreciate your help.

Best wishes,
Thom
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question