On Wed, 27 Nov 2002, McRae, Darren A wrote:

> Hello,
> 
> Is the a way of mail being sent as a particular user no matter what the
> linux username is? So if I log in as root or daz or pete it sends mail
> signed as [EMAIL PROTECTED]
> 
> This needs to be done via sendmail, as that is what I'm using.

You can setup your genericstable in /etc/mail e.g.:

daz@localhost                   [EMAIL PROTECTED]
pete@localhost                  [EMAIL PROTECTED]

For more details see cf.README

[...}
genericstable   This feature will cause unqualified addresses (i.e., without
                a domain) and addresses with a domain listed in class {G}
                to be looked up in a map and turned into another ("generic")
                form, which can change both the domain name and the user name.
                Notice: if you use an MSP (as it is default starting with
                8.12), the MTA will only receive qualified addresses from the
                MSP (as required by the RFCs).  Hence you need to add your
                domain to class {G}.  This feature is similar to the userdb
                functionality.  The same types of addresses as for
                masquerading are looked up, i.e., only header sender
                addresses unless the allmasquerade and/or masquerade_envelope
                features are given.  Qualified addresses must have the domain
                part in class {G}; entries can be added to this class by the
                macros GENERICS_DOMAIN or GENERICS_DOMAIN_FILE (analogously
                to MASQUERADE_DOMAIN and MASQUERADE_DOMAIN_FILE, see below).
[...]

You can also use the -f switch with sendmail.

Using mutt you have the possibility to set your name in .muttrc:

[...]  
  6.3.55.  from

  Type: e-mail address
  Default: ""

  When set, this variable contains a default from address.  It can be
  overridden using my_hdr (including from send-hooks) and
  ````$reverse_name''''.

  Defaults to the EMAIL environment variable's content.
  
  6.3.179.  realname

  Type: string
  Default: ""

  This variable specifies what "real" or "personal" name should be used
  when sending messages.

  By default, this is the GCOS field from /etc/passwd.  Note that this
  variable will not be used when the user has set a real name in the
  ``$from'' variable.

  6.3.43.  envelope_from

  Type: boolean
  Default: no

  When set, mutt will try to derive the message's envelope sender from
  the "From:" header.  Note that this information is passed to sendmail
  command using the "-f" command line switch, so don't set this option
  if you are using that switch in ``$sendmail'' yourself, or if the
  sendmail on your machine doesn't support that command line switch.
[...]

Oliver
-- 
... don't touch the bang bang fruit


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to