From owner-freebsd-questions@FreeBSD.ORG Sun Sep 28 13:47:45 2003 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 A46EE16A4B3 for ; Sun, 28 Sep 2003 13:47:45 -0700 (PDT) Received: from smtp.infracaninophile.co.uk (happy-idiot-talk.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id A78A04400D for ; Sun, 28 Sep 2003 13:47:43 -0700 (PDT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [127.0.0.1]) h8SKlZfs013086 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 28 Sep 2003 21:47:38 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id h8SKlYoQ013085; Sun, 28 Sep 2003 21:47:34 +0100 (BST) (envelope-from matthew) Date: Sun, 28 Sep 2003 21:47:34 +0100 From: Matthew Seaman To: Alex Zivenko Message-ID: <20030928204734.GA12443@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , Alex Zivenko , freebsd-questions@freebsd.org References: <000101c385cc$b2983d10$0400a8c0@fire> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="wRRV7LY7NUeQGEoC" Content-Disposition: inline In-Reply-To: <000101c385cc$b2983d10$0400a8c0@fire> User-Agent: Mutt/1.5.4i X-Spam-Status: No, hits=-4.9 required=5.0 tests=BAYES_00 autolearn=ham version=2.60 X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on happy-idiot-talk.infracaninophile.co.uk cc: freebsd-questions@freebsd.org Subject: Re: Sendmail redirect problem 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, 28 Sep 2003 20:47:45 -0000 --wRRV7LY7NUeQGEoC Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Sep 28, 2003 at 09:25:22AM +0300, Alex Zivenko wrote: > I have some problem here. I need a mail account on the another server, wh= ich runs on freebsd. I have a mail account, for example twistfire@rambler.r= u. I need a mail account like > fire@someserver.ru. But the acces is restricted to prevent security vuln= erabilities. The mail server is closed for ip addresses not from their subn= ets. So I decided not to login there, but when the mail will come to fire@s= omeserver.ru t will automatically redirects to twistfire@rambler.ru. > How can I do that? What I need to do in Sendmail? Sounds like you need to read the aliases(5) man page. If you haven't got access to /etc/mail/aliases on the machine in question, then you can probably just set up a .forward file in your home dir on that machine (See forward(5)). That just overrides the local delivery agent, instead forwarding the e-mail to the address in the .forward file. Don't set up two machines to forward to each other or they will spend a lot of time playing ping-pong with your e-mail, which will eventually be bounced back to sender as undeliverable. Cheers, Matthew PS You can set up that sort of either-way forwarding using procmail(1), but it relies on using formail(1) to insert special headers so that you can avoid forarding loops. See the procmailex(1) man page for an example. --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --wRRV7LY7NUeQGEoC Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQE/d0jmdtESqEQa7a0RAkR6AJ4sY9J0KeIghgC2jD/oZxL+YjX6sQCcCT1J L7WLDnfr07BtfT6CLbH+1bY= =c7yI -----END PGP SIGNATURE----- --wRRV7LY7NUeQGEoC--