Hi Shivkumar,
If the whole message is rejected and only notification is sent to the group. How do you plan to retrieve the attachment later for further work.
Notification(using message classification) will include the full message. Its just a additional info with the message.
You can use below to notify users.
If you want to reject a message but let the intended recipient know what happened, you can use the
Notify the recipient with a message action.
In this example, all messages that contain attachments and are sent to people inside your organization are blocked, and the recipient is notified.
Only
Transport rule actions that can be performed are listed in the link.
It would be better to ask the client not to send the email with attachment in the first place. As rejecting it would send an NDR to the sender.
You may try other options and see how it works.
Reject the message and include an explanation
|
RejectReason
|
RejectReason
|
Deletes the email message and sends a non-delivery report to the sender with the specified text as the rejection reason. The recipient doesn't receive the message or notification.
|
Reject the message with the enhanced status code of
|
RejectMessageEnhancedStatusCode
|
EnhancedStatusCode
|
Deletes the email message and sends a non-delivery receipt to the sender with the specified status code. The recipient doesn't receive the message or notification.
|
Delete the message without notifying anyone
|
DeleteMessage
|
Not applicable
|
Deletes the email message without sending a notification to either the recipient or the sender.
|
Attachment stripping can be achieved using a Gateway server only.What are you using as the SMTP gateway server for spam filtering in your environment.