Hi,
I have set up Gmail to send emails notifactions out to customers but when I try to test it I get an error message saying "internal server error", this looks like a generic Apache error message.
I have smtp in Core Framework set as following:
SendMailModule: SMPTPLS
SendMailModule: CMD /usr/sbin/sendmail -i -f
SendMail::Host smtp.gmail.com
SendMail:: Port 587
AuthUser: XXXXX@gmail.com
Password: XXXXXXXXXXX
The Apache error logs points to [Tue May 22 14:25:20 2012] [error] Connect failed :IO::Socket::INET: connect: timeout\n at C:/PROGRA~1/OTRS/OTRS//Kernel/System/Email/SMTPTLS.pm line 110\n
The line 110\n in kernel/system/email/smyptls.pm is...
110 my $SMTP = Net::SMTP::TLS::ButMaintained->new(
111 $Self->{MailHost},
112 Hello => $Self->{FQDN},
113 Port => $Self->{SMTPPort},
114 User => $Self->{User},
115 Password => $Self->{Password},
116 Timeout => $Self->{SMTPTimeout},
117 Debug => $Self->{SMTPDebug},
Any one have any ideas what the problem is?
SMTP Mail Server
Moderator: crythias
-
- Znuny newbie
- Posts: 8
- Joined: 22 May 2012, 15:17
- Znuny Version: 3.1.4
- Real Name: Romin
- Company: Astley
SMTP Mail Server
OTRS 3.1.4, Apache, MySQL, installed on Server 2008 R2, clients use Windows 7
-
- Znuny newbie
- Posts: 78
- Joined: 18 Apr 2012, 19:20
- Znuny Version: 3.2.1
- Company: Méditel
- Location: Morroco
Re: SMTP Mail Server
I think it's a problem with your firwall you must desactivate firrwall,or contact your system administrator if we are in local network
Best Regards,
Yacine BELGHARD
Software Ingineer
Yacine BELGHARD
Software Ingineer
Re: SMTP Mail Server
That's not the right way to do it anyway.
You should send to local host and then tell your local smtpd to delivery to your MTA. Your MTA might just be smtp.gmail.com. That way, you only need to configure your localhost and your smtpd will log everything for you.
You should send to local host and then tell your local smtpd to delivery to your MTA. Your MTA might just be smtp.gmail.com. That way, you only need to configure your localhost and your smtpd will log everything for you.
-
- Znuny newbie
- Posts: 8
- Joined: 22 May 2012, 15:17
- Znuny Version: 3.1.4
- Real Name: Romin
- Company: Astley
Re: SMTP Mail Server
Thanks for the reply guys:
yacine12: I have checked and all internal firewalls are off, I have also contacted our external company that manages our firewall and they have confirmed there is nothing that will block smtp.
Cheers for the info Dylan: When you say local smtdp is this something that gets installed by default through the Windows OTRS installation or is it something I need to add on? e.g. sendmail for Windows?
The way I thought it worked was that you configured OTRS to use gmail as the mail server and it delivered it out through authenticated gmail - obviously this is not the case - or is one way of achieving what I need?
yacine12: I have checked and all internal firewalls are off, I have also contacted our external company that manages our firewall and they have confirmed there is nothing that will block smtp.
Cheers for the info Dylan: When you say local smtdp is this something that gets installed by default through the Windows OTRS installation or is it something I need to add on? e.g. sendmail for Windows?
The way I thought it worked was that you configured OTRS to use gmail as the mail server and it delivered it out through authenticated gmail - obviously this is not the case - or is one way of achieving what I need?
OTRS 3.1.4, Apache, MySQL, installed on Server 2008 R2, clients use Windows 7
-
- Znuny newbie
- Posts: 8
- Joined: 22 May 2012, 15:17
- Znuny Version: 3.1.4
- Real Name: Romin
- Company: Astley
Re: SMTP Mail Server
Just as an update I have also changed the port to 465 as per this article....
http://wiki.otterhub.org/index.php?titl ... with_Gmail
Still have the same problem though.
http://wiki.otterhub.org/index.php?titl ... with_Gmail
Still have the same problem though.
OTRS 3.1.4, Apache, MySQL, installed on Server 2008 R2, clients use Windows 7
-
- Znuny newbie
- Posts: 78
- Joined: 18 Apr 2012, 19:20
- Znuny Version: 3.2.1
- Company: Méditel
- Location: Morroco
Re: SMTP Mail Server
Hi,
Check that All Perl modules needed are currently installed.
Mail::SMTPLS is installed ?
Good Luck
Regards,
Yacine
Check that All Perl modules needed are currently installed.
Mail::SMTPLS is installed ?
Good Luck
Regards,
Yacine
Best Regards,
Yacine BELGHARD
Software Ingineer
Yacine BELGHARD
Software Ingineer
-
- Znuny newbie
- Posts: 8
- Joined: 22 May 2012, 15:17
- Znuny Version: 3.1.4
- Real Name: Romin
- Company: Astley
Re: SMTP Mail Server
Thanks again for the reply - I have double checked and I defiantly have all the necessary Perl modules installed. Does any one have any other ideas of what the problem could be?
OTRS 3.1.4, Apache, MySQL, installed on Server 2008 R2, clients use Windows 7
-
- Znuny newbie
- Posts: 8
- Joined: 22 May 2012, 15:17
- Znuny Version: 3.1.4
- Real Name: Romin
- Company: Astley
Re: SMTP Mail Server
This is now resolved. I sent a tracert to smtp.gmail.com and it was stopping at our Gateway so I contacted the company back that hosts our firewall and he had another look. Port 465 and 587 were not letting traffic out, opened them up and the emails started working.
OTRS 3.1.4, Apache, MySQL, installed on Server 2008 R2, clients use Windows 7