Yahoo Groups archive

Milter-greylist

Index last updated: 2026-04-28 23:32 UTC

Thread

Install trouble

Install trouble

2007-02-12 by Arjun Datta

Greetings all,

I have a FC 5 machine running sendmail 8.13.  I obtained the
milter-greylist-3.0.tgz from the website and built it into an rpm as
outlined by antispamz in his post on Jan 12 2007.

Everything seems to have gone in the right places except the .sock file.
There is no trace of it in /var.
So, when I start the service:
service milter-greylist start
and then do a service status check:
service milter-greylist status

It tells me: 'service dead but susbsys locked' and when I check to see it
running on the socket that is specified in the cf file there is no trace of
it.
ps auwx | grep *.sock does not return
/var/milter-greylist/milter-greylist.sock

Any help on how I should proceed ?

Regards,

Arjun Datta
Great Gulf Homes / Ashton Woods Homes
416 441 1262 x2822

Re: [milter-greylist] Install trouble

2007-02-12 by eclark

Sounds like the lockfile is dead. Check for it and restart the milter.
Show quoted textHide quoted text
On Monday 12 February 2007 10:54 am, Arjun Datta wrote:
> Greetings all,
>
> I have a FC 5 machine running sendmail 8.13.  I obtained the
> milter-greylist-3.0.tgz from the website and built it into an rpm as
> outlined by antispamz in his post on Jan 12 2007.
>
> Everything seems to have gone in the right places except the .sock file.
> There is no trace of it in /var.
> So, when I start the service:
> service milter-greylist start
> and then do a service status check:
> service milter-greylist status
>
> It tells me: 'service dead but susbsys locked' and when I check to see it
> running on the socket that is specified in the cf file there is no trace of
> it.
> ps auwx | grep *.sock does not return
> /var/milter-greylist/milter-greylist.sock
>
> Any help on how I should proceed ?
>
> Regards,
>
> Arjun Datta
> Great Gulf Homes / Ashton Woods Homes
> 416 441 1262 x2822

Re: [milter-greylist] Install trouble

2007-02-12 by Nerijus Baliunas

On Mon, 12 Feb 2007 10:54:10 -0500 Arjun Datta <arjun@...> wrote:

> I have a FC 5 machine running sendmail 8.13.  I obtained the
> milter-greylist-3.0.tgz from the website and built it into an rpm as
> outlined by antispamz in his post on Jan 12 2007.
> 
> Everything seems to have gone in the right places except the .sock file.
> There is no trace of it in /var.

What user milter-greylist runs as? Does it have write permissions in
/var/milter-greylist?

Regards,
Nerijus

Re: Install trouble

2007-02-12 by arjun_datta

--- In milter-greylist@yahoogroups.com, Nerijus Baliunas <nerijus@...>
wrote:
>
> On Mon, 12 Feb 2007 10:54:10 -0500 Arjun Datta <arjun@...> wrote:
> 
> > I have a FC 5 machine running sendmail 8.13.  I obtained the
> > milter-greylist-3.0.tgz from the website and built it into an rpm as
> > outlined by antispamz in his post on Jan 12 2007.
> > 
> > Everything seems to have gone in the right places except the .sock
file.
> > There is no trace of it in /var.
> 
> What user milter-greylist runs as? Does it have write permissions in
> /var/milter-greylist?
> 
> Regards,
> Nerijus
>

Hi Nerijus,

I can't even tell if it is running:

[root@mail init.d]# service milter-greylist stop
Stopping Milter-Greylist:                                  [  OK  ]
[root@mail init.d]# service milter-greylist status
milter-greylist is stopped
[root@mail init.d]# service milter-greylist start
Starting Milter-Greylist:                                  [  OK  ]
[root@mail init.d]# service milter-greylist status
milter-greylist dead but subsys locked
[root@mail init.d]# ps auwx | grep greylist
root     19227  0.0  0.0   3920   692 pts/10   S+   15:23   0:00 grep
greylist
[root@mail init.d]#

I think it runs as root:

