d. henman <[email protected]> ha escrit:

> But, there is no host user named dhenman. It is only a gmail user
> name.

FWIW, MU has no knowledge about google at all.  So, "dhenman" is either your
local user name, or it is set explicitly somewhere in MH configuration
files (see below).

> Since you user gethostname, I thought that it would use something like
> getusername() to be consistent?

There is no such system call. Here is the full set of rules used to
determine the full sender address. The first of them that returns a
non-empty value is used:

1. The "from" parameter in the mailer URL, e.g.

     url: smtp://example.com;noauth;[email protected]

   See

     http://mailutils.org/wiki/Fetching_Mail_with_Movemail#SMTP_Parameters

   for the full list of smtp parameters.
   
2. The value of the From: header from the message, if any.

3. The username as set in .mtstailor.  The domain part can
   be specified there as well, so that:

   a) $ cat .mtstailor
      username: gray
      
      will produce "gray@<hostname>", where <hostname> is the
      name of my computer as returned by gethostname
      
   b) $ cat .mtstailor
      username: gray
      localdomain: org
      
      will produce "gray@<hostname>.org", where <hostname> is the
      same as above.

      Finally:
      
   c) $ cat .mtstailor
      username: gray
      localname: gnu
      localdomain: org
    
      will produce "[email protected]"
   
4. The username corresponding to the current user ID, as returned
   by getpwuid(getuid()) call.

> Here is the new information about result of adding the  ';noaut'  in
> ~/.mtstailor
>  $ send --debug-level=mailer.prot drafts/95
> send: S: 220 mail2.asahi-net.or.jp ESMTP Postfix
> send: C: EHLO this-machine
> send: S: 250-mail2.asahi-net.or.jp
> ....
> send: S: 250 DSN
> send: mu_mailer_send_message(): using From: dhenman@this-machine
> send: C: MAIL FROM:<dhenman@this-machine> SIZE=195
>               --------------------------        Shouldn't the From:
> host be @gmail.com?
> send: S: 250 2.1.0 Ok
> send: C: RCPT TO:<[email protected]>
> send: S: 504 5.5.2 <dhenman@this-machine>: Sender address rejected:
> need fully-qualified

Sure enough, the server refuses to accept mail from such a sender.  Use
the above rules to supply a correct sender name.

Regards,
Sergey

_______________________________________________
Bug-mailutils mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-mailutils

Reply via email to