Solved

mail aliases

Posted on 2003-12-05
6
347 Views
Last Modified: 2013-12-27
when I create a new email account I use the admintool to create the use, and then pico /etc/aliases to enter in the user info. then I type newaliases.

This is the issue, sometimes this works for me and sometimes the new accounts do not.  That has me stumped.  Also, I noticed that there are three different aliases under /etc          1) aliases   2) aliases.save   3) aliasese
now..after looking at the different files I notice that there are differences between them.

This is my question?? I use Solaris 9 to manage POP3 accounts. Is this proceedure correct, if yes why does it work sometimes, if not what is the correct method of entering a new or changed account? As far as the aliases go, why three? I was under the impression that running "newalises" would update the database therefore allowing new/changed account to work properly.
0
Comment
Question by:dtooth71
  • 4
  • 2
6 Comments
 
LVL 38

Expert Comment

by:yuzh
ID: 9882599
It depands on how you install sendmail, is your sendmail.cf in /etc/mail or /etc

an mail aliase can point to a local user account or an external email address.

In normal case, all you need to do is to edit the /etc/aliases  (or /etc/mail/aliases file)
then run:
newaliases

But if your are using NIS+/NIS, and you have the same aliase defined in NIS+/NIS,
the NIS+/NIS aliase might overwritten the /etc/aliases. just make sure you only define one aliase in on place, eg if you put it in /etc/aliases, you don't need to put it
in NIS+/NIS

0
 
LVL 38

Accepted Solution

by:
yuzh earned 500 total points
ID: 9882620
0
 

Author Comment

by:dtooth71
ID: 9882657
sendamail is located in /etc and is the only place that I have been entering the info. then I would run newaliases
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 38

Expert Comment

by:yuzh
ID: 9882790
vi /etc/aliases

edit the aliases then

newaliases

should do the job for you.

In what case, the aliase doesn't work?

If the externel email aliases doesn't work, check you DNS settings.


0
 

Author Comment

by:dtooth71
ID: 9883397
is vi /etc/aliases the same as using pico /etc/aliase?
0
 
LVL 38

Expert Comment

by:yuzh
ID: 9892046
I know pico is a text editor (vi is another popular text editor), I never use pico
myself, it should do the job for you.

the file you should edit is /etc/aliases  NOT /etc/aliase ! (missing a "s")
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question