Hi,
I'm having massive problems configuring Sendmail. First, some background:
I have Sendmail installed on a Linux box that is a webserver/DB server for
two sites. Email for these two websites is handled by a completely
different (Windows NTMail) machine.
The problem I've got is that sendmail seems to think both domains are local
everything I can possibly think of - DNS, sendmail files, system files, etc.
Here is the output from: sendmail -d0.4 -bv root
Version 8.12.5
Compiled with: DNSMAP LOG MATCHGECOS MIME7TO8 MIME8TO7 NAMED_BIND
NETINET NETUNIX NEWDB PIPELINING SCANF USERDB XDEBUG
Canonical name: freetrawl.com
UUCP nodename: freetrawl.com
a.k.a.: [212.113.198.51]
a.k.a.: [127.0.0.1]
a.k.a.: freetrawl
a.k.a.: localhost.localdomain
a.k.a.: [212.113.198.52]
a.k.a.: www.policyplus.com
a.k.a.: [212.113.198.50]
a.k.a.: willow.jpci.net
a.k.a.: www.freetrawl.com
============ SYSTEM IDENTITY (after readcf) ============
(short domain name) $w = freetrawl
(canonical domain name) $j = freetrawl.com
(subdomain name) $m = com
(node name) $k = freetrawl.com
========================================================
root... deliverable: mailer local, user root
/etc/mail/local-host-names =
lists.policyplus.com
/etc/hosts =
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 freetrawl localhost.localdomain localhost
/etc/mail/relay-domains =
lists.policyplus.com
/etc/mail/sendmail.mc =
divert(-1)
#
# PolicyPlus / FreeTrawl Sendmail configuration
# Created: 28/06/2001
# To compile into .cf:
# m4 /etc/mail/sendmail.mc > /etc/sendmail.cf
#
divert(0)
include(`/usr/share/sendmail-cf/m4/cf.m4')
dnl **Globals**
VERSIONID(`PolicyPlus/FreeTrawl Sendmail')
OSTYPE(linux)dnl
DOMAIN(generic)dnl
#DAEMON_OPTIONS(`Name=lists.policyplus.com, Addr=212.113.198.52')
#DAEMON_OPTIONS(`Name=localhost.localdomain, Addr=127.0.0.1')
dnl **Defines**
define(`ALIAS_FILE', `/etc/aliases')dnl
define(`ALIAS_FILE', `/etc/majordomo.aliases')dnl
define(`STATUS_FILE', `/var/log/sendmail.st')dnl
#define(`confDOMAIN_NAME',`lists.policyplus.com')
dnl **Features**
dnl FEATURE(`smrsh',`/usr/sbin/smrsh')dnl
FEATURE(`mailertable',`hash -o /etc/mail/mailertable')dnl
FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable')dnl
FEATURE(use_cw_file)dnl
FEATURE(use_ct_file)dnl
FEATURE(relay_hosts_only)dnl
FEATURE(access_db)dnl
FEATURE(blacklist_recipients)dnl
dnl **Mailers**
MAILER(local)dnl
MAILER(smtp)dnl
dnl **Trusted Users**
Tmajordomo
(The commented fields I have been messing about with to try and get it
working, to no avail)
In short, there is no reference to "freetrawl.com" and "policyplus.com" in
any of the Sendmail configuration files, so one presumes it is simply
picking this up from DNS because 212.113.198.51 and 212.113.198.52 are bound
to the machine (as its the webserver).
I have tried manually adding the correct SMTP server for the two domains in
mailertable as follows:
freetrawl.com smtp:[mail.jpci.net]
policyplus.com smtp:[mail.jpci.net]
..but this only seems to work - bizarrely - for some addresses at the
before.
Basically the only domain sendmail should consider to be local is
"lists.policyplus.com" (its also running Majordomo), and obviously the
various localhost permutations. Everything else should be deemed foreign
and handled accordingly.
Can anyone give any assistance on this?
Regards,
Darren