I'm using postfix SMTP server and I'm rewriting sender and recipient addresses. From the postfix logs, I can see the recipient address rewriting logs,
Sep 12 17:23:32 rewritehost postfix/smtp: 28A6701362: to=<firstname.lastname@example.org>, orig_to=<email@example.com>, relay=relay.host[xxx.xxx.xxx.xxx]:25, delay=56, delays=51/0/4.5/0, dsn=2.0.0, status=sent (250 Message accepted for delivery)
Here, I sent an email to firstname.lastname@example.org, but then it is getting a rewrite by postfix and then email is sent to email@example.com ( basically I understand recipient rewrite happened)
Similarly, I need to enable the logs for sender rewrite. I made the following change in /etc/postfix/master.cf file
cleanup unix n - - - 0 cleanup -v
and it showed long verbose logs how cleanup daemon does the sender recipient rewrite.But I do not want to enable verbose mode.