[svlug] Sendmail - Aliases and virtual domains

Alvin Oga alvin at planet.fef.com
Fri Nov 20 00:08:07 PST 1998


hi ya hans...

> I just got my Sendmail on my server setup, after reading the Sendmail book ;)
> 
> I've got one question, though, if I have multiple IPs and domains on one
> machine and have one version of Sendmail answering all IP ports, how do I
> configure sendmail to send mail sent to: hans at itavera.com to go to one place
> and hans at cathcart.org to go to another.

a loaded question with many-many possible solutions :-)

- just to receive incoming emails and redirect ?
- to send email locally on the "same server" ?
- to send/receive email to the world so that the envlop has the right domain ?

hummm...I know of a simple step-by-step yukky kludge for smail...
to distinguish incoming/outgoing emails for
joe at itavera.com and joe at cathcart.org...


for just delivery of incoming to different mail boxes...

cathcart# vi /etc/aliases
	#
	# simple/fast answer
	...
	# send incming email elsewhere
	joe at itavera.com:	joe at someplace.somewhere.com
	...

	rest of incoming emails to hans at cathcart.org goes to 
	the mail server, say mail.cathcart.org defined in the DNS 

for incoming/outgoing mail to look like they came from their respective
domains with sendmail... I think you need to tweek some of the
sendmail options... not exactly sure which ones.. that I want to find 
out about too later...

but, am guessing:

	# Mailer table (overriding domains)
	#Kmailertable dbm /etc/mailertable

	# Domain table (adding domains)
	#Kdomaintable dbm /etc/domaintable

	# Generics table (mapping outgoing addresses)
	#Kgenerics dbm /etc/genericstable

	# Virtual user table (maps incoming users)
	#Kvirtuser dbm /etc/virtusertable

	....

	SParse1
	# handle virtual users
	#R$+ < @ $=w . >        $: < $(virtuser $1 @ $2 $@ $1 $: @ $) > $1 < @ $2 . >
	#R<@> $+ + $* < @ $* . >
                        $: < $(virtuser $1 + * @ $3 $@ $1 $: @ $) > $1 + $2 < @ $3 . >
	...etc...

the second-to-final test is:

	telnet mail.itavera.com 25	-> see the banner response
	telnet mail.cathcart.org 25	-> see the banner response

final test...send outgoing email to an independent machine
and look at all the header entries..

#
# step by step info for virtual domains: dns, ftp, email, majordomo, web
#	- donno sendmail :-(
#
http://www.Linux-Consulting.com/FAQ_Virtual

have fun
alvin


--
echo "unsubscribe svlug" | mail majordomo at svlug.org
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ to unsubscribe
see http://www.svlug.org/mdstuff/lists.shtml for posting guidelines.



More information about the svlug mailing list