SMTP error
Moderator: crythias
-
- Znuny newbie
- Posts: 21
- Joined: 09 Jan 2013, 20:37
- Znuny Version: 5.0.1
- Real Name: OTRS SK User
SMTP error
I have set up OTRS to get tickets from customers only via e-mail and they can get their feedback only via e-mail.
I don't like the behavior when there's problem sending e-mail to customer:
- agent adds reply/solution to ticket and he can see his reply in web interface,
- but customer won't get the feedback due to SMTP error.
I find it inconsistent situation.
If there's a problem sending e-mail to customer, agent's reply should not be saved.
Is there a solution or workaround for this scenario?
I don't like the behavior when there's problem sending e-mail to customer:
- agent adds reply/solution to ticket and he can see his reply in web interface,
- but customer won't get the feedback due to SMTP error.
I find it inconsistent situation.
If there's a problem sending e-mail to customer, agent's reply should not be saved.
Is there a solution or workaround for this scenario?
-
- Znuny newbie
- Posts: 21
- Joined: 09 Jan 2013, 20:37
- Znuny Version: 5.0.1
- Real Name: OTRS SK User
Re: SMTP error
It seems my problem is SMTP module in Perl (SMTPS, AUTH DIGEST-MD5).
OTRS fails with bad username/password error. Haven't yet figured it out where enable AUTH PLAIN/LOGIN.
But using PHP test script with same parameters (SMTPS, AUTH DIGEST-MD5) results with success.
Weird.
OTRS fails with bad username/password error. Haven't yet figured it out where enable AUTH PLAIN/LOGIN.
But using PHP test script with same parameters (SMTPS, AUTH DIGEST-MD5) results with success.
Weird.
-
- Znuny guru
- Posts: 5018
- Joined: 13 Mar 2011, 09:54
- Znuny Version: 6.0.x
- Real Name: Renée Bäcker
- Company: Perl-Services.de
- Contact:
Re: SMTP error
Can you enable debug mode of Net::SMTP?
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
-
- Znuny newbie
- Posts: 21
- Joined: 09 Jan 2013, 20:37
- Znuny Version: 5.0.1
- Real Name: OTRS SK User
Re: SMTP error
Debug won't give more information. I have debug info from mail server which is identical as from debug of Net::SMTP.reneeb wrote:Can you enable debug mode of Net::SMTP?
I need to know where to change AUTH TYPE. I've already tried changing some code with no success.
-
- Znuny guru
- Posts: 5018
- Joined: 13 Mar 2011, 09:54
- Znuny Version: 6.0.x
- Real Name: Renée Bäcker
- Company: Perl-Services.de
- Contact:
Re: SMTP error
Does the webserver say in the EHLO response that it supports DIGEST-MD5?
Net::SMTP (the module OTRS uses to send mails via SMTP) uses the output of the EHLO command to determine which authentication type should be used.
Code: Select all
$ telnet mx.domain.tld 25
Trying 192.168.2.114...
Connected to mx.domain.tld.
Escape character is '^]'.
220 mx.domain.tld ESMTP Postfix
EHLO mx.domain.tld
250-mx.domain.tld
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH LOGIN PLAIN #<- here it should say DIGEST-MD5
250-AUTH=LOGIN PLAIN #<- here it should say DIGEST-MD5
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
-
- Znuny newbie
- Posts: 21
- Joined: 09 Jan 2013, 20:37
- Znuny Version: 5.0.1
- Real Name: OTRS SK User
Re: SMTP error
Server supports 250-AUTH PLAIN LOGIN DIGEST-MD5 CRAM-MD5 GSSAPI.reneeb wrote:Does the webserver say in the EHLO response that it supports DIGEST-MD5?
DIGEST-MD5 works with PHP script.
Credentials are definitely correct - I checked using "debugging" in SMTP.pm and via UnHide password plugin in Firefox.
Question is where and how I can change AUTH TYPE.
-
- Znuny guru
- Posts: 5018
- Joined: 13 Mar 2011, 09:54
- Znuny Version: 6.0.x
- Real Name: Renée Bäcker
- Company: Perl-Services.de
- Contact:
Re: SMTP error
https://metacpan.org/source/GBARR/libne ... TP.pm#L120
To enforce using DIGEST-MD5, you have to set $mechanisms to "DIGEST-MD5". But notice that this may be used in other programs, too (for the case you run other Perl applications that use Net::SMTP as well).
To enforce using DIGEST-MD5, you have to set $mechanisms to "DIGEST-MD5". But notice that this may be used in other programs, too (for the case you run other Perl applications that use Net::SMTP as well).
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
-
- Znuny newbie
- Posts: 21
- Joined: 09 Jan 2013, 20:37
- Znuny Version: 5.0.1
- Real Name: OTRS SK User
Re: SMTP error
I give up. Editing perl modules ended up with errors.
Is there a howto for Postfix (sending outbound e-mails)?
I was told sendmail does not support SMTP/SSL + AUTH.
Is there a howto for Postfix (sending outbound e-mails)?
I was told sendmail does not support SMTP/SSL + AUTH.
-
- Znuny newbie
- Posts: 21
- Joined: 09 Jan 2013, 20:37
- Znuny Version: 5.0.1
- Real Name: OTRS SK User
Re: SMTP error
As workaround I set up Postfix.
Got away from that Perl hell.
Got away from that Perl hell.