[Exim] relay_domains

Top Page
Delete this message
Reply to this message
Author: Derrick
Date:  
To: exim-users
Subject: [Exim] relay_domains
I have in my config


relay_domains = /opt/exim/accept.relay-domains


in that file I have:

griffin:/var/log/exim# more /opt/exim/accept.relay-domains.test
multimedia.edu : vfs.com: dotaku.com: gekkofilms.com: vfslive.com:\
funlove.com: mercuryfilmworks.com: studiobproductions.com:
dickandrogers.com:\
industrialbrand.com: whataboutmimi.com: sentientmetasystems.com:\
michaelrichardplowman.com: sentientmeta.com: signalfilms.com

I am not able to get to relay to the domains, any ideas why, and what I
have not set right? (config attatched)
./exim -bh 24.113.180.251 -d9


**** SMTP testing session as if from host 24.113.180.251
**** Not for real!

host in host_lookup? yes (0.0.0.0/0)
looking up host name for 24.113.180.251
IP address lookup yielded cr58832-a.crdva1.bc.wave.home.com
Actual local interface address is 199.175.7.180
Actual local interface address is 127.0.0.1
cr58832-a.crdva1.bc.wave.home.com 24.113.180.251 -1
sender_fullhost = cr58832-a.crdva1.bc.wave.home.com [24.113.180.251]
sender_rcvhost = cr58832-a.crdva1.bc.wave.home.com ([24.113.180.251])
set_process_info: 528675 3.15 handling incoming connection from
cr58832-a.crdva1.bc.wave.home.com [24.113.180.251]
host in host_reject? no (option unset)
host in host_reject_recipients? no (option unset)
host in rbl_hosts? yes (*)
checking RBL domain rbl.maps.vix.com/reject
DNS lookup of 251.180.113.24.rbl.maps.vix.com (A) gave HOST_NOT_FOUND
RBL lookup for 251.180.113.24.rbl.maps.vix.com failed
=> that means it's not black listed at rbl.maps.vix.com
checking RBL domain relays.mail-abuse.org
DNS lookup of 251.180.113.24.relays.mail-abuse.org (A) gave HOST_NOT_FOUND
RBL lookup for 251.180.113.24.relays.mail-abuse.org failed
=> that means it's not black listed at relays.mail-abuse.org
host in sender_unqualified_hosts? no (option unset)
host in receiver_unqualified_hosts? no (option unset)
host in helo_verify? no (option unset)
host in helo_accept_junk_hosts? no (option unset)
220-Welcome! This system does not accept Unsolicited Commercial Email and
will
220-blacklist offenders through RBL and our internal list. Have a nice
day!
220-
220 griffin.multimedia.edu ESMTP Exim 3.15 Mon, 09 Apr 2001 09:37:47 -0700
220-Welcome! This system does not accept Unsolicited Commercial Email and
will
220-blacklist offenders through RBL and our internal list. Have a nice
day!
220-
220 griffin.multimedia.edu ESMTP Exim 3.15 Mon, 09 Apr 2001 09:37:47 -0700
smtp_setup_msg entered

MAIL FROM:<derrick@???>
SMTP<< MAIL FROM:<derrick@???>
derrick@??? in sender_reject? no (option unset)
derrick@??? in sender_reject_recipients? no (option
unset)
250 <derrick@???> is syntactically correct
250 <derrick@???> is syntactically correct
RCPT TO:<derrick@???>
SMTP<< RCPT TO:<derrick@???>
search_open: lsearch "/opt/exim/aliases/domains"
search_find: file="/opt/exim/aliases/domains"
key="mercuryfilmworks.com" partial=-1
LRU list:
6/opt/exim/aliases/domains
End
internal_search_find: file="/opt/exim/aliases/domains"
type=lsearch key="mercuryfilmworks.com"
file lookup required for mercuryfilmworks.com
in /opt/exim/aliases/domains
lookup failed
mercuryfilmworks.com in local_domains? no (end of list)
mercuryfilmworks.com in relay_domains? no (end of list)
host in host_accept_relay? no (end of list)
550 relaying to <derrick@???> prohibited by administrator
550 relaying to <derrick@???> prohibited by administrator
LOG: 1 MAIN REJECT
refused relay (host) to <derrick@???> from
<derrick@???> H=cr58832-a.crdva1.bc.wave.home.com
[24.113.180.251]



derrick
dmacpher@???

######################################################################
#                  Runtime configuration file for Exim               #
######################################################################


# This is a default configuration file which will operate correctly in
# uncomplicated installations. Please see the manual for a complete list
# of all the runtime configuration options that can be included in a
# configuration file.


# This file is divided into several parts, all but the last of which are
# terminated by a line containing the word "end". The parts must appear
# in the correct order, and all must be present (even if some of them are
# in fact empty). Blank lines, and lines starting with # are ignored.

