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

Re: problem sending mail...



On Mon, Mar 01, 1999 at 07:03:17PM -0800, Jesse Evans wrote:
> Folks,
> 
> 	Something chokes when I try to send mail, but only certain addresses.
> 
> 	For example, I can send a message to myself via my ISP and it get's
> retrieved just fine using fetchmail. Likewise, I can send mail to a web-based
> addresse, i.e. netscape.net and it shows up there, so I know I'm able to get
> out of my ISP's domain.
> 
> 	However, other addresses get bounced back almost immediately with the
> follow header:
> 
> mail failed, returning to sender
> From: <MAILER-DAEMON@debian>
> To: jesse
> 
> 
> |------------------------- Failed addresses follow: ---------------------|
>  [To: address snipped] ... transport smtp: 501 <jesse@debian>... Sender domain
> must exist |------------------------- Message text follows:
> ------------------------| Received: by debian
>  via sendmail from stdin
>  id <m10Hf7L-000AfBC@debian> (Debian Smail3.2.0.102)
>  for <unknown>; Mon, 1 Mar 1999 18:41:07 -0800 (PST) 
> From: Jesse Evans <jpjevans@earthlink.net>
> Reply-To: jpjevans@earthlink.net
> To: [To: address snipped]
> Subject: Re:  visiting CA
> Date: Mon, 1 Mar 1999 18:35:01 -0800
> X-Mailer: KMail [version 1.0.17]
> Content-Type: text/plain
> References: <199903011837.LAA26910@boris.infomagic.com>
> MIME-Version: 1.0
> Message-Id: <99030118410600.01625@debian>
> Content-Transfer-Encoding: 8bit
> X-KMail-Mark: 
> 
> 	(I've snipped out the address of the person I'm mailing to for the sake
> of maintaining their privacy). My own machine is named 'debian' and I'm 'jesse'
> on that machine. I connect to the Internet via Earthlink. I can mail this
> message ok, so what's up?
> 
>  --
> 'til next we type...
> HAVE FUN!! -- Jesse

It looks like the recipient's mail server insists on legal sender's
address on email envelope.  For example, your envelope

    From jesse@debian Mon Mar  1 23:47:45 1999

is rejected because 'jesse@debian' is not legal internet address.
I had similar problem, some time ago.  My solution was to re-generate
/etc/sendmail.cf from /usr/src/sendmail/cf/cf/linux.smtp.mc:

    include(`../m4/cf.m4')
    VERSIONID(`linux for smtp-only setup')dnl
    OSTYPE(linux)
    FEATURE(nouucp)dnl
    MASQUERADE_AS(better.net)dnl		<-- my ISP
    FEATURE(masquerade_envelope)dnl		<-- my addition
    FEATURE(always_add_domain)dnl
    MAILER(local)dnl
    MAILER(smtp)dnl

It turned out the following section controls how sendmail writes
an envelope:

    ###################################################################
    ###  Ruleset 94 -- convert envelope names to masqueraded form   ###
    ###################################################################

    S94
    R$+                     $@ $>93 $1
    #R$* < @ *LOCAL* > $*   $: $1 < @ $j . > $2

--William.


Reply to: