Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Install smf-zombie

Posted on 2009-06-29
6
Medium Priority
?
1,001 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
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!

 

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

Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

Question has a verified solution.

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

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 …
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses

618 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