Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Mar 2003 20:17:24 +0200
From:      Giorgos Keramidas <keramida@ceid.upatras.gr>
To:        Brian Henning <b1henning@hotmail.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: mail problem
Message-ID:  <20030306181724.GB647@gothmog.gr>
In-Reply-To: <OE5498KtdhQYZkxOjmf0000cc97@hotmail.com>
References:  <OE36rhVRAGMd4uzHNjd00000cb8@hotmail.com> <20030306170049.GA78754@gothmog.gr> <OE5498KtdhQYZkxOjmf0000cc97@hotmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2003-03-06 11:16, Brian Henning <b1henning@hotmail.com> wrote:
> > On 2003-03-06 10:51, Brian Henning <b1henning@hotmail.com> wrote:
> > > i am able to perform the following command fine when i want to send
> > > mail on the local network.
> > >
> > > cat input_message.txt | mail -s "hello world" henninb@localhost
> > >
> > > is there a flag that i can pass to mail to tell it to use the proper
> > > server for when i want to perform this operation to an address
> > > outside my local network?
> > >
> > > cat input_message.txt | mail -s "hello world" b1henning@hotmail.com
> >
> > Have you checked your /var/log/maillog file?  Any hints there?
> >
> > When you say that you are unable to use mail(1), do you mean that you
> > get the message returned to your local mailbox?  If yes, what is the
> > precise error that the failed delivery contains?
>
> ... while talking to mail.navitaire.com.:
> >>> MAIL From:<henninb@trinity.the-matrix.net> SIZE=389
> <<< 553 5.1.8 <henninb@trinity.the-matrix.net>... Domain of sender address henni
> nb@trinity.the-matrix.net does not exist
>
> the error seems to point to the domain name of my internal network... is there a
> way to change this such that the  server will accept my emial?

As someone else has already pointed out, you'll need to masquerade
addresses for this to work.  Look at the description of the following
options in the `/usr/share/sendmail/cf/README' file:

	MASQUERADE_AS(...)
	FEATURE(`masquerade_entire_domain')
	FEATURE(`masquerade_envelope')

Optionally, read in the same file about:

	FEATURE(`genericstable', ...)
	FEATURE(`generics_entire_domain')dnl
	GENERICS_DOMAIN(...)

- Giorgos



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030306181724.GB647>