Afficher un message
Vieux 27/05/2007, 20h15   #8
Dave
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: sendmail and DNS problem.

On May 24, 5:09 am, p...@hedeland.org (Per Hedeland) wrote:
> In article <1179917561.881540.175...@q66g2000hsg.googlegroups .com> Dave
>
> <david.greenh...@praybourne.co.uk> writes:
>
> >bed-11.uk.clara.net seems to host our website, or at least the CNAME
> >forwww.praybourne.co.ukpoints 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.

>
> Well, praybourne.local will obviously not exist in the "real" DNS, so
> [praybourne.local] relies on the DNS A lookup failing and sendmail
> falling back to /etc/hosts (depending on OS configuration of service
> switch files etc - it could also be that /etc/hosts is tried first, in
> which case it "should work"). Does it work if you use [ip.add.re.ss]
> instead?
>
> >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.greenh...@praybourne.co.uk

> >david.greenh...@praybourne.co.uk... deliverable: mailer procmail,
> >host /etc/mail/procmailrc-praybourne.co.uk/procmailrc, user
> >david.greenh...@praybourne.co.uk.procmail

>
> Oh, so you're using that ugly old hack - you'd really be better off
> looking into using a milter-based approach instead. Anyway this means
> that the message passes through sendmail twice, before and after
> procmail - and the debug output will only show the first, while it's the
> second one that is interesting. If you redo the tests with
> david.greenh...@praybourne.co.uk.procmail as address instead, we can see
> what happens in the second round.
>
>
>
>
>
> >This is the section from the log:
> >May 23 11:38:18 mail sendmail[2791]: l4NAcIs9002791:
> >from=r...@praybourne.co.uk, size=585, class=0, nrcpts=1,
> >msgid=<200705231038.l4NAcGIi002...@mail.praybourn e.co.uk>,
> >relay=root@localhost
> >May 23 11:38:19 mail sendmail[2791]: l4NAcIs9002791:
> >to=david.greenh...@praybourne.co.uk.procmail,
> >ctladdr=r...@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.greenh...@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:
> >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.l4NAcGIi002...@mail.praybourn e.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.l4NAcGIi002...@mail.praybourne.co.u k> 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,MIS SING_SUBJECT
> >scantime=0.7,size=331,mid=<200705231038.l4NAcGIi0 02...@mail.praybourne.co.uk>,bayes=0.0025819824777 582,autolearn=ham
> >May 23 11:38:18 mail sendmail[2791]: l4NAcIs9002791:
> >from=r...@praybourne.co.uk, size=585, class=0, nrcpts=1,
> >msgid=<200705231038.l4NAcGIi002...@mail.praybourn e.co.uk>,
> >relay=root@localhost
> >May 23 11:38:19 mail sendmail[2791]: l4NAcIs9002791:
> >to=david.greenh...@praybourne.co.uk.procmail,
> >ctladdr=r...@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.greenh...@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

>
> I'm afraid you posted the logs for the same attempt twice, only that the
> initial part was missing from the first.
>
> --Per Hedeland
> p...@hedeland.org- Hide quoted text -
>
> - Show quoted text -


Hi Per, Sorry for posting the same logs twice, and sorry for taking so
long to get back (im stuck in jakarta for a few weeks and only just
had chance to access internet.)

Firstly, sendmail is set to deliver mail for praybourne.local to our
exchange server via [IP Address] and ignore MX records (using
mailertable). This has been set for around 3 years and has never
failed before we moved. Yes on this machine hosts is set before DNS,
the contents of hosts is:
127.0.0.1 localhost localhost.localdomain
212.169.48.90 mail.praybourne.co.uk mail
10.10.5.252 exchangeserver.praybourne.local

DNS is set as:
1. 10.10.5.252
2. 195.8.69.7
3. 195.8.69.12


testing david.greenhall@prayborune.co.uk.procmail: using internal DNS
> sendmail -bv david.greenhall@praybourne.co.uk.procmail

david.greenhall@praybourne.co.uk.procmail... deliverable: mailer
esmtp, host [10.10.5.252], user david.greenhall@praybourne.local

