How to change ( masquerade) shell user name when sending mails via Postfix
Hi Happy New Year to all,
My query is as follows: In my server, where postfix is running, I have a shell account as sagar, I actually wanted to be seen by the world when they get mail as "premsaagar@MyOriginatingDomainName.com". So, I used the canonical_maps in /etc/postfix/main.cf as follows: Code:
canonical_maps=hash:/etc/postfix/canonical Code:
sagar premsaagar Code:
postmap /etc/postfix/canonical Code:
from: sagar premsaagar@OriginatingDomainName.com Please help |
I just had a very similar issue. I wanted to masquerade my shell account when sending mail via a script to my customers. Unfortunately, I'm not sure how you're sending e-mail so I'm just going to tell you how I got my issue resolved:
Code:
$ echo "This is a test." | mail -a "From: \"Ray P.\" <vertigoray@mailinator.com>" -s "Test" you@mailinator.com |
Hi VertigoRay,
Sorry for the belated reply. I will check this out and update you. Thanks |
All times are GMT -5. The time now is 11:38 PM. |