[root@mail init.d]# cd /etc/rc.d/init.d/
[root@mail init.d]# ls -l
total 700
-rwxr-xr-x 1 root root  1784 Feb  9 16:48 milter-greylist

Regards,
Arjun

Re: Install trouble

2007-02-12 by arjun_datta

--- In milter-greylist@yahoogroups.com, vn <nostalgeek@...> wrote:
>
> What about ps aux | grep milter-greylist ?
> 

[root@mail init.d]# ps auwx | grep milter-greylist
root     19412  0.0  0.0   3912   672 pts/8    R+   15:44   0:00 grep
milter-greylist

Doesn't seem to be running either.  My guess is that since the .sock
file is missing, the service does not start.  How do I resolve this ?

Regards,
Arjun

RE: [milter-greylist] Re: Install trouble

2007-02-12 by Arjun Datta

See, that's the thing I cannot find milter-greylist.sock anywhere.
I looked in /var/milter-greylist - not there
I looked in /var/run - - not there
I searched: find / -name 'greylist*' etc etc
and none of the entries had the sock file. It seems the sock file is missing altogether.
Regards,
Arjun Datta
Great Gulf Homes / Ashton Woods Homes
416 441 1262 x2822
Show quoted textHide quoted text
-----Original Message-----
From: milter-greylist@yahoogroups.com [mailto:milter-greylist@yahoogroups.com]On Behalf Of vn
Sent: Monday, February 12, 2007 3:51 PM
To: milter-greylist@yahoogroups.com
Subject: Re: [milter-greylist] Re: Install trouble

I remember having this problem.. I think I solved it by touch milter-greylist.sock. Any luck for you?

Regards

Vincent

On 2/12/07, arjun_datta <arjun@greatgulfhomes.com> wrote:

--- In milter-greylist@yahoogroups.com, vn ..> wrote:
>
> What about ps aux | grep milter-greylist ?
>

[root@mail init.d]# ps auwx | grep milter-greylist
root 19412 0.0 0.0 3912 672 pts/8 R+ 15:44 0:00 grep
milter-greylist

Doesn't seem to be running either. My guess is that since the .sock
file is missing, the service does not start. How do I resolve this ?

Regards,
Arjun


Re: [milter-greylist] Re: Install trouble

2007-02-12 by vn

Yep, that s why I created it...  in /var/milter-greylist/milter- greylist.sock by doing this : touch /var/milter-greylist/milter-greylist.sock what about a

Re: [milter-greylist] Re: Install trouble

2007-02-12 by Nerijus Baliunas

On Mon, 12 Feb 2007 20:27:22 -0000 arjun_datta <arjun@...> wrote:

> > What user milter-greylist runs as? Does it have write permissions in
> > /var/milter-greylist?
>
> I can't even tell if it is running:

I mean configured to run.
in /etc/mail/greylist.conf what is user "..."?
in /etc/rc.d/init.d/milter-greylist what is user="..."?

ls -ld /var/milter-greylist   ?
ls -l /var/milter-greylist   ?

Regards,
Nerijus

Re: [milter-greylist] Re: Install trouble

2007-02-12 by Nerijus Baliunas

On Mon, 12 Feb 2007 15:38:19 -0500 vn <nostalgeek@...> wrote:

> What about ps aux | grep milter-greylist ?

Please look here:

> > [root@mail init.d]# ps auwx | grep greylist
> > root 19227 0.0 0.0 3920 692 pts/10 S+ 15:23 0:00 grep greylist
> > [root@mail init.d]#

Regards,
Nerijus

Re: Install trouble

2007-02-12 by arjun_datta

--- In milter-greylist@yahoogroups.com, vn <nostalgeek@...> wrote:
>
> Yep, that's why I created it...  in /var/milter-greylist/milter-
> greylist.sock by doing this :
> 
> touch /var/milter-greylist/milter-greylist.sock
> 
> what about a updatedb && locate milter-greylist.sock ?
> 

Thankyou for your suggestions - I tried them below:

[root@mail Desktop]# service milter-greylist stop
Stopping Milter-Greylist:                                  [  OK  ]
[root@mail Desktop]# service milter-greylist status
milter-greylist is stopped