> date | sendmail -Am -v -d8.8 david.greenhall@praybourne.co.uk.procmail

dns_getcanonname(praybourne.local, trymx=1)
dns_getcanonname: trying praybourne.local. (AAAA)
NO: errno=0, h_errno=4
dns_getcanonname: trying praybourne.local. (A)
YES
dns_getcanonname: praybourne.local
getmxrr([10.10.5.252], droplocalhost=1)
david.greenhall@praybourne.co.uk.procmail... Connecting to
[10.10.5.252] via esmtp...
220 exch-red.praybourne.local Microsoft ESMTP MAIL Service, Version:
5.0.2195.6713 ready at Sun, 27 May 2007 18:53:02 +0100
>>> EHLO mail.praybourne.co.uk

250-exch-red.praybourne.local Hello [10.10.5.250]
250-TURN
250-ATRN
250-SIZE
250-ETRN
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-8bitmime
250-BINARYMIME
250-CHUNKING
250-VRFY
250-X-EXPS GSSAPI NTLM LOGIN
250-X-EXPS=LOGIN
250-AUTH GSSAPI NTLM LOGIN
250-AUTH=LOGIN
250-X-LINK2STATE
250-XEXCH50
250 OK
>>> MAIL From:<root@praybourne.co.uk> SIZE=29

250 2.1.0 root@praybourne.co.uk....Sender OK
>>> RCPT To:<david.greenhall@praybourne.local>
>>> DATA

250 2.1.5 david.greenhall@praybourne.local
354 Start mail input; end with <CRLF>.<CRLF>
>>> .

250 2.6.0 <200705271754.l4RHs4Xe001239@mail.praybourne.co.uk > Queued
mail for delivery
david.greenhall@praybourne.co.uk.procmail... Sent
( <200705271754.l4RHs4Xe001239@mail.praybourne.co.uk > Queued mail for
delivery)
Closing connection to [10.10.5.252]
>>> QUIT

221 2.0.0 exch-red.praybourne.local Service closing transmission
channel


testing david.greenhall@prayborune.co.uk.procmail: without internal
DNS
> sendmail -bv david.greenhall@praybourne.co.uk.procmail

david.greenhall@praybourne.co.uk.procmail... deliverable: mailer
esmtp, host bed-11.uk.clara.net., user
david.greenhall@bed-11.uk.clara.net

> date | sendmail -Am -v -d8.8 david.greenhall@praybourne.co.uk.procmail

dns_getcanonname(praybourne.local, trymx=1)
dns_getcanonname: trying praybourne.local. (AAAA)
NO: errno=0, h_errno=1
dns_getcanonname: trying praybourne.local.praybourne.co.uk (AAAA)
YES
dns_getcanonname: trying bed-11.uk.clara.net. (AAAA)
NO: errno=0, h_errno=4
dns_getcanonname: trying bed-11.uk.clara.net. (A)
YES
dns_getcanonname: bed-11.uk.clara.net
getmxrr(bed-11.uk.clara.net., droplocalhost=1)
getmxrr: res_search(bed-11.uk.clara.net.) failed (errno=0, h_errno=4)
dns_getcanonname(bed-11.uk.clara.net., trymx=0)
dns_getcanonname: trying bed-11.uk.clara.net. (AAAA)
NO: errno=0, h_errno=4
dns_getcanonname: trying bed-11.uk.clara.net. (A)
YES
dns_getcanonname: bed-11.uk.clara.net
david.greenhall@praybourne.co.uk.procmail... Connecting to
bed-11.uk.clara.net. via esmtp...
david.greenhall@praybourne.co.uk.procmail... Deferred: Connection
refused by bed-11.uk.clara.net.


So looking at this, its searching DNS for praybourne.local, but what i
dont understand is why this worked a couple of weeks ago, but not now.
why is not using hosts first?!!

If in mailertable its specified not to look up MX records, why does it
still use DNS (im really confused)
Is it possible that between moving premises our sendmail configuration
has got messed up?

Dave.


  Réponse avec citation
 
Page generated in 0,14406 seconds with 9 queries