Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Foward e-mail address generated with wrong double "reply+" #9463

Open
PtkFerraro opened this issue May 14, 2024 · 2 comments
Open

Foward e-mail address generated with wrong double "reply+" #9463

PtkFerraro opened this issue May 14, 2024 · 2 comments
Labels

Comments

@PtkFerraro
Copy link

PtkFerraro commented May 14, 2024

Describe the bug

When agent continue a conversation and the user is offline, it sends an email do de user with the recent messages. This email should go with a reply address of reply+UUID@domain.xxx. In my case the email is going with double reply+, ex. reply+reply+UUID@domain.xxx .

If the user reply to this address nothing happens, but if I edit and remove one reply+ and then send the email, everything works fine (email go to the ingress MX, get downloaded to S3 bucket and the message goes to the chat history)

Why am I getting this double reply+?

Images:

Wrong Email Address

Reply editing address

To Reproduce

  1. I am running on Docker Swarm with Traefik
  2. My Configuration is
  INSTALLATION_NAME: CHATWOOT
  NODE_ENV: production
  RAILS_ENV: production
  INSTALLATION_ENV: docker
  SECRET_KEY_BASE: LKJLKJLKJLKJLKLKJLKJLKJLKJLKJ
  FRONTEND_URL: https://chatwoot.xxxxxxxx.com
  DEFAULT_LOCALE: pt_BR
  FORCE_SSL: "true"
  ENABLE_ACCOUNT_SIGNUP: "false"
  REDIS_URL: redis://redis:6379
  # EMAIL SENDER NAME
  MAILER_SENDER_EMAIL: BPOOL <suporte@xxxxxxxx.com>
  # EMAIL SENDER AMAZON SES
  SMTP_ADDRESS: email-smtp.XXXXXXXXXXXXX.amazonaws.com
  SMTP_AUTHENTICATION: plain
  SMTP_ENABLE_STARTTLS_AUTO: "true"
  SMTP_USERNAME: XXXXXXXXXXXXX
  SMTP_PASSWORD: KJHKHKJHKJHKJHKJHKJHKJHKJHK
  # EMAIL INBOUND
  RAILS_INBOUND_EMAIL_SERVICE: sendgrid
  RAILS_INBOUND_EMAIL_PASSWORD: AOAOAAOAOAOAOAOAOAOAOAOOA
  MAILER_INBOUND_EMAIL_DOMAIN: inbound.xxxxxxxx.com
  # Banco de dados
  POSTGRES_HOST: postgres
  POSTGRES_USERNAME: postgres
  POSTGRES_PASSWORD: XXXXXXXXXXXXX
  POSTGRES_DATABASE: chatwoot
  # Armazenamento
  ACTIVE_STORAGE_SERVICE: 'amazon'
  S3_BUCKET_NAME: XXXXXXXXX 
  AWS_ACCESS_KEY_ID: KJHKJHKJHKJHKJHKJHKJHKJH
  AWS_SECRET_ACCESS_KEY: KJHKJHKJHKJHKJHKJHKJHKJH
  AWS_REGION: XXXXXXXXXXXXX
  # logs
  LOG_LEVEL: debug
  RAILS_LOG_TO_STDOUT: "true"
  # Avatar Bot
  USE_INBOX_AVATAR_FOR_BOT: "true"

Expected behavior

Should create the reply address with just one "reply+"

Environment

Docker

Cloud Provider

AWS

Platform

Browser

Operating system

Linux

Browser and version

Chrome

Docker (if applicable)

Docker CE 26.1.2

Docker Info

Client: Docker Engine - Community
Version: 26.1.2
Context: default
Debug Mode: false
Plugins:
buildx: Docker Buildx (Docker Inc.)
Version: v0.14.0
Path: /usr/libexec/docker/cli-plugins/docker-buildx
compose: Docker Compose (Docker Inc.)
Version: v2.27.0
Path: /usr/libexec/docker/cli-plugins/docker-compose

Server:
Containers: 7
Running: 7
Paused: 0
Stopped: 0
Images: 6
Server Version: 26.1.2
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Using metacopy: false
Native Overlay Diff: true
userxattr: false
Logging Driver: json-file
Cgroup Driver: systemd
Cgroup Version: 2
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local splunk syslog
Swarm: active
NodeID: 509beqmycf2b6rp8qs8xsxuia
Is Manager: true
ClusterID: 1clj808xu6id0976nct6ssain
Managers: 1
Nodes: 1
Default Address Pool: 10.0.0.0/8
SubnetSize: 24
Data Path Port: 4789
Orchestration:
Task History Retention Limit: 1
Raft:
Snapshot Interval: 10000
Number of Old Snapshots to Retain: 0
Heartbeat Tick: 1
Election Tick: 10
Dispatcher:
Heartbeat Period: 5 seconds
CA Configuration:
Expiry Duration: 3 months
Force Rotate: 0
Autolock Managers: false
Root Rotation In Progress: false
Node Address: x.x.x.x
Manager Addresses:
x.x.x.x:2377
Runtimes: io.containerd.runc.v2 runc
Default Runtime: runc
Init Binary: docker-init
containerd version: e377cd56a71523140ca6ae87e30244719194a521
runc version: v1.1.12-0-g51d5e94
init version: de40ad0
Security Options:
apparmor
seccomp
Profile: builtin
cgroupns
Kernel Version: 6.8.0-1008-aws
Operating System: Ubuntu 24.04 LTS
OSType: linux
Architecture: x86_64
CPUs: 1
Total Memory: 1.918GiB
Name: ip-172-31-89-1
ID: ce622b95-e166-488c-8bc3-44d408589dfb
Docker Root Dir: /var/lib/docker
Debug Mode: false
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false

Additional context

No response

@PtkFerraro PtkFerraro added the Bug label May 14, 2024
Copy link

linear bot commented May 14, 2024

@PtkFerraro
Copy link
Author

This problem is related when you select FRIENDLY sender name. The Professional works fine.

CleanShot 2024-05-17 at 16 06 57@2x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant