From owner-freebsd-questions Sat Nov 10 18: 6:43 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mail.radzinschi.com (cc222717-a.owml1.md.home.com [65.8.33.207]) by hub.freebsd.org (Postfix) with ESMTP id C5E8837B405 for ; Sat, 10 Nov 2001 18:06:40 -0800 (PST) Received: from localhost (marco@localhost.radzinschi.com [127.0.0.1]) by mail.radzinschi.com (8.11.6/8.11.6) with ESMTP id fAB271v28403; Sat, 10 Nov 2001 21:07:01 -0500 (EST) (envelope-from marco@radzinschi.com) Date: Sat, 10 Nov 2001 21:07:01 -0500 (EST) From: Marco Radzinschi To: "F. Xavier Noria" Cc: Subject: Re: sendmail In-Reply-To: <3BEDCFB2.F7A307BA@retemail.es> Message-ID: <20011110205526.W28365-100000@mail.radzinschi.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, 11 Nov 2001, F. Xavier Noria wrote: > Marco Radzinschi wrote: > > > This is not a function of the mailer daemon, but rather the mail client. > > In Pine, or example, set the user-domain to mydomain.com. You can do the > > same for other clients, such as Outlook or Netscape messenger. > > I don't understand how this works. My laptop is called "conway" and > mails sent by mail have "fxn@conway" as remitent. The only way I know > to tell mail to use "fxn@retemail.es" is to use the sendmail flags at > the end like this: > > $ echo 'body' | mail -s 'subject' recipient@domain.com -f 'fxn@retemail.es' > > The man page suggests that is a flag for sendmail, so is there a > more proper way to configure mail to use that address? What about > the full name? > > -- fxn Set the full domain name in /etc/rc.conf using the hostname variable. For example, I have hostname="mail.radzinschi.com" in my rc.conf file. By default, sendmail will use this information as the originating server, causing any e-mail sent out to have marco@mail.radzinschi.com as the originating address. I personally do not like the full server name as the originating address, so I set the DM flag in /etc/sendmail.cf to read DMradzinschi.com What I was saying in my previous post was that the mail client, and not the mail transfer agent (such as sendmail) will ultimately specify the originating address. This is what you were doing with the argument passed to the mail command. If the mail client does not specify an originating address, then the MTA will use the hostname variable, or information from its configuration file. However, if the mail client DOES have an originating address or domain defined, it will override the MTA. For example, if in Pine or Outlook I define my originating address to be "marco@abcdefghijk.com," then that will show up regardless of my sendmail settings. Perhaps there is some way to force the MTA to use its own information, but I do not know how to do it. It should also be possible to use some sort script to strip the originating address from a header and insert its own into any outgoing messages, but again, I have no idea how to do this. Marco Radzinschi E-Mail: marco@radzinschi.com AOL IM: CrackedBoy Running FreeBSD 4.4-RELEASE i386 9:05PM up 9 days, 2:05, 2 users, load averages: 0.99, 0.98, 1.00 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message