[root@mail subsys]# cd /var/lock/subsys
[root@mail subsys]# ls | grep milter-greylist

[root@mail Desktop]# touch /var/milter-greylist/milter-greylist.sock
[root@mail Desktop]# ls /var/milter-greylist
milter-greylist.pid  milter-greylist.sock
[root@mail Desktop]# service milter-greylist start
Starting Milter-Greylist:                                  [  OK  ]
[root@mail Desktop]# service milter-greylist status
milter-greylist dead but subsys locked
[root@mail Desktop]# ps auwx | grep milter-greylist
root     19762  0.0  0.0   3916   688 pts/10   S+   16:22   0:00 grep
milter-greylist
[root@mail Desktop]# ls /var/milter-greylist
milter-greylist.pid

[root@mail Desktop]# updatedb
[root@mail Desktop]# locate milter-greylist.sock
[root@mail Desktop]# updatedb && locate milter-greylist.sock
[root@mail Desktop]#

updatedb on its own waited for about 5 seconds before coming back to
the prompt.

Re: Install trouble

2007-02-12 by arjun_datta

> 
> I mean configured to run.
> in /etc/mail/greylist.conf what is user "..."?
> in /etc/rc.d/init.d/milter-greylist what is user="..."?
> 
> ls -ld /var/milter-greylist   ?
> ls -l /var/milter-greylist   ?
> 
> Regards,
> Nerijus
>

Ah I see what you mean - sorry for not getting you first time around:

in /etc/mail/greylist.conf user "smmsp"
in /etc/rc.d/init.d/milter-greylist user=root

[root@mail Desktop]# ls -ld /var/milter-greylist/
drwxr-xr-x 2 root root 4096 Feb 12 16:27 /var/milter-greylist/

[root@mail Desktop]# ls -l /var/milter-greylist/
total 4
-rw-r--r-- 1 root root 6 Feb 12 16:27 milter-greylist.pid

So, should I change the user in the .conf file to root ?

Re: Install trouble

2007-02-12 by arjun_datta

> I mean configured to run.
> in /etc/mail/greylist.conf what is user "..."?
> in /etc/rc.d/init.d/milter-greylist what is user="..."?
> 
> ls -ld /var/milter-greylist   ?
> ls -l /var/milter-greylist   ?
> 
> Regards,
> Nerijus
>

I changed the user "smmsp" in /etc/mail/greylist.conf to user "root"
and now it runs on a valid socket!

[root@mail Desktop]# ps auwx | grep milter-greylist
root     20192  0.0  0.1  44280  1876 ?        Ssl  17:10   0:00
/usr/bin/milter-greylist -P /var/milter-greylist/milter-greylist.pid
-p /var/milter-greylist/milter-greylist.sock
root     20416  0.0  0.0   3912   680 pts/10   R+   17:17   0:00 grep
milter-greylist

... and it says it is running:
[root@mail Desktop]# service milter-greylist status
milter-greylist (pid 20192) is running...

Thankyou very much - it seems to have been installed properly.

I have another question now:
I plan on testing by telnet'ing to localhost 25
:telnet localhost 25  .. and going thru a normal SMTP command sequence
(HELO, MAIL FROM, RCPT TO, DATA, etc)

Now, what should I look for in /var/log/maillog ?

In mine it says:  
Feb 12 17:13:30 mail sendmail[20372]: l1CMCq2x020366:
to=arjun@localhost, delay=00:00:11, xdelay=00:00:00, mailer=local,
pri=30731, dsn=2.0.0, stat=Sent

Regards,
Arjun

Re: [milter-greylist] Re: Install trouble

2007-02-12 by Nerijus Baliunas

On Mon, 12 Feb 2007 21:58:11 -0000 arjun_datta <arjun@...> wrote:

