so, the /var/mail/otrs file is created and if I do this:
Code: Select all
cat /var/mail/otrs | perl otrs.Console.pl Maint::PostMaster::Read
Moderator: crythias
Code: Select all
cat /var/mail/otrs | perl otrs.Console.pl Maint::PostMaster::Read
Code: Select all
#!/bin/bash
#fetch new messages only
/usr/bin/fetchmail -k;
#break the inbox in several messages and pipe content to the worker
cat /var/mail/otrs | formail -ds /usr/bin/perl otrs.Console.pl Maint::PostMaster::Read
> /var/mail/otrs