Procmail Configuration for OTRS

Moderator: crythias

Post Reply
sakul123
Znuny newbie
Posts: 13
Joined: 14 Mar 2017, 07:19
Znuny Version: OTRS 3/4/5
Real Name: Sakul

Procmail Configuration for OTRS

Post by sakul123 »

Hi

Have configured procmai, fetchmail to handle multiple emails in centos. I see that all emails are not getting delivered to OTRS account and all emails are present in the OTRS Spool (/opt/otrs/var/spool). What am i missing here?

my fetchmailrc (/root/.fetchmailrc)

Code: Select all

defaults
proto imap
set logfile "/var/log/fetchmaillog"
set daemon 60
set postmaster otrs

poll XX.XX.XX.XX
protocol IMAP
user "domain\\account"
pass "PasswordHere"
folder 'Inbox'
is otrs here
keep
Have followed the instructions from http://wiki.otterhub.org/index.php?titl ... POP3/fetch
Thanks
Best Regards
Sakul
OTRS 3/4/5 Centos/RHEL/Ubuntu/Fedora Mysql
sakul123
Znuny newbie
Posts: 13
Joined: 14 Mar 2017, 07:19
Znuny Version: OTRS 3/4/5
Real Name: Sakul

Re: Procmail Configuration for OTRS

Post by sakul123 »

Any help on this?
Thanks
Best Regards
Sakul
OTRS 3/4/5 Centos/RHEL/Ubuntu/Fedora Mysql
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Procmail Configuration for OTRS

Post by jojo »

why don't you use the fetch via OTRS instead of fetchmail?

OTRS installation contains a .procmailrc.dist whcih needs to renamed and ownership needs to be set to otrs user
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
sakul123
Znuny newbie
Posts: 13
Joined: 14 Mar 2017, 07:19
Znuny Version: OTRS 3/4/5
Real Name: Sakul

Re: Procmail Configuration for OTRS

Post by sakul123 »

I am using the same. But mails are fall in OTRS spool directory.
Thanks
Best Regards
Sakul
OTRS 3/4/5 Centos/RHEL/Ubuntu/Fedora Mysql
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Procmail Configuration for OTRS

Post by jojo »

please try to use the build in Mailbox Fetch instead of fetchmail
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
sakul123
Znuny newbie
Posts: 13
Joined: 14 Mar 2017, 07:19
Znuny Version: OTRS 3/4/5
Real Name: Sakul

Re: Procmail Configuration for OTRS

Post by sakul123 »

i have renamed .fetchmailrc and have configured IMAP account. Also have renamed .procmailrc.
And have enabled the cronjob of fetchmail.

When i run the command manually (fecthmail cronjob) i get the below error.

/usr/bin/fetchmail
fetchmail: WARNING: Running as root is discouraged.
fetchmail: no mailservers have been specified.
Thanks
Best Regards
Sakul
OTRS 3/4/5 Centos/RHEL/Ubuntu/Fedora Mysql
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Procmail Configuration for OTRS

Post by jojo »

as I said, please use the build in functionality and not fetchmail!
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
Post Reply