# implement customised SMTP welcome banner - Vaughn 15/07/99

smtp_banner = "Welcome! This system does not accept Unsolicited \
      Commercial Email and will\nblacklist offenders through RBL and our \
      internal list. Have a nice day!\n\n${primary_hostname} ESMTP Exim \
      ${version_number} ${tod_full}"


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

deliver_load_max = 5.0
return_size_limit = 10k
auto_thaw = 8h
ignore_errmsg_errors_after = 2h
message_filter = /opt/exim/system_filter
message_body_visible = 15000

# Specify your host's canonical name here. If this option is not set, the
# uname() function is called to obtain the name.

primary_hostname = griffin.multimedia.edu


# Specify your local domains as a colon-separated list here. If this option
# is not set (i.e. not mentioned in the configuration file), the
# qualify_recipient value is used as the only local domain. If you do not want
# to do any local deliveries, uncomment the following line, but do not supply
# any data for it. This sets local_domains to an empty string, which is not
# the same as not mentioning it at all. An empty string specifies that there
# are no local domains; not setting it at all causes the default value (the
# setting of qualify_recipient) to be used.

local_domains = "griffin.multimedia.edu:multimedia.edu:griffin.vfs.com\
        :vfs.com:mail.multimedia.edu:interlexual.com:\
        lsearch;/opt/exim/aliases/domains"


# No local deliveries will ever be run under the uids of these users (a colon-
# separated list). An attempt to do so gets changed so that it runs under the
# uid of "nobody" instead. This is a paranoic safety catch. Note the default
# setting means you cannot deliver mail addressed to root as if it were a
# normal user. This isn't usually a problem, as most sites have an alias for
# root that redirects such mail to a human administrator.

never_users = root


# The setting below causes Exim to do a reverse DNS lookup on all incoming
# IP calls, in order to get the true host name. If you feel this is too
# expensive, you can specify the networks for which a lookup is done, or
# remove the setting entirely.
#
#host_lookup = ! 199.175.7.0/24 : ! 207.6.130.0/24 : ! 207.6.131.0/24 : ! 207.6.129.0/24 : ! 207.6.128.0/24 : 0.0.0.0/0
host_lookup = 0.0.0.0/0


# Exim contains support for the Realtime Blocking List (RBL) that is being
# maintained as part of the DNS. See http://maps.vix.com/rbl/ for background.
# Uncommenting the following line will make Exim reject mail from any
# host whose IP address is blacklisted in the RBL at maps.vix.com.

#rbl_domains = rbl.maps.vix.com/reject : dul.maps.vix.com/reject : relays.mail-abuse.org
rbl_domains = rbl.maps.vix.com/reject : relays.mail-abuse.org

#rbl_reject_recipients = true
rbl_log_headers
rbl_log_rcpt_count

# The setting below locks out the use of your host as a mail relay by any
# other host. If you want to permit relaying through your host from certain
# hosts or IP networks, you need to vary this option and/or make use of the
# other three options in the set sender_{host,net}_{accept,reject}_relay.
# See the section of the manual entitled "Control of relaying" for more info.
# Removing this setting altogether is not recommended, because there are many
# unscrupulous people out there who will make use of open relays to try to
# disguise the source of unsolicited bulk mail.

# sender_host_reject_relay = *

#relay_domains = /opt/exim/accept.relay-domains
relay_domains = /opt/exim/accept.relay-domains.test
#relay_domains = partial0-lsearch;/opt/exim/accept.relay-domains
#host_accept_relay = "partial0-lsearch;/opt/exim/accept.relay-domains"
#host_accept_relay = *.multimedia.edu : *.vfs.com 
host_accept_relay = "199.175.7.0/24 : \
                      207.6.130.0/24 : \
                     207.6.131.0/24 : \
                      207.6.129.0/24 : \
                      207.6.128.0/24 : \
                      255.255.255.255/32"

# This is where the max size of a message gets set.

message_size_limit = 10000000

# Added March 13th, 2000 to remove bounced messages from the queue after 12 hours

#ignore_errmsg_errors_after = 12h

# Settings to allow or not allow specific users from sending mail from 
# a domain they are not allowed to.

#sender_reject = interlexual.com

# And the exceptions to this are:


#receiver_verify = yes


end



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

# This transport is used for local delivery to user mailboxes. By default
# it will be run under the uid and gid of the local user, and requires
# the sticky bit to be set on the /var/mail directory. Some systems use
# the alternative approach of running mail deliveries under a particular
# group instead of using the sticky bit. The commented options below show
# how this can be done.

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


# This transport is used for handling pipe addresses generated by alias
# or .forward files. It has a conventional name, since it is not actually
# mentioned elsewhere in this configuration file. (A different name *can*
# be specified via the "address_pipe_transport" option if you really want
# to.) If the pipe generates any standard output, it is returned to the sender
# of the message as a delivery error. Set return_fail_output instead if you
# want this to happen only when the pipe fails to complete normally.

