I'm getting the "Unrouteable address" error (this must be a classic)
when I try to send to remote mail accounts. I don't receive anything
so when I look to the log (tail -f /var/log/exim4/mainlog) I get this:
andreslucena@???: Unrouteable address
But the thing is that I can see gmail:
# host gmail.com
gmail.com has address 64.233.161.83
gmail.com has address 209.85.171.83
gmail.com has address 66.249.91.83
gmail.com mail is handled by 10 alt1.gmail-smtp-in.l.google.com.
gmail.com mail is handled by 10 alt2.gmail-smtp-in.l.google.com.
gmail.com mail is handled by 50 gsmtp147.google.com.
gmail.com mail is handled by 50 gsmtp183.google.com.
gmail.com mail is handled by 5 gmail-smtp-in.l.google.com.
So testing the address with debug:
~# exim -d -bt andreslucena@???
Exim version 4.63 uid=0 gid=0 pid=19278 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
Size of off_t: 8
changed uid/gid: forcing real = effective
uid=0 gid=0 pid=19278
auxiliary group list: <none>
seeking password data for user "uucp": cache not available
getpwnam() succeeded uid=10 gid=10
configuration file is /var/lib/exim4/config.autogenerated
log selectors = 00000ffc 00189001
trusted user
admin user
seeking password data for user "mail": cache not available
getpwnam() succeeded uid=8 gid=8
user name "root" extracted from gecos field "root"
originator: uid=0 gid=0 login=root name=root
sender address = root@???
Address testing: uid=0 gid=102 euid=0 egid=102 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Testing andreslucena@??? >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Considering andreslucena@??? >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> routing andreslucena@???
--------> hubbed_hosts router <--------
local_part=andreslucena domain=gmail.com
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
--------> dnslookup_relay_to_domains router <--------
local_part=andreslucena domain=gmail.com
checking domains
gmail.com in "@:localhost:abas.local:abas.es:gmail.com"? yes (matched
"gmail.com")
gmail.com in "! +local_domains : +relay_to_domains"? no (matched "!
+local_domains")
dnslookup_relay_to_domains router skipped: domains mismatch
--------> dnslookup router <--------
local_part=andreslucena domain=gmail.com
checking domains
cached yes match for +local_domains
cached lookup data = NULL
gmail.com in "! +local_domains"? no (matched "! +local_domains" - cached)
dnslookup router skipped: domains mismatch
--------> real_local router <--------
local_part=andreslucena domain=gmail.com
real_local router skipped: prefix mismatch
--------> system_aliases router <--------
local_part=andreslucena domain=gmail.com
checking domains
cached yes match for +local_domains
cached lookup data = NULL
gmail.com in "+local_domains"? yes (matched "+local_domains" - cached)
R: system_aliases for andreslucena@???
calling system_aliases router
rda_interpret (string): ${lookup{$local_part}lsearch{/etc/aliases}}
search_open: lsearch "/etc/aliases"
search_find: file="/etc/aliases"
key="andreslucena" partial=-1 affix=NULL starflags=0
LRU list:
:/etc/aliases
End
internal_search_find: file="/etc/aliases"
type=lsearch key="andreslucena"
file lookup required for andreslucena
in /etc/aliases
lookup failed
expanded:
file is not a filter file
parse_forward_list:
system_aliases router declined for andreslucena@???
--------> userforward router <--------
local_part=andreslucena domain=gmail.com
checking domains
cached yes match for +local_domains
cached lookup data = NULL
gmail.com in "+local_domains"? yes (matched "+local_domains" - cached)
checking for local user
seeking password data for user "andreslucena": cache not available
getpwnam() returned NULL (user not found)
userforward router skipped: andreslucena is not a local user
--------> procmail router <--------
local_part=andreslucena domain=gmail.com
checking domains
cached yes match for +local_domains
cached lookup data = NULL
gmail.com in "+local_domains"? yes (matched "+local_domains" - cached)
checking for local user
seeking password data for user "andreslucena": using cached result
getpwnam() returned NULL (user not found)
procmail router skipped: andreslucena is not a local user
--------> maildrop router <--------
local_part=andreslucena domain=gmail.com
checking domains
cached yes match for +local_domains
cached lookup data = NULL
gmail.com in "+local_domains"? yes (matched "+local_domains" - cached)
checking for local user
seeking password data for user "andreslucena": using cached result
getpwnam() returned NULL (user not found)
maildrop router skipped: andreslucena is not a local user
--------> local_user router <--------
local_part=andreslucena domain=gmail.com
checking domains
cached yes match for +local_domains
cached lookup data = NULL
gmail.com in "+local_domains"? yes (matched "+local_domains" - cached)
checking local_parts
andreslucena in "! root"? yes (end of list)
checking for local user
seeking password data for user "andreslucena": using cached result
getpwnam() returned NULL (user not found)
local_user router skipped: andreslucena is not a local user
--------> mail4root router <--------
local_part=andreslucena domain=gmail.com
checking domains
cached yes match for +local_domains
cached lookup data = NULL
gmail.com in "+local_domains"? yes (matched "+local_domains" - cached)
checking local_parts
andreslucena in "root"? no (end of list)
mail4root router skipped: local_parts mismatch
no more routers
andreslucena@??? is undeliverable:
Unrouteable address
search_tidyup called >>>>>>>>>>>>>>>> Exim pid=19278 terminating with rc=2 >>>>>>>>>>>>>>>>