Help to configure incoming e-mails

Hi all,

I’m configuring RT to a customer. It runs all enabled features except
the creation of defects using an e-mail. I have installed CommandByMail
and it was installed successfully.

I’m going to describe the problem:

  • Machine_A
    → Unix
    → RT installation (4.0.5)
    → msmstp
  • Machine_B
    → Windows
    → Exchange server

When I send an email from Machine_A (or Machine_B) to RT to create the
ticket in a specific queue, the mail log indicates the next message:
“status = sent (205 2.0.6): Queued mail for delivery”, and the ticket is
not created logically. But RT sends the e-mail when someone comments in
a ticket.

When I send the e-mail from Machine_A, I get the next e-mail address:
“aliases@machine_a.com” but I want to send it to “aliases@domain.com”.
I think the problem is in the mail configuration or on the connection
between the machines. But I don’t :frowning:

Could you help me?

Thank you very much!!

Best regards,

Alberto VILLANUEVA DEL VAL
Consultor
Altran Espa�a, Industria

ALTRAN: talento generando innovaci�n

Parque Empresarial Las Mercedes, Edificio 1
C/ Campezo, 1
28022 Madrid
Spain
Tel. : + 34 917 44 46 00
Fax : + 34 914 15 24 57
alberto.villanueva@altran.es
www.altran.es
www.altran360.es

S�guenos en:
www.linkedin.com/company/altran-espana
www.twitter.com/altran_es

Antes de imprimir este mensaje, aseg�rate de que es necesario. Proteger
el medio ambiente est� tambi�n en tu mano.
En cumplimiento de la Ley Org�nica 15/1999, con fecha 13 de diciembre,
de Protecci�n de Datos de Car�cter Personal, y la Ley 34/2002, con fecha
11 de julio, de Servicios de la Sociedad de la Informaci�n y de comercio
electr�nico, le comunicamos que su direcci�n de correo electr�nico forma
parte de un fichero del que es responsable Altran Espa�a, y que
garantiza la confidencialidad y seguridad de sus datos. Tiene usted
derecho al acceso, rectificaci�n y cancelaci�n de sus datos en los
t�rminos establecidos en la Ley Org�nica 15/1999 de Protecci�n de Datos
de Car�cter Personal y dem�s normativa concordante, dirigi�ndose a
nuestra direcci�n anteriormente se�alada o por medio de correo
electr�nico: comunicacion@altran.es.

AVISO LEGAL: Este mensaje, junto con cualquier fichero adjunto, est�
dirigido a su destinatario y es confidencial. Cualquier distribuci�n,
uso o reproducci�n sin consentimiento del remitente est� estrictamente
prohibido. Si ha recibido este mensaje por error, por favor proceda a
ponerlo en conocimiento del remitente por e-mail y a borrarlo de su
sistema sin realizar copias.

My setup is near what you want to achieve, but i used procmail/RT CLI instead of CommandBymail.

With ExchangeServer (mine is Office365) I configured postfix to send all the outgoing mails with From field same as the user who logs on exchange.
Since apache user send mail the exchange server may block because you log as ticket@yourdomain.com and the mail arrives as www-data@hostname.domain.com.

Look for smtp_generic_maps for postfix, for msmtp I dont know how to do.

-----Mensagem original-----De: rt-users-bounces@lists.bestpractical.com [mailto:rt-users-bounces@lists.bestpractical.com] Em nome de Alberto Villanueva
Enviada em: quarta-feira, 11 de julho de 2012 12:46
Para: rt-users@lists.bestpractical.com
Assunto: [rt-users] Help to configure incoming e-mails

Hi all,

I’m configuring RT to a customer. It runs all enabled features except the creation of defects using an e-mail. I have installed CommandByMail and it was installed successfully.

I’m going to describe the problem:

  • Machine_A
    → Unix
    → RT installation (4.0.5)
    → msmstp
  • Machine_B
    → Windows
    → Exchange server

When I send an email from Machine_A (or Machine_B) to RT to create the ticket in a specific queue, the mail log indicates the next message:
“status = sent (205 2.0.6): Queued mail for delivery”, and the ticket is not created logically. But RT sends the e-mail when someone comments in a ticket.

When I send the e-mail from Machine_A, I get the next e-mail address:
“aliases@machine_a.com” but I want to send it to “aliases@domain.com”.
I think the problem is in the mail configuration or on the connection between the machines. But I don’t :frowning:

Could you help me?

Thank you very much!!

Best regards,

Alberto VILLANUEVA DEL VAL
Consultor
Altran España, Industria

ALTRAN: talento generando innovación

Parque Empresarial Las Mercedes, Edificio 1 C/ Campezo, 1
28022 Madrid
Spain
Tel. : + 34 917 44 46 00
Fax : + 34 914 15 24 57
alberto.villanueva@altran.es
www.altran.es
www.altran360.es

Síguenos en:
www.linkedin.com/company/altran-espana
www.twitter.com/altran_es

