Re: [Exim] Relaying at ISP SMTP - ANSWERED

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Paul M Foster
Date:  
À: exim-users
Sujet: Re: [Exim] Relaying at ISP SMTP - ANSWERED
On Sun, Nov 18, 2001 at 08:27:18PM +0000, Philip Hazel wrote:

> On Sun, 18 Nov 2001, Paul M Foster wrote:
>
> > But more importantly, when the offending line was taken out of the
> > config file, Exim at last asked for relay from the server.
>
> If you want more convincing, please go and read RFC 2821. I can assure
> there is NO WAY Exim can "ask for a relay". There just isn't such a
> facility in the protocol. When I look at your two original dialogues, I
> see this:
>
> (1)
> > 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)
>
> (2)
> > 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)
>
> They appear to be different hosts - that might make a difference.
> Especially as the first one says "SMTP relay" whereas the second one
> says "SMTP MX". That strongly suggests that the first one is set up for
> relaying and the second one is not.
>


Argh. As I've said before, I "dial up" smtp.quillandmouse.com, which
gives me one of several smart hosts on XO's hosting service. It may be
that some are set up for relay and others not. I'd have to extensively
test it to make sure. However, that's beside the point. One isn't
randomly allowed to relay depending on the host one happens to hook up
with.

> (1)
> > >>> 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
>
> (2)
> > 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
>
> The contents of the EHLOs are different. That *shouldn't* make a
> difference, but...
>


The "Connecting to..." part occurs prior to this. rocky.mars.lan is the
local name of my machine, and to some extent, irrelevant. Though it's
worth noting that in the sendmail dialog, the rocky.mars.lan name is
exposed, whereas the quillandmouse.com name is exposed in the exim
dialog. One might expect that XO would _not_ relay if talking to someone
other than quillandmouse.com, which is my official domain name.

> The remaining commands sent by Exim and Sendmail are identical.
>


True.

> It seems most likely that it is the different hosts that make the
> difference. The question is *why* are different hosts being used?
> Presumably it's something in the way Exim and Sendmail are set up. As I
> don't know Sendmail, I can't help, but as another poster has said, you
> need to set up a router to make Exim send to smarthost (as per example
> in the manual and the book).
>
> > I submit that there _is_ something
> > about the tcp/ip dialog between you and the smtp server that tells it to
> > relay or not.
>
> No there is not.


Okay fine, but the beginning of the dialog is different, and it isn't
because I happened to get just the right host on XO that relays. If it
ain't in the rfc, and assuming that XO goes by the book, then please
explain how it happens.

>
> > 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)
>
> Aha! That one is saying "SMTP Relay", you notice, NOT "SMTP MX".
>


Yes, that's the point. For sendmail (and the _properly_ configured exim)
I get the "relay", and with the "improperly" configured exim, I don't.

> You never actually posted the router and transport you are using. If you
> had done that, people on this list could probably say why it was using
> different hosts in the different cases.
>


Alrighty then, it follows, in the main.

Paul

------------------------------------------------------------------------

# NB: When changing this file, run exim -C /etc/exim.cfg -bV to test it,
# and HUP the exim daemon

# MAIN CONFIGURATION SETTINGS

primary_hostname = quillandmouse.com
# qualify_domain = mars.lan
# qualify_recipient =
local_domains = mars.lan:localhost:rocky.mars.lan
forbid_domain_literals
ignore_errmsg_errors_after = 2d
timeout_frozen_after = 7d
end

# TRANSPORTS CONFIGURATION - ORDER DOES NOT MATTER

remote_smtp:
  driver = smtp
    hosts = smtp.quillandmouse.com
#    hosts_override


local_delivery:
driver = appendfile
file = /var/spool/mail/$local_part
delivery_date_add
envelope_to_add
return_path_add
group = mail

address_pipe:
driver = pipe
return_output

address_file:
driver = appendfile
delivery_date_add
envelope_to_add
return_path_add

address_reply:
driver = autoreply

procmail_pipe:
    driver = pipe
    command = /usr/bin/procmail -d $local_part
    return_path_add
    delivery_date_add
    envelope_to_add
    check_string = "From "
    escape_string = ">From "
    user = $local_part
    group = mail


end

# DIRECTORS CONFIGURATION - ORDER MATTERS

system_aliases:
driver = aliasfile
file = /etc/aliases
search_type = lsearch
file_transport = address_file
pipe_transport = address_pipe

userforward:
driver = forwardfile
file = .forward
no_verify
no_expn
check_ancestor
file_transport = address_file
pipe_transport = address_pipe
reply_transport = address_reply

procmail:
    driver = localuser
    transport = procmail_pipe
    require_files = /home/$local_part/.procmailrc


localuser:
driver = localuser
transport = local_delivery

end

# ROUTERS CONFIGURATION - ORDER MATTERS

special_local:
    driver = domainlist
    local_parts = paulf : root
    domains = mars.lan : quillandmouse.com
    route_list = * localhost byname
    self = local


smart_route:
    driver = domainlist
    transport = remote_smtp
    route_list = * smtp.quillandmouse.com byname


end



######################################################################
#                      RETRY CONFIGURATION                           #
######################################################################


# Domain               Error       Retries
# ------               -----       -------


*                      *           F,2h,15m; G,16h,1h,1.5; F,4d,8h


end



######################################################################
#                      REWRITE CONFIGURATION                         #
######################################################################


# There are no rewriting specifications in this default configuration file.

end



######################################################################
#                   AUTHENTICATION CONFIGURATION                     #
######################################################################


# There are no authenticator specifications in this default configuration file.

# End of Exim configuration file