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 firstname.lastname@example.org, 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?
longshot... but looks like the newaliases didnt work
try sendmail -bi
I tried what you suggested but found no joy. It tells me:
bash: sendmail: command not found
it's not on your path but it must be there as it's your server,
and then use the full path to sendmail
find / -name sendmail -ls
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
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.