SMTP relay and OTRS 6

Moderator: crythias

Post Reply
jbaptiste
Znuny advanced
Posts: 104
Joined: 01 Aug 2015, 03:45
Znuny Version: 6.0.x
Contact:

SMTP relay and OTRS 6

Post by jbaptiste »

Hi,

I'm having and issue with SMTP configuration on a new OTRS 6.0.4 install. I'm using a remote SMTP relay server that runs on port 25 and no authentication on the same LAN. When for example opening a new email ticket, the compose ticket popup window closes without errors, and on the VIA colum on the thread list I see a never ending spinning wheel and a message appears in orange saying that the message has been queued for sending. On the command line I can see that the email was queued:

Code: Select all

  
  su -c "watch /opt/otrs/bin/otrs.Console.pl Maint::Email::MailQueue --list" -s /bin/bash otrs
  +----+-----------+----------+-------------------------+-----------------------------------+
----------+----------------+-------------------+
  | ID | ArticleID | Attempts | Sender                  | Recipient                         |
 Due Time | Last SMTP Code | Last SMTP Message |
  +----+-----------+----------+-------------------------+-----------------------------------+
----------+----------------+-------------------+
  | 3  | 12        | 0        | support@xxxxx.com | xxxxx@gmail.com (+3 more) |
 -        | -              | -                 |
  +----+-----------+----------+-------------------------+-----------------------------------+
----------+----------------+-------------------+

  Mail queue contains 1 message(s)
Then the message disappears and on the logs:

Code: Select all

1 message(s) successfully sent! 
| Done.    
But the message never arrives to the relay server. The configuration is set on Config.pm and is as it should be:

Code: Select all

$Self->{'SendmailModule'} = 'Kernel::System::Email::SMTP';
$Self->{'SendmailModule::Port'} = '25';
$Self->{'SendmailModule::Host'} = 'postfix';
That's how I have always done it before on OTRS 4/5, now it seems message sending was improved to handle queues and it's not working for me anymore. Any idea what could be going on ? according to documentation that's all that's needed.
Want to run OTRS on docker ? checkout my OTRS on docker HOWTO | Project's github page
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: SMTP relay and OTRS 6

Post by jojo »

check the communication log
"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
jbaptiste
Znuny advanced
Posts: 104
Joined: 01 Aug 2015, 03:45
Znuny Version: 6.0.x
Contact:

Re: SMTP relay and OTRS 6

Post by jbaptiste »

jojo wrote:check the communication log
Where's located ? at /opt/otrs/var/log I only have empty logs in Daemon directory.
Want to run OTRS on docker ? checkout my OTRS on docker HOWTO | Project's github page
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: SMTP relay and OTRS 6

Post by jojo »

Check the Admin panel in OTRS
"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
jbaptiste
Znuny advanced
Posts: 104
Joined: 01 Aug 2015, 03:45
Znuny Version: 6.0.x
Contact:

Re: SMTP relay and OTRS 6

Post by jbaptiste »

jojo wrote:Check the Admin panel in OTRS
Thanks, but it's empty too, it says "No communication Logs".

Any other ideas ?
Want to run OTRS on docker ? checkout my OTRS on docker HOWTO | Project's github page
jbaptiste
Znuny advanced
Posts: 104
Joined: 01 Aug 2015, 03:45
Znuny Version: 6.0.x
Contact:

Re: SMTP relay and OTRS 6

Post by jbaptiste »

It seems it kinda fixed it self. The reason the communication logs were empty was because rsyslog wasn't running. After I started it I re-tested email sending by creating a ticket, and it worked.
Want to run OTRS on docker ? checkout my OTRS on docker HOWTO | Project's github page
Post Reply