From owner-freebsd-questions@FreeBSD.ORG Mon Jul 14 23:15:03 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C8770106566B for ; Mon, 14 Jul 2008 23:15:03 +0000 (UTC) (envelope-from agus.262@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.232]) by mx1.freebsd.org (Postfix) with ESMTP id A954C8FC14 for ; Mon, 14 Jul 2008 23:15:03 +0000 (UTC) (envelope-from agus.262@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so6129454rvf.43 for ; Mon, 14 Jul 2008 16:15:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=BtzLqD1jzHi/bnsBnVo8xh8sBm3dWcFbfDMXHRNmdXM=; b=IWH7scm0AjAB2S6YBZSuqCeS1Ji1Ae7Fs5AJfjnawYCr4e++sVb2I0X13l7khnleup JovYy2Aidm+fLIyUD2mjol+NOdbOZO5xF3yuwGy41gxFK8UeIlaYHJp8r+VYpuByiNCN 9D7QVWENfHb2g570YqjGIkqndPSVGXX1tmZZo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=HTOBq3gqw05QjvG+2SDTnj09fwWyL9xwlXcEf+ZRHvqTCRADC4ubt/X4cN3/R0n5qg SrI1Z+l+Lspwi80M4Qb/JOWuHuWqFFONM3SsMK0LiXWUrmzBbsUch/ddDlmVCBH3/+UW SVXSpmYiwy1cg7bDmXe4+ApYtmREaf7a0gF00= Received: by 10.140.208.17 with SMTP id f17mr6961907rvg.218.1216077303255; Mon, 14 Jul 2008 16:15:03 -0700 (PDT) Received: by 10.141.77.2 with HTTP; Mon, 14 Jul 2008 16:15:03 -0700 (PDT) Message-ID: Date: Mon, 14 Jul 2008 20:15:03 -0300 From: Agus To: "FreeBSD Questions" MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Change email header ..... 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: Mon, 14 Jul 2008 23:15:03 -0000 Hi guys, All i wanna do this time is change the mail from: header to another address...As my system is named after an internal network name and doesnt resolv from outside my LAN..when i send an email, for instance when a user registers, they received it with the systems internal address and they cant reply it cause of course it will get bounced....So i wanna change the from header to an address where i have a mail redirection account....I know how to do it from telnet for instance..its simple..but as i send emails from a script using the mail program.. I basically do cat welcome_msg|mail -s "Welcome..." user@mail So i was wondering if there is a way to send this automated emails changing the header from: Perhaps theres another program or way...Im open to suggestions... Thanks and cheers, Agustin