On Tue, Oct 26, 2010 at 4:13 AM, Chris Smith <obsd_m...@chrissmith.org>
wrote:
> 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.
>icat
> For the genericstable be sure to run:
> ====================================
> makemap hash /etc/mail/genericstable < /etc/mail/genericstable
> ====================================
> after you edit /etc/mail/genericstable adding:
> ====================================
> username B  B  B  B  B  czark...@gmail.com
> ====================================
>
> Restart sendmail and fire away.
>

Thank You! This works.

By the way, Gmail moves my mail to spam, so all this genercs magic
seem to be insufficient, and I'll have to figure out how to authente
sendmail against smtp.gmail.com.

--
Dmitrij D. Czarkoff

Reply via email to