[exim] Fwd: starting exim4 automatically

Pàgina inicial
Delete this message
Reply to this message
Autor: Wes Carver
Data:  
A: exim-users
Assumpte: [exim] Fwd: starting exim4 automatically
Thanks for your time...

*Reminder...Debian box with ASSP/Exim4 is inside our firewall...

MailGateway:/usr/share/doc/exim4# exim -d -bt wescarver@???
##################################################################
#Section inserted for email message:
#This domain was just purchased...rDNS still not set up by ISP
#At this stage, I am just sending from Exim so I can test
#setup...after setup works, and after rDNS set up, I will open
#our firewall
#I don't want Exim to do a DNS query for this domain...I want to
#manually route it, because otherwise, I would get a loop...
#Mail comming in would go through Exim4, then back to out of the
#firewall to the router, then through Exim4...etc...etc
##################################################################
Exim version 4.63 uid=0 gid=0 pid=4508 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=4508
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@localhost
Address testing: uid=0 gid=102 euid=0 egid=102
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

Testing wescarver@???
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

Considering wescarver@???
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

routing wescarver@???
--------> hubbed_hosts router <--------
local_part=wescarver domain=gcscrusaders.org
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=wescarver domain=gcscrusaders.org
checking domains
gcscrusaders.org in "@:localhost"? no (end of list)
gcscrusaders.org in "<; GraceChapelMinistries.com;GCSCrusaders.org"? yes
(matched "GCSCrusaders.org")
gcscrusaders.org in "! +local_domains : +relay_to_domains"? yes (matched
"+relay_to_domains")
R: dnslookup_relay_to_domains for wescarver@???
calling dnslookup_relay_to_domains router
dnslookup_relay_to_domains router called for wescarver@???
domain = gcscrusaders.org
DNS lookup of gcscrusaders.org (MX) succeeded
DNS lookup of mail.gcscrusaders.org (AAAA) gave NO_DATA
returning DNS_NODATA
DNS lookup of mail.gcscrusaders.org (A) succeeded
fully qualified name = gcscrusaders.org
host_find_bydns yield = HOST_FOUND (2); returned hosts:
mail.gcscrusaders.org 68.119.178.7 MX=10
set transport remote_smtp
queued for remote_smtp transport: local_part = wescarver
domain = gcscrusaders.org
errors_to=NULL
domain_data=NULL localpart_data=NULL
routed by dnslookup_relay_to_domains router
envelope to: wescarver@???
transport: remote_smtp
host mail.gcscrusaders.org [68.119.178.7] MX=10
wescarver@???
router = dnslookup_relay_to_domains, transport = remote_smtp
host mail.gcscrusaders.org [68.119.178.7] MX=10
search_tidyup called
>>>>>>>>>>>>>>>> Exim pid=4508 terminating with rc=0 >>>>>>>>>>>>>>>>

MailGateway:/usr/share/doc/exim4# exim -d -bt
wescarver@???
##################################################################
#Section inserted for email message:
#This is our current domain...Email handled by our ISP..poorly.
#This Domain has not been added to Exchange...
#after I get the school email working (gcscrusaders.org) I will
#move hosting of this working domain to the Exchange server...
#I Will add an IP address externally, and use router to forward to
#my ASSP/Exim box also.
##################################################################
Exim version 4.63 uid=0 gid=0 pid=4510 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=4510
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@localhost
Address testing: uid=0 gid=102 euid=0 egid=102
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

Testing wescarver@???
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

Considering wescarver@???
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

routing wescarver@???
--------> hubbed_hosts router <--------
local_part=wescarver domain= gracechapelministries.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=wescarver domain=gracechapelministries.com
checking domains
gracechapelministries.com in "@:localhost"? no (end of list)
gracechapelministries.com in "<; GraceChapelMinistries.com;GCSCrusaders.org"?
yes (matched " GraceChapelMinistries.com")
gracechapelministries.com in "! +local_domains : +relay_to_domains"? yes
(matched "+relay_to_domains")
R: dnslookup_relay_to_domains for wescarver@???
calling dnslookup_relay_to_domains router
dnslookup_relay_to_domains router called for
wescarver@???
  domain = gracechapelministries.com
