수신 메시지 관리

인바운드 메시지는 Odoo 데이터베이스에 전달되는 이메일입니다. 누구나 데이터베이스에 생성된 이메일 별칭으로 이메일을 전송하거나 데이터베이스에서 이전에 전송된 이메일에 회신 대상 헤더를 기준으로 답신할 수 있습니다.

이메일 별칭

모델별 별칭

일부 애플리케이션에는 별칭이 지정되어 있습니다 (영업팀, 헬프데스크팀, 프로젝트 등). 다음과 같은 경우 별칭을 사용합니다.

  • 이메일이 직접 별칭으로 전송될 때 레코드가 생성됩니다.

  • 레코드에서 최초로 전송된 이메일에 대한 답장을 받습니다.

Example

로컬 파트 "info"는 영업 팀에서 별칭으로 사용합니다.

위에 표시된 예에서 info@company-name.odoo.com 으로 이메일을 보내면 해당 영업 팀에 새로운 영업기회나 영업제안이 자동으로 배정됩니다. 기존 영업기회 메시지창에서 이메일이 전송되는 경우에 회신 대상info@company-name.odoo.com 이 됩니다. 답신은 메시지 ID 헤더에 따라 알맞은 메시지창에 게시됩니다.

일반

애플리케이션에 별칭이 없는 경우에는 일반적으로 사용되는 대체 별칭인 캐치올을 사용합니다. 메시지창에서 보낸 이메일에는 이 캐치올 별칭으로 답신 주소가 설정되어 있습니다. 캐치올에 답신을 보내게 되면 message-id 헤더를 통해 알맞은 메시지창에 게시됩니다.

By default, the local-part catchall will be used. Enable 개발자 모드 (디버그 모드) and go to Settings ‣ Technical ‣ Emails: Alias Domains to access the configuration.

캐치올로 전송되는 이메일은 항상 데이터베이스에서 보낸 이전 이메일에 대한 답신 메일이어야 합니다. 이메일이 캐치올로 직접 전송될 경우 발신자는 다음과 같은 메시지를 받게 됩니다.

Bounce email from "MAILER-DEAMON" explaining how to contact the database.

참고

위의 스크린샷에 있는 이메일 주소인 `info@company-name.com`은 회사에서 설정한 이메일 주소입니다. 회사 프로필에서 개발자 모드로 들어가면 추가 설정 옵션 (예: 캐치올 및 반송)을 확인할 수 있습니다. 수정하려면 이메일 도메인의 내부 링크를 클릭합니다. 수정할 경우 이전에 전송된 모든 이메일 관련 회신 메일에 영향을 미치게 되므로 특별히 필요하지 않는 한 수정하지 않는 것이 좋습니다.

Example

An alias can be configured on a sales team in the CRM app. When a customer replies to an email coming from the CRM app, the reply-to is info@company-name.odoo.com.

When an email is sent from the Contact app, the reply address is catchall@company-name.odoo.com because there is no alias on the contact model.

참고

캐치올의 로컬 부분과 반송 내용은 변경하지 않는 것이 좋습니다. 이 값을 수정하면 데이터베이스에서 전송된 이전 이메일에는 계속 ​​이전 로컬 부분 값이 적용됩니다. 이로 인해 회신 메일을 데이터베이스에서 제대로 수신받을 수 없게 됩니다.

반송

회신용 주소를 만들 때 캐치올 별칭을 설정하는 것과 같은 방식으로, 반송 별칭을 사용하여 이메일의 반송 경로 를 생성합니다. 반송 경로 는 이메일이 수신자에게 전달되지 않고 발신자에게 오류가 반환될 때 사용됩니다.

By default the name bounce will be used. Enable 개발자 모드 (디버그 모드) and go to Settings ‣ Technical ‣ Emails: Alias Domains to access the configuration.

참고

On Odoo Online, when using the default outgoing email server, the return-path address is forced to the value bounce@company-name.odoo.com independently of the value set as bounce alias.

