[Exim] Problem when trying to send mail to my smarthost thro…

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Erik Wesselius
日付:  
To: exim-users
題目: [Exim] Problem when trying to send mail to my smarthost through exim (fwd)
I have a dial-up connection and have been using
fetchmail/smail/pine for incoming/outgoing e-mail, smail being
only used for local delivery of the mail that was fetched by
fetchmail from my popbox at <pop.knoware.nl>, while pine
handled outgoing mail, using <smtp.casema.net> as smarthost.
This all worked fine.

I want to switch to a fetchmail/exim/exmh constellation. After
some puzzling, incoming mail is handled ok now, but I have a
problem with outgoing mail [details below] and although I have
gone through quite some documentation and e-mail archives, I
cannot figure out how to solve this.

I hope somebody on this list can help me.

Erik Wesselius
Utrecht, The Netherlands

----------------------------------------------------------------
Problem:

When I try to send a message from exmh, I get this error
message:

ewesselius at hotmail.com: loses; [USER] 550 relaying to
<ewesselius@???> prohibited by administrator
post: 1 addressee undeliverable
send: message not delivered to anyone

while the Exim rejectlog has recorded:

2000-08-23 11:21:27 refused relay (host reject) to
<ewesselius@???> from <erik225@farolito>
H=farolito [127.0.0.1] (erik225)


To my surprise

$exim -bt ewesselius@???

returns:

  ewesselius@???
    deliver to ewesselius@???
    router = smarthost, transport = remote_smtp
    host smtp.casema.net [195.96.96.12] 


which looks pretty good to me.


What's happening?


P.S. My exim.conf file

######################################################################
#                    MAIN CONFIGURATION SETTINGS                     #
######################################################################


qualify_domain = farolito

local_domains = localhost:farolito

local_domains_include_host = true
local_domains_include_host_literals = true

never_users = root

host_lookup_nets = 0.0.0.0/0

sender_host_reject_relay = *

trusted_users = mail

smtp_verify = false

gecos_pattern = ^([^,:]*)
gecos_name = $1

received_header_text = "Received: \
          ${if def:sender_fullhost {from ${sender_fullhost} \
          ${if def:sender_ident {(${sender_ident})}}\n\t}\
          {${if def:sender_ident {from ${sender_ident} }}}}\
          by ${primary_hostname} \
          ${if def:received_protocol {with ${received_protocol}}} \
          (Exim ${version_number} #${compile_number} (Debian))\n\t\
          id ${message_id}"
end



######################################################################
#                      TRANSPORTS CONFIGURATION                      #
######################################################################
#                       ORDER DOES NOT MATTER                        #
#     Only one appropriate transport is called for each delivery.    #
######################################################################


local_delivery:
driver = appendfile
group = mail
mode = 0660
mode_fail_narrower = false
file = /var/spool/mail/${local_part}

address_pipe:
driver = pipe
return_output

address_file:
driver = appendfile

address_directory:
driver = appendfile
no_from_hack
prefix = ""
suffix = ""

address_reply:
driver = autoreply

remote_smtp:
driver = smtp

end


######################################################################
#                      DIRECTORS CONFIGURATION                       #
#             Specifies how local addresses are handled              #
######################################################################
#                          ORDER DOES MATTER                         #
#   A local address is passed to each in turn until it is accepted.  #
######################################################################


real_local:
prefix = real-
driver = localuser
transport = local_delivery

system_aliases:
driver = aliasfile
file = /etc/aliases
search_type = lsearch

userforward:
driver = forwardfile
no_verify
check_ancestor
file = .forward
modemask = 002
filter

localuser:
driver = localuser
transport = local_delivery

end


######################################################################
#                      ROUTERS CONFIGURATION                         #
#            Specifies how remote addresses are handled              #
######################################################################
#                          ORDER DOES MATTER                         #
#  A remote address is passed to each in turn until it is accepted.  #
######################################################################


smarthost:
driver = domainlist
transport = remote_smtp
route_list = "* smtp.casema.net bydns_a"

end


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


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


end