Very many people on the RT Users mailing list seem to have problems
getting Qmail and RT working happily together. It’s not difficult at all.
I just put this together in about 5 minutes. I thought that it would be
nice to make a contribution to the RT user manual. Feel free to add this
text to RTFM. The current Qmail portion is woefully inadequate (no
offense intended to the original author)
Comments, flames, criticism are all welcome!
RT with Qmail HOWTO
The following instructions will work for very small setups, as well
as for setups with a thousand support queues.
Without further adieu, let’s proceed.
In the above example, email addresses are created for 4 RT queues. The
fields are delimited by the : character. The third field is the rt
user’s UID, the fourth field is his GID, and the fifth field is his
home directory. Make sure those fields match your local configuration.
The last line of the assign file must be a single dot.
while in the /var/qmail/users directory, execute:
NOTE: you have to repeat step 5 every time you make a change to the assign file
- add aliases to rt’s home directory, 2 per queue, matching the assign file:
drwxr-xr-x 4 rt rt 4096 May 12 12:17 .
drwxr-xr-x 6 root root 4096 Mar 31 13:08 …
-rw-r–r-- 1 rt rt 155 May 12 12:16 .qmail-backup-support
-rw-r–r-- 1 rt rt 152 May 12 12:16 .qmail-backup-support-comment
-rw-r–r-- 1 rt rt 151 May 12 12:14 .qmail-db-support
-rw-r–r-- 1 rt rt 148 May 12 12:15 .qmail-db-support-comment
-rw-r–r-- 1 rt rt 153 May 12 12:17 .qmail-ldap-support
-rw-r–r-- 1 rt rt 150 May 12 12:17 .qmail-ldap-support-comment
-rw-r–r-- 1 rt rt 89 Mar 13 10:06 .qmail-test
-rw-r–r-- 1 rt rt 86 Mar 13 10:06 .qmail-test-comment
| /var/qmail/bin/preline /usr/local/rt2/bin/rt-mailgate --queue backup-support --action correspond
| /var/qmail/bin/preline /usr/local/rt2/bin/rt-mailgate --queue backup-support --action comment
If you created those .qmail files as root, then you need to
chown rt:rt .qmail-*
install the perl-suidperl rpm if you’re using linux. If not, then figure it out on your own.
configure rt-mailgate to use suid-perl (or qmail will refuse to deliver)
head -n 2 rt-mailgate