[rt-users] rt-crontool not sending mail, no errors
Marcos Orallo
m_orallo at yahoo.es
Sat May 23 10:58:09 EDT 2015
Hi Fredrik,
Have you tried using a simpler BeforeDue condition to test? Something like
"--condition-arg 2h". I don't think you need to specify the "0d", and it
may confuse the condition module.
You can also try to modify the search to return something very specific
(search by ticket id for example) so that you can verify that the --action
part works properly.
I have similar notifications for Reminders working with the following
command, just in case it's useful:
/opt/rt4/bin/rt-crontool \
--search RT::Search::FromSQL \
--search-arg 'Type = "reminder" and (Status = "open" or
Status = "new") and Due > "now"' \
--condition RT::Condition::BeforeDue \
--condition-arg 5m \
--action RT::Action::Notify \
--action-arg Owner,AlwaysNotifyActor \
--transaction first \
--template 'Reminder'
Regards.
2015-05-22 13:03 GMT+02:00 Fredrik Nyström <Fredrik.Nystrom at prevas.se>:
> Hi,
>
> I'm trying to use rt-crontool, to send out reminders when a ticket expires
> due date.
>
>
>
> The command and output is like this, but no mail is sent:
>
>
>
> [root@<server> ~]# /opt/rt4/bin/rt-crontool --search RT::Search::FromSQL
> \
>
> > --search-arg 'Queue = "The Queue" and (Status = "open" or Status
> = "new")' \
>
> > --condition RT::Condition::BeforeDue \
>
> > --condition-arg 0d2h3m1s \
>
> > --action RT::Action::NotifyGroup \
>
> > --action-arg 'mail at domain.se' \
>
> > --transaction first \
>
> > --template 'Reminder due soon' \
>
> > --verbose \
>
> > --log debug
>
> [3011] [Wed May 20 06:53:26 2015] [debug]: The RTAddressRegexp option is
> not set in the config. Not setting this option results in additional SQL
> queries to check whether each address belongs to RT or not. It is
> especially important to set this option if RT recieves emails on addresses
> that are not in the database or config.
> (/opt/rt4/bin/../lib/RT/Config.pm:505)
>
> 18079:
>
> Using transaction #111037...
>
> 18331:
>
> Using transaction #113770...
>
>
>
> Does anyone know, what could be the problem here?
>
>
>
> And, yes, mailing works, when you for exapmle resolve a ticket from the
> web interface.
>
>
>
> BR
>
> Fredrik
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20150523/b5d8d885/attachment.htm>
More information about the rt-users
mailing list