RE: Errors with socketmapd.0.31.pl

Mark <[email protected]> Mon, 19 Dec 2005 23:42:17 GMT
Newsgroups gmane.mail.spam.srs.general
Organization Asarian-host
Message-ID <[email protected]>
> -----Original Message-----
> From: Robert Muchnick [mailto:[email protected]]
> Sent: maandag 19 december 2005 22:06
> To: [email protected]
> Subject: [srs-discuss] Errors with socketmapd.0.31.pl


> 554 5.0.0 /etc/mail/sendmail.cf: line 183: readcf: map reverse_srs:
> class socket not available 554 5.0.0 /etc/mail/sendmail.cf: line 184:
> readcf: map make_srs: class socket not available

Hello Robert,

It would seem Stuart already answered that question. :)

> Second question: socketmapd.0.31.pl has this line: my $fwdomain = 'mydo-
> main.com';
>
> These servers handle multiple virtual hosts. How do you allow for multi-
> ple hosts in this file?

I recommend you use:

http://srs-socketmap.info/srs/srs-socketmapd.0.32rc3.tar.gz

It is as STABLE as 0.31, but comes with a lot of extra things (some of
which you need, like an INSTALL file).

In your case, in cf/sendmail.mc, put:

HACK(srs-socketmapd, local:/var/run/socket.sock, SRS_LOCAL_SELF) :

(or wherever your socket resides, of course)

  srs rewrite everything in Class=w with domains of Class=w
  (useful for virtual domains!)

Which is what you seem to need. :)

Also, it comes with a decent config file, in which you can set secrets,
and such.

> Newly compiled Sendmail 8.13.5, linked to libsrs2 in site.config.m4 with
> this line: APPENDDEF(`conf_sendmail_LIBS', `-lsrs2'). Compiler (gcc
> 3.3.6) reports success with this lib.

You do not need to compile libsrs2 as well. That is the beauty of the
socketmap approach. :) With a simple m4, you have sendmail make queries to
a small, external socketmap daemon. And as long as you keep compiling
newer versions of sendmail with -DSOCKETMAP, you never need to worry about
a thing.

You are right, though, the documentation seriously sucks (or is largely
absent, even). The Xmas days will be a good time to update those. :)

- Mark 
 
        System Administrator Asarian-host.org
 
---
"If you were supposed to understand it,
we wouldn't call it code." - FedEx