Re: [exim] Noobie: configuration for smart host

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: Haines Brown
Data:  
Para: exim-users
Assunto: Re: [exim] Noobie: configuration for smart host

I've spent another day struggling with this, but without sucess. Here is
some more
information.

When I try to send a message, I get the error:

SMTP response error: 550, "5.1.1. you must be authenticated to use
this
    server"


It seems smtp, including IPv6, is listening on all ports

$ netstat -l | grep smtp
tcp    0   0     *.smtp  *.* LISTEN
tcp6  0   0   *.smtp  *.* LISTEN


It seems that my name values are OK:

$ hostname
teufel

$ hostname -d
hartford-hwp.com

$ hostname -f
teufel.hartford-hwp.com

So I telnet myself:

# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
220 teufel.hartford-hwp.com ESMTP Exim 4.63 Wed, 25 Apr 2007 15:32:17
-0400
HELO localhost
250 teufel.hartford-hwp.com Hello root at localhost [127.0.0.1]
MAIL from: haines@localhost
250 OK
RCPT to: brownh@???
250 Accepted
DATA
354 Enter message, ending with "." on a line by itself
A telnet message from haines to localhost
.
250 OK id=1HgnFw-0003xk-GV
421 teufel.hartford-hwp.com: SMTP command timeout - closing
connection
Connection closed by foreign host.

I would have exprected "localhost.localdomain" here to have been
expanded, but
otherwise it seems the message went out but couldn't be delivered. In
/var/log/exim4/mainlog:

2007-04-25 14:57:54 1HgmgN-0003tD-D0 <= haines@localhost 
    H=localhost [127.0.0.1] U=root P=smtp S=352
2007-04-25 14:57:54 1HgmgN-0003tD-D0 no IP address found for host 
    brownh@???
2007-04-25 14:57:54 1HgmgN-0003tD-D0 == brownh@??? 
    R=smarthost defer (-1): lookup of host "brownh@???" 
    failed in smarthost router     


Either brownh@??? couldn't be parsed or there's no IP
address
associated with the domain name. And yet, in my /etc/hosts file (exc
IPv6 section):

127.0.0.1    localhost.localdomain localhost
127.0.1.1    teufel.hartford-hwp.com    teufel


Should I have added an alias to the second line? But this does not seem
right and
did not help:

127.0.1.1    teufel.hartford-hwp.com    hartford-hwp.com teufel


My /etc/exim4/update-exim4.conf.conf file:

dc_eximconfig_configtype='smarthost'
dc_other_hostnames=''
dc_local_interfaces=''
dc_readhost='hartford-hwp.com'
dc_relay_domains=''
dc_minimaldns='false'
dc_relay_nets=''
dc_smarthost='smtp.registeredsite.com:brownh@???:<PW>'
CFILEMODE='644'
dc_use_split_config='false'
dc_hide_mailname='false'
dc_mailname_in_oh='true'
dc_localdelivery='maildir_home'

Haines


--
Haines Brown
------------------------------------------------------------------------
Haines Brown's Profile: http://www.exim-users.org/forums/member.php?action=getinfo&userid=269
View this thread: http://www.exim-users.org/forums/showthread.php?threadid=54837