Deutsch English Français Italiano |
<utnpai$5mj$1@tncsrv09.home.tnetconsulting.net> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!news.misty.com!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: Sat, 23 Mar 2024 18:41:06 -0500 Organization: TNet Consulting Message-ID: <utnpai$5mj$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> <utlmi6$iv4$1@tncsrv09.home.tnetconsulting.net> <utlml1$iv4$2@tncsrv09.home.tnetconsulting.net> <utlmmr$iv4$3@tncsrv09.home.tnetconsulting.net> <utm7gp$3idf8$1@dont-email.me> <utn4lk$al3$2@tncsrv09.home.tnetconsulting.net> <utn4m5$al3$3@tncsrv09.home.tnetconsulting.net> <utnosp$3u4gh$1@dont-email.me> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sat, 23 Mar 2024 23:41:06 -0000 (UTC) Injection-Info: tncsrv09.home.tnetconsulting.net; posting-host="omega.home.tnetconsulting.net:198.18.1.140"; logging-data="5843"; mail-complaints-to="newsmaster@tnetconsulting.net" User-Agent: Mozilla Thunderbird Content-Language: en-US In-Reply-To: <utnosp$3u4gh$1@dont-email.me> Bytes: 6665 Lines: 216 On 3/23/24 18:33, none wrote: > Yes I have this. Good! > Don't I need to change the spaces to tabs in the m4 files? Yes. Yes you do. Good catch -> call. Hopefully the `cat -t` variant makes that a little bit easier to do. Tabs will show up as `^I`. Hopefully this will be clean enough that you can make them work. cat -t perlsrs.m4 --8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<-- divert(-1) # Copyright (c) 2004 by Mark Kramer <admin@asarian-host.net> #^IAll rights reserved. # Copyright (c) 1988, 1993 #^IThe Regents of the University of California. All rights reserved. # # By using this file, you agree to the terms and conditions set # forth in the LICENSE file which can be found at the top level of # the sendmail distribution. # # divert(0) VERSIONID(`$Id: 8.13.perlsrs.m4,v 1.0 2004/08/21 13:15:43 mkramer Exp $') ifdef(`_MAILER_DEFINED_',,`errprint(`*** WARNING: MAILER() should be before HACK(perlsrs)')') LOCAL_CONFIG # SRS socket maps Kreverse_srs socket local:/var/run/socketmapd.sock Kmake_srs socket local:/var/run/socketmapd.sock # SRS regex map Kis_srs regex ^<?SRS[01][=+-].* MAILER_DEFINITIONS SEnvFromSMTP R$*^I^I$: $(make_srs $1 $) LOCAL_RULESETS ################################################################### ### Local SRS Macros^I^I^I^I^I^I### ################################################################### SIsSrs R$*^I^I^I^I$: $(is_srs $1 $) R$@^I^I^I^I$@ YES R$*^I^I^I^I$@ NO SReverseSrs R$*^I^I^I^I$: $1 $>IsSrs $1 R$* NO^I^I^I^I$@ $1 R$* YES^I^I^I^I$@ $(reverse_srs $1 $) LOCAL_RULE_0 # Do we need to reverse SRS address? R$*^I^I^I^I$: $>ReverseSrs $1 -->8---->8---->8---->8---->8---->8---->8---->8---->8---->8---->8---->8---->8-- cat -t perlsrs-old.m4 --8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<-- divert(-1) # Copyright (c) 2004 by Mark Kramer <admin@asarian-host.net> #^IAll rights reserved. # Copyright (c) 1988, 1993 #^IThe Regents of the University of California. All rights reserved. # # By using this file, you agree to the terms and conditions set # forth in the LICENSE file which can be found at the top level of # the sendmail distribution. # # divert(0) VERSIONID(`$Id: perlsrs.m4,v 1.2 2004/04/01 20:37:09 mkramer Exp $') ifdef(`_MAILER_DEFINED_',,`errprint(`*** WARNING: MAILER() should be before HACK(perlsrs)')') LOCAL_CONFIG # Forward SRS program map Kenvfrom2srs program /etc/mail/srs/envfrom2srs.pl # Reverse SRS program map Ksrs2envto program /etc/mail/srs/srs2envto.pl # SRS regex map Kis_srs regex ^<?SRS[01][=+-].* MAILER_DEFINITIONS SEnvFromSMTP R$*@$=w$*^I^I$@ $1@$2$3^I^I^IDon't SRS rewrite local (class w) sending domains. R$*^I^I^I$: $(envfrom2srs $1 $)^I^ISRS rewrite non-local (!class w) sending domains. LOCAL_RULESETS ################################################################### ### Local SRS Macros^I^I^I^I^I^I### ################################################################### SIsSRS R$*^I^I^I^I$: $(is_srs $1 $) R$@^I^I^I^I$@ YES R$*^I^I^I^I$@ NO SReverseSrs R$*^I^I^I^I$: $1 $>IsSRS $1 R$* NO^I^I^I^I$@ $1 R$* YES^I^I^I^I$@ $(srs2envto $1 $) LOCAL_RULE_0 # Do we need to reverse SRS address? R$*^I^I^I^I$: $>ReverseSrs $1 -->8---->8---->8---->8---->8---->8---->8---->8---->8---->8---->8---->8---->8-- cat -t socketmap.m4 --8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<-- divert(-1) # Copyright (c) 2004 by Mark Kramer <admin@asarian-host.net> #^IAll rights reserved. # Copyright (c) 1988, 1993 #^IThe Regents of the University of California. All rights reserved. # # By using this file, you agree to the terms and conditions set # forth in the LICENSE file which can be found at the top level of # the sendmail distribution. # # divert(0) ========== REMAINDER OF ARTICLE TRUNCATED ==========