On 22 May, 23:24, p...@hedeland.org (Per Hedeland) wrote:
> In article <1179822017.669135.53...@q75g2000hsh.googlegroups. com> Dave
>
> <david.greenh...@praybourne.co.uk> writes:
>
> >Yet when our mail server trys to accept a connection, we get an error
> >like this:
> >stat=Deferred: Connection refused by bed-11.uk.clara.net
>
> Uh, what is your relation to that server, if any?
>
>
>
>
>
> >I have done a few tests regarding our internal DNS and Clara Nets DNS
> >with sendmail
> >(echo "check_rcpt david.greenh...@praybourne.co.uk" | sendmail -bt -
> >d8.20)
> >to see what errors were coming back and this is the results for the
> >DNS section:
>
> >Internal DNS server:
> >dns_getcanonname(praybourne.co.uk, trymx=1)
> >dns_getcanonname: trying praybourne.co.uk. (AAAA)
> > NO: errno=0, h_errno=4
> >dns_getcanonname: trying praybourne.co.uk. (A)
> > NO: errno=0, h_errno=4
> >dns_getcanonname: trying praybourne.co.uk. (MX)
> > YES
> >dns_getcanonname: praybourne.co.uk
>
> >External DNS server:
> >dns_getcanonname(praybourne.co.uk, trymx=1)
> >dns_getcanonname: trying praybourne.co.uk. (AAAA)
> > NO: errno=0, h_errno=4
> >dns_getcanonname: trying praybourne.co.uk. (A)
> > YES
> >dns_getcanonname: praybourne.co.uk
>
> This isn't really useful, only reveals that the external server has an A
> record for praybourne.co.uk while the internal one doesn't - for some
> reason the actual DNS debug output is missing, but anyway check_rcpt
> doesn't do any routing decisions, which is where the bed-11.uk.clara.net
> turns up, presumably.
>
> Is the david.greenh...@praybourne.co.uk address supposed to be routed
> based on MX records for praybourne.co.uk, or via some hardwired
> SMART_HOST or mailertable entry, or something else? In the Internet-
> visible DNS, praybourne.co.uk has a primary MX record giving
> mail.praybourne.co.uk, which has an A record giving 212.169.48.90 - no
> bed-11.uk.clara.net anywhere...
>
> What is the output in the respective cases of
>
> sendmail -bv david.greenh...@praybourne.co.uk
>
> and
>
> (as root) date | sendmail -Am -v -d8.8 david.greenh...@praybourne.co.uk
>
> ? Note that the latter will actually (attempt to) send a message.
>
> --Per Hedeland
> p...@hedeland.org- Hide quoted text -
>
> - Show quoted text -
Thanks for the Per,
bed-11.uk.clara.net seems to host our website, or at least the CNAME
for
www.praybourne.co.uk points to this server. Yes we use mailertable
to point praybourne.co.uk to our exchange server [praybourne.local] we
also use procmail to filter spam and archive all incoming email. All
this has not been changed from when we was with our last ISP, and all
worked fine then.
I have done as you suggested, both with our internal DNS servers, and
then using our ISP's (not sure if it would make a difference)
Using internal DNS:
> sendmail -bv david.greenhall@praybourne.co.uk
david.greenhall@praybourne.co.uk... deliverable: mailer procmail,
host /etc/mail/procmailrc-praybourne.co.uk/procmailrc, user
david.greenhall@praybourne.co.uk.procmail
> date | sendmail -Am -v -d8.8 david.greenhall@praybourne.co.uk
dns_getcanonname(praybourne.co.uk, trymx=1)
dns_getcanonname: trying praybourne.co.uk. (AAAA)
NO: errno=0, h_errno=4
dns_getcanonname: trying praybourne.co.uk. (A)
NO: errno=0, h_errno=4
dns_getcanonname: trying praybourne.co.uk. (MX)
YES
dns_getcanonname: praybourne.co.uk
david.greenhall@praybourne.co.uk... Connecting to /etc/mail/procmailrc-
praybourne.co.uk/procmailrc via procmail...
david.greenhall@praybourne.co.uk... Sent
This is the section from the log:
May 23 11:38:18 mail sendmail[2791]: l4NAcIs9002791:
from=root@praybourne.co.uk, size=585, class=0, nrcpts=1,
msgid=<200705231038.l4NAcGIi002690@mail.praybourne .co.uk>,
relay=root@localhost
May 23 11:38:19 mail sendmail[2791]: l4NAcIs9002791:
to=david.greenhall@praybourne.co.uk.procmail,
ctladdr=root@praybourne.co.uk (0/0), delay=00:00:01, xdelay=00:00:01,
mailer=relay, pri=30585, relay=bed-11.uk.clara.net. [195.8.66.1],
dsn=4.0.0, stat=Deferred: Connection refused by bed-11.uk.clara.net.
May 23 11:38:19 mail sendmail[2690]: l4NAcGIi002690:
to=david.greenhall@praybourne.co.uk, ctladdr=root (0/0),
delay=00:00:03, xdelay=00:00:03, mailer=procmail, pri=30029, relay=/
etc/mail/procmail...e.co.uk/procmailrc, dsn=2.0.0, stat=Sent
Now using external DNS:
> sendmail -bv david.greenhall@praybourne.co.uk
david.greenhall@praybourne.co.uk... deliverable: mailer procmail,
host /etc/mail/procmailrc-praybourne.co.uk/procmailrc, user
david.greenhall@praybourne.co.uk.procmail
> date | sendmail -Am -v -d8.8 david.greenhall@praybourne.co.uk
dns_getcanonname(praybourne.co.uk, trymx=1)
dns_getcanonname: trying praybourne.co.uk. (AAAA)
NO: errno=0, h_errno=4
dns_getcanonname: trying praybourne.co.uk. (A)
YES
dns_getcanonname: praybourne.co.uk
david.greenhall@praybourne.co.uk... Connecting to /etc/mail/procmailrc-
praybourne.co.uk/procmailrc via procmail...
david.greenhall@praybourne.co.uk... Sent
This is the section from the log:
May 23 11:38:16 mail sendmail[2690]: l4NAcGIi002690: from=root,
size=29, class=0, nrcpts=1,
msgid=<200705231038.l4NAcGIi002690@mail.praybourne .co.uk>,
relay=root@localhost
May 23 11:38:17 mail spamd[427]: connection from localhost [127.0.0.1]
at port 49641
May 23 11:38:17 mail spamd[427]: processing message
<200705231038.l4NAcGIi002690@mail.praybourne.co.uk > for root:65534.
May 23 11:38:18 mail spamd[427]: clean message (-2.7/3.5) for root:
65534 in 0.7 seconds, 331 bytes.
May 23 11:38:18 mail spamd[427]: result: . -2 -
ALL_TRUSTED,BAYES_00,FM_NO_TO,MISSING_HEADERS,MISS ING_SUBJECT
scantime=0.7,size=331,mid=<200705231038.l4NAcGIi00 2690@mail.praybourne.co.uk>,bayes=0.00258198247775 82,autolearn=ham
May 23 11:38:18 mail sendmail[2791]: l4NAcIs9002791:
from=root@praybourne.co.uk, size=585, class=0, nrcpts=1,
msgid=<200705231038.l4NAcGIi002690@mail.praybourne .co.uk>,
relay=root@localhost
May 23 11:38:19 mail sendmail[2791]: l4NAcIs9002791:
to=david.greenhall@praybourne.co.uk.procmail,
ctladdr=root@praybourne.co.uk (0/0), delay=00:00:01, xdelay=00:00:01,
mailer=relay, pri=30585, relay=bed-11.uk.clara.net. [195.8.66.1],
dsn=4.0.0, stat=Deferred: Connection refused by bed-11.uk.clara.net.
May 23 11:38:19 mail sendmail[2690]: l4NAcGIi002690:
to=david.greenhall@praybourne.co.uk, ctladdr=root (0/0),
delay=00:00:03, xdelay=00:00:03, mailer=procmail, pri=30029, relay=/
etc/mail/procmail...e.co.uk/procmailrc, dsn=2.0.0, stat=Sent
Dave.