From owner-freebsd-questions@FreeBSD.ORG Sat Apr 2 17:05:12 2005 Return-Path: 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 EDEC116A4CE for ; Sat, 2 Apr 2005 17:05:12 +0000 (GMT) Received: from mail.gmx.net (mail.gmx.de [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id D521C43D1F for ; Sat, 2 Apr 2005 17:05:11 +0000 (GMT) (envelope-from emanuel.strobl@gmx.net) Received: (qmail invoked by alias); 02 Apr 2005 17:05:10 -0000 Received: from flb.schmalzbauer.de (EHLO [172.21.1.254]) [62.245.232.135] by mail.gmx.net (mp020) with SMTP; 02 Apr 2005 19:05:10 +0200 X-Authenticated: #301138 From: Emanuel Strobl To: freebsd-questions@freebsd.org Date: Sat, 2 Apr 2005 19:05:11 +0200 User-Agent: KMail/1.7.2 References: <20050402160725.34044.qmail@web54007.mail.yahoo.com> In-Reply-To: <20050402160725.34044.qmail@web54007.mail.yahoo.com> X-Birthday: 10/06/72 X-CelPhone: +49 173 9967781 X-Tel: +49 89 18947781 X-Country: Germany X-Address: Munich, 80686 X-OS: FreeBSD MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1369765.glyqshhIER"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200504021905.20268@harrymail> X-Y-GMX-Trusted: 0 cc: Rob Subject: Re: FreeBSD server behind router-NAT; how to configure sendmail? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Apr 2005 17:05:13 -0000 --nextPart1369765.glyqshhIER Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Am Samstag, 2. April 2005 18:07 schrieb Rob: > Hi, > > My ISP provides me with a fixed IP address and a > registered hostname. > > I use a Sitecom DC-207 that serves as a plain router, > NAT and 4-port switch, to connect three Windows PCs > and one FreeBSD PC simultaneously to the internet. > > The router gets the fixed IP address, whereas my > FreeBSD system gets IP 192.168.123.1 with a fake > hostname. > > The router is configured to redirect the usual TCP/IP > server ports to the FreeBSD PC (e.g. ports 22, 25, 80 > etc.), which makes the FreeBSD PC a kind of virtual > server for my fixed IP address. > > One of the problems I encounter is this: > Sendmail on the FreeBSD PC cannot deliver email, > because there seems to be a DNS issue, because the > FreeBSD PC does not have an official IP & hostname. You can set the following ine /etc/mail/yourhostname.domain.mc define(`confDOMAIN_NAME', `host.name.fq')dnl host.name.fq is what ever your provider registred for your IP. Make sure there's also a correct A record for that hostname, eg. if it is=20 spam.refuse.org then `host spam.refuse.org` must return your IP and `host I= P`=20 must return spam.refuse.org. If you don't have /etc/mail/yourhostname.domain.mc then you should cd=20 to /etc/mail and type "make", after you edited the file "make all install=20 restart" You also may want to define masquerading, like: MASQUERADE_AS(`yourdomain.org') MASQUERADE_DOMAIN(`internal.domain.sth')dnl =46EATURE(limited_masquerade)dnl =46EATURE(`masquerade_entire_domain') =46EATURE(`masquerade_envelope') =2DHarry > > How do I configure my FreeBSD PC so, that sendmail > thinks the PC has the official IP address/hostname > provided by my ISP, which is actually used by the > router? > Or should I follow a different configuration scheme > for achieving these goals? > > Thanks, > Rob. > > > > __________________________________ > Do you Yahoo!? > Yahoo! Personals - Better first dates. More second dates. > http://personals.yahoo.com > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" --nextPart1369765.glyqshhIER Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQBCTtDQBylq0S4AzzwRAqwUAJ4nx6MBE05td8FZHdTB0MEmkqSMRQCfQT+p eqc7g2MdusFs1kTdm7DDfk8= =iwE5 -----END PGP SIGNATURE----- --nextPart1369765.glyqshhIER--