[Pkg-exim4-users] mailing to off net subdomain

Andrew Worsley amworsley at gmail.com
Sun Apr 29 02:21:34 BST 2018


Hi, I am trying to arrange mail to a subdomain for a laptop that is
not always connected to the main server. How do I easily add rules for
delivery for a particular domain to the debian package configuration
(large file) to capture deliveries for that domain?

Do I have to use the split file system?

I thought that the hubbed_hosts might be useful for this where I
request delivery to a loopback address on a non-standard port which my
laptop can connect to via ssh -R and then prompting a queue run to
flush mail out. It fails (see below).

I then notice that exim4 says it doesn't handle machines that are not
connected very well and suggests I deliver via an bsmtp file. That
means I need to add a router to match that to a appropriate transport
for that subdomain. I am not sure where to fit that in.

Perhaps the hubbed_domain could also have a hubbed_router file that can do this?

I notice this is really quiet so I hope there is someone who can give
me a few pointers on these topics.

Thanks

Andrew Worsley
---------- output of testing of routing to subdomain ---------------
root at fast:/etc/bind# exim -d -bt amw at macbook.tqc.com.au
Exim version 4.89 uid=0 gid=0 pid=30642 D=fbb95cfd
Berkeley DB: Berkeley DB 5.3.28: (September  9, 2013)
Support for: crypteq iconv() IPv6 GnuTLS move_frozen_messages DKIM
DNSSEC Event OCSP PRDR SOCKS TCP_Fast_Open
Lookups (built-in): lsearch wildlsearch nwildlsearch iplsearch cdb dbm
dbmjz dbmnz dnsdb 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
Configure owner: 0:0
Size of off_t: 8
Compiler: GCC [6.3.0 20170516]
Library version: Glibc: Compile: 2.24
                        Runtime: 2.24
Library version: GnuTLS: Compile: 3.5.8
                         Runtime: 3.5.8
Library version: PCRE: Compile: 8.39
                       Runtime: 8.39 2016-06-14
Total 13 lookups
WHITELIST_D_MACROS: "OUTGOING"
TRUSTED_CONFIG_LIST: "/etc/exim4/trusted_configs"
changed uid/gid: forcing real = effective
  uid=0 gid=0 pid=30642
  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 = 0000cffc 0e320202
trusted user
admin user
seeking password data for user "mail": cache not available
getpwnam() succeeded uid=8 gid=8
DSN: hubbed_hosts propagating DSN
DSN: dnslookup_relay_to_domains propagating DSN
DSN: dnslookup propagating DSN
DSN: real_local propagating DSN
DSN: system_aliases propagating DSN
DSN: userforward propagating DSN
DSN: procmail propagating DSN
DSN: maildrop propagating DSN
DSN: lowuid_aliases propagating DSN
DSN: local_user propagating DSN
DSN: mail4root propagating DSN
user name "root" extracted from gecos field "root"
originator: uid=0 gid=0 login=root name=root
sender address = root at tqc.com.au
Address testing: uid=0 gid=123 euid=0 egid=123
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Testing amw at macbook.tqc.com.au
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Considering amw at macbook.tqc.com.au
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
routing amw at macbook.tqc.com.au
--------> hubbed_hosts router <--------
local_part=amw domain=macbook.tqc.com.au
checking domains
search_open: lsearch "/etc/exim4/hubbed_hosts"
search_find: file="/etc/exim4/hubbed_hosts"
  key="macbook.tqc.com.au" partial=2 affix=*. starflags=0
LRU list:
  7/etc/exim4/hubbed_hosts
  End
internal_search_find: file="/etc/exim4/hubbed_hosts"
  type=lsearch key="macbook.tqc.com.au"
file lookup required for macbook.tqc.com.au
  in /etc/exim4/hubbed_hosts
lookup yielded: 127.0.0.1::4444
macbook.tqc.com.au in "partial-lsearch;/etc/exim4/hubbed_hosts"? yes
(matched "partial-lsearch;/etc/exim4/hubbed_hosts")
R: hubbed_hosts for macbook.tqc.com.au
calling hubbed_hosts router
hubbed_hosts router called for amw at macbook.tqc.com.au
  domain = macbook.tqc.com.au
search_open: lsearch "/etc/exim4/hubbed_hosts"
  cached open
search_find: file="/etc/exim4/hubbed_hosts"
  key="macbook.tqc.com.au" partial=2 affix=*. starflags=0
LRU list:
  7/etc/exim4/hubbed_hosts
  End
internal_search_find: file="/etc/exim4/hubbed_hosts"
  type=lsearch key="macbook.tqc.com.au"
cached data used for lookup of macbook.tqc.com.au
  in /etc/exim4/hubbed_hosts
lookup yielded: 127.0.0.1::4444
original list of hosts = "127.0.0.1::4444" options =
expanded list of hosts = "127.0.0.1::4444" options =
set transport remote_smtp
finding IP address for 127.0.0.1:4444
host=127.0.0.1 port=4444
calling host_find_byname
gethostbyname2(af=inet6) returned 1 (HOST_NOT_FOUND)
local host found for non-MX address
fully qualified name = 127.0.0.1
gethostbyname2 looked up these IP addresses:
  name=127.0.0.1 address=127.0.0.1
LOG: MAIN
  remote host address is the local host: macbook.tqc.com.au (while
routing <amw at macbook.tqc.com.au>)
hubbed_hosts router: defer for amw at macbook.tqc.com.au
  message: remote host address is the local host
amw at macbook.tqc.com.au cannot be resolved at this time: remote host
address is the local host
search_tidyup called
>>>>>>>>>>>>>>>> Exim pid=30642 terminating with rc=1 >>>>>>>>>>>>>>>>



More information about the Pkg-exim4-users mailing list