> Ah I see what you mean - sorry for not getting you first time around:
> 
> in /etc/mail/greylist.conf user "smmsp"
> in /etc/rc.d/init.d/milter-greylist user=root
> 
> [root@mail Desktop]# ls -ld /var/milter-greylist/
> drwxr-xr-x 2 root root 4096 Feb 12 16:27 /var/milter-greylist/
> 
> [root@mail Desktop]# ls -l /var/milter-greylist/
> total 4
> -rw-r--r-- 1 root root 6 Feb 12 16:27 milter-greylist.pid
> 
> So, should I change the user in the .conf file to root ?

You can, but probably better is to do either of these:
rebuild rpm with user smmsp and not root
change user to smmsp in /etc/rc.d/init.d/milter-greylist (not needed if you rebuild rpm)
change owner of /var/milter-greylist to smmsp (not needed if you rebuild rpm)

Regards,
Nerijus

Re: [milter-greylist] Install trouble

2007-02-13 by Harish Pillay

Arjun -

Please check if you have SElinux turned on.  Check in the
/var/log/messages file for avc messages.  I suspect that
SELinux is not told that you are using /var/milter-greylist.

Regards.
Harish

Re: [milter-greylist] Re: Install trouble

2007-02-13 by Arjun Datta

I see.

How do I rebuild with user smmsp ?

Also, just curious, but why should the milter run as smmsp - wouldn't it 
have more permissions if it ran as root ?

Nerijus Baliunas wrote:
Show quoted textHide quoted text
>
> On Mon, 12 Feb 2007 21:58:11 -0000 arjun_datta 
> <arjun@... <mailto:arjun%40greatgulfhomes.com>> wrote:
>
> > Ah I see what you mean - sorry for not getting you first time around:
> >
> > in /etc/mail/greylist.conf user "smmsp"
> > in /etc/rc.d/init.d/milter-greylist user=root
> >
> > [root@mail Desktop]# ls -ld /var/milter-greylist/
> > drwxr-xr-x 2 root root 4096 Feb 12 16:27 /var/milter-greylist/
> >
> > [root@mail Desktop]# ls -l /var/milter-greylist/
> > total 4
> > -rw-r--r-- 1 root root 6 Feb 12 16:27 milter-greylist.pid
> >
> > So, should I change the user in the .conf file to root ?
>
> You can, but probably better is to do either of these:
> rebuild rpm with user smmsp and not root
> change user to smmsp in /etc/rc.d/init.d/milter-greylist (not needed 
> if you rebuild rpm)
> change owner of /var/milter-greylist to smmsp (not needed if you 
> rebuild rpm)
>
> Regards,
> Nerijus
>
>

Re: [milter-greylist] Re: Install trouble

2007-02-13 by Emmanuel Dreyfus

On Tue, Feb 13, 2007 at 10:18:40AM -0500, Arjun Datta wrote:
> How do I rebuild with user smmsp ?

I know that RTFM is not a friendly answer, but you should consider re-reading
section 1 of the README file...

> Also, just curious, but why should the milter run as smmsp - wouldn't it 
> have more permissions if it ran as root ?

If there is a security hole in milter-greylist and you run it as root, then
an attacker could take over your machine by sending a specially crafted
e-mail. If you run as smmsp, the attacker will only gain smmsp privileges.

-- 
Emmanuel Dreyfus
manu@...

Re: [milter-greylist] Re: Install trouble

2007-02-13 by Oliver Fromme

Arjun Datta wrote:
 > Also, just curious, but why should the milter run as smmsp - wouldn't it 
 > have more permissions if it ran as root ?

As a general rule, every program should run only with the
permissions that are absolutely required to do its job.
That way you restrict the damage if a security incident
happens.  If you don't care about security at all, you
could run everything as root, and having multiple users,
groups, file permissions etc. would be completely point-
less.

That rule applies to every program, not just milter-grey-
list.  Of course you should make sure that the program has
sufficient privilege to do what it has to do.  For example,
milter-greylist requires write access to the directory con-
taining the socket used for communication with sendmail.
It also needs to be able to write the greylist database.
The easiest way to accomplish that is to make smmsp the
owner of the directory (and mode 700).

Best regards
   Oliver

