From owner-freebsd-questions@FreeBSD.ORG Sun Apr 3 16:25:51 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 E2A4516A4CE for ; Sun, 3 Apr 2005 16:25:50 +0000 (GMT) Received: from flb.schmalzbauer.de (flb.schmalzbauer.de [62.245.232.135]) by mx1.FreeBSD.org (Postfix) with ESMTP id C85A043D2F for ; Sun, 3 Apr 2005 16:25:49 +0000 (GMT) (envelope-from harry@schmalzbauer.de) Received: from korso.flintsbach.schmalzbauer.de ([172.21.2.3]) by flb.schmalzbauer.de (8.13.1/8.13.1) with ESMTP id j33GPmqa086930; Sun, 3 Apr 2005 18:25:48 +0200 (CEST) (envelope-from harry@schmalzbauer.de) Received: from cale.flintsbach.schmalzbauer.de (unknown [172.21.1.254]) by korso.flintsbach.schmalzbauer.de (Postfix) with ESMTP id D001C13B; Sun, 3 Apr 2005 18:25:47 +0200 (CEST) Received: from cale (localhost [127.0.0.1])j33GPt52026425; Sun, 3 Apr 2005 18:25:55 +0200 (CEST) (envelope-from harry@schmalzbauer.de) Received: from localhost (localhost [[UNIX: localhost]]) by cale (8.13.3/8.13.1/Submit) id j33GPrgK026424; Sun, 3 Apr 2005 18:25:53 +0200 (CEST) (envelope-from harry@schmalzbauer.de) X-Authentication-Warning: cale: harry set sender to harry@schmalzbauer.de using -f From: Harald Schmalzbauer To: Rob Date: Sun, 3 Apr 2005 18:25:46 +0200 User-Agent: KMail/1.7.2 References: <20050403153638.44109.qmail@web54007.mail.yahoo.com> In-Reply-To: <20050403153638.44109.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="nextPart37110823.t2BR0Y0EIJ"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200504031825.53830@harrymail> cc: FreeBSD questions 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: Sun, 03 Apr 2005 16:25:51 -0000 --nextPart37110823.t2BR0Y0EIJ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Am Sonntag, 3. April 2005 17:36 schrieb Rob: > Emanuel Strobl wrote:\> > > > If you don't have /etc/mail/yourhostname.domain.mc > > then you should cd to /etc/mail and type "make", > > after you edited the file "make all install restart" > > Thanks for your help. I generated the files with this > make command, and all just worked out of the box. > I can send email, without needing to tell sendmail > about my hostname. So far so good. > > However, next what I need, is using another port for > sending emails out. I have googled and read the > sendmail FAQs, but I am completely at a loss here. > > There is a FAQ, that explains: > > If you want all outgoing SMTP connections to use > port 2525, you can use this in your .mc file: > > define(`RELAY_MAILER_ARGS', `TCP $h 2525') > define(`ESMTP_MAILER_ARGS', `TCP $h 2525') > > I have put this in my hostname.mc file, but to no > avail. I'm probably not familiar enough with sendmail > way of doing things. But then this is such a simple > thing, that it should be easy. > > I suppose that with "netstat -a", there should be > a line with port 2525, if above works. But that is > not there. I'm not sure if I understand your problem correctly, but what you did with= =20 these defines is that sendmail contacts every other system at port 2525=20 insetad of 25, it's not listening on 2525, hence you can't see a tcp/2525=20 with netstat -a. But I think it should do what you want, if I understand your description=20 right. If you want sendmail to listen at a custom port these defines are=20 wrong. I don't have them in my mind right now, I'm sure you'll find the M4= =20 defines at the sendmail FAQ, tell me if I can help. =2DHarry > > Do you have any suggestions how to solve this? > > Thanks, > Rob. > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com --nextPart37110823.t2BR0Y0EIJ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQBCUBkRBylq0S4AzzwRAoU3AJ45QCoVl248yGj48BU+CbM8M3bFGACdEcQN FTWwVeaNAdpjZ3sCPSrnLkI= =nu3K -----END PGP SIGNATURE----- --nextPart37110823.t2BR0Y0EIJ--