I am using Linux Redhat 9 & sendmail-8.12.8-4 Is there anyway when ever I sent an email from any of my email client thru my SMTP server I will get the copy of that email. where I have to define the setting and is that possible, for instance if any one sends an email to email@example.com and that xyz.com domain is on my server , as a virtual host, and he's using mail.xyz.com as his SMTP server what I have to do in order to get the email which xyz user's sends let me know if thats possible...
Please let me know the best way to do it. Thanks
Yes, there is. but depending on how many users you have, it may or may not be a pita. Add each user to /etc/mail/virtusertable, and _after_ all users, enter *@yourdomain and point it towards the desired catch-all account
that means, any mail sent to: @example.com will goto user on the local system in/out regardless.