Find the answer to your Linux question:
Results 1 to 2 of 2
Hi Guys i'm setting up sendmail with amazon aws and i have the mail sending ok but when i send the mail i want to change the local user name. ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jan 2011
    Posts
    5

    Sendmail alias/ hide local username


    Hi Guys
    i'm setting up sendmail with amazon aws and i have the mail sending ok but when i send the mail i want to change the local user name.
    i.e when i send the mail it shows the right email address i choose using

    FEATURE(masquerade_envelope)dnl
    FEATURE(`genericstable')dnl
    GENERICS_DOMAIN(`localhost.localdomain')dnl


    but the name of the email is still ubuntu can i change the "name" shown on the mail for example webmaster or admin
    have i the configuration wrong in generics tab or do i have to use virtuisertable ?

    all help welcome thanks guys

    Paul

  2. #2
    Linux Newbie
    Join Date
    Jan 2013
    Posts
    116
    Create your /etc/mail/genericstable file. First sendmail searches the /etc/mail/generics-domains file for a list of domains to reverse map. It then looks at the /etc/mail/genericstable file for an individual email address from a matching domain. The format of the file is

    Code:
    linux-username       username@new-domain.com
    Your e-mails from linux-username should now appear to come from username@new-domain.com.

    Or go through Quick HOWTO : Ch21 : Configuring Linux Mail Servers - Linux Home Networking url.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •