FreeBSD 5.4 && sendmail 8.13.3 && no-DNS

Matthias Apitz guru at Sisis.de
Sat Sep 24 02:47:57 PDT 2005



Hi,

When I'm at home with my FreeBSD 5.4 and connected through an ISDN
line with my company I've no DNS but I want to send e-mail as well;

I've configured a submit.mc and made the submit.cf saying that
e-mail should just go without DNS to some SMART_HOST ('proxy')
and removed 'dns' from the /etc/nsswitch.conf file, because it
is described that way in:

http://www.sendmail.org/m4/features.html

nodns

If you aren't running DNS at your site (for example, you are
UUCP-only connected). It's hard to consider this a "feature",
but hey, it had to go somewhere. Actually, as of 8.7 this is a
no-op -- remove "dns" from the hosts service switch entry instead. 

Here are my files:

$ fgrep proxy /etc/hosts
10.10.10.1      proxy nntp

$ ls -l /etc/resolv.conf
-rw-r--r--  1 root  wheel  0 24 sep 11:10 /etc/resolv.conf

$ cat /etc/nsswitch.conf
group: compat
group_compat: nis
hosts: files
networks: files
passwd: compat
passwd_compat: nis
shells: files


But the sendmail can't resolve 'proxy' to 10.10.10.1 from
the /etc/hosts file:

$ sendmail -v -t < tm
guru at unixland.de... Deferred: Name server: proxy: host name lookup failure
$ ping proxy
PING proxy (10.10.10.1): 56 data bytes
64 bytes from 10.10.10.1: icmp_seq=0 ttl=253 time=42.540 ms
64 bytes from 10.10.10.1: icmp_seq=1 ttl=253 time=42.602 ms

It also does not work too, if I put 10.10.10.1 in the submit.cf
DS10.10.10.1

I'm missing something?

Thx in advance

	Matthias


$ cat /etc/mail/rebelion.Sisis.de.submit.mc
FEATURE(`masquerade_envelope')dnl
FEATURE(`accept_unresolvable_domains')dnl
FEATURE(`nocanonify')dnl
FEATURE(`accept_unqualified_senders')dnl

divert(0)dnl
3 gshapiro 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
# define(`confBIND_OPTS', `WorkAroundBrokenAAAA')dnl
dnl
dnl If you use IPv6 only, change [127.0.0.1] to [IPv6:::1]
FEATURE(`msp', `[127.0.0.1]')dnl
#
define(`confDIRECT_SUBMISSION_MODIFIERS', `C')dnl
define(`SMART_HOST', `proxy')dnl
define(`confBIND_OPTS', `-DNSRCH -DEFNAMES')dnl

-- 
Matthias Apitz / Sisis Informationssysteme GmbH
Gruenwalder Weg 28g / D-82041 Oberhaching
Fon: ++49 89 / 61308-351, Fax: -399, Mobile ++49 170 4527211
http://www.sisis.de/


More information about the freebsd-questions mailing list