On Mon, Oct 25, 2010 at 12:58 AM, Dmitrij Czarkoff <czark...@gmail.com> wrote: > On Mon, Oct 25, 2010 at 12:50 AM, Jamie Paul Griffin > <ja...@griffin.arimaspi.co.uk> wrote: >>> For a global change in Gmail: >>> Settings > Accounts and Import > Send mail as: > edit info >>> >>> Otherwise add different accounts and send as them (although smtp >>> authentication will be via the username and not the added accounts). >>> Google Apps makes this more flexible as you can alias users. >> >> I don't think that's what he's looking for. There are command-line mailers that are better suited to changing the From: header, otherwise If you really want to use mail(1) then i think your best option is to look at using the mta to re-write the From: addressi as suggested earlier, which is typically sendmail, otherwise the closest thing you can get to it is by using the -r option (i think). > > I am in trouble making sendmail actually read > /etc/mail/genericstable.db: setting > > FEATURE(genericstable, `hash -o /etc/mail/mailnames')dnl > FEATURE(`masquerade_envelope')dnl > > in mc file and compiling it doesn't help and I can't find out, why so.
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 usern...@domain.name instead of my gmail address. -- Dmitrij D. Czarkoff