Sendmail insists on looking up DNS info for destination domain names

Sendmail insists on looking up DNS info for destination domain names

am 21.03.2006 15:21:17 von chadmjohn

First, I am a complete sendmail neophyte so please forgive me.

In Solaris 8 sendmail all I had to do was set "DS=name.of.smtp.server"
in /etc/mail/sendmail.cf and all my non local mail would be forwarded
to the named mail server.

In solaris 9 (using V10 Sendmail) Setting "DS=name.of.smtp.server" in
submit.cf (even tried it in all the .cf files) doesn't work. The
system attempts to lookup the domain of all submitted email:

~~~ snip ~~~
# mailx -v user@blah.org
Subject: test
test msg.
..
EOT
root@sqcdev # blah.org: Name server timeout
user@blah.org... Transient parse error -- message queued for future
delivery
user@blah.org... queued
~~~ /snip ~~~

Now I know the 'proper' way is to build what you want from the .mc
files, but as I said, I know virtually nothing about sendmail and
unless someone wants to hold my hand the entire way don't have time for
the research.

All I really want to know is if I can 'fix' the *.cf files to do what I
want. I need sendmail to submit all non local mail to a centralized
mail server.

Any help is truly appreciated as I DON'T HAVE A CLUE!

Thanks,

Chad.

Re: Sendmail insists on looking up DNS info for destination domain names

am 21.03.2006 15:39:07 von Andrzej Adam Filip

"chadmjohn" writes:

> First, I am a complete sendmail neophyte so please forgive me.
>
> In Solaris 8 sendmail all I had to do was set "DS=name.of.smtp.server"
> in /etc/mail/sendmail.cf and all my non local mail would be forwarded
> to the named mail server.
>
> In solaris 9 (using V10 Sendmail) Setting "DS=name.of.smtp.server" in
> submit.cf (even tried it in all the .cf files) doesn't work. The
> system attempts to lookup the domain of all submitted email:
>
> ~~~ snip ~~~
> # mailx -v user@blah.org
> Subject: test
> test msg.
> .
> EOT
> root@sqcdev # blah.org: Name server timeout
> user@blah.org... Transient parse error -- message queued for future
> delivery
> user@blah.org... queued
> ~~~ /snip ~~~
>
> Now I know the 'proper' way is to build what you want from the .mc
> files, but as I said, I know virtually nothing about sendmail and
> unless someone wants to hold my hand the entire way don't have time for
> the research.
>
> All I really want to know is if I can 'fix' the *.cf files to do what I
> want. I need sendmail to submit all non local mail to a centralized
> mail server.
>
> Any help is truly appreciated as I DON'T HAVE A CLUE!

There is a special "hack" to disable DNS lookups in submit.mc
(beside turing it off in sendmail.mc):

define(`confDIRECT_SUBMISSION_MODIFIERS',`C')dnl

URL(s):
http://anfi.homeunix.net/sendmail/dialup10.html

--
[pl2en Andrew] Andrzej Adam Filip : anfi@priv.onet.pl : anfi@xl.wp.pl
http://www.sendmail.org/faq/ http://anfi.homeunix.net/sendmail/
Before You Ask: http://anfi.homeunix.net/sendmail/B4UAsk-Sendmail.html

Re: Sendmail insists on looking up DNS info for destination domain names

am 21.03.2006 16:10:05 von chadmjohn

Excellent, I finally found the same thing you did. For those of us who
are not sendmail people you can simply set the following option
(assuming you have the feature, which stock sol9 does)

O DirectSubmissionModifiers=C

Bingo! Worked fine.

Re: Sendmail insists on looking up DNS info for destination domainnames

am 24.03.2006 23:05:20 von Joe Creel

chadmjohn wrote:
> First, I am a complete sendmail neophyte so please forgive me.
>
> In Solaris 8 sendmail all I had to do was set "DS=name.of.smtp.server"
> in /etc/mail/sendmail.cf and all my non local mail would be forwarded
> to the named mail server.
>
> In solaris 9 (using V10 Sendmail) Setting "DS=name.of.smtp.server" in
> submit.cf (even tried it in all the .cf files) doesn't work. The
> system attempts to lookup the domain of all submitted email:
>
> ~~~ snip ~~~
> # mailx -v user@blah.org
> Subject: test
> test msg.
> .
> EOT
> root@sqcdev # blah.org: Name server timeout
> user@blah.org... Transient parse error -- message queued for future
> delivery
> user@blah.org... queued
> ~~~ /snip ~~~
>
> Now I know the 'proper' way is to build what you want from the .mc
> files, but as I said, I know virtually nothing about sendmail and
> unless someone wants to hold my hand the entire way don't have time for
> the research.
>
> All I really want to know is if I can 'fix' the *.cf files to do what I
> want. I need sendmail to submit all non local mail to a centralized
> mail server.
>
> Any help is truly appreciated as I DON'T HAVE A CLUE!
>
> Thanks,
>
> Chad.
>
look for a line in the submit.cf like this
# pass to name server to make hostname canonical
R$* $| $* < @ $* > $* $: $2 < @ $[ $3 $] > $4

and put a # sign in front of the R

# pass to name server to make hostname canonical
#R$* $| $* < @ $* > $* $: $2 < @ $[ $3 $] > $4

This will not do any resolution attempts it will pass the mail on to the
server specified in the DS setting