[rt-users] Determine Queue based off of email domain
John Hascall
john at iastate.edu
Sun Mar 21 01:12:27 EDT 2010
A couple of things you might have missed...
> # Set Variables
> SHELL=/bin/sh
> LOGFILE=/var/log/procmail.log
> LOG="--- Logging ${LOGFILE} for ${LOGNAME}---\n "
> VERBOSE=yes
> RT_MAILGATE="/opt/rt3/bin/rt-mailgate"
> RT_URI="http://192.168.0.29/ticket"
>
> LOGABSTRACT=no
>
> # ABC
> :0
> * ^From: .*@abc.com
> |/usr/bin/perl $RT_MAILGATE --queue "abc's Office" --action correspond --url
> $RT_URI
>
> # JKL
> :0
> * ^From: . at jkl.org
^^^^^^^^^^^^^^---- you are missing a '*' on this line
> |/usr/bin/perl $RT_MAILGATE --queue "JKL" --action correspond --url $RT_URI
>
> # XYZ
> :0
> * ^From: .*@XYZ.org
> |/usr/bin/perl $RT_MAILGATE --queue "XYZ" --action correspond --url $RT_URI
>
> # All others
> :0
> * !^From: .*@abc.com|.*@jkl.org|.*@xyz.org
^^^--- you don't need this line, procmail only does one delivery
unless you use the 'c' flag
> |/usr/bin/perl $RT_MAILGATE --queue "External Users" --action correspond
> --url $RT_URI
More information about the rt-users
mailing list