Skip to Content
Menu
This question has been flagged
1 Reply
1432 Views

Hello All,


While connecting AWS SES account as outgoing mail server with company's specific email domain, Helpdesk tickets notification emails delivered to customer as Company's email domain as From Email through AWS SES Account. But when customer reply back to that email, system creates  as seperate ticket rather than updating it with existing ticket.


Is there any solution to address this?If any apps available , also please let us know.


We are using Odoo 16


thanks

odoo@tenthplanet

Avatar
Discard
Best Answer

The issue where replies to emails sent through an AWS SES outgoing mail server are creating separate tickets instead of updating the existing Helpdesk ticket in Odoo is likely due to the email alias configuration or the way reply-to addresses are handled in Odoo. Here’s how to troubleshoot and resolve this:

Understanding the Issue

  1. Outgoing Email Address: Emails are sent via AWS SES with the company’s email domain.
  2. Reply-to Email Mismatch: When a customer replies, the reply email may not correctly associate with the existing ticket because:
    • The "Reply-To" header is not set correctly.
    • The alias for the ticketing system is misconfigured.

Solution Steps

1. Verify Email Alias Configuration

Odoo uses email aliases to route incoming emails to the correct records (e.g., Helpdesk tickets).

  1. Navigate to Settings > Technical > Email > Aliases.
  2. Check the alias used for Helpdesk tickets:
    • Ensure the alias matches the one configured for incoming emails.
    • For example, if the ticket system uses support@company.com, the alias should reflect this.
  3. Make sure the alias is linked to the correct Helpdesk team:
    • Go to Helpdesk > Configuration > Helpdesk Teams.
    • Check the Alias Name field.
    • Example: If your email is support@company.com, the alias should be support.

2. Configure "Reply-To" Header in Outgoing Emails

Ensure the "Reply-To" header is set to the email alias for Helpdesk replies.

  1. Go to Settings > Technical > Email > Outgoing Mail Servers.
  2. Open the AWS SES outgoing mail server configuration.
  3. Set the "Reply-To" header for Helpdesk notifications:
    • Navigate to Helpdesk > Configuration > Helpdesk Teams.
    • Ensure that the team's email alias (support@company.com) is used as the "Reply-To" header.

How to Configure Reply-To in Email Templates:

  1. Go to Settings > Technical > Email Templates.
  2. Search for the Helpdesk email notification template.
  3. Edit the template to include the alias in the "Reply-To" field:
    ${object.team_id.alias_name}@company.com
    

3. Check Incoming Email Server Configuration

Odoo uses the incoming mail server to process customer replies.

  1. Go to Settings > Technical > Email > Incoming Mail Servers.
  2. Verify the configuration for the email account (support@company.com):
    • Server Type: Set to IMAP/POP with the correct server details.
    • Action to Perform: Ensure it is set to "Create a New Ticket or Update an Existing One."
  3. Test the connection to ensure Odoo is correctly fetching emails.

4. Debug and Test

  1. Test Outgoing Emails:
    • Send a test email from the Helpdesk system.
    • Check the email headers (specifically "Reply-To") to confirm the alias is correctly included.
  2. Test Incoming Emails:
    • Reply to the test email and confirm that the ticket is updated instead of a new ticket being created.
    • Check the server logs for errors during email processing:
      tail -f odoo.log | grep mail
      
  3. Debug Aliases:
    • Use the developer mode to inspect alias-related configurations:
      • Verify the alias points to the correct model (helpdesk.ticket) and object.

5. Consider Customization or Apps

If the default Odoo behavior does not meet your requirements, you can:

  • Customize the Email Routing Logic: Modify the email processing logic to improve how Odoo identifies tickets based on reply emails. This can be done by overriding the mail.thread methods.
  • Third-Party Apps: Look for third-party apps in the Odoo App Store that enhance email handling for Helpdesk:
    • Example: "Helpdesk Email Enhancer."

Conclusion

The issue is likely caused by a misconfigured "Reply-To" header or an incorrect alias setup. Following these steps should ensure that replies to Helpdesk notification emails are correctly associated with existing tickets. If the problem persists, further customization may be required. Let me know if you need assistance with custom development!

Avatar
Discard
Related Posts Replies Views Activity
3
Apr 24
11690
0
Oct 17
8435
2
Apr 24
1512
3
Apr 25
3151
1
Oct 20
7742