Antes de imprimir este mensaje, asegúrate de que es necesario. Proteger el medio ambiente está también en tu mano.
En cumplimiento de la Ley Orgánica 15/1999, con fecha 13 de diciembre, de Protección de Datos de Carácter Personal, y la Ley 34/2002, con fecha
11 de julio, de Servicios de la Sociedad de la Información y de comercio electrónico, le comunicamos que su dirección de correo electrónico forma parte de un fichero del que es responsable Altran España, y que garantiza la confidencialidad y seguridad de sus datos. Tiene usted derecho al acceso, rectificación y cancelación de sus datos en los términos establecidos en la Ley Orgánica 15/1999 de Protección de Datos de Carácter Personal y demás normativa concordante, dirigiéndose a nuestra dirección anteriormente señalada o por medio de correo
electrónico: comunicacion@altran.es.

AVISO LEGAL: Este mensaje, junto con cualquier fichero adjunto, está dirigido a su destinatario y es confidencial. Cualquier distribución, uso o reproducción sin consentimiento del remitente está estrictamente prohibido. Si ha recibido este mensaje por error, por favor proceda a ponerlo en conocimiento del remitente por e-mail y a borrarlo de su sistema sin realizar copias.

So it sounds like your aliases are not setup correctly for the RT
queue. I would verify that email to the queue is going to the queue.
BTW you error referance is with postfix. The errors coming from RT
are in either the HTML server logs or the system logs. Email comes
in the gets sent via a pipe to a “web page” which renders the email
"data" and renders it appropriately.

To send an email via the command line do (how I did it, probably not
the best):
         # /etc/smrsh/rt-mailgate --queue <'QUEUE NAME'> --action
correspond --url http(s)://<IP or HOSTNAME>:<port#>
(--no-verify-ssl) --debug < /dir/to/sometext.file

Hopefully you can translate that to work for you. Stuff in () is
optional depending on your configuration. Once you run that you will
get a response back with more info.  If it errors then you got to
get that resolved if it works then the problem or error is within
postfix.

Karl-



My setup is near what you want to achieve, but i used procmail/RT
CLI instead of CommandBymail.

With ExchangeServer (mine is Office365) I configured postfix to send
all the outgoing mails with From field same as the user who logs on
exchange.
Since apache user send mail the exchange server may block because
you log as ticket at yourdomain.com and the mail arrives as www-data
at hostname.domain.com.

Look for smtp_generic_maps for postfix, for msmtp I dont know how to do.




-----Mensagem original-----De: rt-users-bounces at lists.bestpractical.com
[mailto:rt-users-bounces at lists.bestpractical.com] Em nome de
Alberto Villanueva
Enviada em: quarta-feira, 11 de julho de 2012 12:46
Para: rt-users at lists.bestpractical.com
Assunto: [rt-users] Help to configure incoming e-mails

Hi all,


I'm configuring RT to a customer. It runs all enabled features
except the creation of defects using an e-mail. I have installed
CommandByMail and it was installed successfully.

I'm going to describe the problem:
- Machine_A
-> Unix
-> RT installation (4.0.5)
-> msmstp
- Machine_B
-> Windows
-> Exchange server

When I send an email from Machine_A (or Machine_B) to RT to create
the ticket in a specific queue, the mail log indicates the next
message:
"status = sent (205 2.0.6): Queued mail for delivery", and the
ticket is not created logically. But RT sends the e-mail when
someone comments in a ticket.

When I send the e-mail from Machine_A, I get the next e-mail address:
"aliases at machine_a.com" but I want to send it to "aliases at
domain.com".
I think the problem is in the mail configuration or on the
connection between the machines. But I don't :-(

Could you help me?


Thank you very much!!

Best regards,

Alberto VILLANUEVA DEL VAL
Consultor
Altran Espa�a, Industria

ALTRAN: talento generando innovaci�n

Parque Empresarial Las Mercedes, Edificio 1 C/ Campezo, 1
28022 Madrid
Spain
Tel. : + 34 917 44 46 00
Fax : + 34 914 15 24 57
alberto.villanueva at altran.es
www.altran.es
www.altran360.es

S�guenos en:
www.linkedin.com/company/altran-espana
www.twitter.com/altran_es
www.facebook.com/altranespana

Antes de imprimir este mensaje, aseg�rate de que es necesario.
Proteger el medio ambiente est� tambi�n en tu mano.
En cumplimiento de la Ley Org�nica 15/1999, con fecha 13 de
diciembre, de Protecci�n de Datos de Car�cter Personal, y la Ley
34/2002, con fecha
11 de julio, de Servicios de la Sociedad de la Informaci�n y de
comercio electr�nico, le comunicamos que su direcci�n de correo
electr�nico forma parte de un fichero del que es responsable Altran
Espa�a, y que garantiza la confidencialidad y seguridad de sus
datos. Tiene usted derecho al acceso, rectificaci�n y cancelaci�n de
sus datos en los t�rminos establecidos en la Ley Org�nica 15/1999 de
Protecci�n de Datos de Car�cter Personal y dem�s normativa
concordante, dirigi�ndose a nuestra direcci�n anteriormente se�alada
o por medio de correo
electr�nico: comunicacion at altran.es.

AVISO LEGAL: Este mensaje, junto con cualquier fichero adjunto, est�
dirigido a su destinatario y es confidencial. Cualquier
distribuci�n, uso o reproducci�n sin consentimiento del remitente
est� estrictamente prohibido. Si ha recibido este mensaje por error,
por favor proceda a ponerlo en conocimiento del remitente por e-mail
y a borrarlo de su sistema sin realizar copias.