Find the answer to your Linux question:
Results 1 to 7 of 7
Halo I've been asked to create an email address for a dept such that when a client sends mail to it, everyone in the dept receives it. My mail server ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Aug 2005
    Posts
    4

    Sendmail aliases


    Halo
    I've been asked to create an email address for a dept such that when a client sends mail to it, everyone in the dept receives it.
    My mail server uses sendmail-8.12.8-4 on RHL9.
    This is what i have done: In /etc/aliases, i've added this line

    treasury: josiah, watson, brighton, joseph

    and run the newaliases.
    However, when i test by sending mail to treasury@afg.com, i get the error msg:

    Switch map aliases: Unknown member map aliases.file
    treasury... User unknown

    Where am i getting it wrong. Can someone please help?

    Virira

  2. #2
    Linux Newbie ihayhurst's Avatar
    Join Date
    Jun 2005
    Location
    UK
    Posts
    138
    longshot... but looks like the newaliases didnt work
    try sendmail -bi
    ?
    Ian
    Registerd Linux user #119296

  3. #3
    Just Joined!
    Join Date
    Aug 2005
    Posts
    4

    sendmail -bi

    Thanks ihayhurst

    I tried what you suggested but found no joy. It tells me:

    bash: sendmail: command not found

  4. #4
    Linux Newbie ihayhurst's Avatar
    Join Date
    Jun 2005
    Location
    UK
    Posts
    138
    it's not on your path but it must be there as it's your server,

    try
    Code:
    find / -name sendmail -ls
    and then use the full path to sendmail
    Registerd Linux user #119296

  5. #5
    Just Joined!
    Join Date
    Aug 2005
    Posts
    4
    I ran the code and did find the absolute path then did the sendmail -bi using the full path but it yielded the same results as the newaliases.

    Now i am wondering if there is a problem with my installation

  6. #6
    Just Joined!
    Join Date
    Aug 2005
    Posts
    4
    Finally got it, after a great deal of trial and error.
    This is how:
    . I created an account with the name of the alias using the useradd command.
    . Then went into /home/alias and created the .forward using the vi command into which i put the list of recipients separated by commas.
    . not quite sure whether this was of any use but i copied the aliases and aliases.db files from the /etc directory into the /etc/mail directory

    After running the newaliases command, it worked.

  7. #7
    Linux Newbie ihayhurst's Avatar
    Join Date
    Jun 2005
    Location
    UK
    Posts
    138
    Congrats....
    Registerd Linux user #119296

Posting Permissions

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