From owner-freebsd-questions@FreeBSD.ORG Fri Aug 26 11:54:18 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 2066716A41F for ; Fri, 26 Aug 2005 11:54:18 +0000 (GMT) (envelope-from bkoenig@cs.tu-berlin.de) Received: from efacilitas.de (smtp.efacilitas.de [85.10.196.108]) by mx1.FreeBSD.org (Postfix) with ESMTP id B161943D46 for ; Fri, 26 Aug 2005 11:54:17 +0000 (GMT) (envelope-from bkoenig@cs.tu-berlin.de) Received: from eurystheus.local (port-212-202-37-251.dynamic.qsc.de [212.202.37.251]) by efacilitas.de (Postfix) with ESMTP id F0DAB4B157; Fri, 26 Aug 2005 14:00:27 +0200 (CEST) Received: from [192.168.1.67] (eurystheus.local [192.168.1.67]) by eurystheus.local (Postfix) with ESMTP id 14DC4330829; Fri, 26 Aug 2005 11:53:54 +0000 (UTC) Message-ID: <430F02D2.3040903@cs.tu-berlin.de> Date: Fri, 26 Aug 2005 13:53:54 +0200 From: =?ISO-8859-1?Q?Bj=F6rn_K=F6nig?= User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.10) Gecko/20050824 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Pat Maddox References: <810a540e050826040829ddc753@mail.gmail.com> In-Reply-To: <810a540e050826040829ddc753@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Cc: FreeBSD Questions Subject: Re: Forwarding mail to another server X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Aug 2005 11:54:18 -0000 Pat Maddox wrote: > My ISP (Bresnan) blocks outgoing traffic on port 25. I'd like to make > it so that the mail program automatically forwards requests to my > ISP's mail server, instead of trying to directly send mail to the > appropriate server. > > For example, if I did > mail pergesu@gmail.com > > And sent a message, my machine would send that to mail.bresnan.net and > have them pass it on. Is it possible to do that? If so, how? I use the port mail/ssmtp for this purpose. This is a small program that sends all mails via a relay server. After you have installed it you will find some example configuration files in /usr/local/etc/ssmtp. Alter also the entries in /etc/mail/mailer.conf to sendmail /usr/local/sbin/ssmtp send-mail /usr/local/sbin/ssmtp mailq /usr/local/sbin/ssmtp newaliases /usr/local/sbin/ssmtp hoststat /usr/bin/true purgestat /usr/bin/true Regards Björn