No subject


Thu Oct 13 11:38:50 EDT 2022


#pick out the valid rt- addresses and deliver them to the rt script
rt:
  driver = smartuser
  transport = rt_pipe
  domains = "rt.ny.babcockbrown.com"
  local_parts = "^rt(-.*)?"
  suffix = "-action:-comment:-correspond"
  suffix_optional
  require_files = "+/opt/rt/bin/rtmux.pl"





-----Original Message-----
From:	Lorens Kockum [mailto:rt-id-45 at lists.lorens.org]
Sent:	Monday, January 29, 2001 1:06 PM
To:	rt-users at lists.fsck.com
Subject:	Re: [rt-users] Mail Problem

On Mon, Jan 29, 2001 at 12:47:41PM -0500, George Warnagiris wrote:
> I have RT 1.0.4 running on Debian Potato which uses Exim.  I have made the
> changes to my Exim config file as recommended in the FAQ
> (ftp://ftp.fsck.com/pub/rt/contrib/exim.README).

Same here except it's RT 1.0.7.  No problem (except for not
*sending* mail when I tested it -- but that was a case of RT
being smarter than I thought it was).

> working fine except RT does not create a new request when it receives
> mail.

Hmmm. I know you set it up as recommended in the FAQ, but could
you maybe post the exim.cf lines in question?

-- 
#include <std_disclaim.h>                          Lorens Kockum

_______________________________________________
rt-users mailing list
rt-users at lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users

 <<exim.conf>> 

------_=_NextPart_000_01C08A22.5F0750D0
Content-Type: application/octet-stream;
	name="exim.conf"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="exim.conf"