-- 
Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M.
Handelsregister: Registergericht Muenchen, HRA 74606,  Gesch\ufffdftsfuehrung:
secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht M\ufffdn-
chen, HRB 125758,  Gesch\ufffdftsf\ufffdhrer: Maik Bachmann, Olaf Erb, Ralf Gebhart
Any opinions expressed in this message are personal to the author and may
not necessarily reflect the opinions of secnetix GmbH & Co KG in any way.
FreeBSD-Dienstleistungen, -Produkte und mehr:  http://www.secnetix.de/bsd

"File names are infinite in length, where infinity is set to 255 characters."
        -- Peter Collinson, "The Unix File System"

RE: [milter-greylist] Re: Install trouble

2007-02-13 by Arjun Datta

Thanks for your help,

I understand that I may be asking questions that can be answered in the
manual/README but I have tried what is mentioned there and not found what I
am looking for, hence I am asking.

For example:  the README mentions installing the greylist using configure &&
make && make install. When I tried that it did not install properly as
various files that should have been in certain places were not there:

there was no greylist.conf in /etc/mail - I had to copy it over,
there was no pid or sock file when I started the service (after copying the
correct script over to /etc/rc.d/init.d)
etc

This was why I then built it using rpmbuild -tb (which I got from an earlier
post in this mailing-list)

So, when I was asking about rebuilding with 'user as smmsp' I meant when
using rpmbuild and not using 'configure && make && make install'.  That
would be mentioned in the man page for rpmbuild (which I have read) and I
could not find it.  That is also not mentioned in the README.  Which is why
I asked.

I guess I should have been more specific.

In any case, it seems to be running (albeit as user root) and seems to be
delaying connections as specified in the .conf file - and or getting me this
far I thank everyone that has responded to my queries - you've all been most
helpful.

I only ask this - is the README the best and only place for learning how to
fine tune the .conf file ?

Regards,
Arjun

  On Tue, Feb 13, 2007 at 10:18:40AM -0500, Arjun Datta wrote:
  > How do I rebuild with user smmsp ?

  I know that RTFM is not a friendly answer, but you should consider
re-reading
  section 1 of the README file...

  > Also, just curious, but why should the milter run as smmsp - wouldn't it
  > have more permissions if it ran as root ?

  If there is a security hole in milter-greylist and you run it as root,
then
  an attacker could take over your machine by sending a specially crafted
  e-mail. If you run as smmsp, the attacker will only gain smmsp privileges.

  --
  Emmanuel Dreyfus
  manu@...

Re: [milter-greylist] Install trouble

2007-02-13 by Arjun Datta

Thanks for your response,

I do not have Selinux running - in fact I have (somehow ;-)) managed to 
get it to start, run and do some basic greylisting - I am now testing 
and fine tuning it.

Arjun

Harish Pillay wrote:
Show quoted textHide quoted text
>
> Arjun -
>
> Please check if you have SElinux turned on. Check in the
> /var/log/messages file for avc messages. I suspect that
> SELinux is not told that you are using /var/milter-greylist.
>
> Regards.
> Harish
>
>

Re: [milter-greylist] Re: Install trouble

2007-02-13 by Nerijus Baliunas

On Tue, 13 Feb 2007 14:41:55 -0500 Arjun Datta <arjun@...> wrote:

> For example:  the README mentions installing the greylist using configure &&
> make && make install. When I tried that it did not install properly as

These are general compiling from source instructions. You should run
./configure --help and adjust --prefix for your needs.

> various files that should have been in certain places were not there:
> 
> there was no greylist.conf in /etc/mail - I had to copy it over,

it was probably in /usr/local/etc/mail?

> there was no pid or sock file when I started the service (after copying the
> correct script over to /etc/rc.d/init.d)

Service could not be started because it was not able to create sock file
in /var/milter directory.

> So, when I was asking about rebuilding with 'user as smmsp' I meant when
> using rpmbuild and not using 'configure && make && make install'.  That
> would be mentioned in the man page for rpmbuild (which I have read) and I
> could not find it.  That is also not mentioned in the README.  Which is why
> I asked.

