[SOLVED] Automatic response SMTP error

Moderator: crythias

Locked
Kris
Znuny newbie
Posts: 49
Joined: 28 Mar 2013, 13:02
Znuny Version: 3.2.3
Real Name: Kris ten Hoedt
Company: Prominent

[SOLVED] Automatic response SMTP error

Post by Kris »

Hi all,

We've recently installed version 3.2.3
We have an AD backend (which works fantastic btw).

The problem we're facing atm is that when a ticket is submitted through the Customer Portal the Automatic Response can't be send.
It looks like the user data somehow is misinterpreted (sp?)
It tries to send the message to my first name instead of my email address.

Any ideas on this? I'm stuck....

from otrs.log:
------------------------------------------------------
[Thu Mar 28 11:14:59 2013][Notice][Kernel::System::Ticket::TicketCreate] New Ticket [2013032810000293/rtyrty] created (TicketID=55,Queue=Hardware::Computer::Systeemkast,Priority=3 normal,State=new)
[Thu Mar 28 11:15:00 2013][Error][Kernel::System::Email::SMTP::Send][143] Can't send to 'Kris': 5015.1.3 Invalid address
! Enable Net::SMTP debug for more info!
[Thu Mar 28 11:15:00 2013][Info][Kernel::System::Email::Send] Error sending message
[Thu Mar 28 11:15:00 2013][Error][Kernel::System::Ticket::Article::ArticleSend][2074] Impossible to send message to: Kris Hoedt, ten <kthoedt@mycompany.com> .
[Thu Mar 28 11:15:00 2013][Notice][Kernel::System::Ticket::Article::SendAutoResponse] Sent auto response (SendAutoReply) for Ticket [2013032810000293] (TicketID=55, ArticleID=) to 'Kris Hoedt, ten <kthoedt@mycompany.com>'.

from apache log:
------------------------------------------------------
Net::SMTP>>> Net::SMTP(2.31)
Net::SMTP>>> Net::Cmd(2.29)
Net::SMTP>>> Exporter(5.64_01)
Net::SMTP>>> IO::Socket::INET(1.31)
Net::SMTP>>> IO::Socket(1.31)
Net::SMTP>>> IO::Handle(1.28)
Net::SMTP=GLOB(0xb6a95b4)<<< 220 smtp.mycompany.com Microsoft ESMTP MAIL Service ready at Thu, 28 Mar 2013 11:14:58 +0100
Net::SMTP=GLOB(0xb6a95b4)>>> EHLO otrs.mycompuany.com
Net::SMTP=GLOB(0xb6a95b4)<<< 250-smtp.mycompany.com Hello [10.1.34.23]
Net::SMTP=GLOB(0xb6a95b4)<<< 250-SIZE 25600000
Net::SMTP=GLOB(0xb6a95b4)<<< 250-PIPELINING
Net::SMTP=GLOB(0xb6a95b4)<<< 250-DSN
Net::SMTP=GLOB(0xb6a95b4)<<< 250-ENHANCEDSTATUSCODES
Net::SMTP=GLOB(0xb6a95b4)<<< 250-STARTTLS
Net::SMTP=GLOB(0xb6a95b4)<<< 250-AUTH
Net::SMTP=GLOB(0xb6a95b4)<<< 250-8BITMIME
Net::SMTP=GLOB(0xb6a95b4)<<< 250-BINARYMIME
Net::SMTP=GLOB(0xb6a95b4)<<< 250-CHUNKING
Net::SMTP=GLOB(0xb6a95b4)<<< 250-XEXCH50
Net::SMTP=GLOB(0xb6a95b4)<<< 250 XSHADOW
Net::SMTP=GLOB(0xb6a95b4)>>> MAIL FROM:<>
Net::SMTP=GLOB(0xb6a95b4)<<< 250 2.1.0 Sender OK
Net::SMTP=GLOB(0xb6a95b4)>>> RCPT TO:<Kris>
Net::SMTP=GLOB(0xb6a95b4)<<< 501 5.1.3 Invalid address
ERROR: OTRS-CGI-10 Perl: 5.12.3 OS: MSWin32 Time: Thu Mar 28 11:15:00 2013

Message: Can't send to 'Kris': 5015.1.3 Invalid address
! Enable Net::SMTP debug for more info!
Last edited by Kris on 04 Apr 2013, 18:14, edited 1 time in total.
Version: OTRS 3.2.3 + ITSM
OS: Win XP Pro SP3
DB: MySQL
Webserver: Apache
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Automatic response SMTP error

Post by crythias »

show your CustomerUser Map
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Kris
Znuny newbie
Posts: 49
Joined: 28 Mar 2013, 13:02
Znuny Version: 3.2.3
Real Name: Kris ten Hoedt
Company: Prominent

Re: Automatic response SMTP error

Post by Kris »

YES SIR! :-)

