Hello,
 
I try to setup address rewriting with /etc/mail/genericstable and /etc/mail/virtusertable on
my mail-relay with sendmail 8.11.0. I have an internal host, which has configured as
SENDMAIL-RELAY my mail-relay, the variable FROM-HEADER is empty. My mail-relay
is connected to the Internet, the FROM-HEADER ist set to "mydomain". I've configured
a file genericstable and virtusertable like this.
 
/etc/mail/genericstable:
usr1@host1.mydomain    usr1@mydomain
 
/etc/mail/virtusertable:
usr1@mydomain    usr1@host1.mydomain
 
The problem ist, if I send a mail from the internal host to the internet, the from-address
is not rewrited, but if I send a mail from the Internet to "usr1@mydomain" the address
is rewrited to usr1@host1.mydomain. All internal mail from usr1@host1.mydomain to
usr2@host2.mydomain should not be rewrited.
 
The address rewriting works only for incoming mail, not for outgoing. Any ideas?
 
Thanks,
Robert