Re: [exim] Exim Delivery Issue

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Tom Ray [Lists]
日付:  
To: S. Groner
CC: exim-users
題目: Re: [exim] Exim Delivery Issue
S. Groner wrote:
> I’ll apologize up front for this question as I’m new to Exim and Linux in
> general. I’m trying to set up Exim 4.6 on an Ubuntu LAMP server. What I’m
> trying to achieve is running a website which will allow users to sign up for
> email alerts. Exim will send out the alerts through my Verizon.net account.
>
>
>
> I think I’ve figured out most issues though it seems that I’m stuck on
> (one?) last detail. I’m trying to send a test email from Exim via my
> verizon.net account (via DSL) and have it come back to myself. (When it
> comes back in, it will be received by my Windows machine running Outlook as
> the Exim server is not set up to receive email.)
>
>
>
> Below are the debugging details from Exim. I changed my real email address
> to “myemailaddress” and my real password to “mypassword” for confidentiality
> purposes.
>
>
>
> Can anyone tell me where I’m going wrong? I suspect that at least part of
> my problem is that Exim is rewriting the header information so that it looks
> like the message is coming from “myemailaddress@server”, which is obviously
> incorrect. But I don’t know how to get Exim to stop rewriting it. (It
> should be myemailaddress@???.) The odd thing is that according to
> Exim’s log, the email is sent without an error, but I never receive any test
> emails. I’m logged in to the Ubuntu server as root when creating the test
> message.
>
>
>
> Thank you in advance.
>
>
>
>
>
>
>
>
>
> reading spool file 1IhaKQ-00014S-N1-H
>
> user=root uid=0 gid=0 sender=myemailaddress@???
>
> sender_local=1 ident=root
>
> Non-recipients:
>
> Empty Tree
>
> ---- End of tree ----
>
> recipients_count=1
>
> body_linecount=1 message_linecount=9
>
> Delivery address list:
>
> myemailaddress@???
>
> locking /var/spool/exim4/db/retry.lockfile
>
> locked /var/spool/exim4/db/retry.lockfile
>
> EXIM_DBOPEN(/var/spool/exim4/db/retry)
>
> returned from EXIM_DBOPEN
>
> opened hints database /var/spool/exim4/db/retry: flags=0
>
>
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>
> Considering: myemailaddress@???
>
> unique = myemailaddress@???
>
> dbfn_read: key=R:verizon.net
>
> dbfn_read: key=R:myemailaddress@???
>
> no domain retry record
>
> no address retry record
>
> myemailaddress@???: queued for routing
>
>
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>
> routing myemailaddress@???
>
> --------> hubbed_hosts router <--------
>
> local_part=myemailaddress domain=verizon.net
>
> checking domains
>
> expansion of "${if
> exists{/etc/exim4/hubbed_hosts}{partial-lsearch;/etc/exim4/hubbed_hosts}fail}"
> forced failure: assume not in this list
>
> hubbed_hosts router skipped: domains mismatch
>
> --------> smarthost router <--------
>
> local_part=myemailaddress domain=verizon.net
>
> checking domains
>
> verizon.net in "@:localhost"? no (end of list)
>
> verizon.net in "! +local_domains"? yes (end of list)
>
> R: smarthost for myemailaddress@???
>
> calling smarthost router
>
> smarthost router called for myemailaddress@???
>
> domain = verizon.net
>
> route_item = * outgoing.yahoo.verizon.net byname
>
> verizon.net in "*"? yes (matched "*")
>
> original list of hosts = "outgoing.yahoo.verizon.net" options = byname
>
> expanded list of hosts = "outgoing.yahoo.verizon.net" options = byname
>
> set transport remote_smtp_smarthost
>
> finding IP address for outgoing.yahoo.verizon.net
>
> calling host_find_byname
>
> gethostbyname2(af=inet6) returned 3 (NO_RECOVERY)
>
> fully qualified name = smtp.vzn.mail.yahoo4.akadns.net
>
> gethostbyname2 looked up these IP addresses:
>
> name=smtp.vzn.mail.yahoo4.akadns.net address=209.73.179.152
>
> queued for remote_smtp_smarthost transport: local_part = myemailaddress
>
> domain = verizon.net
>
> errors_to=NULL
>
> domain_data=NULL localpart_data=NULL
>
> routed by smarthost router
>
> envelope to: myemailaddress@???
>
> transport: remote_smtp_smarthost
>
> host smtp.vzn.mail.yahoo4.akadns.net [209.73.179.152]
>
>
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>
> After routing:
>
> Local deliveries:
>
> Remote deliveries:
>
>     myemailaddress@???

