OTRS wont send auto response from incoming tickets

Moderator: crythias

Locked
isvein
Znuny newbie
Posts: 9
Joined: 01 Oct 2012, 18:14
Znuny Version: 3.1.10
Real Name: Svein Arild Kristiansen

OTRS wont send auto response from incoming tickets

Post by isvein »

Hey

I cant get our company OTRS installation to send emails when tickets are send to the support email.
If I run the "otrs.PostMasterMailbox.pl" manualy from terminal as suod user I get:

"Couldn't send mail: 550 5.7.1 Client does not have permissions to send as this sender
at /opt/otrs/Kernel/System/Email/SMTPTLS.pm line 172"

If I try to reply from the web-gui it work, and it fetch the mails correct.
I can see in the ticket that the autoresponse is added to the history of the ticket.

I read a lot here about the same error and have changed the setting where the support email is at every place I can think of.

Then I setup the system first time, I skipped the IMAP/SMTP part of the wizard.
I know the email we are using is working bouth ways, at least in Mail for OSX.

System:
Ubuntu Server 10.4 LTS
Exchange 2007 (office365)
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: OTRS wont send auto response from incoming tickets

Post by jojo »

please ask your exchange admin to allow the OTRS server to send with different email addresses as the error clearly states this is an exchange issue: 550 5.7.1 Client does not have permissions to send as this sender
"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
isvein
Znuny newbie
Posts: 9
Joined: 01 Oct 2012, 18:14
Znuny Version: 3.1.10
Real Name: Svein Arild Kristiansen

Re: OTRS wont send auto response from incoming tickets

Post by isvein »

I see, I guess we are stuck then because we are using an office365 hosted exchange so I guess we cant get this changed.
But I kinda don't understand why the system tries to send with another email address then I use the same email every place, System Email Addresses, smtp authentication, headers, envelope and so on.
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: OTRS wont send auto response from incoming tickets

Post by jojo »

notifications are sent with empty envelope from

you can change this to a fixed one
"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
isvein
Znuny newbie
Posts: 9
Joined: 01 Oct 2012, 18:14
Znuny Version: 3.1.10
Real Name: Svein Arild Kristiansen

Re: OTRS wont send auto response from incoming tickets

Post by isvein »

I have changed the "NotificationSenderEmail" in "Framework -> Core" but still same error......
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: OTRS wont send auto response from incoming tickets

Post by crythias »

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
isvein
Znuny newbie
Posts: 9
Joined: 01 Oct 2012, 18:14
Znuny Version: 3.1.10
Real Name: Svein Arild Kristiansen

Re: OTRS wont send auto response from incoming tickets

Post by isvein »

The only thing I get out from that link is howto check if the Exchange user have the " SendAs AccessRights" on or off.
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: OTRS wont send auto response from incoming tickets

Post by jojo »

has the user these permissions?
"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
isvein
Znuny newbie
Posts: 9
Joined: 01 Oct 2012, 18:14
Znuny Version: 3.1.10
Real Name: Svein Arild Kristiansen

Re: OTRS wont send auto response from incoming tickets

Post by isvein »

Hi

I tested now, but then I try to run the "Get-RecipientPermission" I get an error that the cmdlet dont exist.
As far as I can understand this happens if you loginto exchange with another account but the super-admin account for Office365.
I dont have that for our company so cant seem to fix this problem yet.
isvein
Znuny newbie
Posts: 9
Joined: 01 Oct 2012, 18:14
Znuny Version: 3.1.10
Real Name: Svein Arild Kristiansen

Re: OTRS wont send auto response from incoming tickets

Post by isvein »

OK, I got reply form the 365 admin here, and he tells me that the email account I use only cant send mail on behaf of others and that we cant set it to "anyone".

So I kinda need to find out who OTRS try to send as/from or else we need to use another SMTP server.
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: OTRS wont send auto response from incoming tickets

Post by crythias »

The sender is the System Address attached to the Queue.
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
isvein
Znuny newbie
Posts: 9
Joined: 01 Oct 2012, 18:14
Znuny Version: 3.1.10
Real Name: Svein Arild Kristiansen

Re: OTRS wont send auto response from incoming tickets

Post by isvein »

Thanks :)
But this makes me still confused because the system adress attached to the queue is the same email as it pulls from and that the customers sends to.
I have the same email on every queue (RAW, Postmaster, misc and Junk)
So it seems like the email dont have "SendAs AccessRights" to/from itself.....that sounds strange, but thanks for all the help so far :D
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: OTRS wont send auto response from incoming tickets

Post by jojo »

Auto Replies are send without mail from (which is RFC conform)
"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
isvein
Znuny newbie
Posts: 9
Joined: 01 Oct 2012, 18:14
Znuny Version: 3.1.10
Real Name: Svein Arild Kristiansen

Re: OTRS wont send auto response from incoming tickets

Post by isvein »

Hello again :)
We now tried with an open SMTP server we have and now I get some other errors:

Message: Can't send to myworkadress@myworkplace.no': 5505.1.1 <myworkadress@myworkplace.no>: Recipient address rejected: User unknown in local recipient table

Message: Can't send to 'some-none-work-adress': 5545.7.1 <some-none-work-adress>: Relay access denied


EDIT: Tried to add the sender email to OTRS as an customer and then it worked, but thats not very flexible.........
Last edited by isvein on 03 Oct 2012, 18:15, edited 1 time in total.
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: OTRS wont send auto response from incoming tickets

Post by jojo »

Again, the mailserver gives you an clearly stated error
Message: Can't send to 'some-none-work-adress': 5545.7.1 <some-none-work-adress>: Relay access denied
So it seems that you did not use any authentification... You should get someone with basic mailserver experience (especially SMTP) for help
"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
isvein
Znuny newbie
Posts: 9
Joined: 01 Oct 2012, 18:14
Znuny Version: 3.1.10
Real Name: Svein Arild Kristiansen

Re: OTRS wont send auto response from incoming tickets

Post by isvein »

Thats correct.
This SMTP server is an open relay and dont need authentication, it should work, but wil try with an user :)
Locked