DNS lookup of gracechapelministries.com (MX) succeeded
DNS lookup of gracechapelministries.com.s5a1.psmtp.com (AAAA) gave NO_DATA
returning DNS_NODATA
DNS lookup of gracechapelministries.com.s5a1.psmtp.com (A) succeeded
DNS lookup of gracechapelministries.com.s5a2.psmtp.com (AAAA) gave NO_DATA
returning DNS_NODATA
DNS lookup of gracechapelministries.com.s5a2.psmtp.com (A) succeeded
DNS lookup of gracechapelministries.com.s5b1.psmtp.com (AAAA) gave NO_DATA
returning DNS_NODATA
DNS lookup of gracechapelministries.com.s5b1.psmtp.com (A) succeeded
DNS lookup of gracechapelministries.com.s5b2.psmtp.com (AAAA) gave NO_DATA
returning DNS_NODATA
DNS lookup of gracechapelministries.com.s5b2.psmtp.com (A) succeeded
DNS lookup of mail39.ixwebhosting.com (AAAA) gave NO_DATA
returning DNS_NODATA
DNS lookup of mail39.ixwebhosting.com (A) succeeded
fully qualified name = gracechapelministries.com
host_find_bydns yield = HOST_FOUND (2); returned hosts:
  gracechapelministries.com.s5a1.psmtp.com 64.18.4.10 MX=2
  gracechapelministries.com.s5a2.psmtp.com 64.18.4.11 MX=4
  gracechapelministries.com.s5b1.psmtp.com 64.18.4.13 MX=6
  gracechapelministries.com.s5b2.psmtp.com 64.18.4.14 MX=8
  mail39.ixwebhosting.com 72.41.255.228 MX=10
set transport remote_smtp
queued for remote_smtp transport: local_part = wescarver
domain = gracechapelministries.com
  errors_to=NULL
  domain_data=NULL localpart_data=NULL
routed by dnslookup_relay_to_domains router
  envelope to: wescarver@???
  transport: remote_smtp
  host gracechapelministries.com.s5a1.psmtp.com [64.18.4.10] MX=2
  host gracechapelministries.com.s5a2.psmtp.com [ 64.18.4.11] MX=4
  host gracechapelministries.com.s5b1.psmtp.com [64.18.4.13] MX=6
  host gracechapelministries.com.s5b2.psmtp.com [64.18.4.14] MX=8
  host mail39.ixwebhosting.com [72.41.255.228 ] MX=10
wescarver@???
  router = dnslookup_relay_to_domains, transport = remote_smtp
  host gracechapelministries.com.s5a1.psmtp.com [64.18.4.10]    MX=2
  host gracechapelministries.com.s5a2.psmtp.com [ 64.18.4.11]    MX=4
  host gracechapelministries.com.s5b1.psmtp.com [64.18.4.13]    MX=6
  host gracechapelministries.com.s5b2.psmtp.com [64.18.4.14]    MX=8
  host mail39.ixwebhosting.com                  [ 72.41.255.228] MX=10
search_tidyup called

>>>>>>>>>>>>>>>> Exim pid=4510 terminating with rc=0 >>>>>>>>>>>>>>>>

MailGateway:/usr/share/doc/exim4# exim -d -bt wescarver@???
##################################################################
#inserted for email message
#Internal domain name...not owned on the Internet.
#In my setup, Exim4 should never see this, but I wanted to be thorough
##################################################################
Exim version 4.63 uid=0 gid=0 pid=4506 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=4506
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@localhost
Address testing: uid=0 gid=102 euid=0 egid=102
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

Testing wescarver@???
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

Considering wescarver@???
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