No, it isn't and shouldn't be mentioned in the man page for rpmbuild.
Actually it's mentioned in README of milter-greylist-3.1.5:

A .spec file is included in the distribution to build an RPM for
RedHat Linux. This is achieved by running rpmbuild on milter-greylist
source tarball: rpmbuild -tb milter-greylist-3.1.4.tgz. You can define
build_user, build_postfix, build_dnsrbl, build_libbind - for example,
to build with DNSRBL support and choose smmsp as the user that will run
milter-greylist, use
rpmbuild --define "build_user smmsp" --define "build_dnsrbl 1" -tb milter-greylist-3.1.4.tgz

If you use 3.0, then it's a bit more difficult - you should unpack the archive
and change %define user root to %define user smmsp in milter-greylist.spec,
then use rpmbuild -bb milter-greylist.spec.

> I only ask this - is the README the best and only place for learning how to
> fine tune the .conf file ?

Not only, also comments in greylist.conf and greylist2.conf, man page and
mailing list archives.

Regards,
Nerijus

Re: Install trouble - milter-greylist.sock missing

2007-03-18 by gsxatvcu

I had the same problem, followed this touching advice thinking it
shouldn't work, and when restarting sendmail there was no error
message about the missing pipe but greylisting still didn't work.

My installation was from rpm, by the way, configure & make didn't work
with my Fedora Core 5 as it's rigged.  The rpm was at

http://rpmfind.net/linux/rpm2html/search.php?query=milter-greylist

This page had what was needed to configure milter-greylist, almost:
http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch21_:_Configuring_Linux_Mail_Servers

I inserted the statements in step 1 of the milter setup into my
sendmail.mc file, with no dnls which confounded me but appeared to
work fine, gave no errors at the

make -C /etc/mail

Doing /etc/rc.d/init.d/milter-greylist start 

followed by sendmail restart got me no joy, since sendmail complained
about the missing socket as it restarted.  

Making the directory at /var/milter-greylist and touch-ing
milter-greylist.sock got rid of the error message but greylisting
didn't work.  (I haven't found where milter-greylist logs this stuff yet?)

Looking further and comparing the contents of /etc/mail/greylist.conf
with the statements in step 1 I saw the problem, where the socket file
is set to

/var/run/milter-greylist/milter-greylist.sock

but in the README and the above wiki page the location was

/var/milter-greylist/milter-greylist.sock

Adding the /run/ to sendmail.mc, doing the make -C again, and
restarting sendmail got my greylisting working and we're on to see
what happens next.  This machine, mostly a honey pot, gets about 200
spams a day, mostly phishing with viagra & giving stock tips, and it
seemed to be a good place to try this milter.

I hope this helps somebody?

--- In milter-greylist@yahoogroups.com, vn <nostalgeek@...> wrote:
>
> Yep, that's why I created it...  in /var/milter-greylist/milter-
> greylist.sock by doing this :
> 
> touch /var/milter-greylist/milter-greylist.sock
> 
> what about a updatedb && locate milter-greylist.sock ?
> 
> Regards
> 
> On 2/12/07, Arjun Datta <arjun@...> wrote:
> >
> >    See, that's the thing I cannot find milter-greylist.sock anywhere.
> >
> > I looked in /var/milter-greylist - not there
> > I looked in /var/run -              - not there
> >
> > I searched: find / -name 'greylist*' etc etc
> >
> > and none of the entries had the sock file.  It seems the sock file is
> > missing altogether.
> >
> > Regards,
> >
> > Arjun Datta
> > Great Gulf Homes / Ashton Woods Homes
> > 416 441 1262 x2822
> >
> > -----Original Message-----
> > *From:* milter-greylist@yahoogroups.com [mailto:milter-
> > greylist@yahoogroups.com]*On Behalf Of *vn
> > *Sent:* Monday, February 12, 2007 3:51 PM
> > *To:* milter-greylist@yahoogroups.com
> > *Subject:* Re: [milter-greylist] Re: Install trouble
> >
> >  I remember having this problem.. I think I solved it by touch
> > milter-greylist.sock.  Any luck for you?
> >
> > Regards
> >
> > Vincent
> >
> > On 2/12/07, arjun_datta <arjun@...> wrote:
> > >
> > >   --- In
milter-greylist@yahoogroups.com<milter-greylist%40yahoogroups.com>,
Show quoted textHide quoted text
> > > vn <nostalgeek@> wrote:
> > > >
> > > > What about ps aux | grep milter-greylist ?
> > > >
> > >
> > > [root@mail init.d]# ps auwx | grep milter-greylist
> > > root 19412 0.0 0.0 3912 672 pts/8 R+ 15:44 0:00 grep
> > > milter-greylist
> > >
> > > Doesn't seem to be running either. My guess is that since the .sock
> > > file is missing, the service does not start. How do I resolve this ?
> > >
> > > Regards,
> > > Arjun
> > >
> > >
> >   
> >
>

