From owner-freebsd-questions@FreeBSD.ORG Wed Jun 7 19:28:21 2006 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 5B96C16ADFA for ; Wed, 7 Jun 2006 17:20:59 +0000 (UTC) (envelope-from a@zeos.net) Received: from mailgate.kv.ukrtel.net (mailgate.kv.ukrtel.net [213.179.244.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id 45DF943D45 for ; Wed, 7 Jun 2006 17:20:57 +0000 (GMT) (envelope-from a@zeos.net) Received: from localhost (localhost.kv.ukrtel.net [127.0.0.1]) by localhost (Postfix) with SMTP id E338F1AF63E for ; Wed, 7 Jun 2006 20:20:52 +0300 (EEST) Received: from localhost.my.domain (unknown [82.207.43.0]) by mailgate.kv.ukrtel.net (Postfix) with ESMTP id AAP3544870AF4114C5 for ; Wed, 7 Jun 2006 20:20:52 +0300 (EEST) Received: from localhost.my.domain (localhost [127.0.0.1]) by localhost.my.domain (8.13.6/8.13.6) with ESMTP id k57HKjoA001501 for ; Wed, 7 Jun 2006 20:20:45 +0300 (EEST) (envelope-from a@zeos.net) Received: (from elisej@localhost) by localhost.my.domain (8.13.6/8.13.6/Submit) id k57HKihp001500 for freebsd-questions@freebsd.org; Wed, 7 Jun 2006 20:20:44 +0300 (EEST) (envelope-from a@zeos.net) X-Authentication-Warning: localhost.my.domain: elisej set sender to a@zeos.net using -f Date: Wed, 7 Jun 2006 20:20:44 +0300 From: a@zeos.net To: freebsd-questions@freebsd.org Message-ID: <20060607172044.GG923@localhost> Mail-Followup-To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline User-Agent: mutt-ng/devel-r581 (FreeBSD) Subject: On mail principles 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: Wed, 07 Jun 2006 19:28:21 -0000 A brief: How to use "envelope from" provided that I have a mailbox on ISP. A full explanation: My computer has no static IP-address, nor DNS-name in Internet. Internally, it has static name "localhost" and static IP-address 127.0.0.1. So, I have a mail address "elisej@localhost". But I cannot send a mail to the world using this address in "envelope from" because of 1) Internet MTAs cancel mail whith such an address in "envelope from"; 2) such an address is useless to recipient. My address in the world is "a@zeos.net". So, I make my MUA to send a letter using a command setting "envelope from" to "a@zeos.net". (like sendmail -f a@zeos.net for sendmail, see "X-Authentication-Warning" in the header of this mail) But this way is bad for local purposes: my MTA's diagnostic messages are sent trough internet or lost at all, e. g. when my ADSL is in down. (Moreover, my letters sent to other local users have non-local "envelope from" address. Then local mail begin to go through external MTA.) What to do in such a situation? In principle, I can write a ruleset (in sendmail.cf by hand) for my sendmail to rewrite "envelope from" in outgouing mail from "elisej@localhost" to "a@zeos.net" and to leave it unchanged in local mail. But I think this is not a good solution, is it? I use sendmail 8.13.6 on FreeBSD 6.1-RELEASE, but the problem depends not on MTA nor on OS. Elisej Babenko