On 2010-10-24, at 6:06 PM, Dmitrij Czarkoff wrote: > 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 >
Hi, I am a bit puzzled by this because I am not able to duplicate your problem. Usually if something has the potential to go wrong it goes worse for me right away :) I even tried sending an email from my alternate desktop which is not OpenBSD and even in that case genericstable worked for me -- in this case it goes from my iMac to server9 which is OpenBSD 4.7 -stable and then to gmail and here are the headers. The return path is shown as vsan...@foretell.ca Delivered-To: vsankar2...@gmail.com Received: by 10.213.108.139 with SMTP id f11cs79559ebp; Sun, 24 Oct 2010 17:26:53 -0700 (PDT) Received: by 10.231.35.202 with SMTP id q10mr5026387ibd.138.1287966412506; Sun, 24 Oct 2010 17:26:52 -0700 (PDT) Return-Path: <vsan...@foretell.ca> Received: from mx2.foretell.ca (mx2.foretell.ca [206.45.64.231]) by mx.google.com with ESMTP id 35si15206566ibi.17.2010.10.24.17.26.49; Sun, 24 Oct 2010 17:26:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of vsan...@foretell.ca designates 206.45.64.231 as permitted sender) client-ip=206.45.64.231; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of vsan...@foretell.ca designates 206.45.64.231 as permitted sender) smtp.mail=vsan...@foretell.ca Received: from server9.sankars.local (server9.sankars.local [10.0.0.109]) by mx2.foretell.ca (8.14.3/8.14.3) with ESMTP id o9P0QmDj013797 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES256-SHA bits=256 verify=NO) for <vsankar2...@gmail.com>; Sun, 24 Oct 2010 19:26:48 -0500 (CDT) Received: from ivijay.sankars.local (ivijay.sankars.local [10.0.0.156]) by server9.sankars.local (8.14.3/8.14.3) with ESMTP id o9P0Qh7m019119 for <vsankar2...@gmail.com>; Sun, 24 Oct 2010 19:26:43 -0500 (CDT) From: Vijay Sankar <vsan...@foretell.ca> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Test Date: Sun, 24 Oct 2010 19:26:38 -0500 Message-Id: <748ea535-0ae7-492b-aa3a-e8f995694...@foretell.ca> To: vsankar2...@gmail.com Mime-Version: 1.0 (Apple Message framework v1081) X-Mailer: Apple Mail (2.1081) Test ... Vijay Sankar vsan...@foretell.ca