When I was trying to get my mail working under gentoo, and asked about
this error:
> Jan 17 22:56:14 posh sm-mta[16557]: i0HBuE2p016557: ruleset=check_mail,
> arg1=<[EMAIL PROTECTED]>, relay=localhost.localdomain
> [127.0.0.1],
> reject=553 5.1.8 <[EMAIL PROTECTED]>...
> Domain of sender address [EMAIL PROTECTED] does not exist
> Jan 17 22:56:14 posh sm-mta[16557]: i0HBuE2p016557:
> from=<[EMAIL PROTECTED]>,
> size=3150, class=0, nrcpts=0, bodytype=7BIT, proto=ESMTP, daemon=MTA,
> relay=localhost.localdomain [127.0.0.1
I got helpful advice from the list, especially Tony Green and Grant
Byers. I verified that I could resolve domains like "slug.org.au" from
the command line okay.
Tony explained that the error meant sendmail couldn't resolve any
external hosts, and suggested that it's because I'm blocking DNS
requests.
Turning on FEATURE(accept_unresolvable_domains) fixes the problem, at
the cost of more spam getting through to me. So I'm trying to improve
this.
Tony said:
> Are you allowing both port 53 UDP and TCP through? Since DNS requests
> go out by both TCP and UDP (depending on the query size), this could be
> what your problem is.
I had a look in /etc/services (on both RH7.2 and my new Gentoo
install), and both have:
domain 53/tcp nameserver # name-domain server
domain 53/udp nameserver
I compared my /etc/resolv.conf file for both (set up by dhcp), and they
are identical except for the domain line (NOTE: my local domain is
called, unimaginatively, "localdomain"):
RH7.2 has:
domain rivrw1.nsw.optushome.com.au
gentoo has:
domain localdomain
Which is right? Both have:
search rivrw1.nsw.optushome.com.au
Both have /etc/hostt.conf:
order hosts,bind
Is there any way to test whether I'm blocking tcp or udp DNS requests on
port 53? Is there a way to double-check that /etc/services is actually
being used?
Is it possible that sendmail isn't talking to "rivrw1.nsw.optushome.com.au"
when it tries to resolve the domain? (I'm not running DNS locally, we
only have 2.5 machines on the network.)
luke
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html