On Sun, Nov 18, 2001 at 02:06:54PM -0500, Dave C. wrote:
> On Sun, 18 Nov 2001, Paul M Foster wrote:
>
> > On Sun, Nov 18, 2001 at 01:49:30AM -0500, Paul M Foster wrote:
> >
> > > I'm attempting to convert from sendmail to exim. All local mail should
> > > be delivered locally. All non-local mail should go to my ISP for relay.
> > > My ISP domain is quillandmouse.com. Under sendmail, mail sent to my ISP
> > > for relay was fine. But under Exim, my ISP's SMTP server won't relay it.
> > > Below are the relevant dialogs, sendmail compared to exim. Note that the
> > > connection for sendmail specifically states that the smarthost is being
> > > contacted for relay, whereas the exim connection doesn't. Can anyone
> > > tell me how to make Exim tell my ISP's SMTP server to _relay_ the mail?
> > >
> > > =================== sendmail SMTP dialog =======================
> > >
> > > foster@???... Connecting to smtp.quillandmouse.com via relay...
> > > 220 agamemnon.cnchost.com ESMTP [ConcentricHost SMTP Relay 1.14] ready at
> > > Thu, 8 Nov 2001 23:40:50 -0500 (EST)
> > > >>> EHLO rocky.mars.lan
> > > 250-agamemnon.cnchost.com Hello tamqfl1-ar4-076-029.tamqfl1.dsl.gtei.net
> > > [4.41.76.29], pleased to meet you
> > > 250-8BITMIME
> > > 250-AUTH=LOGIN
> > > 250-SIZE 10485760
> > > 250-ONEX
> > > 250-XUSR
> > > 250 HELP
> > > >>> MAIL From:<paulf@???> SIZE=117
> > > 250 <paulf@???>... Sender ok
> > > >>> RCPT To:<foster@???>
> > > 250 <foster@???>... Recipient ok
> > > >>> DATA
> > > 354 Enter mail, end with "." on a line by itself
> > > >>> .
> > > 250 XAA08430 Message accepted for delivery
> > > foster@???... Sent (XAA08430 Message accepted for delivery)
> > > Closing connection to smtp.quillandmouse.com
> > > >>> QUIT
> > > 221 agamemnon.cnchost.com closing connection
> > >
> > > =========================== exim SMTP dialog ===========================
> > >
> > > Exim version 3.33 debug level 1 uid=500 gid=500
> > > Berkeley DB: Sleepycat Software: Berkeley DB 3.2.9: (January 24, 2001)
> > > LOG: 0 MAIN
> > > <= paulf@??? U=paulf P=local S=352
> > > delivering message 1623V0-0006pu-00
> > > Connecting to zealous.cnchost.com [207.155.252.26.25] ... connected
> > > SMTP<< 220 zealous.cnchost.com ESMTP [ConcentricHost SMTP MX 1.27]
> > > ready at Thu, 8 Nov 2001 23:41:53 -0500 (EST)
> > > SMTP>> EHLO quillandmouse.com
> > > SMTP<< 250-zealous.cnchost.com Hello
> > > tamqfl1-ar4-076-029.tamqfl1.dsl.gtei.net [4.41.76.29], pleased to
> meet you
> > > 250-8BITMIME
> > > 250-SIZE 10485760
> > > 250-ONEX
> > > 250-XUSR
> > > 250 HELP
> > > SMTP>> MAIL FROM:<paulf@???> SIZE=1388
> > > SMTP<< 250 <paulf@???>... Sender ok
> > > SMTP>> RCPT TO:<foster@???>
> > > SMTP<< 553 <foster@???>... Not server for owlriver.com
> > > SMTP>> QUIT
> > > LOG: 0 MAIN
> > > ** foster@??? R=smart_route T=remote_smtp: SMTP error
> from remote
> > > mailer after RCPT TO:<foster@???>: host zealous.cnchost.com
> > > [207.155.252.26]: 553 <foster@???>... Not server for
> owlriver.com
> > >
> > > ========================== end dialogs ===============================
> > >
> > > Paul
> > >
> >
> > Apparently, the answer to this is to omit the line
> >
> > hosts_override
> >
> > from the remote_smtp transport. I put this line in when I was
> > experimenting with Exim a while back, and found that, instead of
> > delivering to smtp.quillandmouse.com, Exim was attempting to deliver to
> > the individual domains of the recipients. I thought this line would fix
> > that problem. Apparently, this parameter forces the remote smtp server
> > to accept destination addresses as an endpoint, rather than relaying
> > them.
>
> Uhm, no. You cant force a remote SMTP server to do anything. It has its
> own ideas on who to allow to relay, and who not to. Look at the previous
> answer to your problem, where you were comparing exim and sendmails
> bahavior - but you were not talking to the same server in both cases -
> if you had been, the results would have been the same for exim and
> sendmail - its the different servers that was causing the problem (eg,
> one was letting you relay, the other was not), rather than any
> difference between sendmail and exim - there is no hidden exchange - the
> debug information you posted was EVERYTHING that exim/sendmail and the
> remote server exchanged - they sent the same commands...
>
Sorry, but you're absolutely wrong on this. The domain
www.quillandmouse.com is a virtual domain set up on XO's hosting
service. Part of that domain is also news.quillandmouse.com,
smtp.quillandmouse.com and pop3.quillandmouse.com. When you dial in to
any of these services (but particularly smtp.quillandmouse.com in this
case), you get whatever server is available. Near as I can figure, there
are probably about 5-10 of these servers that act as smarthosts on XO,
and asking for smtp.quillandmouse.com gives you one of them at random.
In fact, when you ask for a specific server, you will not get it. You
will get another server. I performed this test to see if previous
posters were right, by attempting to talk to the specific server from
the sendmail dialog. I did it twice, and got a different server each
time. Given that this is true, it only stands to reason that _all_ the
smtp servers would relay. But even if that weren't the case, you don't
_randomly_ get _the_ server that relays.
But more importantly, when the offending line was taken out of the
config file, Exim at last asked for relay from the server. The dialog I
captured from it showed this conclusively, and it was the only change I
made to the config file. Furthermore, the server was a _different_ one
from the one in the sendmail dialog. I submit that there _is_ something
about the tcp/ip dialog between you and the smtp server that tells it to
relay or not. I don't really care to monitor all the packets to find
out, since it now works. However, just as proof, see the following smtp
dialog I just captured with that Exim config file:
Exim version 3.32 debug level 2 uid=500 gid=500
Berkeley DB: Sleepycat Software: Berkeley DB 3.2.9: (January 24, 2001)
LOG: 0 MAIN
<= paulf@??? U=paulf P=local S=352
delivering message 165YAY-0004Xz-00
Connecting to smtp.quillandmouse.com [207.155.248.14.25] ... connected
SMTP<< 220 marlborough.cnchost.com ESMTP [ConcentricHost SMTP Relay 1.14] ready at Sun, 18 Nov 2001 15:01:48 -0500 (EST)
SMTP>> EHLO quillandmouse.com
SMTP<< 250-marlborough.cnchost.com Hello tamqfl1-ar4-076-029.tamqfl1.dsl.gtei.net [4.41.76.29], pleased to meet you
250-8BITMIME
250-AUTH=LOGIN
250-SIZE 10485760
250-ONEX
250-XUSR
250 HELP
SMTP>> MAIL FROM:<paulf@???> SIZE=1388
SMTP<< 250 <paulf@???>... Sender ok
SMTP>> RCPT TO:<foster@???>
SMTP<< 250 <foster@???>... Recipient ok
SMTP>> DATA
SMTP<< 354 Enter mail, end with "." on a line by itself
SMTP>> writing message and terminating "."
SMTP<< 250 PAA13963 Message accepted for delivery
SMTP>> QUIT
LOG: 0 MAIN
=> foster@??? R=smart_route T=remote_smtp H=smtp.quillandmouse.com [207.155.248.14]
LOG: 0 MAIN
Completed
Paul