Cisco Cisco Email Security Appliance C190 Leaflet

Page of 322
 
3-192
AsyncOS 9.6 for Cisco Email Security Appliances CLI 참조 가이드
 
     명령참조 예제
  정책 시행
이 예에서는 
filter
 명령을 사용하여 3개의 새 필터를 생성합니다.
첫 번째 필터의 이름은 
big_messages
입니다. 
body-size
 규칙을 사용하여 10메가바이트보다 큰 
메시지를 삭제합니다. 
두 번째 필터의 이름은 
no_mp3s
입니다. 
attachment-filename
 규칙을 사용하여 파일 확장자가 
.mp3
인 첨부 파일이 있는 메시지를 삭제합니다. 
세 번째 필터의 이름은 
mailfrompm
입니다. 
mail-from
 규칙을 사용하여 
postmaster@example.com
에서 보낸 모든 메일을 검사하고 
administrator@example.com
을 숨은 
참조로 지정합니다. 
filter -> list
 하위 명령으로 필터를 나열하여 필터가 활성 상태이고 유효한지 확인한 다음 
move
 
하위 명령을 사용하여 첫 번째 필터와 마지막 필터의 위치를 서로 바꿉니다. 마지막으로 변경을 커
밋하여 필터를 적용합니다.
mail3.example.com> filters
Choose the operation you want to perform:
- NEW - Create a new filter.
- IMPORT - Import a filter script from a file.
[]> new
Enter filter script.  Enter '.' on its own line to end.
big_messages:
    if (body-size >= 10M) {
       drop();
    }
.
1 filters added.
Choose the operation you want to perform:
- NEW - Create a new filter.
- DELETE - Remove a filter.
- IMPORT - Import a filter script from a file.
- EXPORT - Export filters to a file
- MOVE - Move a filter to a different position.
- SET - Set a filter attribute.
- LIST - List the filters.
- DETAIL - Get detailed information on the filters.
- LOGCONFIG - Configure log subscriptions used by filters.
- ROLLOVERNOW - Roll over a filter log file.
[]> new
Enter filter script.  Enter '.' on its own line to end.
no_mp3s:
    if (attachment-filename == '\\.mp3$') {
        drop();
     }
.
1 filters added.
Choose the operation you want to perform:
- NEW - Create a new filter.
- DELETE - Remove a filter.
- IMPORT - Import a filter script from a file.
- EXPORT - Export filters to a file
- MOVE - Move a filter to a different position.
- SET - Set a filter attribute.
- LIST - List the filters.
- DETAIL - Get detailed information on the filters.
- LOGCONFIG - Configure log subscriptions used by filters.
- ROLLOVERNOW - Roll over a filter log file.