How to use rsyslog to mask specific information

Solution Verified - Updated -

Issue

  • How to use "*****" to mask only the local part of an email address in the mail logs. For the following logs, personal information for email addresses between "from=<" and "@" needs to be mask:
postfix/qmgr[1562]: B84821175BE2: from=<student@test.co.jp>, size=1438, nrcpt=1 (queue active) 

Environment

  • Red Hat Enterprise Linux 8

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content