Pipe from remote mail server (Postfix) into Znuny

Moderator: crythias

Post Reply
Afox
Znuny newbie
Posts: 12
Joined: 28 Jan 2015, 21:03
Znuny Version: 6.4.4
Real Name: Anon

Pipe from remote mail server (Postfix) into Znuny

Post by Afox »

Hello,
I want to pipe mails from a remote Postfix server into Znuny.

I found the corresponding section in the OTRS manual here: https://doc.znuny.org/doc/manual/admin/ ... eiving-cmd
As the command

Code: Select all

$SYS_HOME/bin/otrs.Console.pl Maint::PostMaster::Read --target-queue=QUEUENAME
has to be run on the same machine I wonder how I can achieve the same result with a remote mail server. For any hint I am very grateful.

Thanks and best regards
root
Administrator
Posts: 3961
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Pipe from remote mail server (Postfix) into Znuny

Post by root »

Hi,

You need to configure the local MTA (Postfix) to accept email from external and then pass them via procmail into Znuny

- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
Afox
Znuny newbie
Posts: 12
Joined: 28 Jan 2015, 21:03
Znuny Version: 6.4.4
Real Name: Anon

Re: Pipe from remote mail server (Postfix) into Znuny

Post by Afox »

Thanks for your answer. I am not sure if we mean the same. If I understand correctly I need to setup a second Postfix server on the Znuny machine?
root
Administrator
Posts: 3961
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Pipe from remote mail server (Postfix) into Znuny

Post by root »

Hi,

Yes, that's correct. Moving the emails from server a to b happens mostly by using SMTP. Setup the Postfix on the Znuny system and configure the Postfix to accept emails for USER@FQDN where USER is the application user.

- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
Afox
Znuny newbie
Posts: 12
Joined: 28 Jan 2015, 21:03
Znuny Version: 6.4.4
Real Name: Anon

Re: Pipe from remote mail server (Postfix) into Znuny

Post by Afox »

Thanks again. Regarding procmail I was thinking about setting

Code: Select all

mailbox_command = /usr/bin/procmail -a "$EXTENSION"
for the Znuny Postfix server and then make queue assignments inside the .procmailrc file. Would that be sufficient?
Afox
Znuny newbie
Posts: 12
Joined: 28 Jan 2015, 21:03
Znuny Version: 6.4.4
Real Name: Anon

Re: Pipe from remote mail server (Postfix) into Znuny

Post by Afox »

Addition: I believe your advice encloses that I forward the mail to one mail address, for example otrs@domain.tld. But would it also work if I relay the mail to the Znuny Postfix server without accumulating to one mail address?
Post Reply