address_pipe:
  driver = pipe
  return_output


# This transport is used for handling file addresses generated by alias
# or .forward files. It has a conventional name, since it is not actually
# mentioned elsewhere in this configuration file.

address_file:
  driver = appendfile


# This transport is used for handling file addresses generated by alias
# or .forward files if the path ends in "/", which causes it to be treated
# as a directory name rather than a file name. Each message is then delivered
# to a unique file in the directory. If instead you want all such deliveries to
# be in the "maildir" format that is used by some other mail software,
# uncomment the final option below. If this is done, the directory specified
# in the .forward or alias file is the base maildir directory.
#
# Should you want to be able to specify either maildir or non-maildir
# directory-style deliveries, then you must set up yet another transport,
# called address_directory2. This is used if the path ends in "//" so should
# be the one used for maildir, as the double slash suggests another level
# of directory. In the absence of address_directory2, paths ending in //
# are passed to address_directory.

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


# This transport is used for handling autoreplies generated by the filtering
# option of the forwardfile director. It has a conventional name, since it
# is not actually mentioned elsewhere in this configuration file.

address_reply:
  driver = autoreply


# This transport is used for delivering messages over SMTP connections.

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.  #
######################################################################

# Local addresses are those with a domain that matches some item in the
# "local_domains" setting above, or those which are passed back from the
# routers because of a "self=local" setting (not used in this configuration).


# This director handles aliasing using a traditional /etc/aliases file.
# If any of your aliases expand to pipes or files, you will need to set
# up a user and a group for these deliveries to run under. You can do
# this by uncommenting the "user" option below (changing the user name
# as appropriate) and adding a "group" option if necessary.

#reject_unwanted:
#  driver = smartuser
#  domains = vfs.com
#  senders = lsearch;/opt/exim/vfs.senders
#  new_address = $local_part@$domain
#  no_more
#  new_director = system_aliases
#reject_unwanted
# verify_only
# driver = smartuser
# domains = vfs.com
# senders = lsearch;/opt/exim/vfs.senders
# new_address = $local_part@$domain
# no_more
# new_director = system_aliases

system_aliases:
  domains = "! lsearch;/opt/exim/aliases/domains : \
    *"
  driver = aliasfile
  file_transport = address_file
  pipe_transport = address_pipe
  file = /etc/aliases
  search_type = lsearch
  user = exim

accounts:
  driver = smartuser
#  domains = "domain.addresses.are.in.if.needed"
  local_parts = "^quer*[a-z,0-9]+"
 new_address = "registrar@???"

queries:
  driver = smartuser
 local_parts = "^q[0-9]+"
 new_address = "registrar@???"


# This director handles forwarding using traditional .forward files.
# If you want it also to allow mail filtering when a forward file
# starts with the string "# Exim filter", uncomment the "filter" option.
# The check_ancestor option means that if the forward file generates an
# address that is an ancestor of the current one, the current one gets
# passed on instead. This covers the case where A is aliased to B and B
# has a .forward file pointing to A.

userforward:
  domains = "! lsearch;/opt/exim/aliases/domains : \
    *"
  driver = forwardfile
  file_transport = address_file
  pipe_transport = address_pipe
  reply_transport = address_reply
  no_verify
  check_ancestor
  file = .forward
  filter


# This director matches local user mailboxes.

localuser:
  domains = "! lsearch;/opt/exim/aliases/domains : \
    *"
  driver = localuser
  transport = local_delivery


virtual:
  domains = "lsearch;/opt/exim/aliases/domains"
  driver = aliasfile
  file_transport = address_file
  pipe_transport = address_pipe
  no_more
  file = /opt/exim/aliases/$domain-aliases
  search_type = lsearch

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.  #
######################################################################

# Remote addresses are those with a domain that does not match any item
# in the "local_domains" setting above.


# This router routes to remote hosts over SMTP using a DNS lookup with
# default options.

lookuphost:
  driver = lookuphost
  transport = remote_smtp


# This router routes to remote hosts over SMTP by explicit IP address,
# given as a "domain literal" in the form [nnn.nnn.nnn.nnn]. The RFCs
# require this facility, which is why it is enabled by default in Exim.
# If you want to lock it out, set forbid_domain_literals in the main
# configuration section above.

literal:
  driver = ipliteral
  transport = remote_smtp


end



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

# This single retry rule applies to all domains and all errors. It specifies
# retries every 15 minutes for 2 hours, then increasing retry intervals,
# starting at 2 hours and increasing each time by a factor of 1.5, up to 16
# hours, then retries every 8 hours until 4 days have passed since the first
# failed delivery.

# Domain               Error       Retries
# ------               -----       -------

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

end



######################################################################
#                      REWRITE CONFIGURATION                         #
######################################################################

# There are no rewriting specifications in this default configuration file.

# End of Exim configuration file