mmmm...Waktu itu Tuesday, 6 October 98, Si-poer nulis:


SP> mmm..,boleh tahu scriptnya di /etc/sendmail.cf, saya punya belum ada tuh.
SP> trus nambahinnya dimana ??, di baris paling bawah boleh nggak ??

mmmm...anda pake slackware kan..? ini coba deh tambain di sendmail.cf
anda spt ini :

# database ip network yang diperbolehkan merelay..
F{LocalIP} /etc/mail/ip_allow
##isi filenya mis --> 192.168.1.     192.168.1.

# nama host/domain yang diperbolehkan untuk merelay
F{LocalNames} /etc/mail/name_allow
##isi filenya mis ----> makro.co.id   :)

#### Check diantara script ini kalo udah ada yang ada nggak usah dimasukin lagi...####
Scheck_rcpt
# first: get client address
R$+                     $: $(dequote "" $&{client_addr} $) $| $1
R0 $| $*                $@ ok           client_addr is 0 for sendmail -bs
R$={LocalIP}$* $| $*    $@ ok           from here
# next: get client name
R$* $| $+               $: $(dequote "" $&{client_name} $) $| $2
R $| $*                 $@ ok           no client name: directly invoked
#R$- $| $*              $@ ok           for those without full DNS...
R$*$=w $| $*            $@ ok           from here
R$*$={LocalNames} $| $* $@ ok           from allowed system
# now check other side
R$* $| $*               $: $>3 $2
# remove local part
R$*<@$+.>$*             $: $>remove_local $1<@$2.>$3
# still something left?
R$*<@$+>$*              $#error $@ 5.7.1 $: 551 we do not relay

Sremove_local
# remove RelayTo part (maybe repeatedly)
R$*<@$*$={RelayTo}.>$*          $>3 $1 $4
R$*<@$=w.>$*                    $: $>remove_local $>3 $1 $3


SjunkIP
# lookup IP in database
# full IP address
R$-.$-.$-.$-    $: $(junk $1.$2.$3.$4 $)
# class C net
R$-.$-.$-.$-    $: $(junk $1.$2.$3 $: $1.$2.$3.$4 $)
# class B net
R$-.$-.$-.$-    $: $(junk $1.$2 $: $1.$2.$3.$4 $)
# class A net
R$-.$-.$-.$-    $: $(junk $1 $: $1.$2.$3.$4 $)

Scheck_relay
# check IP
R$+ $| $+       $: $1 $| $>junkIP $2
R$+ $| $*@JUNK  $#error $@ 5.7.1 $: $2
# check hostname
R$+ $| $+       $: $>junk <@$1>
R$*<@$*@JUNK>$* $#error $@ 5.7.1 $: $2

oke deh gitu aja....





    Best Regards,


       Akbar..

Email:[EMAIL PROTECTED]



----------------------------------------------------------------------
Unsubscribe: [EMAIL PROTECTED] 
Archive: http://www.vlsm.org/linux-archive/
Linux CD: [EMAIL PROTECTED]



Kirim email ke