Skip to content

Block or unblock a sender ASN

Open Spam AutoShield and choose the mail server whose policy you want to inspect. The master must be on for stored entries to take effect; see the illustrated Spam AutoShield guide.

Spam AutoShield Block ASN form with blank Value, autonomous-system-number helper, Current server target and Review summary.

An ASN block can affect many senders. This blank form has not added an entry. Select the image to enlarge it; use your browser's Back command to return.
  1. Click Add entry and choose Block.
  2. Set Entry type to ASN and enter an ASN such as AS64500.
  3. Choose Apply to, review the servers, then click Add blocked entry.
  4. Read every server’s result and refresh the intended list.

To remove the block, filter List and Type, find the exact value, and use Remove on the displayed server. Review its confirmation and result.

An ASN can cover many senders. Check legitimate mail from that network before applying a broad block.

From a root terminal on the intended mail server, add an ASN block:

Terminal window
cpfence --add-spam-autoshield-asn AS204915

Remove that same block:

Terminal window
cpfence --del-spam-autoshield-asn AS204915

Replace the example ASN with the verified sender network you intend to manage. Both AS-prefixed and numeric ASN values are accepted. These commands update this mail server’s policy, not the WebUI’s Apply to selection. Read the result and refresh its ASN block list.

This can help when an abusive network rotates sender IPs, but it also affects legitimate senders from that network. Prefer a narrower address or IP block when sufficient. Removing this entry does not remove separate sender/domain blocks.