Re: [EXIM] Strange /usr/bin/mail and Return-path: behavior.

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Rob Browning
Date:  
À: Philip Hazel
CC: exim-users
Sujet: Re: [EXIM] Strange /usr/bin/mail and Return-path: behavior.
Philip Hazel <ph10@???> writes:

> That suggests that the message was addressed to <@localhost> rather than
> <notarealaddress@localhost>. Are you sure there wasn't a space
> inadvertantly inserted in your command line?


OK, thanks for the help, here's all the info. The account I'm using
for this test is named "stray". There's no account named xzzzy:

$ mail -s test xyzzy@??? < /dev/null
Null message body; hope that's ok
$ fetchmail localhost
Enter password for stray@localhost:
fetchmail: 1 message for stray at localhost.
reading message 1 of 1 (512 header bytes) fetchmail: SMTP error: 501 <@localhost> : colon expected after route
fetchmail: SMTP error: 501 <stray> : sender address must contain a domain
fetchmail: SMTP transaction error while fetching from localhost
$

The bounce message sitting in /var/spool/mail/stray looks like this:

From MAILER-DAEMON Tue Apr 28 11:21:00 1998
Date: Tue, 28 Apr 1998 11:21:00 -0500 (CDT)
From: Mail System Internal Data <MAILER-DAEMON@???>
Subject: DON'T DELETE THIS MESSAGE -- FOLDER INTERNAL DATA
X-IMAP: 893780460 1
Status: RO

This message contains status data for IMAP and POP servers.

  From MAILER-DAEMON Tue Apr 28 11:20:33 1998
  Return-path: <>
  Envelope-to: stray@???
  Delivery-date: Tue, 28 Apr 1998 11:20:33 -0500
  Received: from mail by raven.localhost with local (Exim 1.90 #1)
          id 0yUD7R-0002bU-00 (Debian); Tue, 28 Apr 1998 11:20:33 -0500
  X-Failed-Recipients: xyzzy@???
  From: Mail Delivery System <Mailer-Daemon@???>
  To: stray@???
  Subject: Mail delivery failed: returning message to sender
  Message-Id: <E0yUD7R-0002bU-00@???>
  Date: Tue, 28 Apr 1998 11:20:33 -0500
  Status: O
  X-Status: 
  X-UID: 1


This message was created automatically by mail delivery software.

A message that you sent could not be delivered to all of its recipients. The
following address(es) failed:

    xyzzy@???:
      unknown local-part "xyzzy" in domain "raven.localhost"


------ This is a copy of the message, including all the headers. ------

  Return-path: <stray@???>
  Received: from stray by raven.localhost with local (Exim 1.90 #1)
          id 0yUD7R-0002bS-00 (Debian); Tue, 28 Apr 1998 11:20:33 -0500
  To: xyzzy@???
  Subject: test
  Message-Id: <E0yUD7R-0002bS-00@???>
  From: stray@???
  Date: Tue, 28 Apr 1998 11:20:33 -0500



And finally, my /etc/exim.conf looks like this:

# This is the main exim configuration file.
# It was originally generated by `eximconfig', part of the exim package
# distributed with Debian, but it may edited by the mail system administrator.
# This file originally generated by eximconfig at Sun Jul 27 21:03:00 CDT 1997
# See exim info section for details of the things that can be configured here.
# General configuration here, such as local domains


qualify_domain = raven.localhost
local_domains =
receiver_unqualified_hosts = raven.localhost

local_domains_include_host = true
local_domains_include_host_literals = true
never_users = root
trusted_users = mail
smtp_verify = true
gecos_pattern = ^([^,:]*)
gecos_name = $1

  received_header_text = "Received: \
            ${if def:sender_fullhost {from ${sender_fullhost} \
            ${if def:sender_ident {(${sender_ident})}}\n\t}\
            {${if def:sender_ident {from ${sender_ident} }}}}\
            by ${primary_hostname} \
            ${if def:received_protocol {with ${received_protocol}}} \
            (Exim ${version_number} #${compile_number})\n\t\
            id ${message_id} (Debian)"
  end


  ######################################################################
  #                      TRANPORTS CONFIGURATION                       #
  ######################################################################


  local_delivery:
    driver = appendfile;
    group = mail
    mode = 0660
    file = /var/spool/mail/${local_part}


  address_pipe:
    driver = pipe;


  address_file:
    driver = appendfile


  address_reply:
    driver = autoreply



   # General configuration for SMTP delivery
  smtp:
    driver = smtp;



end

  ######################################################################
  #                      DIRECTORS CONFIGURATION                       #
  ######################################################################




  system_aliases:
    driver = aliasfile;
    file = /etc/aliases,
    search_type = lsearch
  # user = list
  # Uncomment the above line if you are running smartlist


  userforward:
    no_verify,
    driver = forwardfile;
    file = .forward,
    modemask = 002,
    filter



  localuser:
    driver = localuser,
    transport = local_delivery;



end

  ######################################################################
  #                      ROUTERS CONFIGURATION                         #
  ######################################################################




# This router routes to remote hosts over SMTP using a DNS lookup with
# default options.

  lookuphost:
    driver = lookuphost,
    transport = smtp;


  literal:
    driver = ipliteral,
    transport = smtp;


end

  ######################################################################
  #                      RETRY CONFIGURATION                           #
  ######################################################################


  # Domain               Error       Retries
  # ------               -----       -------


  *                      *           F,2h,15m; G,16h,2h,1.5; F,4d,8h


end

  ######################################################################
  #                      REWRITE CONFIGURATION                         #
  ######################################################################


  # I don't know why I added this one.  I'll have to check later...
  root@???    root-raven@??? Ffrs


  rlb@???    rlb@??? Ffrs


# End of Exim configuration file


Thanks

--
Rob Browning <rlb@???>
PGP fingerprint = E8 0E 0D 04 F5 21 A0 94 53 2B 97 F5 D6 4E 39 30

--
*** Exim information can be found at http://www.exim.org/ ***