Cant send or receive emails using Gmail on a newly 6.0.12 system installed on ubuntu 18.04.1

Moderator: crythias

Post Reply
kyousry
Znuny newbie
Posts: 7
Joined: 25 Apr 2014, 22:04
Znuny Version: 6.0.12
Real Name: Khaled Yousry
Company: Next-Levels

Cant send or receive emails using Gmail on a newly 6.0.12 system installed on ubuntu 18.04.1

Post by kyousry »

Hello

summary of the issue
I just installed a fresh “ubuntu 18.04.1” server
And installed successfully OTRS 6.0.12 from source
Installation steps was based on OTRS admin guide
I tried the setup on a local vmware VM & on a digital ocean droplet
Both connected to internet, and can access gmail servers

The system works, I can navigate the web admin interface, create tickets, create agents, queues, ….

The thing that is not working is email, both incoming and outgoing

Details

When I configure the email as per below image during setup
Image

And press check configuration it replies with the message
“OTRS detected possible network issues. You could either try reloading this page manually or wait until your browser has re-established the connection on its own.”

I had to skip this step in order to proceed
Once the system is installed and working, I tried to "create new email ticket"
It replies with
Impossible to send message
Invalid email address Sender - otrs@localhost: invalid otrs@localhost (Invalid syntax)!
Errors occurred during message sending: Error while queueing email to 'abc@gmail.com' from 'otrs@localhost'. Subject => '[Ticket#2018110249000021] test;


Backend ERROR: OTRS-CGI-20 Perl: 5.26.1 OS: linux Time: Wed Oct 31 21:23:52 2018
Message: Impossible to send message to: abc@gmail.com .
RemoteAddress: 192.168.0.164
RequestURI: /otrs/index.pl
Traceback (1386):
Module: Kernel::System::Ticket::Article::Backend::Email::ArticleSend Line: 299
Module: Kernel::Modules::AgentTicketEmail::Run Line: 1698
Module: Kernel::System::Web::InterfaceAgent::Run Line: 1116
Module: ModPerl::ROOT::ModPerl::Registry::opt_otrs_bin_cgi_2dbin_index_2epl::handler Line: 38
Module: (eval) (v1.99) Line: 207
Module: ModPerl::RegistryCooker::run (v1.99) Line: 207
Module: ModPerl::RegistryCooker::default_handler (v1.99) Line: 173
Module: ModPerl::Registry::handler (v1.99) Line: 32

When I try to configure incoming email, either using IMAP or IMPATLS
As per the image
Image

When I press "Fetch mail" It says finished
With no errors
But no tickets are created

Checking the communications log shows
Image

Appreciate help in order to be able to
1.send outgoing emails, say after ticket creation
2.recieve emails, say from a customer, and in turn create a ticket in a queue based on received email
OTRS 6.0.12, Ubuntu 18.04.1 LTS, Apache/2.4.29 , mysqld 5.7.24, Perl v5.26.1
fcasal
Znuny wizard
Posts: 336
Joined: 21 Apr 2014, 16:14
Znuny Version: 6.0.18

Re: Cant send or receive emails using Gmail on a newly 6.0.12 system installed on ubuntu 18.04.1

Post by fcasal »

It shows that can´t connect to imap.gmail.com so the question is:

from the server can you connecto with that url?
kyousry
Znuny newbie
Posts: 7
Joined: 25 Apr 2014, 22:04
Znuny Version: 6.0.12
Real Name: Khaled Yousry
Company: Next-Levels

Re: Cant send or receive emails using Gmail on a newly 6.0.12 system installed on ubuntu 18.04.1

Post by kyousry »

Thanks for your reply

I tested from the VM to
#1 ping imap.gmail.com, and it replied
#tried to telnet to imap.gmail.com on port 993, and it displayed it is connected
images below

ping Image
telnet Image
OTRS 6.0.12, Ubuntu 18.04.1 LTS, Apache/2.4.29 , mysqld 5.7.24, Perl v5.26.1
banzayats
Znuny newbie
Posts: 12
Joined: 12 Dec 2011, 10:05
Znuny Version: OTRS 3.1.0.beta2
Company: Eximbank
Location: Kiev, Uktraine

Re: Cant send or receive emails using Gmail on a newly 6.0.12 system installed on ubuntu 18.04.1

Post by banzayats »

The same for me.

Code: Select all

otrs:~# cat /etc/os-release
NAME="Ubuntu"
VERSION="18.04.2 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.2 LTS"
I clicked on the Check mail configuration button and saw the "OTRS detected possible network issues. You could either try reloading this page manually or wait until your browser has re-established the connection on its own." message. Then it changed to "The connection has been re-established after a temporary connection loss. Due to this, elements on this page could have stopped to work correctly. In order to be able to use all elements correctly again, it is strongly recommended to reload this page." But nothing happened. So I've skipped it.

OTRS version: 6.0.18
Post Reply