Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
General
cancel
Showing results for 
Search instead for 
Did you mean: 

accept_unresolvable_domains feature doesn't work?

Sergey Akifiev_1
Frequent Advisor

accept_unresolvable_domains feature doesn't work?

Hello.
HPUX guru, would you please clarify this point for me?
I have hpux 11.23 box placed in local network and without DNS access. Currently I want to forward mail targeted for certain domain to certain smtp-relay.
This is how i set things up:
- using /usr/newconfig/etc/mail/cf/cf/gen_cf i included `Accept unresolvable domains' and `Mailertable' features (9 and 19 respectively).
- installed sendmail.cf in place
- created /etc/mail/mailertable with line `domain.ru esmtp:[relay-ip-address]
- built map for it
- restarted sendmail

And this is what i've got. Mail targeted for taht domain got stuck in mail queue with messages:

Feb 18 12:17:50 hydra3 sendmail[24125]: n1I7rZm13927: to=sakifev@domain.ru, delay=01:24:15, mailer=esmtp, pri=540143, relay=[xxx.xxx.xxx.xxx], dsn=4.4.3, stat=Transient parse error -- message queued for future delivery

`sendmail -bv' told me this:
sakifev@domain.ru... deliverable: mailer esmtp, host [xxx.xxx.xxx.xxx], user sakifev@domain.ru

