Restricting MTA access with a single IP address using the CLI

Prev Next

Use the CLI commands in this topic to configure the MTA access restriction with a single IP address.

To configure the MTA access restriction with a single IP address:
  1. Go to CLI configuration mode.

    hostname > enable
    hostname # configure terminal
  2. Specify a single IP address for the MTA access restriction.

    The following example command restricts all MTA hosts except the specified IPv4 address in Drop analysis mode:

    hostname (config) # email-analysis mta mynetworks 172.16.183.3

    MODE is drop

    The following example command restricts all MTA hosts except the specified IPv6 address in Drop analysis mode:

    hostname (config) # email-analysis mta mynetworks 2001:470:84a7:3066::aa0

    MODE is drop

    IPv6 enabled

  3. Verify your changes.

    hostname (config) # show email-analysis mta mynetworks

    Note

    The internal loopback address is not displayed in the show email-analysis mta mynetworks command output. Only values that you entered are displayed.

  4. Save your changes.

    hostname (config) # write memory

Examples

This example shows that all MTA hosts are restricted except the specified IPv4 address.

hostname (config) # show email-analysis mta mynetworks

172.16.183.3

This example shows that all MTA hosts are restricted except the specified IPv6 address.

hostname (config) # show email-analysis mta mynetworks

[2001:470:84a7:3066::aa0]