enable genericstable in your sendmail.mc, uncommend or add (if they do not exist) the following lines:
Code:
FEATURE(`genericstable',`hash -o /etc/mail/genericstable.db')dnl
GENERICS_DOMAIN_FILE(`/etc/mail/generics-domains')dnl
create the file /etc/mail/generics-domains where you simply write the list of domains to which the users you want to change addresses for belong to.
Make sure you include the real domain of the mail server as well.
exmaple, if your mail server is called mailserver.yourcompany.com and it is serving mail for the domain yourotherdomain.com and you need to change the user qatqat@yourotherdomain.com to me.yourotherdomain.com, add both domains to the /etc/mail/generics-domains file.
create or edit the file /etc/mail/genericstable and add
Code:
qatqat me.yourotherdomain.com
from the /etc/mail directory execute,
make
newaliases
/etc/rc.d sendmail restart
Now mail from qatqat@yourotherdomain.com should go out as me@yourotherdomain.com
QatQat
If I could have sex each time I reboot my server, I would definitely prefer Windoz over Linux!