But with `sendmail -v' i've got this:
domain.ru: Name server timeout
sakifev@domain.ru... Transient parse error -- message queued for future delivery

What for "Name server" could be used with FEATURE(accept_unresolvable_domains)?

And last: in /etc/nsswitch.conf i have this:
hosts: files [NOTFOUND=continue UNAVAIL=continue] dns
#ipnodes: files [NOTFOUND = return] dns

So please help me to resolve this issue. For religious reasons :-) i do not want to put domain.ru record in /etc/hosts :-)

Thanks in advance.
2 REPLIES
VK2COT
Honored Contributor

Re: accept_unresolvable_domains feature doesn't work?

Hello,

"accept_unresolvable_domains" is a feature
for accepting delivery of messages from
unresolvable domains locally, not to
send them!

Check several other threads (one of them
was recent one with four methods how
to resolve your issue). Just search
for recent postings on how to set up
sendmail without DNS.

Cheers,

VK2COT
VK2COT - Dusan Baljevic
Sergey Akifiev_1
Frequent Advisor

Re: accept_unresolvable_domains feature doesn't work?

I think you're not quite right about purpose of that feature. I did small test on other version of sendmail (8.14.3. and on other platform, actually).

With that feature:
[sergey@freebsd /etc/mail]$ grep accept_unresolvable_domains freebsd.domain.ru.mc
FEATURE(accept_unresolvable_domains)
[sergey@freebsd /etc/mail]$ sudo make install
/usr/bin/m4 -D_CF_DIR_=/usr/share/sendmail/cf/ /usr/share/sendmail/cf/m4/cf.m4 freebsd.domain.mc > freebsd.domain.ru.cf
install -m 444 freebsd.domain.ru.cf /etc/mail/sendmail.cf
install -m 444 freebsd.domain.ru.submit.cf /etc/mail/submit.cf
[sergey@freebsd /etc/mail]$ sudo make restart
Restarting: sendmail sendmail-clientmqueue.
[sergey@freebsd /etc/mail]$ echo testing... | mailx -s test sergey -f user@blablabladomain.com
[sergey@freebsd /etc/mail]$ tail /var/log/maillog
Feb 18 14:11:39 freebsd sm-mta[32047]: restarting /usr/sbin/sendmail due to signal
Feb 18 14:11:39 freebsd sm-mta[32935]: starting daemon (8.14.3): SMTP+queueing@00:30:00
Feb 18 14:11:39 freebsd sm-msp-queue[32051]: restarting /usr/sbin/sendmail due to signal
Feb 18 14:11:39 freebsd sm-msp-queue[32939]: starting daemon (8.14.3): queueing@00:30:00
Feb 18 14:12:08 freebsd sendmail[32944]: n1IBC8lR032944: Authentication-Warning: freebsd.domain.ru: sergey set sender to user@blablabladomain.com using -f
Feb 18 14:12:08 freebsd sendmail[32944]: n1IBC8lR032944: from=user@blablabladomain.com, size=37, class=0, nrcpts=1, msgid=<200902181112.n1IBC8lR032944@freebsd.domain.ru>, relay=sergey@localhost
Feb 18 14:12:08 freebsd sm-mta[32945]: n1IBC8Vc032945: from=, size=532, class=0, nrcpts=1, msgid=<200902181112.n1IBC8lR032944@freebsd.domain.ru>, proto=ESMTP, daemon=IPv4, relay=localhost [127.0.0.1]
Feb 18 14:12:08 freebsd sendmail[32944]: n1IBC8lR032944: to=sergey, ctladdr=user@blablabladomain.com (1001/1001), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30037, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (n1IBC8Vc032945 Message accepted for delivery)
Feb 18 14:12:08 freebsd sm-mta[32946]: n1IBC8Vc032945: to=, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30817, relay=local, dsn=2.0.0, stat=Sent

And without it:
[sergey@freebsd /etc/mail]$ grep accept_unresolvable_domains freebsd.domain.ru.mc
dnl FEATURE(accept_unresolvable_domains)
[sergey@freebsd /etc/mail]$ sudo make install
/usr/bin/m4 -D_CF_DIR_=/usr/share/sendmail/cf/ /usr/share/sendmail/cf/m4/cf.m4 freebsd.domain.mc > freebsd.domain.cf
install -m 444 freebsd.domain.ru.cf /etc/mail/sendmail.cf
install -m 444 freebsd.domain.ru.submit.cf /etc/mail/submit.cf
[sergey@freebsd /etc/mail]$ sudo make restart
Restarting: sendmail sendmail-clientmqueue.
echo testing... | mailx -s test sergey -f user@blablabladomain.com
[sergey@freebsd /etc/mail]$ tail -100 /var/log/maillog
Feb 18 14:15:05 freebsd sm-mta[32935]: restarting /usr/sbin/sendmail due to signal
Feb 18 14:15:05 freebsd sm-mta[32993]: starting daemon (8.14.3): SMTP+queueing@00:30:00
Feb 18 14:15:05 freebsd sm-msp-queue[32939]: restarting /usr/sbin/sendmail due to signal
Feb 18 14:15:05 freebsd sm-msp-queue[32997]: starting daemon (8.14.3): queueing@00:30:00
Feb 18 14:16:48 freebsd sendmail[33008]: n1IBGmC7033008: Authentication-Warning: freebsd.domain.ru: sergey set sender to user@blablabladomain.com using -f
Feb 18 14:16:48 freebsd sendmail[33008]: n1IBGmC7033008: from=user@blablabladomain.com, size=37, class=0, nrcpts=1, msgid=<200902181116.n1IBGmC7033008@freebsd.domain.ru>, relay=sergey@localhost
Feb 18 14:16:48 freebsd sm-mta[33009]: n1IBGm0p033009: ruleset=check_mail, arg1=, relay=localhost [127.0.0.1], reject=553 5.1.8 ... Domain of sender address user@blablabladomain.com does not exist
Feb 18 14:16:48 freebsd sendmail[33008]: n1IBGmC7033008: to=sergey, ctladdr=user@blablabladomain.com (1001/1001), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30037, relay=[127.0.0.1] [127.0.0.1], dsn=5.6.0, stat=Data format error
Feb 18 14:16:48 freebsd sendmail[33008]: n1IBGmC7033008: n1IBGmC8033008: DSN: Data format error
Feb 18 14:16:48 freebsd sm-mta[33009]: n1IBGm0p033009: from=, size=37, class=0, nrcpts=0, proto=ESMTP, daemon=IPv4, relay=localhost [127.0.0.1]
Feb 18 14:16:48 freebsd sm-mta[33009]: n1IBGm0q033009: from=<>, size=2503, class=0, nrcpts=1, msgid=<200902181116.n1IBGmC8033008@freebsd.domain.ru>, proto=ESMTP, daemon=IPv4, relay=localhost [127.0.0.1]
Feb 18 14:16:48 freebsd sendmail[33008]: n1IBGmC8033008: to=user@blablabladomain.com, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=31061, relay=[127.0.0.1], dsn=2.0.0, stat=Sent (n1IBGm0q033009 Message accepted for delivery)
Feb 18 14:16:48 freebsd sm-mta[33011]: n1IBGm0q033009: to=, delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=32503, relay=blablabladomain.com, dsn=5.1.2, stat=Host unknown (Name server: blablabladomain.com: no data known)
Feb 18 14:16:48 freebsd sm-mta[33011]: n1IBGm0q033009: n1IBGm0p033011: postmaster notify: Host unknown (Name server: blablabladomain.com: no data known)
Feb 18 14:16:48 freebsd sm-mta[33011]: n1IBGm0p033011: to=sergey, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=33527, relay=local, dsn=2.0.0, stat=Sent

I highly doubt it that freebsd team made any patches to make that work.