Solved

Install smf-zombie

Posted on 2009-06-29
6
991 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 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
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

 

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

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

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

If you use Debian 6 Squeeze and you are tired of looking at the childish graphical GDM login screen that is used by default, here's an easy way to change it. If you've already tried to change it you've probably discovered that none of the old met…
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…
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…
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.

688 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