[TriLUG] Sendmail with virtual hosts (8.11.6)
errol at nouce.net
Mon Jul 8 22:56:44 EDT 2002
Well it seems, I've done all that people have suggested
minus the genericstable. And the mail itself is working for the
virtual hosts; it's just one of the Received headers get's the ip
of the main interface.
So I guess my question would be better phrased, how to I force or make
bind the IP of the virtual interface, rather than the main eth0
I'm using a combination of xinetd, /etc/hosts.allow, and sendmail 8.11.6
(redhat 7.1 install with 8.11.6 manually compiled). By default xinetd is
listening to 0.0.0.0, and sendmail listens to 127.0.0.1. I don't think
xinet hands off the "ip" of the virtual interface to sendmail; so when a
remote mta receives the "helo" and it reverse the connection it gets the
main ip rather than virt.
If anybody has any experience in forcing the IP of a service handled by
xinetd to a daemon, let me know.
I'm going to look into tcpserver (i.e. qmail) and see if it might can be
used to work in place of xinetd.
I have worked with the "bind" option with xinetd, but haven't gotten a
working solution that will let me bind to more than one interface;
although I've seen documentation that shows how to bind ftpd to two
separate local ips.
As for using another MTA, that's not in the books currently. But thanks
for the suggestion of postfix, it cannot be any worse than sendmail :-)
I've personally used qmail and like it, but haven't done virtual hosts
From: Jon Carnes [mailto:jonc at nc.rr.com]
Sent: Sunday, July 07, 2002 2:01 AM
To: trilug at trilug.org; Errol Casey
Subject: Re: [TriLUG] Sendmail with virtual hosts (8.11.6)
- Look at the www.sendmail.org page and look up how to do virtual hosts
with Sendmail (ie use the Generics tables)
- Chuck sendmail and use an MTA that is much more amenable to virtual
hosting (like postfix...)
On Sunday 07 July 2002 12:07 am, Errol Casey wrote:
> I've noticed an issue in a personal configuration of sendmail with
> virtual host.
> In the received headers, of a received message from the virtual host
> the correct hostname is listed, followed by the hostname and IP of the
> domain on the main interface hosting the virtual host.
> Main.com 192.168.0.1 (eth0)
> Virt.com 192.168.0.2 (eth0:0)
> Virt2.com 192.168.0.3 (eth0:1)
> Received By: virt.com (main.com [192.168.0.1])
> It seems in my investigation, that the $_ macro is expanded by doing
> some kinda of reverse lookup, and ident call (which is disabled on the
> hosting box).
> But it seems, sendmail is sending out possibly on the 22.214.171.124
> interface instead of the 192.168.0.2.
> I've found brief documentation on DaemonOptions and ClientOptions, and
> it would seem I might want to "bind" the interface using M=b; but this
> hasn't worked so far for me.
> Does anybody have a working configuration with virtual hosts, that
> they might could share to educate me.
> I'm using Sendmail 8.11.6 on this host. Sending and receiving for both
> main and virtual hosts is working fine, it's just this header issue
> I'm trying to resolve.
More information about the TriLUG