Re: configuring headers in Muttrc/ssmtp.conf
On 2001.05.20, in [EMAIL PROTECTED], Joane Lispton [EMAIL PROTECTED] wrote: What I would like to do is have the mail coming from [EMAIL PROTECTED] instead of [EMAIL PROTECTED] I figure the place to do this is either in Muttrc or ssmtp.conf. Just set host= beechtree.its.com in your /etc/ssmtp/ssmtp.conf. If you ever need a different user name in your email address (e.g., your username is kmastin but you wish to use the address [EMAIL PROTECTED]), what you need is to add a line to /etc/ssmtp/revaliases. The comment on the top of that file shows you how you can do it: local_account:outgoing_address:mailhub This is something that's always bugged me about ssmtp. I'm root@domain, where the domain has thousands of unix machines that I don't operate. People setting up ssmtp *usually* don't take care to make exemptions for root and other system accounts when they set up with host = domain. This causes no end of trouble. Please, if you use ssmtp with host masquerading in such an environment, make sure to deal appropriately with all system accounts that might send mail. You probably should exempt any account that was in your passwd file before you started adding users. I'd like to see ssmtp have some way of handling this for the most common cases by default. I don't use it, though, so I'm not sure what the right way to do it would be. -- -D.[EMAIL PROTECTED]NSITUniversity of Chicago
configuring headers in Muttrc/ssmtp.conf
Thanks to your responses on this list, ssmpt is now running. I still haven't got the headers configured, which is what I wanted to do by installing ssmtp. I have a small network, with the domainname of beechtree-its (no dot-com on the internal network). This is because Windows machines will not take a domainname longer than 15 characters. I sent a simple test message to myself, and the message is coming from workstation.beechtree-its. This is pretty much unacceptable. (security as well as functionality). I put the header from that test message below if it is needed. What I would like to do is have the mail coming from [EMAIL PROTECTED] instead of [EMAIL PROTECTED] I figure the place to do this is either in Muttrc or ssmtp.conf. Any help is much appreciated. TIA ### Header from Test message to self at other address ### From [EMAIL PROTECTED] Sat May 19 11:04:20 2001 Return-Path: [EMAIL PROTECTED] Received: from localhost (IDENT:kmastin@localhost [127.0.0.1]) by workstation.beechtree-its (8.11.0/8.11.0) with ESMTP id f4hf4K694920 for kmastin@localhost; Sat, 19 May 2001 11:04:20 -0400 Received: from maildrop.velocet.ca [ip address] by localhost with POP3 (fetchmail-version) for kmastin@localhost (single-drop); Sat, 19 May 2001 11:04:20 -0400 +(EDT) Received: by spitfire.velocet.net (mbox kmastin) (with Cubic Circle's cucipop (version/datestamp) Sat May 19 11:05:30 2001) X-From_: [EMAIL PROTECTED] Sat May 19 11:05:15 2001 Delivered-To: [EMAIL PROTECTED] Received: from workstation.beechtree-its (H32.C194.tor.velocet.net +[216.138.194.32]) by spitfire.velocet.net (Postfix) with ESMTP id 84583619A0ED for [EMAIL PROTECTED]; Sat, 19 May 2001 11:05:14 -0400 (EDT) Received: (from kmastin@localhost) by workstation.beechtree-its (8.11.0/8.11.0) id f4JF43e01605 for [EMAIL PROTECTED]; Sat, 19 May 2001 11:04:03 -0400 Date: Sat, 19 May 2001 11:04:02 -0400 From: Keith Mastin [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: test Message-ID: [EMAIL PROTECTED] Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Sender: [EMAIL PROTECTED] -- Keith Mastin [EMAIL PROTECTED] BeechTree Information Technology Services Inc. 137 Laird DriveM4G 3V5Tel(416)696-6070 http://www.beechtree-its.com
Re: configuring headers in Muttrc/ssmtp.conf
Using a large mallet, Keith Mastin whacked out: What I would like to do is have the mail coming from [EMAIL PROTECTED] instead of [EMAIL PROTECTED] I figure the place to do this is either in Muttrc or ssmtp.conf. Set the from header and put set envelope_from in your muttrc [for ex: see mine at http://www.hserus.net/muttrc.html ...] -- Suresh Ramasubramanian + Lumber Cartel India - tinlcI mallet @ cluestick.org + Wallopus Malletus Indigenensis EMail Sturmbannfuhrer, Lower Middle Class Unix Sysadmin
Re: configuring headers in Muttrc/ssmtp.conf
On Sat, May 19, 2001 at 11:24:39AM -0400, Keith Mastin wrote: What I would like to do is have the mail coming from [EMAIL PROTECTED] instead of [EMAIL PROTECTED] I figure the place to do this is either in Muttrc or ssmtp.conf. I haven't been following this thread, but... Your envelope should be handled by Sendmail's MASQUERADE option. But, Mutt's doc says set envelope_from will write the envelope using From: header field. Basic problem of workstation.beechtree-its versus beechtree-its.com is that your machine thinks that it is the first form not the second. Why not edit /etc/HOSTNAME? ### Header from Test message to self at other address ### From [EMAIL PROTECTED] Sat May 19 11:04:20 2001 Return-Path: [EMAIL PROTECTED] From: Keith Mastin [EMAIL PROTECTED] -- William Park, Open Geometry Consulting, [EMAIL PROTECTED] -- Mississauga, Ontario, Canada -- 8 CPU cluster, (Slackware) Linux, Python, LaTeX, Vim, Mutt, Sc