[Pkg-gnupg-maint] Bug#454743: marked as done (gpg should make ${SENDMAIL} configurable...)

Michelle Konzack linux4michelle at tamay-dogan.net
Mon Jul 28 20:56:53 UTC 2008


Hello Thijs,

It seems you have not understand whats going on here...
I have writte:

----8<------------------------------------------------------------------
> Date: Wed, 5 Dec 2007 11:33:29 +0100
> From: Michelle Konzack <linux4michelle at freenet.de>
> To: BTS <submit at bugs.debian.org>
> Subject: gpg should make ${SENDMAIL} configurable...
<snip>
> ----[ '~/.gnupg/gpg.conf' ]-----------------------
> 
> no-greeting
> default-key C492F812
> no-escape-from-lines
> 
> keyserver mailto:pgp-public-keys at keys.nl.pgp.net
> 
> keyserver-options auto-key-retrieve
----8<------------------------------------------------------------------

and gpg create an E-Mail of:

> ----8<------------------------------------------------------------------
> Received: from localhost (localhost [127.0.0.1])
>   (uid 1000)
>   by michelle1.private with local; Wed, 05 Dec 2007 03:31:28 +0100
>   id 00042872.47560D80.00001E5E
> From: Michelle at michelle1.private.tamay-dogan.net
        ^^^^^^^^
> To: pgp-public-keys at keys.nl.pgp.net
> Subject: GET 0x096C4DD3
----8<------------------------------------------------------------------

OK, this message was received by courier-mta from "gpg". So the question
is, where does gpg have gotten the local part?

    Michelle

Note:  The "M" is a BIG letter!

So I have written a fake sendmail to see, what it get and gotten

> ----8<------------------------------------------------------------------
> -oi
> 
> From: Michelle Konzack,1,0033388452356,,michelle.konzack at freenet.de <michelle.konzack>
> To: pgp-public-keys at keys.nl.pgp.net
> Subject: GET 0x5EA01078
> 
> GnuPG 1.4.5 email keyserver request
> 
> ----8<------------------------------------------------------------------
> 
> which look like gpg is doing a
> 
>     grep "^${LOGNAME}:" /etc/passwd |cut -d ':' -f5

This mean, gpg was looking into the GECOS field and gotten it wrong. gpg
should ONLY use the LOGIN and NOT the GECOS field and in this case,  the
MTA will do the right thing since my login is "michelle.konzack"

michelle.konzack:x:1000:1000:Michelle Konzack,1,0033388452356,,michelle.konzack at freenet.de:/home/michelle.konzack:/bin/bash

> > What's happening is actually pretty normal. hostname -f or /etc/mailname
> > is picked up as the hostname value for the sender From: and probably

OK, gpg has used a WRONG "From:" and then courier  has  used  the  first
valid string it has found

   Michelle

and droped the rest.  Since "Michelle" dos not exist on my  system,  the
Mail will fail in any case

> > also for envelope From: and thus most receiving mailserver will reject
> > your mail because of the invalid sender domain part.

Also I should note, that I am on a VHost  and  for  this,  no  MTA  will
rewrite  anything.  Because  it  can't.  I  want  to  write  my  E-Mails
wherever I am in my Network and my LOGIN  is  always  "michelle.konzack"
and do not tell me, I have to setup the MTA's of 2800 Servers and VHosts
to rewrite any possibilities in a GECOS field can apear...

> > What you really need to solve this is a MTA that can rewrite your invalid
> > e-mail address with something legit. I'm too lazy to read the courier docs

exim, postfix and courier can not do it!

HOW o you think, should  exim/postfix/courier  rewrite  a  wrongly  used
"localpart"?

> > but I can tell you that this feature is called sender_canonical_maps in the
> > Postfix world and I remember that sendmail has something similar aswell.
> 
> Agreed with Sven here - it's not gnupg's business to do address rewriting.

NO, the business for "gpg" is, to use ONLY the LOGIN name and not  using
the GECOS field

My new FileServer (installed for 11 days) is Etch with

gnupg:
  Installiert:1.4.6-2
  Mögliche Pakete:1.4.6-2
  Versions-Tabelle:
 *** 1.4.6-2 0
        500 file: etch/main Packages
        100 /var/lib/dpkg/status
courier-mta:
  Installiert:0.53.3-5
  Mögliche Pakete:0.53.3-5
  Versions-Tabelle:
 *** 0.53.3-5 0
        500 file: etch/main Packages
        100 /var/lib/dpkg/status

and the error persists...

QUESTION:  Why does gpg not respect the environement variable SENDMAIL
           which is set to "/usr/sbin/sendmail_offline_wraper"?

Thanks, Greetings and nice Day/Evening
    Michelle Konzack
    Systemadministrator
    24V Electronic Engineer
    Tamay Dogan Network
    Debian GNU/Linux Consultant


-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack   Apt. 917                  ICQ #328449886
+49/177/9351947    50, rue de Soultz         MSN LinuxMichi
+33/6/61925193     67100 Strasbourg/France   IRC #Debian (irc.icq.com)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-gnupg-maint/attachments/20080728/a52aa6d7/attachment.pgp 


More information about the Pkg-gnupg-maint mailing list