오류가 발생하면 알림을 받게 되며 메시지창에서 빨간색 봉투로 표시됩니다. 경우에 따라서는 빨간색 봉투에 오류 없음 메시지만 나타날 수 있는데, 이는 Odoo에서 처리할 수 없는 오류가 있는 경우입니다.

A notification will also be displayed in the Discuss icon on the navigation bar.

An email sent to a contact had an issue and the error is reported on the navbar.

Example

If the email address of the recipient is incorrect, by clicking on the red envelope in the chatter an error message containing the reason for the failure will be given.

An email sent to a wrong domain generates a bounce displayed as a red envelope.

Receive emails with Odoo’s default configuration

On Odoo Online and Odoo.sh, the email alias, reply, and bounce addresses are pre-configured. These addresses use the alias domain automatically added to a standard database.

Example

Assuming the database URL is https://mydatabase.odoo.com, the alias domain mydatabase.odoo.com is automatically created. Catchall and bounce can be used and their address is respectively catchall@mydatabase.odoo.com, and bounce@mydatabase.odoo.com.

CRM 앱이 설치되어 있고 별칭을 info`로 하여 영업팀을 생성하면 `info@mydatabase.odoo.com 주소를 즉시 사용할 수 있습니다. 다른 애플리케이션에서 생성한 다른 별칭에도 마찬가지로 적용됩니다.

The database domain is ready to be used to receive emails without any additional configuration.

Use multiple Odoo subdomains

On Odoo Online, the only Odoo subdomain is the one defined at the database creation.

Odoo.sh 에서는 여러 개의 Odoo 하위 도메인을 사용할 수 있습니다. 지사 설정 메뉴에서 추가로 Odoo 하위 도메인을 추가할 수 있으며, 도메인을 다른 지사에서 사용하고 있지 않는 한 얼마든지 가능합니다. 그런 다음 회사에서 사용할 별칭 도메인에 반드시 해당 도메인을 추가해야 합니다.

Setting up an Odoo subdomain on a branch.

Use a custom domain for inbound messages

The alias domain must be selected in the general settings. If you have multiple companies, each one must be configured.

The alias domain in the general settings.

이 사용자 지정 도메인을 통해 모든 별칭을 활용합니다. 별칭이 설정되어 있는 모델로 회신할 경우 [alias]@my-custom-domain.com 으로 전송됩니다. 다른 모델로 회신하는 경우에는 catchall@my-custom-domain.com 을 통해 캐치올로 전송됩니다.

Technical schema of mailing route when using a custom domain in Odoo.

중요

If emails are sent using Odoo’s email servers while using a custom domain, follow the “Using a custom domain with Odoo’s email server” instructions.

이 사용자 지정 도메인을 사용하는 경우, 별칭을 사용한 모든 이메일 (답장, 반송 및 직접 전송)은 해당 도메인 주소로 전송됩니다. 따라서 이메일은 도메인에 연결된 이메일 서버 (MX 레코드)로 전달됩니다. 메시지창에 표시되게 하거나 새 레코드를 만들려면 Odoo 데이터베이스에서 해당 수신 이메일을 검색해야 합니다.

방법

헤택

Drawbacks

Redirections

Easy to set up, emails are directly sent to the database.

Each alias of a database needs to be configured.

Incoming mail servers

Allows to keep a copy of the email in your mailbox (with IMAP). Allows to create records in the chosen model.

Depends on a CRON, meaning emails are not retrieved immediately in the database. Each alias of a database needs to be configured.

MX record

Only one record needs to be created to make all aliases work properly.

Using a subdomain is required. Requires advanced technical knowledge.

중요

For on-premise databases, the redirection and the MX record methods also require configuring the mail gateway script. Going through this script requires advanced technical and infrastructure knowledge.

중요

Refer to your provider’s documentation for more detailed information on how to handle the methods detailed below.

Redirections

If the database is hosted on Odoo Online or Odoo.sh, using redirections is recommended. They allow messages to be received without delay in the database.

It is mandatory to redirect the catchall and bounce address to the Odoo subdomain of the database. Every other alias used must be redirected as well.

Example

