> Ja jaz sem to naredil in pognal sendmail -bt, pa mi tisto ni
> bilo kaj dosti jasno.
Sendmail pozenes s stikalom -bt in dobis odziv:
ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
Enter <ruleset> <address>
Zgoraj lepo pise, da pravilo 3 ni avtomatsko uporabljeno, torej naslov
resujes s sintakso:
> 3,0 naslov
dobil bos vec vrstic izpisa oblike:
rewrite: <ruleset> input/returns: <adress>
Ko to vidis, ti je jasno, kako si pravila podajajo naslov in kako poteka
razresevanje naslova.
Zadnja vrstica ima obliko:
rewrite: ruleset 0 returns: $# "mailer" $@ "domena" . $: "alias" < @
"domena" . >
in ti pove kam bo mail poslan. Koncni uporabnik se ni dolocen, ampak alias,
saj bo sel naslov se skozi eno sito - aliases.
(vrstni red razresevanja naslova je namrec konf. file -> alias file ->
password file)
Mailer je lahko local ali smtp, odvisno od domene. Ce je local, potem domena
ni navedena.
Npr. za remote naslov [EMAIL PROTECTED], moj sendmail -bt pravi takole:
> 3,0 [EMAIL PROTECTED]
rewrite: ruleset 3 input: lugos-list @ lugos . si
rewrite: ruleset 96 input: lugos-list < @ lugos . si >
rewrite: ruleset 96 returns: lugos-list < @ lugos . si . >
rewrite: ruleset 3 returns: lugos-list < @ lugos . si . >
rewrite: ruleset 0 input: lugos-list < @ lugos . si . >
rewrite: ruleset 98 input: lugos-list < @ lugos . si . >
rewrite: ruleset 98 returns: lugos-list < @ lugos . si . >
rewrite: ruleset 95 input: < > lugos-list < @ lugos . si . >
rewrite: ruleset 95 returns: lugos-list < @ lugos . si . >
rewrite: ruleset 0 returns: $# smtp $@ lugos . si . $: lugos-list < @
lugos . si . >
>
za lokalni naslov [EMAIL PROTECTED] pa:
> 3,0 [EMAIL PROTECTED]
rewrite: ruleset 3 input: franc @ eurocom . si
rewrite: ruleset 96 input: franc < @ eurocom . si >
rewrite: ruleset 96 returns: franc < @ eurocom . si . >
rewrite: ruleset 3 returns: franc < @ eurocom . si . >
rewrite: ruleset 0 input: franc < @ eurocom . si . >
rewrite: ruleset 98 input: franc < @ eurocom . si . >
rewrite: ruleset 98 returns: franc < @ eurocom . si . >
rewrite: ruleset 0 returns: $# local $: @ franc
>
lp, Franc.