# This is the main exim configuration file.=0A=
# It was originally generated by `eximconfig', part of the exim =
package=0A=
# distributed with Debian, but it may edited by the mail system =
administrator.=0A=
# This file originally generated by eximconfig at Fri Jan 19 14:07:25 =
EST 2001=0A=
# See exim info section for details of the things that can be =
configured here.=0A=
=0A=
# Please see the manual for a complete list=0A=
# of all the runtime configuration options that can be included in a=0A=
# configuration file.=0A=
=0A=
# This file is divided into several parts, all but the last of which =
are=0A=
# terminated by a line containing the word "end". The parts must =
appear=0A=
# in the correct order, and all must be present (even if some of them =
are=0A=
# in fact empty). Blank lines, and lines starting with # are =
ignored.=0A=
=0A=
######################################################################=0A=
#                    MAIN CONFIGURATION SETTINGS                     =
#=0A=
######################################################################=0A=
=0A=
# Specify the domain you want to be added to all unqualified =
addresses=0A=
# here. Unqualified addresses are accepted only from local callers =
by=0A=
# default. See the receiver_unqualified_{hosts,nets} options if you =
want=0A=
# to permit unqualified addresses from remote sources. If this option =
is=0A=
# not set, the primary_hostname value is used for qualification.=0A=
=0A=
qualify_domain =3D babcockbrown.com=0A=
=0A=
# If you want unqualified recipient addresses to be qualified with a =
different=0A=
# domain to unqualified sender addresses, specify the recipient domain =
here.=0A=
# If this option is not set, the qualify_domain value is used.=0A=
=0A=
# qualify_recipient =3D=0A=
=0A=
# Specify your local domains as a colon-separated list here. If this =
option=0A=
# is not set (i.e. not mentioned in the configuration file), the=0A=
# qualify_recipient value is used as the only local domain. If you do =
not want=0A=
# to do any local deliveries, uncomment the following line, but do not =
supply=0A=
# any data for it. This sets local_domains to an empty string, which is =
not=0A=
# the same as not mentioning it at all. An empty string specifies that =
there=0A=
# are no local domains; not setting it at all causes the default value =
(the=0A=
# setting of qualify_recipient) to be used.=0A=
=0A=
local_domains =3D localhost:ny.babcockbrown.com:babcockbrown.com=0A=
=0A=
# Allow mail addressed to our hostname, or to our IP address.=0A=
=0A=
local_domains_include_host =3D true=0A=
local_domains_include_host_literals =3D true=0A=
=0A=
# Domains we relay for; that is domains that aren't considered local =
but we =0A=
# accept mail for them.=0A=
=0A=
#relay_domains =3D =0A=
=0A=
# If this is uncommented, we accept and relay mail for all domains we =
are =0A=
# in the DNS as an MX for.=0A=
=0A=
#relay_domains_include_local_mx =3D true=0A=
=0A=
# No local deliveries will ever be run under the uids of these users (a =
colon-=0A=
# separated list). An attempt to do so gets changed so that it runs =
under the=0A=
# uid of "nobody" instead. This is a paranoic safety catch. Note the =
default=0A=
# setting means you cannot deliver mail addressed to root as if it were =
a=0A=
# normal user. This isn't usually a problem, as most sites have an =
alias for=0A=
# root that redirects such mail to a human administrator.=0A=
=0A=
never_users =3D root=0A=
=0A=
# The setting below causes Exim to do a reverse DNS lookup on all =
incoming=0A=
# IP calls, in order to get the true host name. If you feel this is =
too=0A=
# expensive, you can specify the networks for which a lookup is done, =
or=0A=
# remove the setting entirely.=0A=
=0A=
host_lookup =3D *=0A=
=0A=
# The setting below would, if uncommented, cause Exim to check the =
syntax of=0A=
# all the headers that are supposed to contain email addresses (To:, =
From:,=0A=
# etc). This reduces the level of bounced bounces considerably.=0A=
=0A=
# headers_check_syntax=0A=
=0A=
# Exim contains support for the Realtime Blocking List (RBL) that is =
being=0A=
# maintained as part of the DNS. See http://maps.vix.com/rbl/ for=0A=
# background. Uncommenting the following line will make Exim reject =
mail=0A=
# from any host whose IP address is blacklisted in the RBL at =
maps.vix.com.=0A=
=0A=
#rbl_domains =3D rbl.maps.vix.com=0A=
#rbl_reject_recipients =3D false=0A=
#rbl_warn_header =3D true=0A=
=0A=
# The setting below allows your host to be used as a mail relay only =
by=0A=
# localhost: it locks out the use of your host as a mail relay by =
any=0A=
# other host. See the section of the manual entitled "Control of =
relaying" =0A=
# for more info.=0A=
=0A=
host_accept_relay =3D localhost=0A=
=0A=
# If you want Exim to support the "percent hack" for all your local =
domains,=0A=
# uncomment the following line. This is the feature by which mail =
addressed=0A=
# to x%y at z (where z is one of your local domains) is locally rerouted =
to=0A=
# x at y and sent on. Otherwise x%y is treated as an ordinary local =
part=0A=
=0A=
# percent_hack_domains=3D*=0A=
=0A=
# If this option is set, then any process that is running as one of =
the=0A=
# listed users may pass a message to Exim and specify the sender's=0A=
# address using the "-f" command line option, without Exim's adding =
a=0A=
# "Sender" header.=0A=
=0A=
trusted_users =3D mail=0A=
=0A=
# If this option is true, the SMTP command VRFY is supported on =
incoming=0A=
# SMTP connections; otherwise it is not.=0A=
=0A=
smtp_verify =3D false=0A=
=0A=
# Some operating systems use the "gecos" field in the system password =
file=0A=
# to hold other information in addition to users' real names. Exim =
looks up=0A=
# this field when it is creating "sender" and "from" headers. If these =
options=0A=
# are set, exim uses "gecos_pattern" to parse the gecos field, and =
then=0A=
# expands "gecos_name" as the user's name. $1 etc refer to sub-fields =
matched=0A=
# by the pattern.=0A=
=0A=
gecos_pattern =3D ^([^,:]*)=0A=
gecos_name =3D $1=0A=
=0A=
# This sets the maximum number of messages that will be accepted in =
one=0A=
# connection. The default is 10, which is probably enough for most =
purposes,=0A=
# but is too low on dialup SMTP systems, which often have many more =
mails=0A=
# queued for them when they connect.=0A=
=0A=
smtp_accept_queue_per_connection =3D 100=0A=
=0A=
# Send a mail to the postmaster when a message is frozen. There are =
many=0A=
# reasons this could happen; one is if exim cannot deliver a mail with =
no=0A=
# return address (normally a bounce) another that may be common on =
dialup=0A=
# systems is if a DNS lookup of a smarthost fails. Read the =
documentation=0A=
# for more details: you might like to look at the auto_thaw option=0A=
=0A=
freeze_tell_mailmaster =3D true=0A=
=0A=
# This string defines the contents of the \`Received' message header =
that=0A=
# is added to each message, except for the timestamp, which is =
automatically=0A=
# added on at the end, preceded by a semicolon. The string is expanded =
each=0A=
# time it is used.=0A=
=0A=
received_header_text =3D "Received: \=0A=
         ${if def:sender_rcvhost {from ${sender_rcvhost}\n\t}\=0A=
         {${if def:sender_ident {from ${sender_ident} }}\=0A=
         ${if def:sender_helo_name =
{(helo=3D${sender_helo_name})\n\t}}}}\=0A=
         by ${primary_hostname} \=0A=
         ${if def:received_protocol {with ${received_protocol}}} \=0A=
         (Exim ${version_number} #${compile_number} (Debian))\n\t\=0A=
         id ${message_id}\=0A=
         ${if def:received_for {\n\tfor <$received_for>}}"=0A=
end=0A=
=0A=
=0A=
######################################################################=0A=
#                      TRANSPORTS CONFIGURATION                      =
#=0A=
######################################################################=0A=
#                       ORDER DOES NOT MATTER                        =
#=0A=
#     Only one appropriate transport is called for each delivery.    =
#=0A=
######################################################################=0A=
=0A=
# This transport is used for local delivery to user mailboxes. On =
debian=0A=
# systems group mail is used so we can write to the /var/spool/mail=0A=
# directory. (The alternative, which most other unixes use, is to =
deliver=0A=
# as the user's own group, into a sticky-bitted directory)=0A=
=0A=
local_delivery:=0A=
  driver =3D appendfile=0A=
  group =3D mail=0A=
  mode =3D 0660=0A=
  mode_fail_narrower =3D false=0A=
  envelope_to_add =3D true=0A=
  file =3D /var/spool/mail/${local_part}=0A=
=0A=
# This transport is used for handling pipe addresses generated by=0A=
# alias or .forward files. If the pipe generates any standard =
output,=0A=
# it is returned to the sender of the message as a delivery error. =
Set=0A=
# return_fail_output instead if you want this to happen only when =
the=0A=
# pipe fails to complete normally.=0A=
=0A=
address_pipe:=0A=
  driver =3D pipe=0A=
  return_output=0A=
=0A=
# This transport is used for handling file addresses generated by =
alias=0A=
# or .forward files.=0A=
=0A=
address_file:=0A=
  driver =3D appendfile=0A=
=0A=
# This transport is used for handling file addresses generated by =
alias=0A=
# or .forward files if the path ends in "/", which causes it to be =
treated=0A=
# as a directory name rather than a file name. Each message is then =
delivered=0A=
# to a unique file in the directory. If instead you want all such =
deliveries to=0A=
# be in the "maildir" format that is used by some other mail =
software,=0A=
# uncomment the final option below. If this is done, the directory =
specified=0A=
# in the .forward or alias file is the base maildir directory.=0A=
#=0A=
# Should you want to be able to specify either maildir or =
non-maildir=0A=
# directory-style deliveries, then you must set up yet another =
transport,=0A=
# called address_directory2. This is used if the path ends in "//" so =
should=0A=
# be the one used for maildir, as the double slash suggests another =
level=0A=
# of directory. In the absence of address_directory2, paths ending in =
//=0A=
# are passed to address_directory.=0A=
=0A=
address_directory:=0A=
  driver =3D appendfile=0A=
  no_from_hack=0A=
  prefix =3D ""=0A=
  suffix =3D ""=0A=
# maildir_format=0A=
=0A=
# This transport is used for handling autoreplies generated by the =
filtering=0A=
# option of the forwardfile director.=0A=
=0A=
address_reply:=0A=
  driver =3D autoreply=0A=
=0A=
# This transport is used for procmail=0A=
=0A=
procmail_pipe:=0A=
  driver =3D pipe=0A=
  command =3D "/usr/bin/procmail -d ${local_part}"=0A=
  return_path_add=0A=
  delivery_date_add=0A=
  envelope_to_add=0A=
  check_string =3D "From "=0A=
  escape_string =3D ">From "=0A=
  user =3D $local_part=0A=
  group =3D mail=0A=
=0A=
=0A=
# This transport is used for delivering messages over SMTP =
connections.=0A=
=0A=
remote_smtp:=0A=
  driver =3D smtp=0A=
=0A=
# deliver to the RT scripts=0A=
=0A=
rt_pipe:=0A=
  driver =3D pipe=0A=
  path =3D "/usr/local/bin"=0A=
  command =3D "perl -T /opt/rt/bin/rtmux.pl \=0A=
                     rt-mailgate any \=0A=
                     ${substr_1:${local_part_suffix}}"=0A=
  log_output=0A=
  user =3D rt=0A=
  group =3D rt=0A=
=0A=
=0A=
end=0A=
=0A=
=0A=
######################################################################=0A=
#                      DIRECTORS CONFIGURATION                       =
#=0A=
#             Specifies how local addresses are handled              =
#=0A=
######################################################################=0A=
#                          ORDER DOES MATTER                         =
#=0A=
#   A local address is passed to each in turn until it is accepted.  =
#=0A=
######################################################################=0A=
=0A=
# This allows local delivery to be forced, avoiding alias files and=0A=
# forwarding.=0A=
=0A=
real_local:=0A=
  prefix =3D real-=0A=
  driver =3D localuser=0A=
  transport =3D local_delivery=0A=
=0A=
# This director handles aliasing using a traditional /etc/aliases =
file.=0A=
# If any of your aliases expand to pipes or files, you will need to =
set=0A=
# up a user and a group for these deliveries to run under. You can =
do=0A=
# this by uncommenting the "user" option below (changing the user =
name=0A=
# as appropriate) and adding a "group" option if necessary.=0A=
=0A=
system_aliases:=0A=
  driver =3D aliasfile=0A=
  file_transport =3D address_file=0A=
  pipe_transport =3D address_pipe=0A=
  file =3D /etc/aliases=0A=
  search_type =3D lsearch=0A=
# user =3D list=0A=
# Uncomment the above line if you are running smartlist=0A=
=0A=
=0A=
# This director runs procmail for users who have a .procmailrc file=0A=
=0A=
procmail:=0A=
  driver =3D localuser=0A=
  transport =3D procmail_pipe=0A=
  require_files =3D =
${local_part}:+${home}:+${home}/.procmailrc:+/usr/bin/procmail=0A=
  no_verify=0A=
    =0A=
# This director handles forwarding using traditional .forward files.=0A=
# It also allows mail filtering when a forward file starts with the =0A=
# string "# Exim filter": to disable filtering, uncomment the "filter" =
=0A=
# option. The check_ancestor option means that if the forward file =0A=
# generates an address that is an ancestor of the current one, the =0A=
# current one gets passed on instead. This covers the case where A is =
=0A=
# aliased to B and B has a .forward file pointing to A.=0A=
=0A=
# For standard debian setup of one group per user, it is =
acceptable---normal=0A=
# even---for .forward to be group writable. If you have everyone in =
one=0A=
# group, you should comment out the "modemask" line. Without it, the =
exim=0A=
# default of 022 will apply, which is probably what you want.=0A=
=0A=
userforward:=0A=
  driver =3D forwardfile=0A=
  file_transport =3D address_file=0A=
  pipe_transport =3D address_pipe=0A=
  reply_transport =3D address_reply=0A=
  no_verify=0A=
  check_ancestor=0A=
  file =3D .forward=0A=
  modemask =3D 002=0A=
  filter=0A=
=0A=
# This director matches local user mailboxes.=0A=
=0A=
localuser:=0A=
  driver =3D localuser=0A=
  transport =3D local_delivery=0A=
=0A=
#pick out the valid rt- addresses and deliver them to the rt script=0A=
rt:=0A=
  driver =3D smartuser=0A=
  transport =3D rt_pipe=0A=
  domains =3D "rt.ny.babcockbrown.com"=0A=
  local_parts =3D "^rt(-.*)?"=0A=
  suffix =3D "-action:-comment:-correspond"=0A=
  suffix_optional=0A=
  require_files =3D "+/opt/rt/bin/rtmux.pl"=0A=
=0A=
=0A=
end=0A=
=0A=
=0A=
######################################################################=0A=
#                      ROUTERS CONFIGURATION                         =
#=0A=
#            Specifies how remote addresses are handled              =
#=0A=
######################################################################=0A=
#                          ORDER DOES MATTER                         =
#=0A=
#  A remote address is passed to each in turn until it is accepted.  =
#=0A=
######################################################################=0A=
=0A=
# Remote addresses are those with a domain that does not match any =
item=0A=
# in the "local_domains" setting above.=0A=
=0A=
# Send all mail to a smarthost=0A=
=0A=
smarthost:=0A=
  driver =3D domainlist=0A=
  transport =3D remote_smtp=0A=
  route_list =3D "* yes bydns_a"=0A=
=0A=
end=0A=
=0A=
=0A=
######################################################################=0A=
#                      RETRY CONFIGURATION                           =
#=0A=
######################################################################=0A=
=0A=
# This single retry rule applies to all domains and all errors. It =
specifies=0A=
# retries every 15 minutes for 2 hours, then increasing retry =
intervals,=0A=
# starting at 2 hours and increasing each time by a factor of 1.5, up =
to 16=0A=
# hours, then retries every 8 hours until 4 days have passed since the =
first=0A=
# failed delivery.=0A=
=0A=
# Domain               Error       Retries=0A=
# ------               -----       -------=0A=
=0A=
*                      *           F,2h,15m; G,16h,2h,1.5; F,4d,8h=0A=
=0A=
end=0A=
=0A=
=0A=
######################################################################=0A=
#                      REWRITE CONFIGURATION                         =
#=0A=
######################################################################=0A=
=0A=
=0A=
# There are no rewriting specifications in this default configuration =
file.=0A=
=0A=
=0A=
# This rewriting rule is particularly useful for dialup users who=0A=
# don't have their own domain, but could be useful for anyone.=0A=
# It looks up the real address of all local users in a file=0A=
=0A=
*@babcockbrown.com    ${lookup{$1}lsearch{/etc/email-addresses}\=0A=
						{$value}fail} bcfrF=0A=
=0A=
# End of Exim configuration file=0A=

------_=_NextPart_000_01C08A22.5F0750D0--




More information about the rt-users mailing list