routing wescarver@???
--------> hubbed_hosts router <--------
local_part=wescarver domain=gcm.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
--------> dnslookup_relay_to_domains router <--------
local_part=wescarver domain=gcm.net
checking domains
gcm.net in "@:localhost"? no (end of list)
gcm.net in "<; GraceChapelMinistries.com;GCSCrusaders.org"? no (end of list)
gcm.net in "! +local_domains : +relay_to_domains"? no (end of list)
dnslookup_relay_to_domains router skipped: domains mismatch
--------> dnslookup router <--------
local_part=wescarver domain=gcm.net
checking domains
cached no match for +local_domains
cached lookup data = NULL
gcm.net in "! +local_domains"? yes (end of list)
R: dnslookup for wescarver@???
calling dnslookup router
dnslookup router called for wescarver@???
domain = gcm.net
DNS lookup of gcm.net (MX) gave NO_DATA
returning DNS_NODATA
DNS lookup of gcm.net (AAAA) gave NO_DATA
returning DNS_NODATA
DNS lookup of gcm.net (A) succeeded
10.10.5.11 in " 0.0.0.0 : 127.0.0.0/8 : 192.168.0.0/16 :172.16.0.0/12
: 10.0.0.0/8
: 169.254.0.0/16 :255.255.255.255"? yes (matched "10.0.0.0/8")
ignored host gcm.net [10.10.5.11]
10.10.5.13 in "0.0.0.0 : 127.0.0.0/8 : 192.168.0.0/16 :172.16.0.0/12 :
10.0.0.0/8 : 169.254.0.0/16 :255.255.255.255"? yes (matched " 10.0.0.0/8")
ignored host gcm.net [10.10.5.13]
10.10.5.12 in " 0.0.0.0 : 127.0.0.0/8 : 192.168.0.0/16 :172.16.0.0/12 :
10.0.0.0/8 : 169.254.0.0/16 :255.255.255.255"? yes (matched "10.0.0.0/8")
ignored host gcm.net [ 10.10.5.12]
10.10.30.123 in "0.0.0.0 : 127.0.0.0/8 : 192.168.0.0/16 : 172.16.0.0/12 :
10.0.0.0/8 : 169.254.0.0/16 :255.255.255.255"? yes (matched " 10.0.0.0/8")
ignored host gcm.net [10.10.30.123]
dnslookup router declined for wescarver@???
"more" is false: skipping remaining routers
no more routers
wescarver@??? is undeliverable:
Unrouteable address
search_tidyup called
>>>>>>>>>>>>>>>> Exim pid=4506 terminating with rc=2 >>>>>>>>>>>>>>>>

MailGateway:/usr/share/doc/exim4#
After looking at this output, do I need to change this part?:
dnslookup_relay_to_domains:
debug_print = "R: dnslookup_relay_to_domains for $local_part@$domain"
driver = dnslookup
domains = ! +local_domains : +relay_to_domains
transport = remote_smtp
same_domain_copy_routing = yes
no_more

It looks like the way I have it set up...this section is really the right
place to put it...not hubbed domains...

Could I:
change Driver to manualroute
take out domains and
put the route_list here?

I need to look up "no_more" also...I remember reading about it...It tells
Exim not to send the mesasge to other routers...If I am right, I need this
to keep from possibly getting a loop if my internal server goes down for
some reason...
It also looks like it tested the hubbed_hosts router but failed...do I need
to add both capitolization options in the manualroute list?
ie: GCSCrusaders.org;gcscrusaders.org

gcscrusaders.org matched GCSCrusaders.org in the +relay_to_domains.

I see another problem, and I am not sure if this is a Debian issue....

In the "domain" section of the hubbed_host router, it looks like there is a
test for a hubbed_hosts file...the test fails...
in output:
expansion of "${if
exists{/etc/exim4/hubbed_hosts}{partial-lsearch;/etc/exim4/hubbed_hosts}fail}"
forced failure: assume not in this list

Why did this fail...there is no hubbed_hosts file in that folder...do I need
one?

Ian...THANK YOU...I have to admit...when I was reading the Exim Spec...the
command line options kind of all blurred together...that is what did it
here...I will go back and try to read through those again...