Company group incoming restriction gmail
Here are step-by-step instructions:
Step 1: Navigate to the setting 1. Go to admin.google.com 2. Navigate to Apps → Google Workspace → Gmail → Compliance 3. Find Content compliance and click Configure (or Add another rule if rules already exist)
Step 2: Configure the rule
Description: - Give it a name like "Restrict external senders for sales@company.com"
Email messages to affect: - Select Inbound Add expressions (conditions): 1. Click Add to create an expression 2. Set it to: If ANY of the following match the message 3. Add an expression: - Type: Advanced content match - Location: Envelope sender - Match type: Does not match regex - Regex: .*@(alloweddomain1\.com|alloweddomain2\.com)$ - This matches senders who are not from your allowed domains
.*@(aholadigital\.com|aholatransport\.com|aholagroup\.com|aholaspecial\.com|attracs\.com)$
Step 3: Set the action Under If the above expressions match, do the following: - Choose Reject message or Quarantine message - If rejecting, you can customize the rejection notice (e.g., "This group does not accept messages from your domain")
Step 4: Narrow the scope This is important — you don't want this rule applying to all mail: 1. Under Options → Envelope filter 2. Check Only affect specific envelope recipients 3. Enter the group address (e.g., sales@yourcompany.com)
Step 5: Save - Click Save at the bottom - Changes can take up to 24 hours to propagate, though usually much faster
Example regex for multiple allowed domains: .*@(clienta\.com|partnerb\.org|vendorc\.net)$
Tips: - Test with a non-critical group first - Use Quarantine instead of Reject initially so you can review what gets caught - Internal senders (your own domain) are typically not affected by inbound rules, but you can add your own domain to the regex to be safe