From owner-freebsd-questions Thu Mar 6 10:17:30 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D12BE37B401 for ; Thu, 6 Mar 2003 10:17:28 -0800 (PST) Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 490E843FBF for ; Thu, 6 Mar 2003 10:17:27 -0800 (PST) (envelope-from keramida@ceid.upatras.gr) Received: from gothmog.gr (patr530-a072.otenet.gr [212.205.215.72]) by mailsrv.otenet.gr (8.12.8/8.12.8) with ESMTP id h26IHO04028674; Thu, 6 Mar 2003 20:17:25 +0200 (EET) Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.12.8/8.12.8) with ESMTP id h26IHOZn001017; Thu, 6 Mar 2003 20:17:24 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from giorgos@localhost) by gothmog.gr (8.12.8/8.12.8/Submit) id h26IHOrd001016; Thu, 6 Mar 2003 20:17:24 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Date: Thu, 6 Mar 2003 20:17:24 +0200 From: Giorgos Keramidas To: Brian Henning Cc: freebsd-questions@FreeBSD.ORG Subject: Re: mail problem Message-ID: <20030306181724.GB647@gothmog.gr> References: <20030306170049.GA78754@gothmog.gr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 2003-03-06 11:16, Brian Henning wrote: > > On 2003-03-06 10:51, Brian Henning 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: SIZE=389 > <<< 553 5.1.8 ... 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