> Source: [sk180974](https://support.checkpoint.com/results/sk/sk180974)

# sk180974 - "Scrub send_orig_email" uses an incorrect domain to send emails

| Property | Value |
|----------|-------|
| Solution ID | sk180974 |
| Date Created | 2023-05-16 |
| Last Modified | 2024-10-24 |
| Technical Level | General |
| Products | Security Gateway |
| Versions | R82, R81.20, R81.10 (EOS), R81 (EOS) |

## Symptoms

- `scrub send_orig_email` sends emails in an invalid format:   
*admin@\<CheckPointGatewayHostname\>.domain.com*   
The next hop mail server drops the email because it uses an incorrect domain (*@hostname.domain* instead of *@domain*).

## Cause

This is how `$FWDIR/scripts/send_email.sh` is currently configured to handle `send_orig_email` requests.

## Solution

This problem was fixed. The fix is included in:

* [Jumbo Hotfix Accumulator for R81.20](https://sc1.checkpoint.com/documents/Jumbo_HFA/R81.20/Default.htm) starting from Take 54
* [Jumbo Hotfix Accumulator for R81.10](https://sc1.checkpoint.com/documents/Jumbo_HFA/R81.10/Default.htm) starting from Take 141
* [Jumbo Hotfix Accumulator for R81](https://sc1.checkpoint.com/documents/Jumbo_HFA/R81/Default.htm) starting from Take 99

If you choose not to upgrade, follow these instructions:   

Create a new file and use the updated version of the `$FWDIR/scripts/send_email.sh` script to insert the correct sender name in the `send_orig_email` function.   

**Procedure:**

1. [Download the modified script](https://support.checkpoint.com/results/download/127781).
2. Backup the current `send_email.sh` file:  
   `mv $FWDIR/scripts/send_email.sh /var/tmp/send_email.sh.bkp`
3. Move the new `send_email.sh` file:  
   `mv <Location of the new send_email.sh> $FWDIR/scripts/send_email.sh`
4. Create `$FWDIR/conf/scrub/send_orig_from` and insert the custom sender address:  
   `cat <Custom Email> > $FWDIR/conf/scrub/send_orig_from`

**Note -** Use an email address with `user@domain` that the next hop mail server recognizes.  

Test the procedure with `scrub send_orig_email <ID> <Recipient Address>`

---

# Agent Instructions

This content is from the Check Point Support Center (https://support.checkpoint.com), the official knowledge base for Check Point cybersecurity products.

## Navigating This Knowledge Base

- **Complete index**: [llms.txt](https://support.checkpoint.com/llms.txt)
- **All SK articles**: [SecureKnowledge Sitemap](https://support.checkpoint.com/sitemaps/secureknowledge-sitemap-index.xml)
- **SK article URL pattern**: `https://support.checkpoint.com/results/sk/{skId}`
- **Markdown responses**: AI bot User-Agents automatically receive `text/markdown` content
