How do I make sendmail (or other mail transfer agent) on FreeBSD
or Linux serve multiple virtual domains? E.g. I want my machine
to accept mail addressed to t...@domain1.com, di...@domain2.com,
ma...@domain3.com, ...
I know how to make a FreeBSD machine listen on the I.P. addresses
of domain1.com, domain2.com, and domain3.com (using ifconfig alias).
I don't know how to do this for a Linux machine.
TIA.
orville
===================================================================
Orville R. Weyrich, Jr. Weyrich Computer Consulting
mailto:orv...@weyrich.com http://www.weyrich.com
-------------------------------------------------------------------
I don't know a whole lot about sendmail... I have been using Exim MTA
here, as it has a very easy to understand and well commented
configuration file, along with a well written doc file. Virtual domains
are explained very well in the doc file. Exim is one of the FreeBSD
ports, and installs quite easily... (I've also installed it on two Linux
machines) I had initially tried to use Smail, but documentation was
lacking, and I've found Exim to quite friendly and powerful.
--
------------------------
Dana Booth <da...@oz.net>
------------------------
>How do I make sendmail (or other mail transfer agent) on FreeBSD
>or Linux serve multiple virtual domains? E.g. I want my machine
>to accept mail addressed to t...@domain1.com, di...@domain2.com,
> ma...@domain3.com, ...This is how I do it.
In /etc/sendmail.cf have these lines
Cwlocalhost
Cw virualdomain1.com
Cw virualdomain2.com
>I don't know how to do this for a Linux machine.
Read /usr/src/linux/Documentation/networking.alias.txt Basically login
as root and type these commands:
# First virtual host
ifconfig eth0:0 1.2.3.4
route add -host 1.2.3.4 dev eth0:0
# Next virtual host
ifconfig eth0:1 1.2.3.5
route add -host 1.2.3.5 dev eth0:1
and so on. Make sure your nameserver is setup correctly for the virual
domains and you're away.
> How do I make sendmail (or other mail transfer agent) on FreeBSD
> or Linux serve multiple virtual domains? E.g. I want my machine
> to accept mail addressed to t...@domain1.com, di...@domain2.com,
> ma...@domain3.com, ...
Consider switching to qmail. http://www.qmail.org. You can list
domain1.com, domain2.com, and domain3.com in control/locals, which
makes all hosts equivalent. Or you can keep the namespace separate by
adding them to control/virtualdomains. Add entries to the namespaces
with one file each in ~alias. This lets you direct mail to
t...@domain1.com and t...@domain2.com to different users.
--
-russ <nel...@crynwr.com> http://www.crynwr.com/~nelson | Freedom is the
Crynwr Software supports freed software | PGPok | primary cause of peace.
521 Pleasant Valley Rd. | +1 315 268 1925 voice | Taxes feed the naked
Potsdam, NY 13676-3213 | +1 315 268 9201 FAX | and clothe the hungry.
comp.os.linux.answers
It is a moderated group and posts all the linux howto's. It has a few on
the subject of vitual hosts, and just about anything that is asked in this
group.
--
Stan A. Rogge (Systems Analyst) sro...@telsarpc.harmonic.com
Harmonic System Incorporated, 701 Fourth Avenue South, Suite 320,
Minneapolis MN 55415
Telephone: 612-321-4060 Fax- 612-672-3549
Web: http://www.telsarpc.harmonic.com FTP: ftp://telsarpc.harmonic.com
There's some good info on how to do this on http://www.sendmail.org.
I'd also recommend having handy a copy of the O'Reilly sendmail book
when you do this kind of stuff (O'Reilly is at http://www.ora.com).
Jim
I second this - I switched to qmail for the virtual domain facilities,
and am very glad I did - it's well worth the effort to learn.
Personally, I think qmail should be the default mailer for FreeBSD.
I also happen to liken qmail to snowboards, and sendmail to skis - I
know of lots of people who have moved from skis to snowboards and from
sendmail to qmail, but none who have done the opposite :-)
Gary
--
pub 1024/C001D00D 1996/01/22 Gary Howland <ga...@hotlava.com>
Key fingerprint = 0C FB 60 61 4D 3B 24 7D 1C 89 1D BE 1F EE 09 06
> I second this - I switched to qmail for the virtual domain facilities,
> and am very glad I did - it's well worth the effort to learn.
> Personally, I think qmail should be the default mailer for FreeBSD.
You can do all this with sendmail and a mailertable.
> I also happen to liken qmail to snowboards, and sendmail to skis - I
> know of lots of people who have moved from skis to snowboards and from
> sendmail to qmail, but none who have done the opposite :-)
Really? I'll stay on skis. I prefer to remain dry while I
ski. :-)
Chris
--
Chris Mauritz | Network Security & Design
Network Engineer | 56k-T3 connectivity to the Net.
ri...@mordor.net <--fun biz--> | http://www.new-york.net/
ftp://sunsite.unc.edu/pub/Linux/docs/HOWTO/unmaintained/mini/Virtual-Web
There's a great section on configuring Sendmail to do just that.
Been using it for a year or so now, no problems.
Chris Harshman, sysadmin | "A witty saying proves nothing."
hars...@paradigm.uor.edu | -- Voltaire
http://paradigm.uor.edu/~harshman |