Hi,
Firstly thank-you to Philip and everyone else maintaining or
contributing to exim, I have found configuring and working with exim to
be a pleasure. Not bad for Cambridge :-)
I had two oustanding issues, but while taking the time to compose this
email asking for help I was forced to think them both through and solved
one of them. I'd like them to go in the web digest anyway, so it's
below. The second:
How do I limit a router so that only applies to messages exim is relaing
(in relay_from_hosts).
eg. sender= +relay_from_hosts ?
Provides eveyone@??? => usera,userb,userc@???
------------------------------
# All user aliases at a given domain except the catch-all handler
MYSQL_Q_EVERY_USR=SELECT concat( local_part, '@', domain ) FROM `aliases`
WHERE local_part != '*' AND domain='${quote_mysql:$domain}'
domainlist local_domains = mysql;MYSQL_Q_LDOMAIN
<...relays...>
# domain-wide 'everyone@domain' forwarding
virtual_everyone:
driver = redirect
domains = +local_domains
local_parts = everyone
data = ${lookup mysql {MYSQL_Q_EVERY_USR}{$value}}
allow_fail
allow_defer
--------------------------
Many thanks,
Chris Shucksmith
--
=========================================
Christopher Shucksmith
[w]
www.shucksmith.com [m]07905016603
christopher.shucksmith@???
=========================================
DNS troubles
When a host from within relay_from_hosts hands messages off to exim,
they are not delivered (host lookup timout)
2005-05-24 13:46:08 1DaZjU-0000Vz-Fx <= a@???
H=([192.168.13.122]) [192.168.13.122] P=esmtp S=630
id=42932FAE.3020307@???
2005-05-24 13:46:28 1DaZjU-0000Vz-Fx == c.s@???
R=dnslookup defer (-1): host lookup did not complete
2005-05-24 13:48:38 1DaZlu-0000WE-Se <= a@???
H=([192.168.13.122]) [192.168.13.122] P=esmtp S=611
id=42933045.3020600@???
2005-05-24 13:48:58 1DaZlu-0000WE-Se == c.s@??? R=dnslookup
defer (-1): host lookup did not complete
2005-05-24 14:18:39 1DaaEx-0000au-2b <= a@???
H=([192.168.13.122]) [192.168.13.122] P=esmtp S=563
id=4293374D.4060802@???
2005-05-24 14:18:59 1DaaEx-0000au-2b == s@??? R=dnslookup defer
(-1): host lookup did not complete
When I try and resolve MX records manually:
merlot chris # hostx gmail.com
gmail.com A 216.239.57.107
gmail.com A 64.233.171.107
gmail.com A 64.233.161.107
merlot chris # hostx -t MX gmail.com
Nameserver not responding
gmail.com MX record not found, try again
merlot chris # cat /etc/resolv.conf
nameserver 192.168.0.1
It's just struck me that perhaps the Netgear ADSL Router (192.168.0.1)
is perhaps a broken DNS relay. This would also explain why I had to
disable sender verification. Better jump straight to the ISP's machines.
Fixed.
merlot net-misc # hostx -t MX gmail.com
gmail.com MX 10 gsmtp171.google.com
gmail.com MX 10 gsmtp171-2.google.com
gmail.com MX 10 gsmtp185.google.com
gmail.com MX 10 gsmtp185-2.google.com
gmail.com MX 5 gmail-smtp-in.l.google.com