$Self->{CustomerUser} = {
Module => 'Kernel::System::CustomerUser::LDAP',
Params => {
Host => 'dc.mycompany.com',
BaseDN => 'DC=mycompany,DC=com',
SSCOPE => 'sub',
UserDN => 'user',
UserPw => 'password',
},
CustomerKey => 'sAMAccountName',
CustomerID => 'mail',
CustomerUserListFields => ['sAMAccountName', 'cn', 'mail'],
CustomerUserSearchFields => ['sAMAccountName', 'cn', 'mail'],
CustomerUserSearchPrefix => '',
CustomerUserSearchSuffix => '*',
CustomerUserSearchListLimit => 250,
CustomerUserPostMasterSearchFields => ['mail'],
CustomerUserNameFields => ['givenname', 'sn'],
Map => [
[ 'UserFirstname', 'Firstname', 'givenname', 1, 1, 'var' ],
[ 'UserLastname', 'Lastname', 'sn', 1, 1, 'var' ],
[ 'UserLogin', 'Login', 'sAMAccountName', 1, 1, 'var' ],
[ 'UserEmail', 'Email', 'mail', 1, 1, 'var' ],
[ 'UserCustomerID', 'CustomerID', 'mail', 0, 1, 'var' ],
[ 'UserPhone', 'Phone', 'telephonenumber', 1, 0, 'var' ],
],
};
Version: OTRS 3.2.3 + ITSM
OS: Win XP Pro SP3
DB: MySQL
Webserver: Apache
Kris
Znuny newbie
Posts: 49
Joined: 28 Mar 2013, 13:02
Znuny Version: 3.2.3
Real Name: Kris ten Hoedt
Company: Prominent

Re: Automatic response SMTP error

Post by Kris »

Any other takers on this one?

Not to rush anyone or something, but I kinda promised I'd deliver a working configuration today :D
Version: OTRS 3.2.3 + ITSM
OS: Win XP Pro SP3
DB: MySQL
Webserver: Apache
reneeb
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: Automatic response SMTP error

Post by reneeb »

This is invalid: Kris Hoedt, ten <kthoedt@mycompany.com>
It should be "Kris Hoedt, ten" <kthoedt@mycompany.com>. But currently I have no time to check why this isn't quoted properly.
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
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Automatic response SMTP error

Post by crythias »

on the other hand, reneeb points out something that applies to your presented display name. If you didn't have (for instance, ", Jr") with a comma it might just work.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Kris
Znuny newbie
Posts: 49
Joined: 28 Mar 2013, 13:02
Znuny Version: 3.2.3
Real Name: Kris ten Hoedt
Company: Prominent

Re: Automatic response SMTP error

Post by Kris »

My real-life name is "Kris ten Hoedt"

In ad (w/o quotes):
givenName: "Kris"
sn: "Hoedt, ten"
displayName "Kris ten Hoedt"

The reason for this is that most apps in our region use the main part of the surname as search key.

So Eddie van Halen would be "Halen, Eddie van" or "Eddie, Halen, van"...

Meanwhile I changed my surname in AD. Should I re-sync or something to get it working?
Restart Apache?
Version: OTRS 3.2.3 + ITSM
OS: Win XP Pro SP3
DB: MySQL
Webserver: Apache
reneeb
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: Automatic response SMTP error

Post by reneeb »

crythias wrote:on the other hand, reneeb points out something that applies to your presented display name. If you didn't have (for instance, ", Jr") with a comma it might just work.
IMHO this is a bug in OTRS... It should quote the realname properly.
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
Kris
Znuny newbie
Posts: 49
Joined: 28 Mar 2013, 13:02
Znuny Version: 3.2.3
Real Name: Kris ten Hoedt
Company: Prominent

Re: Automatic response SMTP error

Post by Kris »

I just tested: It only happens to users with a comma in their surname.
However, changing this in AD doesn't solve it.
Version: OTRS 3.2.3 + ITSM
OS: Win XP Pro SP3
DB: MySQL
Webserver: Apache
Kris
Znuny newbie
Posts: 49
Joined: 28 Mar 2013, 13:02
Znuny Version: 3.2.3
Real Name: Kris ten Hoedt
Company: Prominent

Re: Automatic response SMTP error

Post by Kris »

Any updates on this?
Maybe someone can point me to the code that retreives the names, so maybe I can try and fix it myself?
Version: OTRS 3.2.3 + ITSM
OS: Win XP Pro SP3
DB: MySQL
Webserver: Apache
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Automatic response SMTP error

Post by jojo »

did you create a Bug report?
"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
Kris
Znuny newbie
Posts: 49
Joined: 28 Mar 2013, 13:02
Znuny Version: 3.2.3
Real Name: Kris ten Hoedt
Company: Prominent

Re: Automatic response SMTP error

Post by Kris »

No I didn't.
But if you reckon it's a bug I guess I should then eh... 8)
Version: OTRS 3.2.3 + ITSM
OS: Win XP Pro SP3
DB: MySQL
Webserver: Apache
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Automatic response SMTP error

Post by jojo »

yes, and please post the Bug ID here.
"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
Kris
Znuny newbie
Posts: 49
Joined: 28 Mar 2013, 13:02
Znuny Version: 3.2.3
Real Name: Kris ten Hoedt
Company: Prominent

Re: Automatic response SMTP error

Post by Kris »

Version: OTRS 3.2.3 + ITSM
OS: Win XP Pro SP3
DB: MySQL
Webserver: Apache
Kris
Znuny newbie
Posts: 49
Joined: 28 Mar 2013, 13:02
Znuny Version: 3.2.3
Real Name: Kris ten Hoedt
Company: Prominent

Re: [SOLVED] Automatic response SMTP error

Post by Kris »

bug solved :-)
Version: OTRS 3.2.3 + ITSM
OS: Win XP Pro SP3
DB: MySQL
Webserver: Apache
Locked