SUMMARY: outgoing domain in mail

From: Marcelo Maraboli (maraboli@disca.utfsm.cl)
Date: Thu Oct 17 1996 - 07:10:57 CDT


Hello admins..

I received replies to my query...thanks to

Claus Assmann
Kevin Woods
Michael Gordon

for thier kind help...

The original question was:

>hello admins..
>
>I have a real big problem..
>
>I have many small domains which my server is their mailhost and mailserver,
>meaning that i have more than 10 domains in my /etc/sendmail.cw file.
>
>This works just fine, but people CAN receive mail sent to any of
>these domains and send mail as any if these domains, because
>their account exists in the machine....in example..
>
>I can receive mail as:
>
>maraboli@disca.utfsm.cl
>maraboli@ociv.utfsm.cl
>maraboli@ind.utfsm.cl
>
>and I only belong to "disca.utfsm.cl"
>
>As for sending mail, all the mail from inside Unix is sent as the REAL
>machine's name... "itata.disca.utfsm.cl"
>
>so outgoing mail from any account goes ONLY as : maraboli@itata.disca.utfsm.cl
>
>How can I solve this Slight mess ??

This was not understood at first, but was made with a few emails..

The answers were that:

- use any sendmail and get some patches available (tricks with the Rulesets).
- you can't
- use the new Sendmail 8.8 with "virtusertable" feature.

Since Sendmail 8.8 incorporated this feature it was not necessary to
look at old patches.

The virtusertable has to look like this..

user1@ind.utfsm.cl user1
user2@ind.utfsm.cl user2
@ind.utfsm.cl unknown

user3@ociv.utfsm.cl user3
user4@ociv.utfsm.cl user4
@ociv.utfsm.cl unknown

maraboli@disca.utfsm.cl maraboli
@disca.utfsm.cl unknown

This way ONLY user1 and user2 will RECEIVE mail as belonging to
the ind.utfsm.cl domain, and user3 and user4 willl ONLY receive mail
as belonging to ociv.utfsm.cl domain...etc.

any other user in the @ind.utfsm.cl domain will be unknown.

You have to use this table with DBM or NDBM...

I have not tested this yet, i AM in the process of configuring a standalone
machine to do the test...don't want to mess the mailserver !!

Thanks for all your help..

-- 
Marcelo Maraboli R.                            |--| |-[]-| |--|  C: uCapacitor
                                               |   C  I   C   |  I: Electronic
Jefe de Area de Redes (Network Administrator)  |              |       Island
Direccion Central de Servicios Computacionales |------()------|  V: Voltage
Federico Santa Maria University                    V + -
Chile                                           
                                                "Quantum Electronics"       
Phone: +56 32 665053                   The Beginning of the New Electronic Age
email:maraboli@dcsc.utfsm.cl              "Quantum Electronics, That's COOL!"
WWW : http://www.disca.utfsm.cl/~maraboli       "Shut up, Beavis!" 
--------------------------------------------------------------------------/



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:11:13 CDT