[rt-users] Mailgate Problem - Exim / Debian

Atkinson, Daniel datkinson at sevenww.co.uk
Tue Sep 2 13:08:27 EDT 2003


Hi guys,

I've finally got the RT web interface up and running on my Debian box
(sarge, the current testing release).

I've moved on to set up the mailgate but now I'm stuck. I'm using Exim since
it was already installed and there were some bare-bones installation
instructions included with the debian package of RT3.

I just can't seem to get mail into the RT queues. I've posted some logs etc
below, any help much appreciated, and please forgive any glaring errors or
idiot mistakes, I'm a total RT/Linux newbie.

Thanks,
Dan.


Here's an example of me sending a message from the exim log:

2003-09-02 21:00:36 19uGOK-00008y-00 <= datkinson at sevenww.co.uk
H=exchange2-uk.s
evenww.co.uk [10.32.1.76] P=esmtp S=1894
id=0988C2A4D52A384C9377C80C9C2D5FB201F0
97 at exchange2-uk.sevenww.co.uk
2003-09-02 21:00:37 19uGOL-000095-00 <= www-data at rt.sevenww.co.uk U=www-data
P=l
ocal S=2957
2003-09-02 21:00:37 19uGOK-00008y-00 => |/usr/bin/rt-mailgate --queue
general --
action comment --url http://rt.sevenww.co.uk/ <rt at rt.sevenww.co.uk>
D=system_ali
ases T=address_pipe
2003-09-02 21:00:37 19uGOK-00008y-00 Completed
2003-09-02 21:00:37 19uGOL-000095-00 == root at rt.sevenww.co.uk
T=local_delivery d
efer (13): Permission denied: creating lock file hitching post
/var/spool/mail/r
oot.lock.rt.sevenww.co.uk.3f54e8d5.00000237 (euid=65534 egid=65534)

It always seems to log that 'permission denied', not sure why.

Here are the RT aliases which I have in a separate file...

rt: "|/usr/bin/rt-mailgate --queue General --action correspond --url
http://rt.sevenww.co.uk/"
rt-comment: "|/usr/bin/rt-mailgate --queue General --action comment --url
http://rt.sevenww.co.uk/"

And here's my exim config:

qualify_domain = rt.sevenww.co.uk

# qualify_recipient =
local_domains = localhost:rt,rt.sevenww.co.uk

local_domains_include_host = true
local_domains_include_host_literals = true

relay_domains_include_local_mx = true

never_users = root

host_lookup = *

host_accept_relay = 127.0.0.1 : ::::1

host_auth_accept_relay = *

trusted_users = mail:www-data

smtp_verify = true

gecos_pattern = ^([^,:]*)
gecos_name = $1

smtp_accept_queue_per_connection = 100

freeze_tell_mailmaster = true

received_header_text = "Received: \
         ${if def:sender_rcvhost {from ${sender_rcvhost}\n\t}\
         {${if def:sender_ident {from ${sender_ident} }}\
         ${if def:sender_helo_name {(helo=${sender_helo_name})\n\t}}}}\
         by ${primary_hostname} \
         ${if def:received_protocol {with ${received_protocol}}} \
         (Exim ${version_number} #${compile_number} (Debian))\n\t\
         id ${message_id}\
         ${if def:received_for {\n\tfor <$received_for>}}"

receiver_try_verify = true

end


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

local_delivery:
  driver = appendfile
  group = mail
  mode = 0660
  mode_fail_narrower = false
  envelope_to_add = true
  return_path_add = true
  file = /var/spool/mail/${local_part}

address_pipe:
  driver = pipe
  path = /usr/bin:/bin:/usr/local/bin
  return_output

address_file:
  driver = appendfile
  envelope_to_add = true
  return_path_add = true

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

address_reply:
  driver = autoreply

procmail_pipe:
  driver = pipe
  command = "/usr/bin/procmail"
  return_path_add
  delivery_date_add
  envelope_to_add
# check_string = "From "
# escape_string = ">From "
  suffix = ""

remote_smtp:
  driver = smtp
# authenticate_hosts = smarthost.isp.com

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

real_local:
  prefix = real-
  driver = localuser
  transport = local_delivery

system_aliases:
  driver = aliasfile
  file_transport = address_file
  pipe_transport = address_pipe
  file = /etc/aliases
  search_type = lsearch
  user = www-data

# RT Configuration

rt_aliases:
  driver = aliasfile
  file_transport = address_file
  pipe_transport = address_pipe
  file = /etc/request-tracker3/aliases
  search_type = lsearch
  user = www-data

userforward:
  driver = forwardfile
  file_transport = address_file
  pipe_transport = address_pipe
  reply_transport = address_reply
  no_verify
  check_ancestor
  check_local_user
  file = .forward
  modemask = 002
  filter

# This director runs procmail for users who have a .procmailrc file

procmail:
  driver = localuser
  transport = procmail_pipe
  require_files =
${local_part}:+${home}:+${home}/.procmailrc:+/usr/bin/procmail
  no_verify

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

lookuphost:
  driver = lookuphost
  transport = remote_smtp

literal:
  driver = ipliteral
  transport = remote_smtp

end


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

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

end


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


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


# This rewriting rule is particularly useful for dialup users who
# don't have their own domain, but could be useful for anyone.
# It looks up the real address of all local users in a file

*@rt    ${lookup{$1}lsearch{/etc/email-addresses}\
                                                {$value}fail} frFs

end


# End of Exim configuration file



More information about the rt-users mailing list