Michael Tatge writes:
> Hi,
> 
> I have a major problem with Mutt 1.0i. Mail to some hosts does not reach its
> destination without me getting an error message. I use sendmail as MTA and
> it seems that sendmail is correctly configured. When I use netscape or kmail
> this does not happen though I also use sendmail as MTA then.
> The thing I can't understand why it's only some hosts that do not receive my
> mail, while with other it's on problem!
 
 Mail to _which_ hosts works, and which fails?

> I attach my muttrc in case someone can find a "bug"
 
> #send-hooks
> send-hook '!(~t @deep-thought)' 'my_hdr From: 
>[EMAIL PROTECTED]'

 Together with some of the headers of your mail to the list

| Received: from studsv07.studserv.uni-stuttgart.de (129.69.21.37)
|   by ns.gbnet.net with SMTP; 10 Feb 2000 02:12:58 -0000
| Received: from deep-thought.seidenbergstr [129.69.192.113] by studsv07.studserv.
| uni-stuttgart.de with ESMTP
|   (SMTPD32-6.00) id AEA819DE0404; Thu, 10 Feb 2000 03:12:56 +0100
| Received: (from t@localhost)
|         by deep-thought.seidenbergstr (8.9.3/8.9.3) id DAA01519
|         for [EMAIL PROTECTED]; Thu, 10 Feb 2000 03:11:36 -0500

 we get the following picture:

 - your home machine is deep-thought.seidenbergstr, IP 129.69.192.113
   (may be dynamic), running sendmail 8.9.3
 - your local user name on this machine is "t"
 - you send email through studsv07.studserv.uni-stuttgart.de (smarthost)
 - the purpose of the send-hook is to rewrite the From: header for all
   outgoing, non-local mail, because t@localhost doesn't mean anything
   outside your local machine

 The reason mail works for other programs may be that they can talk
 to the smarthost SMTP directly if so configured. Netscape can, for
 sure, don't know kmail.

> I don't think so. This is from the header of one of my testmails via Internet:
> 
> >From [EMAIL PROTECTED]  Fri Feb 11 14:18:42 2000
> Return-Path: <[EMAIL PROTECTED]>
> Received: from localhost (localhost [127.0.0.1])
>         by deep-thought.seidenbergstr (8.9.3/8.9.3) with ESMTP id OAA00858
>         for <t@localhost>; Fri, 11 Feb 2000 14:18:42 -0500
> Received: from pop.studserv.uni-stuttgart.de
>         by localhost with POP3 (fetchmail-5.2.0)
>         for t@localhost (single-drop); Fri, 11 Feb 2000 14:18:42 -0500 (EST)
              ^^^^^^^^^^^

 This envelope sender is meaningless outside your own machine, and you
 should use sendmail -f as someone else pointed out.

 However, this is not the problem, because the Return-Path: has been set
 properly.

> and on localhost:
> 
> >From t  Fri Feb 11 14:14:32 2000
> Return-Path: <t>
> Received: (from t@localhost)
>         by deep-thought.seidenbergstr (8.9.3/8.9.3) id OAA00746
>         for t@localhost; Fri, 11 Feb 2000 14:14:32 -0500
> Date: Fri, 11 Feb 2000 14:14:32 -0500
> From: Michael Tatge <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: test_mutt_headers

 This was mail sent locally, right? Looks like your send-hook doesn't
 work then, because it shouldn't have put that address into From: for
 local mail. Not sure why, but try to replace the parens () with double
 quotes, that's what I use here.

> There doesn't seem to be any difference, but I just found that:
> 
> [t@deep-thought ~]$ mailq
>                 Mail Queue (2 requests)
> --Q-ID-- --Size-- -----Q-Time----- ------------Sender/Recipient------------
> # message written with mutt
> VAA01040        9 Fri Feb 11 21:50 t
>                  (host map: lookup (bigfoot.de): deferred)
>                                    [EMAIL PROTECTED]
> # message written with netscape
> VAA01058       10 Fri Feb 11 21:51 <[EMAIL PROTECTED]>
>                  (host map: lookup (studserv.uni-stuttgart.de): deferred)
>                                    <[EMAIL PROTECTED]>
> 
> I tried real hard to find any reason for this diffrence, but all the docs I
> have don't point to any valueable direction.
> 
> Ideas?

 This mailq output actually obscurs the problem. Do you have a
 problem with DNS, or was the queue snapshot taken while the machine
 was offline? In either case, it is probably a good idea to have the
 smarthost listed in /etc/hosts.

 Netscape talks to SMTP directly and uses the From: for the envelope (which
 makes it so simple to spoof email addresses in netscape). Mutt, OTOH,
 does not use of sendmail's -f option by default, i.e. the envelope sender
 is localuser@localhost (in your case t@deep-thought, or just t).
 It may well be that some SMTP's out there deny non-FQHN envelopes
 (I certainly do), but you would probably get a bounce message then.
 In any case, a look at the maillogs may help (/var/log/maillog or
 /var/log/messages). The logs from the smarthost would be useful as
 well, but you probably won't be able to get access to them.

 All I wrote above cannot help directly, but should give you an idea
 where to look. It seems that mutt configuration is the least of the
 problems :)

Reply via email to