Re: [milter-greylist] Re: Install trouble - milter-greylist.sock missing

2007-03-19 by Oliver Fromme

gsxatvcu wrote:
 > I inserted the statements in step 1 of the milter setup into my
 > sendmail.mc file, with no dnls which confounded me but appeared to
 > work fine,

Those are just comments.  "dnl" means Delete through NewLine,
i.e. ignore everything up to (and including) the next newline
character.

 > Doing /etc/rc.d/init.d/milter-greylist start
 > 
 > followed by sendmail restart got me no joy, since sendmail complained
 > about the missing socket as it restarted.

That means that milter-greylist did not start.  You either
had an error in the configuration file, or some permission
problem, or a directory did not exist, or similar.

 > Making the directory at /var/milter-greylist

OK, so the reason was that the directory didn't exist.

 > and touch-ing milter-greylist.sock

Big mistake.  You cannot touch a socket, because it will
create a plain file, not a socket (wouldn't make any sense
anyway).  You must delete  that file, then start milter-
greylist.  The socket will be created automatically when
milter-greylist performs a listen() call (which is the
_only_ way to properly create a socket file).

 > got rid of the error message

Because sendmail doesn't seem to check the type of the
file (plain vs. socket).  That might be a bug in sendmail.

 > but greylisting didn't work.

Not surprising.  There's no socket, so sendmail cannot
communicate with milter-greylist.  (Probably the milter-
greylist process wasn't running at all because of the
previous error condition.)

 > (I haven't found where milter-greylist logs this stuff yet?)

It logs where you configured it to log.  :-)
For me, it's in the standard mail log (/var/log/maillog).

 > Looking further and comparing the contents of /etc/mail/greylist.conf
 > with the statements in step 1 I saw the problem, where the socket file
 > is set to
 > 
 > /var/run/milter-greylist/milter-greylist.sock

That's non-default.  Maybe the person who created the
package that you installed modified it.  In that case
it should be documented somewhere in your package.

 > but in the README and the above wiki page the location was
 > 
 > /var/milter-greylist/milter-greylist.sock

That's the default location.

Best regards
   Oliver


-- 
Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M.
Handelsregister: Registergericht Muenchen, HRA 74606,  Gesch\ufffdftsfuehrung:
secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht M\ufffdn-
chen, HRB 125758,  Gesch\ufffdftsf\ufffdhrer: Maik Bachmann, Olaf Erb, Ralf Gebhart

FreeBSD-Dienstleistungen, -Produkte und mehr:  http://www.secnetix.de/bsd

 > Can the denizens of this group enlighten me about what the
 > advantages of Python are, versus Perl ?
"python" is more likely to pass unharmed through your spelling
checker than "perl".
        -- An unknown poster and Fredrik Lundh

Re: Install trouble - milter-greylist.sock missing

2007-03-19 by gsxatvcu

Thanks for the excellent critique, Oliver, where I learned some things.

To be complete about this and maybe more helpful to some other noob, I
didn't get milter-greylist from an rpm, I'd used 

yum install milter-greylist

and it resolved the dependencies, but it gave me the non-standard pipe
location to paste into sendmail.mc...

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.