Warning: mysqli::__construct(): (HY000/1203): User howardkn already has more than 'max_user_connections' active connections in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\includes\artfuncs.php on line 21
Failed to connect to MySQL: (1203) User howardkn already has more than 'max_user_connections' active connections
Warning: mysqli::query(): Couldn't fetch mysqli in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\index.php on line 66
Article <utlmi6$iv4$1@tncsrv09.home.tnetconsulting.net>
Deutsch   English   Français   Italiano  
<utlmi6$iv4$1@tncsrv09.home.tnetconsulting.net>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!weretis.net!feeder6.news.weretis.net!tncsrv06.tnetconsulting.net!tncsrv09.home.tnetconsulting.net!.POSTED.omega.home.tnetconsulting.net!not-for-mail
From: Grant Taylor <gtaylor@tnetconsulting.net>
Newsgroups: comp.mail.sendmail
Subject: Re: sender rewrining advice
Date: Fri, 22 Mar 2024 23:41:42 -0500
Organization: TNet Consulting
Message-ID: <utlmi6$iv4$1@tncsrv09.home.tnetconsulting.net>
References: <ut75od$3k36i$1@dont-email.me>
 <ut7is6$oeb$1@tncsrv09.home.tnetconsulting.net> <uta80m$c43c$1@dont-email.me>
 <utdfp4$fs6$1@tncsrv09.home.tnetconsulting.net>
 <utesd2$1hkni$1@dont-email.me>
 <utg4du$o00$1@tncsrv09.home.tnetconsulting.net>
 <uth88c$26nhr$1@dont-email.me>
 <utlkoe$4ve$1@tncsrv09.home.tnetconsulting.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 23 Mar 2024 04:41:42 -0000 (UTC)
Injection-Info: tncsrv09.home.tnetconsulting.net; posting-host="omega.home.tnetconsulting.net:198.18.1.140";
	logging-data="19428"; mail-complaints-to="newsmaster@tnetconsulting.net"
User-Agent: Mozilla Thunderbird
Content-Language: en-US
In-Reply-To: <utlkoe$4ve$1@tncsrv09.home.tnetconsulting.net>
Bytes: 3592
Lines: 58

On 3/22/24 23:10, Grant Taylor wrote:
> From memory -- I'll look some time this weekend -- the SRS routine that 
> I'm using uses the local-host-names file (class w) as part of the test 
> to determine if envelope senders should be rewritten or not.

What I have is based off of the following, which is now available via 
Archive.org

Link - SRS integration with sendmail
  - 
https://web.archive.org/web/20051221183047/http://srs-socketmap.info/sendmailsrs.htm

The collection of files is basically two versions of very similar 
solutions.  I've used both.

N.B. I originally drafted this reply with the files attached, but I've 
since removed them and will send them in a follow up.  They /should/ be 
forthcoming shortly.

I have sym-links in /usr/share/sendmail/cf/hack directory pointing to 
the m4 files in the /etc/mail/srs directory.

Towards the end of my sendmail.mc file I have the following line:

I'm currently using the perlsrs-old.m4.

    HACK(`perlsrs-old')dnl

Both perlsrs.m4 and socketmap.m4 rely on the socketmapd.0.31.pl file 
running as a daemon listening on a local Unix socket.  --  I used this 
for a while, but abandoned it because I got tired of needing to manually 
start it after updates.  I should have written an init script, but c'est 
la vie.

So I switched to perlsrs-old.m4 which forks a copy of envfrom2srs.pl or 
srs2envto.pl as necessary.

I've never had any problems with the overhead of forking the Perl 
processes.  SpamAssassin, ClamAV, and the IMAP daemon take up FAR more 
resources than the SRS solution.

It looks like line 37 of the perlsrs-old.m4 is what references the class 
w map (where local-host-names gets loaded into).  So I would think that 
you could create a new class and load contents of a different file into 
the class and for reference.

I don't remember the specifics about the socketmapd solutions 
(perlsrs.m4 and socketmap.m4) but I know that they did work and that I 
didn't notice any less overhead with the long running daemon vs forking.

According to mailstats, my server has been averaging 15.5 k messages a 
day for the last month (10k min and 19k max).  I'm on a small Linode w/ 
2 GB of memory.  --  This really doesn't make an impact and it's not 
like it's a big system.



-- 
Grant. . . .