RT Newbie: Inbound email by getmail fails at unknown rtuser

All,

I’m installing RT 4.0.4 on Ubuntu 10.04 with AD integration. I can login to
RT web UI. I have run into a problem fetching emails using getmail.

Here is the problem,

Delivery error (command rt-mailgate 19780 error (127, exec of command rt-mailgate failed (no such specified user ('getpwnam(): name not found: rtuser')))) msg 1/84 (1117 bytes) from , delivery error (command rt-mailgate 19780 error (127, exec of command rt-mailgate failed (no such specified user ('getpwnam(): name not found: rtuser'))))

Here is my /opt/rt4/etc/getmailrc

[retriever] type = SimplePOP3Retriever server = xxxxxxx.com port = 110 username = xxxxx password = xxxxx

[destination]
type = MDA_external
path = /opt/rt4/bin/rt-mailgate
user = rtuser
#group = rtgroup
arguments = ("–url", “http://xxxxxx.com”, “–queue”, “General”,
"–action", “correspond”,)

[options]
read_all = false
delete_after = 8
verbose = 2

Here is how im invoking getmail,

#!/bin/bash
/usr/bin/getmail --rcfile /opt/rt4/etc/getmailrc

Looks like getmail is retrieving mails from the mailbox but unable to pass
that onto RT. I’m not sure where rtuser and rtgroup is to be created.

Is it a OS system user?
Is it an user in AD?
Is it an privileged user in RT?

I’m hoping once the user is created in the correct location, getmail will
populate RT -> Geberal queue

Thanks in advance,
Steve

Looks like getmail is retrieving mails from the mailbox but unable to pass
that onto RT. I’m not sure where rtuser and rtgroup is to be created.

As far as I understand output, getmail fails to find rtuser in the
system. RT doesn’t create such account. --with-bin-owner option in
configure script defaults to root. Files in bin dir are owned by this
account and group is set to value of --with-web-group option (default
www). If you don’t want to getmail to run mailgate script as root then
use user account that is in www group. Most probably you have www user
in www group. It’s also possible that this group is called apache,
httpd or something else.

Is it a OS system user?

It’s system user. As I understand it. getmail for security reasons
allows you to define system user and group to run commands under. You
start getmail as root, it inits itself and then switches to user/group
you defined. This lowers privileges of getmail and programs it
executes.

Is it an user in AD?
Is it an privileged user in RT?

This has nothing to do with AD and/or RT.

Best regards, Ruslan.