Outgoing email

Moderator: crythias

Post Reply
Mefior
Znuny newbie
Posts: 10
Joined: 10 Jan 2018, 10:51
Znuny Version: 5.0.19

Outgoing email

Post by Mefior »

Hi All,
I have a problem with outgoing email after update to 6. Now emails are queued but they are not sending. I tried:

Code: Select all

sudo  su -c "/opt/otrs/bin/otrs.Console.pl Maint::Email::MailQueue --send --force" -s /bin/bash otrs
but got error:

Code: Select all

Error: Message sending already in progress! Skipping...
I do not understand why OTRS created messages to root@localhost and tries to send them - screen attached
Can I turn off mails to root@localhost? What causes the problem with sending email?
You do not have the required permissions to view the files attached to this post.
Mefior
Znuny newbie
Posts: 10
Joined: 10 Jan 2018, 10:51
Znuny Version: 5.0.19

Re: Outgoing email

Post by Mefior »

Any help? Does nobody use OTRS 6?
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Outgoing email

Post by jojo »

Most likely the recipient address for daemon messages. Check system configuration
"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
Mefior
Znuny newbie
Posts: 10
Joined: 10 Jan 2018, 10:51
Znuny Version: 5.0.19

Re: Outgoing email

Post by Mefior »

I tried to change addresses. The problem is that the mail deamon/task is always active. I am not able to stop it or restart it. I tried to delete all irrelevant messaged but it is still the same.
seberget2
Znuny newbie
Posts: 74
Joined: 17 May 2013, 09:30
Znuny Version: 6.0.30
Real Name: Stein Erik Berget

Re: Outgoing email

Post by seberget2 »

In a similar situation as you I would have done as stated in http://doc.otrs.com/doc/manual/admin/st ... ating.html
Stop OTRS cron jobs and the daemon (in this order):
otrs> cd /opt/otrs/
otrs> bin/Cron.sh stop
otrs> bin/otrs.Daemon.pl stop
as the OTRS user and then do the following also as the OTRS user
otrs> cd /opt/otrs/
otrs> bin/otrs.Daemon.pl start
otrs> bin/Cron.sh start
This should stop and start the daemon that does the email tasks.

Hope this helps.
OTRS 6.0.12 on Ubuntu with MySQL DB, and various plug-ins and a hack or two :-D
Mefior
Znuny newbie
Posts: 10
Joined: 10 Jan 2018, 10:51
Znuny Version: 5.0.19

Re: Outgoing email

Post by Mefior »

Thank you v much for the hint but I tried this many times and without any effect. I do not know the reason - that email queue blocks itself and how exactly to unblock. Sometimes I need to restart appache sometimes cron and daemon.
seberget2
Znuny newbie
Posts: 74
Joined: 17 May 2013, 09:30
Znuny Version: 6.0.30
Real Name: Stein Erik Berget

Re: Outgoing email

Post by seberget2 »

Could it be a file permission issue? I've found that running otrs.SetPermissions.pl after installing plug-ins by example makes a lot of issues go away.
OTRS 6.0.12 on Ubuntu with MySQL DB, and various plug-ins and a hack or two :-D
Mefior
Znuny newbie
Posts: 10
Joined: 10 Jan 2018, 10:51
Znuny Version: 5.0.19

Re: Outgoing email

Post by Mefior »

I checked that and unfortunately the same. I can not force OTRS to send out the emails from the queue if it stopped.
jbaptiste
Znuny advanced
Posts: 104
Joined: 01 Aug 2015, 03:45
Znuny Version: 6.0.x
Contact:

Re: Outgoing email

Post by jbaptiste »

Were you able to fix this ? I'm facing this now with a system upgraded to OTRS 6 months ago and that its configuration has not been modified since the upgrade, after a server restart.

I can telnet the postfix relay server from command line but emails are stuck in sending (wheel animation).
Want to run OTRS on docker ? checkout my OTRS on docker HOWTO | Project's github page
kruegerM
Znuny expert
Posts: 213
Joined: 02 Dec 2010, 16:53
Znuny Version: 6.0.29
Real Name: Marc
Company: National Jewish Health
Location: Denver, CO

Re: Outgoing email

Post by kruegerM »

Has anyone found the fix for this? We've had no mail going out for a couple days now and nothing I've found is working - forcing doesn't work. Rebooting the server didn't work. I can send from the server fine - but OTRS is stuck. Help!!
wurzel
Znuny guru
Posts: 3224
Joined: 08 Jul 2010, 22:25
Znuny Version: x.x.x
Real Name: Florian

Re: Outgoing email

Post by wurzel »

Hi

could be wrong localalhost dns resolving or loops. Might be solved if everything works fine. delete the queue completely and check if the error is appearing again.

Flo
OTRS 8 SILVER (Prod)
OTRS 8 auf Debian 11 (Test)
Znuny 7.x latest version testing auf Debian 11

-- Ich beantworte keine Forums-Fragen PN - No PN please

I won't answer to unfriendly users any more. A greeting and regards are just polite.
Post Reply