?
Solved

Install smf-zombie

Posted on 2009-06-29
6
Medium Priority
?
993 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 35

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 35

Accepted Solution

by:
Duncan Roe earned 2000 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
A new era in Cloud training has arrived.

A day that will go down in Cloud history.. But are you ready for it? Will you accept this Cloud challenge?

 

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 35

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

The purpose of this article is to demonstrate how we can use conditional statements using Python.
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month9 days, 12 hours left to enroll

762 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