[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-mailutils] mh programs

From: Sergey Poznyakoff
Subject: Re: [bug-mailutils] mh programs
Date: Fri, 22 Mar 2013 12:47:37 +0300

d. henman <address@hidden> 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;address@hidden



   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.

   c) $ cat .mtstailor
      username: gray
      localname: gnu
      localdomain: org
      will produce "address@hidden"
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: address@hidden
> send: C: MAIL FROM:<address@hidden> SIZE=195
>               --------------------------        Shouldn't the From:
> host be @gmail.com?
> send: S: 250 2.1.0 Ok
> send: C: RCPT TO:<address@hidden>
> send: S: 504 5.5.2 <address@hidden>: 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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]