Trouble with Postfix?

Moderator: crythias

Locked
jbennett
Znuny newbie
Posts: 6
Joined: 12 Apr 2012, 20:17
Znuny Version: 3.1.3
Real Name: Jan

Trouble with Postfix?

Post by jbennett »

I'm having trouble getting OTRS to automatically pick up on emails.

I have successfully configured postfix and sent a test message from the command line. This email is picked up by OTRS successfully.

However, the emails I have being sent to the same email address that was used for RCPT TO: don't come through from Nagios.

I have changed and configured so many things I'm not sure where to start with my settings.

I cannot use POP3/IMAP settings. This is something completely out of my control as it is in the hands of another department and their policies.

Here is my test from the command line:

Code: Select all

[root@otrs ~]telnet xx.xx.xx.xx 25
Trying xx.xx.xx.xx...
Connected to xx.xx.xx.xx.
Escape character is '^]'.
220 otrs.company.org ESMTP Postfix
EHLO
501 Syntax: EHLO hostname
MAIL FROM: user@company.org
250 2.1.0 Ok
RCPT TO: otrs@company.org
250 2.1.5 Ok
DATA
354 End data with <CR><LF>.<CR><LF>
WHat about this one?  DOes this one go through too?
.
250 2.0.0 Ok: queued as 5FC105C7
quit
Connection closed by foreign host.
This message shows up in the OTRS ticket queue successfully.

I have since had a handfull of notifications come from Nagios, but they do not show up.

I'm unsure where I should set-up listening for the Nagios emails on the OTRS box since I'm not able to use POP3/IMAP?? I didn't see this documented anywhere that I looked, but perhaps I overlooked it?

If I execute ./otrs.PostMaster.pl from the command line, it seems like it tries to process but nothing happens.

If I execute ./otrs.PostMasterMailbox.pl, it will execute, but nothing is returned and no tickets are generated.

There are no settings under Admin -> PostMaster Mail Accounts. Is this as it should be or should I have something configured there since I can't use POP3/IMAP?
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Trouble with Postfix?

Post by crythias »

Postfix is (among other things) an SMTP server (send/receive mail). For your purposes re: Nagios, you'll need Nagios to find a way to send SMTP directly to your OTRS box. If Nagios is on the same box as OTRS, then nagios may be successful in an email like otrs@localhost, but if you're going to do that, you should also enable (mv /opt/otrs/.procmail.dist /opt/otrs/.procmail) procmail and make sure it's in your postfix configuration. Emails sent to/received at your otrs postfix box will immediately process mail.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Trouble with Postfix?

Post by jojo »

where is NAGIOS sending emails to?
Is NAGIOS on the same box?
What are the email logfiles saying?
"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
jbennett
Znuny newbie
Posts: 6
Joined: 12 Apr 2012, 20:17
Znuny Version: 3.1.3
Real Name: Jan

Re: Trouble with Postfix?

Post by jbennett »

crythias wrote:Postfix is (among other things) an SMTP server (send/receive mail). For your purposes re: Nagios, you'll need Nagios to find a way to send SMTP directly to your OTRS box. If Nagios is on the same box as OTRS, then nagios may be successful in an email like otrs@localhost, but if you're going to do that, you should also enable (mv /opt/otrs/.procmail.dist /opt/otrs/.procmail) procmail and make sure it's in your postfix configuration. Emails sent to/received at your otrs postfix box will immediately process mail.
jojo wrote:where is NAGIOS sending emails to?
Is NAGIOS on the same box?
What are the email logfiles saying?
Nagios is set up on a different virtual machine as follows:

SMTP
Send Mail From: Nagios XI <nagiosxi@company.org>
SMTP Settings
Host: smtp server IP
Port: 25
Username: <blank>
Password: <blank>
Security: None

Am I correct to assume that I would just need to change the Host IP to the OTRS box IP?

EDIT: I just changed this and had Nagios send a test email and it is now showing up in the OTRS que! I'm not sure why this didn't cross my mind. Likely because I'm still so new to this that I didn't know any better. It's quite obvious now that I think about it.

I will now wait and hope to get a Nagios alert email generated to see if it shows up in OTRS.

I take it that there is no way to have these emails go to both the OTRS box as well as to all current contacts at the same time while we roll over to the OTRS only system?
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Trouble with Postfix?

Post by crythias »

jbennett wrote:I take it that there is no way to have these emails go to both the OTRS box as well as to all current contacts at the same time while we roll over to the OTRS only system?
Among other ways, a distribution list email address that is an agent of the queue that receives the Nagios reports, or indeed the individuals each being an agent of that queue and the agent's preferences notifications yes and queue highlighted in "My Queues"
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Locked