Re: Override DNS MX information when sending mail to external relay?
- From: theboards <theboards@xxxxxxxxxxx>
- Date: Wed, 30 Sep 2009 07:16:28 -0700 (PDT)
On Sep 30, 2:25 pm, mikea <mi...@xxxxxxxxxxxx> wrote:
theboards <theboa...@xxxxxxxxxxx> wrote in <4a3c5ad4-1dd3-4061-b44a-984bf8655...@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>:
Hi All
I'm having trouble with the sendmail configuration on my Solaris 10
server.
What I'm trying to do is to send all external mail i.e anything with
an @ in it, to a relay other than that specified by my DNS MX records.
I've changed the config/local_only parameter for sendmail to true so
I'm editing /etc/mail/cf/cf/local.mc and using /etc/mail/local.cf.
My local.mc file looks like this:
divert(0)dnl
VERSIONID(`@(#)local.mc 1.1 (Sun) 08/01/06')
OSTYPE(`solaris8')dnl
DOMAIN(`solaris-generic')dnl
FEATURE(`accept_unresolvable_domains')dnl
FEATURE(`accept_unqualified_senders')dnl
FEATURE(`nocanonify')dnl
define(`SMARTHOST', `<mailrelay.domain.co.uk')dnl
FEATURE(`no_default_msa')dnl
DAEMON_OPTIONS(`NAME=NoMTA4, Family=inet, Addr=127.0.0.1')dnl
DAEMON_OPTIONS(`Name=MSA4, Family=inet, Addr=127.0.0.1, Port=587,
M=E')dnl
MAILER(`local')dnl
MAILER(`smtp')dnl
LOCAL_NET_CONFIG
R$* < @ $* .$m. > $* $#esmtp $@ $2.$m $: $1 < @ $2.$m. > $3
and my submit.mc looks like this.
divert(0)dnl
VERSIONID(`$Id: submit.mc,v 8.6.2.4 2002/12/29 03:54:34 ca Exp $')
define(`confCF_VERSION', `Submit')dnl
define(`__OSTYPE__',`')dnl dirty hack to keep proto.m4 from
complaining
define(`_USE_DECNET_SYNTAX_', `1')dnl support DECnet
define(`confTIME_ZONE', `USE_TZ')dnl
define(`confDONT_INIT_GROUPS', `True')dnl
dnl
define(`confDIRECT_SUBMISSION_MODIFERS', `C')dnl
dnl
dnl If you use IPv6 only, change [127.0.0.1] to [IPv6:::1]
FEATURE(`msp', `[127.0.0.1]')dnl
As per instructions found here, here and here.
http://www.sendmail.org/faq/section3.html#3.22
http://www.phase2.net/2007/03/20/sendmail-on-rhel-40-without-dns/
http://www.lildude.co.uk/howto-prevent-sendmail-from-using-dns/
It's not working as intended and I'm at a loss as to how to trouble
shoot this problem.
My snoops show that after local mail submission my server is still
trying to connect the mail relay specified in our DNS MX records.
Any and all help gratefully received.
The square brackets ("[]") are important: they cause MX lookup to not be
done.
--
Mike Andrews, W5EGO
mi...@xxxxxxxxxxxx
Tired old sysadmin
Thanks Mike
I tried that and unfortunately it made no difference.
Can anyone spot any other mistakes or assist me with troubleshooting
advice to allow me to spot and fix my own mistakes?
Thanks
.
- References:
- Prev by Date: Re: Override DNS MX information when sending mail to external relay?
- Next by Date: Re: Override DNS MX information when sending mail to external relay?
- Previous by thread: Re: Override DNS MX information when sending mail to external relay?
- Next by thread: Re: Override DNS MX information when sending mail to external relay?
- Index(es):
Relevant Pages
|