?
Solved

mail aliases

Posted on 2003-12-05
6
Medium Priority
?
351 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 2000 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

Industry Leaders: 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!

Question has a verified solution.

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

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-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.
Suggested Courses

762 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