With one sales team, the following redirections are required:

  • catchall@company-name.comcatchall@company-name.odoo.com

  • bounce@company-name.combounce@company-name.odoo.com

  • info@company-name.cominfo@company-name.odoo.com

중요

일부 공급업체의 경우에는 대상 이메일 주소로 링크를 보내서 리디렉션의 유효성을 검사하도록 요청합니다. 캐치올 및 반송 시에는 레코드를 생성할 수 없기 때문에 이 절차가 문제가 될 수 있습니다.

  1. 메일 별칭 도메인에 있는 캐치올 값을 수정합니다. 이 메뉴에 액세스하려면 개발자 모드 를 활성화해야 합니다. 예를 들어, catchall 에서 temp-catchall 로 변경할 수 있습니다. 이렇게 하면 다른 별칭의 로컬 부분으로 catchall 을 사용할 수 있습니다.

  2. Open an app that uses an alias. For example, CRM contains aliases for each sales team. Set catchall as the local-part of the alias of a sales team.

  3. The validation email will create a record in the CRM app. The email sent will be visible in the chatter, allowing you to validate the redirection.

  4. Do not forget to change back the alias of the sales team and the catchall value on the mail alias domain, just as they were before this procedure.

참고

An alternative to redirections is forwarding. With forwarding, the address forwarding the email will be identified as the sender, while with redirections, the original sender will always remain.

Incoming mail servers

앞서 언급된 것처럼 Odoo에서 이메일을 수신하는 방법으로 리디렉션을 사용하는 것을 권장합니다. 다만 수신 메일 서버를 설정하는 것도 가능합니다. 설정할 경우 서버의 각 사서함, 캐치올, 반송 및 데이터베이스의 모든 별칭에 대한 수신 이메일 서버가 생성되어 모든 수신 이메일을 가져오게 됩니다. 수신 메일 서버는 설정 ‣ 기술 ‣ 이메일: 수신 메일 서버 로 이동하여 생성합니다.

중요

POP 프로토콜 대신 IMAP 프로토콜을 사용하는 것을 권장합니다. IMAP은 읽지 않은 이메일을 모두 가져오는 반면 POP은 모든 이메일의 기록을 가져온 다음 메일함에서 삭제된 것으로 태그를 지정합니다.

It is also possible to connect a mailbox through Gmail with Google OAuth or Outlook with Microsoft Azure OAuth.

Regardless of the protocol chosen, emails are fetched using the Mail: Fetchmail Service scheduled action.

Additionally, using an incoming mail server in Odoo gives the opportunity to create new records in a specified model. Each incoming mail server can create records in a different model.

Example

Emails received on task@company-name.com are fetched by the Odoo database. All fetched emails will create a new project task in the database.

Technical schema of mailing route when using a custom domain in Odoo.

MX record

A third option is to create a MX record in your DNS zone which specifies the mail server managing emails sent to your domain. Advanced technical knowledge is required.

중요

This configuration only works with a subdomain on the Odoo Online or Odoo.sh infrastructure (e.g., @mail.mydomain.com)

Below are presented some specifications depending on the hosting type:

The custom subdomain must be added to your Odoo Portal.

Infinite email loops

경우에 따라서는 이메일 루프 오류가 발생할 수 있습니다. Odoo에서는 루프에 대비한 보호 기능이 있으며, 이를 통해 동일한 발신자가 일정 기간 동안 별칭으로 레코드를 생성하여 지나치게 대량으로 이메일을 전송할 수 없도록 하고 있습니다.

By default, an email address can send up to 20 emails in 120 minutes. If more emails are sent, they are blocked and the sender receives the following message:

Bounce email received after attempting contact too many times an alias.

To change the default behavior, enable 개발자 모드 (디버그 모드), then go to Settings ‣ Technical ‣ Parameters: System Parameters to add two parameters.

  • For the first parameter, enter mail.gateway.loop.minutes as the Key and choose a number of minutes as the Value (120 is the default behavior).

  • For the second parameter, enter mail.gateway.loop.threshold as the Key and choose a number of emails as the Value (20 is the default behavior).

중요

These parameters are only used to prevent the creation of new records. They do not prevent replies from being added to the chatter.