>
> Failed addresses:
>
> Deferred addresses:
>
> search_tidyup called
>
>
>>>>>>>>>>>>>>>>> Remote deliveries >>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>
> --------> myemailaddress@??? <--------
>
> verizon.net in "@:localhost"? no (end of list)
>
> verizon.net in "+local_domains"? no (end of list)
>
> verizon.net in "verizon.net"? yes (matched "verizon.net")
>
> search_tidyup called
>
> changed uid/gid: remote delivery to myemailaddress@??? with
> transport=remote_smtp_smarthost
>
> uid=111 gid=111 pid=4122
>
> auxiliary group list: <none>
>
> set_process_info: 4122 delivering 1IhaKQ-00014S-N1 using
> remote_smtp_smarthost
>
> T: remote_smtp_smarthost for myemailaddress@???
>
> remote_smtp_smarthost transport entered
>
> myemailaddress@???
>
> verizon.net in queue_smtp_domains? no (option unset)
>
> checking status of smtp.vzn.mail.yahoo4.akadns.net
>
> locking /var/spool/exim4/db/retry.lockfile
>
> locked /var/spool/exim4/db/retry.lockfile
>
> EXIM_DBOPEN(/var/spool/exim4/db/retry)
>
> set_process_info: 4121 delivering 1IhaKQ-00014S-N1: waiting for a remote
> delivery subprocess to finish
>
> selecting on subprocess pipes
>
> returned from EXIM_DBOPEN
>
> opened hints database /var/spool/exim4/db/retry: flags=0
>
> dbfn_read: key=T:smtp.vzn.mail.yahoo4.akadns.net:209.73.179.152
>
> dbfn_read:
> key=T:smtp.vzn.mail.yahoo4.akadns.net:209.73.179.152:1IhaKQ-00014S-N1
>
> no host retry record
>
> no message retry record
>
> smtp.vzn.mail.yahoo4.akadns.net [209.73.179.152] status = usable
>
> 209.73.179.152 in serialize_hosts? no (option unset)
>
> delivering 1IhaKQ-00014S-N1 to smtp.vzn.mail.yahoo4.akadns.net
> [209.73.179.152] (myemailaddress@???)
>
> set_process_info: 4122 delivering 1IhaKQ-00014S-N1 to
> smtp.vzn.mail.yahoo4.akadns.net [209.73.179.152]
> (myemailaddress@???)
>
> Connecting to smtp.vzn.mail.yahoo4.akadns.net [209.73.179.152]:25 ...
> connected
>
> waiting for data on socket
>
> read response data: size=42
>
> SMTP<< 220 smtp101.vzn.mail.dcn.yahoo.com ESMTP
>
> 209.73.179.152 in hosts_avoid_esmtp? no (option unset)
>
> SMTP>> EHLO server.myhome.westell.com
>
> waiting for data on socket
>
> read response data: size=98
>
> SMTP<< 250-smtp101.vzn.mail.dcn.yahoo.com
>
>          250-AUTH LOGIN PLAIN XYMCOOKIE

>
>          250-PIPELINING

>
>          250 8BITMIME

>
> 209.73.179.152 in hosts_require_tls? no (option unset)
>
> using PIPELINING
>
> gethostbyname2(af=inet6) returned 3 (NO_RECOVERY)
>
> gethostbyname2 looked up these IP addresses:
>
> name=smtp.vzn.mail.yahoo4.akadns.net address=209.73.179.152
>
> 209.73.179.152 in hosts_require_auth? yes (matched
> "outgoing.yahoo.verizon.net")
>
> scanning authentication mechanisms
>
> search_open: lsearch "/etc/exim4/passwd.client"
>
> search_find: file="/etc/exim4/passwd.client"
>
> key="smtp.vzn.mail.yahoo4.akadns.net" partial=-1 affix=NULL starflags=1
>
> LRU list:
>
> :/etc/exim4/passwd.client
>
> End
>
> internal_search_find: file="/etc/exim4/passwd.client"
>
> type=lsearch key="smtp.vzn.mail.yahoo4.akadns.net"
>
> file lookup required for smtp.vzn.mail.yahoo4.akadns.net
>
> in /etc/exim4/passwd.client
>
> lookup yielded: myemailaddress:mypassword
>
> search_open: lsearch "/etc/exim4/passwd.client"
>
> cached open
>
> search_find: file="/etc/exim4/passwd.client"
>
> key="smtp.vzn.mail.yahoo4.akadns.net" partial=-1 affix=NULL starflags=1
>
> LRU list:
>
> :/etc/exim4/passwd.client
>
> End
>
> internal_search_find: file="/etc/exim4/passwd.client"
>
> type=lsearch key="smtp.vzn.mail.yahoo4.akadns.net"
>
> cached data used for lookup of smtp.vzn.mail.yahoo4.akadns.net
>
> in /etc/exim4/passwd.client
>
> lookup yielded: myemailaddress:mypassword
>
> SMTP>> AUTH PLAIN ****************************
>
> waiting for data on socket
>
> read response data: size=27
>
> SMTP<< 235 ok, go ahead (#2.0.0)
>
> plain authenticator yielded 0
>
> SMTP>> MAIL FROM:<myemailaddress@server> AUTH=root@???
>
> SMTP>> RCPT TO:<myemailaddress@???>
>
> SMTP>> DATA
>
> waiting for data on socket
>
> read response data: size=30
>
> SMTP<< 250 ok
>
> SMTP<< 250 ok
>
> SMTP<< 354 go ahead
>
> SMTP>> writing message and terminating "."
>
> rewrite_one_header: type=F:
>
> from: myemailaddress@???
>
> address match: subject=myemailaddress@??? pattern=*@+local_domains
>
> verizon.net in "@:localhost"? no (end of list)
>
> verizon.net in "+local_domains"? no (end of list)
>
> myemailaddress@??? in "*@+local_domains"? no (end of list)
>
> address match: subject=myemailaddress@??? pattern=*@verizon.net
>
> verizon.net in "verizon.net"? yes (matched "verizon.net")
>
> myemailaddress@??? in "*@verizon.net"? yes (matched "*@verizon.net")
>
> LOG: address_rewrite MAIN
>
> "myemailaddress@???" from from: rewritten as
> "myemailaddress@server" by rule 2
>
> newlen=25 newtype=F newtext:
>
> from: myemailaddress@server
>
> remainder:
>
> rewrite_one_header: type=T:
>
> to: myemailaddress@???
>
> writing data block fd=6 size=408 timeout=300
>
> waiting for data on socket
>
> read response data: size=28
>
> SMTP<< 250 ok 1192494617 qp 27509
>
> journalling myemailaddress@???
>
> ok=1 send_quit=1 send_rset=0 continue_more=0 yield=0 first_address is NULL
>
> transport_check_waiting entered
>
> sequence=1 local_max=500 global_max=-1
>
> locking /var/spool/exim4/db/wait-remote_smtp_smarthost.lockfile
>
> locked /var/spool/exim4/db/wait-remote_smtp_smarthost.lockfile
>
> EXIM_DBOPEN(/var/spool/exim4/db/wait-remote_smtp_smarthost)
>
> returned from EXIM_DBOPEN
>
> opened hints database /var/spool/exim4/db/wait-remote_smtp_smarthost:
> flags=2
>
> dbfn_read: key=smtp.vzn.mail.yahoo4.akadns.net
>
> no messages waiting for smtp.vzn.mail.yahoo4.akadns.net
>
> SMTP>> QUIT
>
> set_process_info: 4122 delivering 1IhaKQ-00014S-N1: just tried
> smtp.vzn.mail.yahoo4.akadns.net [209.73.179.152] for
> myemailaddress@???: result OK
>
> Leaving remote_smtp_smarthost transport
>
> set_process_info: 4122 delivering 1IhaKQ-00014S-N1 (just run
> remote_smtp_smarthost for myemailaddress@??? in subprocess)
>
> search_tidyup called
>
> reading pipe for subprocess 4122 (not ended)
>
> read() yielded 73
>
> Z0 item read
>
> remote delivery process 4122 ended
>
> set_process_info: 4121 delivering 1IhaKQ-00014S-N1
>
> post-process myemailaddress@??? (0)
>
> myemailaddress@??? delivered
>
> LOG: MAIN
>
> => myemailaddress@??? R=smarthost T=remote_smtp_smarthost
> H=smtp.vzn.mail.yahoo4.akadns.net [209.73.179.152]
>
>
>>>>>>>>>>>>>>>>> deliveries are done >>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>
> changed uid/gid: post-delivery tidying
>
> uid=111 gid=111 pid=4121
>
> auxiliary group list: <none>
>
> set_process_info: 4121 tidying up after delivering 1IhaKQ-00014S-N1
>
> Processing retry items
>
> Succeeded addresses:
>
> myemailaddress@???: no retry items
>
> Failed addresses:
>
> Deferred addresses:
>
> end of retry processing
>
> LOG: MAIN
>
> Completed
>
> end delivery of 1IhaKQ-00014S-N1
>
> search_tidyup called
>
> search_tidyup called
>
>
>>>>>>>>>>>>>>>>> Exim pid=4121 terminating with rc=0 >>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>
> root@server:/etc/exim4# exim -d
>
> Exim version 4.60 uid=0 gid=0 pid=4131 D=fbb95cfd
>
> Berkeley DB: Sleepycat Software: Berkeley DB 4.3.29: (September 6, 2005)
>
> Support for: crypteq iconv() IPv6 GnuTLS move_frozen_messages
>
> Lookups: lsearch wildlsearch nwildlsearch iplsearch cdb dbm dbmnz dsearch
> nis nis0 passwd
>
> Authenticators: cram_md5 plaintext
>
> Routers: accept dnslookup ipliteral manualroute queryprogram redirect
>
> Transports: appendfile/maildir/mailstore autoreply lmtp pipe smtp
>
> Fixed never_users: 0
>
> changed uid/gid: forcing real = effective
>
> uid=0 gid=0 pid=4131
>
> auxiliary group list: <none>
>
> configuration file is /var/lib/exim4/config.autogenerated
>
> log selectors = 00000ffc 00041001
>
> cwd=/etc/exim4 2 args: exim -d
>
> trusted user
>
> admin user
>
> changed uid/gid: privilege not needed
>
> uid=111 gid=111 pid=4131
>
> auxiliary group list: <none>
>
> user name "root" extracted from gecos field "root"
>
> originator: uid=0 gid=0 login=root name=root
>
> sender address = root@???
>
> Exim is a Mail Transfer Agent. It is normally called by Mail User Agents,
>
> not directly from a shell command line. Options and/or arguments control
>
> what it does when called. For a list of options, see the Exim documentation.
>
> root@server:/etc/exim4#
>
>

Is this a home DSL account? Generally unless you are using the SMTP
server of your DSL provider you won't be able to send mail out. They
block port 25. Can you provide us with your dns router in your exim
configuration file?