Solved

Install smf-zombie

Posted on 2009-06-29
6
972 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 

Author Comment

by:Thomanji
Comment Utility
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
Comment Utility
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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
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…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

772 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now