[SOLVED] OTRS sending all messages from one email

Moderator: crythias

Locked
sachtel
Znuny newbie
Posts: 8
Joined: 16 Jan 2014, 11:13
Znuny Version: 3.1.10
Real Name: Szymon Achtelik
Company: Krakfin

[SOLVED] OTRS sending all messages from one email

Post by sachtel »

Hello everyone

I have a problem with the two mail addresses in OTRS .

OTRS fetch messages (by POP3S) from two mail: first@gmail.com and second@gmail.com, emails are moved to different queues. Each queue is configured with its own automatic reply, each queue is associated with one of the mail.

The problem is that OTRS sends all emails, answers and auto responses, from the address first@gmail.com, for every queues - but for queue linked with address second@gmail.com OTRS use correct name of address. It looks funny :
From: "Second Address <first@gmail.com>"

Theoretically configuration is ok, everything is ok. System address for each queue are configured properly, auto responses are related with proper emails - in spite of all the messages are always send from the first email.
The strangest, and perhaps important is, that in the system log everything is ok. According to log, all messages are sending from appropriate mails, for example:

Code: Select all

Sent email to 'Customer <customer@dot.com>' from 'Second Address <second@gmail.com>'. HistoryType => SendAutoReply, Subject => [#101811] Question;
In fact message is delivered to customer from mail "Second Address <first@gmail.com>"

Does anyone know what could be cause of this situation?


OTRS version is 3.1.10
OTRS is installed on Linux Ubuntu 12.0.4 with Apache 2.2.22

Sorry for my poor English.


Best regards
Szymon
Last edited by sachtel on 17 Jan 2014, 11:55, edited 1 time in total.
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: OTRS sending all messages from one email

Post by jojo »

this is most likely an issue with gmail
"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
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: OTRS sending all messages from one email

Post by crythias »

jojo wrote:this is most likely an issue with gmail
Ditto. Gmail doesn't allow spoofing.
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
sachtel
Znuny newbie
Posts: 8
Joined: 16 Jan 2014, 11:13
Znuny Version: 3.1.10
Real Name: Szymon Achtelik
Company: Krakfin

Re: OTRS sending all messages from one email

Post by sachtel »

Firstly, thank you for your answers.

But I hav a bad news: this is not problem with gmail.
I configured other mail address in OTRS (mail is on wp.pl - big Polish portal), new queue, new auto-reply message - and is the same.
In system log:

Code: Select all

Sent email to 'Customer <customer@dot.com>' from 'Kfn test <kfn-test@wp.pl>'. HistoryType => SendAutoReply, Subject => [#1013838] Odp. automatyczna;
In fact message is delivered to customer from "Kfn test <first@gmail.com>" again.

I also conducted an experiment:
I change validity for mail firs@gmail.com on "invalid" and i tried send message to OTRS via mail on wp.pl.
Message jumped into the appropriate queue but this time also auto reply was send from mail "Kfn test <first@gmail.com>" :(


Any ideas?
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: OTRS sending all messages from one email

Post by jojo »

an auto reply has an assigned email which is used. If you want to use different adresses for sending auto replies you have to create several auto replies
"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
sachtel
Znuny newbie
Posts: 8
Joined: 16 Jan 2014, 11:13
Znuny Version: 3.1.10
Real Name: Szymon Achtelik
Company: Krakfin

Re: OTRS sending all messages from one email

Post by sachtel »

Hi

I have configured three auto replay messages for three addresses for three queue - one on one on one.

What about config setting Framework Core::Sendmail?
It seems, that this set of options is source of the problem for me.
These options overwrite other options about sending mails (e. g. "Auto response from" in each auto replay messages, or "System address" in each queue) - but is necessary to send mail to world.

I read http://wiki.otterhub.org/index.php?titl ... with_Gmail, in second Hints:
...This means that you can only have one outgoing email address per OTRS instance, and you will not be able to use multiple outgoing email addresses...
It was written in January 2011, three years ago - nothing is change about this for 3 years?


Maybe we must set "SendmailModule::CMD" properly?
That OTRS respect the system address of the queue - but I don't know how exactly...

Maybe it's bug in this version - but in which version it is corrected?


It is possible to use multiple mail addresses in OTRS at all?
Anybody seen such a system for yourself?


I go to bed - goodnight.
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: OTRS sending all messages from one email

Post by jojo »

if you use SMTP Authentification your mailserver needs to allow sending with different addresses
"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
sachtel
Znuny newbie
Posts: 8
Joined: 16 Jan 2014, 11:13
Znuny Version: 3.1.10
Real Name: Szymon Achtelik
Company: Krakfin

[SOLVED] OTRS sending all messages from one email

Post by sachtel »

:)

Thx to All

All we had do is set on the Gmail account first@gmail.com, agree to send the messages from the other account (second@gmail.com), which is exactly what is described on http://wiki.otterhub.org/index.php?titl ... with_Gmail and what clues me jojo.
Sorry for the hassle.

BTW: This solution is also bad because in the header of the message to the customer six times appears mail first@gmail.com

But: Thanks for your time!

Regards
Szymon
sachtel
Znuny newbie
Posts: 8
Joined: 16 Jan 2014, 11:13
Znuny Version: 3.1.10
Real Name: Szymon Achtelik
Company: Krakfin

Re: [SOLVED] OTRS sending all messages from one email

Post by sachtel »

Really solution for this problem is:
Module named MultiSMTP by Renee Baecker.
A module that allows OTRS to use several SMTP servers.
To download from http://opar.perl-services.de/dist/MultiSMTP
Locked