[98133] in RedHat Linux List
Re: Virtual User Table
daemon@ATHENA.MIT.EDU (Netkiller \(Á¤¼º¿í\))
Fri Nov 6 20:11:31 1998
Date: Sat, 07 Nov 1998 10:09:44 +0900
From: "Netkiller \(Á¤¼º¿í\)" <killer93@nuri.net>
To: redhat-list@redhat.com
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com
$)C
Hi . This is Netkiller..
first, edit sendmail.cf like this..
vi /etc/sendmail.cf
...............................................
# Virtual user table (maps incoming users)
Kvirtuser hash -o /etc/virtusertable.db
# handle virtual users
R$+ < @ $=w . > $: < $(virtuser $1 @ $2 $@ $1 $: @ $) > $1 < @ $2 . >
R<@> $+ + $* < @ $* . >
$: < $(virtuser $1 + * @ $3 $@ $1 $: @ $) > $1 + $2 < @ $3 . >
R<@> $+ + $* < @ $* . >
$: < $(virtuser $1 @ $3 $@ $1 $: @ $) > $1 + $2 < @ $3 . >
R<@> $+ < @ $+ . > $: < $(virtuser @ $2 $@ $1 $: @ $) > $1 < @ $2 . >
R<@> $+ $: $1
R< error : $- $+ > $* $#error $@ $( dequote $1 $) $: $2
R< $+ > $+ < @ $+ > $: $>97 $1
..................................................
second, make the mbt file.
ex) if you want forwarding email info@hosting.com into user@domain.com,
make /etc/mbt file..and add emails..there..
vi mbt
info@hosting.com user@domain.com
info2@hosting2.com user2@domain2.com
thrid, run the makemap
"makamap hash /etc/virtusertable < /etc/mbt"
finally, edit /etc/sendmail.cw file . like this.
vi /etc/sendmail.cw
hosting.com
hosting2.com
and now...restart the sendmail deamon.
"/etc/rc.d/init.d/sendmail restart"
bye.
Shafer Stockton @[<:GT:
>
> I've asked this question before and haven't gotten a reply. I'm hoping
> this time might be different. :)
>
> Has anyone got virtual user tables working in the version of sendmail that
> ships with RedHat 5.1??
>
> ---------------------------
> Shafer Stockton
> Systems Administrator
> Ziemkowski Visions, LLC
> - - - - - - - - - - - - - -
> email: shafer@zvisions.com
> office: 520-639-2817
> pager: 520-646-1115
> ---------------------------
>
> --
> PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
> http://www.redhat.com http://archive.redhat.com
> To unsubscribe: mail redhat-list-request@redhat.com with
> "unsubscribe" as the Subject.
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com http://archive.redhat.com
To unsubscribe: mail redhat-list-request@redhat.com with
"unsubscribe" as the Subject.