On Sun, Oct 24, 2010 at 7:06 PM, Dmitrij Czarkoff <[email protected]> wrote: > Sorry, the actual lines I added to openbsd-localhost.mc are: > > FEATURE(genericstable, `hash /etc/mail/genericstable')dnl > FEATURE(`masquerade_envelope')dnl > > And no luck. I keep recieving mail from my [email protected] > instead of my gmail address.
Haven't previously played with sendmail but out of academic interest I decided to look into this as the problem seemed to be much more straightforward then i first imagined. This works here (I've set up a SMART_HOST as well to forward to my postfix box): ==================================== FEATURE(masquerade_envelope)dnl FEATURE(`genericstable')dnl GENERICS_DOMAIN(`localhost.localdomain')dnl GENERICS_DOMAIN(`idomain.name')dnl ==================================== where `domain.name' is of course what you're seeing now. Then rebuild /etc/mail/localhost.cf from openbsd-localhost.mc. For the genericstable be sure to run: ==================================== makemap hash /etc/mail/genericstable < /etc/mail/genericstable ==================================== after you edit /etc/mail/genericstable adding: ==================================== username [email protected] ==================================== Restart sendmail and fire away.

