[Exim] PIPING PROBLEMS

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: m. shahid
Dátum:  
Címzett: exim-users
Tárgy: [Exim] PIPING PROBLEMS
[ Converted text/html to text/plain ]
Hi.

I'm just trying a very simple pipe command and I keep getting some errors. I
cant seem to figure out the problem.

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


######################################################################
#                    MAIN CONFIGURATION SETTINGS                     #
######################################################################
 local_domains = localhost:comp.leeds.ac.uk
 forbid_domain_literals
 never_users = root
 trusted_users = csxms
 host_lookup = *
 ignore_errmsg_errors_after = 2d
 timeout_frozen_after = 7d
end


######################################################################
#                      TRANSPORTS CONFIGURATION                      #
######################################################################
#                       ORDER DOES NOT MATTER                        #
#     Only one appropriate transport is called for each delivery.    #
######################################################################
# A transport is used only when referenced from a director or a router that
# successfully handles an address.
# This transport is used for delivering messages over SMTP connections.
remote_smtp:
  driver = smtp


# This transport is used for local delivery to user mailboxes in traditional
# BSD mailbox format. 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 = /home/cserv1_a/student/csx/csxms/exim/$local_part
#/var/mail/$local_part
delivery_date_add
envelope_to_add
return_path_add
# group = mail
# mode = 0660
# This transport is used for handling pipe deliveries generated by alias
# or .forward files. 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 of return_output if you want this to happen only when the pipe fails
# to complete normally. You can set different transports for aliases and
# forwards if you want to - see the references to address_pipe in the
directors
# section below.
address_pipe:
driver = pipe
return_output

dir_pipe:
driver = appendfile
file = /home/cserv1_a/student/csx/csxms/exim/spam/$local_part
delivery_date_add

spam_pipe:
driver = pipe
command =
"/home/cserv1_a/student/csx/csxms/MODULES3/bogofilter/TESTING/bogofilter -p -v
-d /home/cserv1_a/student/csx/csxms/MODULES3/bogofilter/TESTING > exim.mbox "
return_fail_output

#bogo_pipe:
# driver = pipe
# command = "/home/cserv1_a/student/csx/csxms/MODULES3/exim-3.34/bin/exim
-oMr scanned-ok -bS"
# transport_filter =
"/home/cserv1_a/student/csx/csxms/MODULES3/bogofilter/bg/bin/bogofilter -p -d
/home/cserv1_a/student/csx/csxms/MODULES3/bogofilter/TESTING "
# bsmtp = all
# prefix =
# user = csxms
# # group = mail
# return_fail_output

# This transport is used for handling deliveries directly to files that are
# generated by aliasing or forwarding.
#address_file:
# driver = appendfile
# delivery_date_add
# envelope_to_add
# return_path_add

# This transport is used for handling autoreplies generated by the filtering
# option of the forwardfile director.
#address_reply:
# driver = autoreply
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.
#
##### NB NB You must ensure that /etc/aliases exists. It used to be the case
##### NB NB that every Unix had that file, because it was the Sendmail
default.
##### NB NB These days, there are systems that don't have it. Your aliases
##### NB NB file should at least contain an alias for "postmaster".
#
# 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. Alternatively, you
# can specify "user" on the transports that are used. Note that those
# listed below are the same as are used for .forward files; you might want
# to set up different ones for pipe and file deliveries from aliases.
#smart_user:
#  condition = ${if eq{$received_protocol}{scanned-ok}{no}{yes}}
#  driver = localuser
#  transport = bogo_pipe


spam_check:
driver = localuser
# condition = ${if def:header_X-Bogosity {true}}
transport = spam_pipe
#dir_pipe


#system_aliases:
# driver = aliasfile
# file = /etc/aliases
# search_type = lsearch
# user = exim
# file_transport = address_file
# pipe_transport = address_pipe
# 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 no_verify setting means that this director will be skipped when
# verifying addresses if sender_verify or receiver_verify is set (though
# they are not set by default). Similarly, no_expn means that this director
# will be skipped if smtp_expn_hosts is set to allow any hosts to use the
# EXPN command.
# 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.
# The three transports specified at the end are those that are used when
# forwarding generates a direct delivery to a file, or to a pipe, or sets
# up an auto-reply, respectively.
#userforward:
# driver = forwardfile
# file = .forward
# no_verify
# no_expn
# check_ancestor
# filter
# file_transport = address_file
# pipe_transport = address_pipe
# reply_transport = address_reply
# This director matches local user mailboxes.
localuser:
driver = localuser
transport = local_delivery
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. Any domain
# that resolves to an IP address on the loopback interface (127.0.0.0/8) is
# treated as if it had no DNS entry.
lookuphost:
  driver = lookuphost
  transport = remote_smtp
  ignore_target_hosts = 127.0.0.0/8
# This router routes to remote hosts over SMTP by explicit IP address,
# when an email address is given in "domain literal" form, for example,
# <user@[192.168.35.64[1]]>. The RFCs require this facility. However, it is
# little-known these days, and has been exploited by evil people seeking
# to abuse SMTP relays. Consequently it is commented out in the default
# configuration. If you uncomment this router, you also need to comment out
# "forbid_domain_literals" above, so that Exim can recognize the syntax of
# domain literal addresses.
# domain_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 1 hour 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,16h,1h,1.5; F,4d,8h
end


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


######################################################################
#                   AUTHENTICATION CONFIGURATION                     #
######################################################################
# There are no authenticator specifications in this default configuration
file.
# End of Exim configuration file


As you can see it's just some testing, which I've

------------------------------------------------------------------------------
On the move? Get Hotmail on your mobile phone[2]

===References:===
1. mailto:user@[192.168.35.64
2. http://g.msn.com/8HMMENUK/2731