change owner issue

Moderator: crythias

Locked
andylyc
Znuny newbie
Posts: 12
Joined: 12 Oct 2011, 13:55
Znuny Version: 3.0.10
Real Name: Yingcai Liu
Company: TOT

change owner issue

Post by andylyc »

When i change owner of a ticket to another agent, I hit submit and it tried to redirect to index.pl, and no responce for a long time.i hit cancel and nothing appears to of changed, but if you refresh the browser you see its changed. I am wondering why this is? There is no issue when you transfer owner from someone to youself. and i find error messge in log :
[Wed Oct 12 08:26:04 2011][Error][Kernel::System::Email::SMTP::Send][163] Can't send message: 550Start mail input; end with <CRLF>.<CRLF>5.7.1 Client does not have permissions to send as this sender! Enable Net::SMTP debug for more info!

it's look like some problem with SMTP, but i think SMTP work well, can recive and send mail normal.

i found someone else had the same issue. can somebody help me.
tanks a lot!
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: change owner issue

Post by crythias »

The queue system address isn't allowed to be a sender in your SMTP server using the credentials in core::sendmail
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
andylyc
Znuny newbie
Posts: 12
Joined: 12 Oct 2011, 13:55
Znuny Version: 3.0.10
Real Name: Yingcai Liu
Company: TOT

Re: change owner issue

Post by andylyc »

what's the solution ?
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: change owner issue

Post by jojo »

Fix the settings in your mail server
"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
andylyc
Znuny newbie
Posts: 12
Joined: 12 Oct 2011, 13:55
Znuny Version: 3.0.10
Real Name: Yingcai Liu
Company: TOT

Re: change owner issue

Post by andylyc »

can be more detail?
thanks .
andylyc
Znuny newbie
Posts: 12
Joined: 12 Oct 2011, 13:55
Znuny Version: 3.0.10
Real Name: Yingcai Liu
Company: TOT

Re: change owner issue

Post by andylyc »

dear all
in other cases , the mail system work well, it can recieve customer mail and send auto reply mail to customer.
so i don't know what's wrong with mail system.
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: change owner issue

Post by crythias »

There is no other way to say what has been said.
In the Queue settings, check the email address that the Queue sends from. That email address is not allowed to send email through your system.
If it's not that email address, then it's in the Core configuration of Sysconfig.

The key is to determine what email address is sending the message and make sure your SMTP server allows that to send a message. That's it.
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
andylyc
Znuny newbie
Posts: 12
Joined: 12 Oct 2011, 13:55
Znuny Version: 3.0.10
Real Name: Yingcai Liu
Company: TOT

Re: change owner issue

Post by andylyc »

i found SendCustomerNotification is ok , and SendAgentNotification fail , why
andylyc
Znuny newbie
Posts: 12
Joined: 12 Oct 2011, 13:55
Znuny Version: 3.0.10
Real Name: Yingcai Liu
Company: TOT

Re: change owner issue

Post by andylyc »

i find the solution: modiy file ~/Kernel/System/Ticket/Article.pm

# send notify
$Self->{SendmailObject}->Send(
From => $Self->{ConfigObject}->Get('NotificationSenderName') . ' <'. $Self->{ConfigObject}->Get('NotificationSenderEmail') . '>',
To => $User{UserEmail},
Subject => $Notification{Subject},
MimeType => $Notification{ContentType} || 'text/plain',
Charset => $Notification{Charset},
Body => $Notification{Body},
Loop => 1,
);

==>

# send notify
$Self->{SendmailObject}->Send(
From => $Self->{ConfigObject}->Get('NotificationSenderName') . ' <otrs admin email adress>',
To => $User{UserEmail},
Subject => $Notification{Subject},
MimeType => $Notification{ContentType} || 'text/plain',
Charset => $Notification{Charset},
Body => $Notification{Body},
Loop => 1,
);

hard coding... not perfect
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: change owner issue

Post by jojo »

why did you not just change NotificationSenderEmail in Sysconfig?
"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
andylyc
Znuny newbie
Posts: 12
Joined: 12 Oct 2011, 13:55
Znuny Version: 3.0.10
Real Name: Yingcai Liu
Company: TOT

Re: change owner issue

Post by andylyc »

thank you jojo, you are right
i change NotificationSenderEmail, issue fixed!!! :D
adminfree
Znuny newbie
Posts: 1
Joined: 07 Aug 2014, 12:06
Znuny Version: 3.3.8
Real Name: Vasiliy

Re: change owner issue

Post by adminfree »

Удалил этот кусок.
Только после этого заработало.
Версия OTRS 3.3.8

Code: Select all

Beefor


# send notify
    $Self->{SendmailObject}->Send(
        From => $Self->{ConfigObject}->Get('NotificationSenderName') . ' <' . $Self->{ConfigObject}->Get('NotificationSenderEmail') . '>',
        To       => $User{UserEmail},
        Subject  => $Notification{Subject},
        MimeType => $Notification{ContentType} || 'text/plain',
        Charset  => $Notification{Charset},
        Body     => $Notification{Body},
        Loop     => 1,
    );

After


 #send notify
    $Self->{SendmailObject}->Send(
        From => $Self->{ConfigObject}->Get('NotificationSenderName'),
        To       => $User{UserEmail},
        Subject  => $Notification{Subject},
        MimeType => $Notification{ContentType} || 'text/plain',
        Charset  => $Notification{Charset},
        Body     => $Notification{Body},
        Loop     => 1,
    );
Locked