Solved

mail aliases

Posted on 2003-12-05
6
346 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
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
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: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone 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

Suggested Solutions

Title # Comments Views Activity
AIX Server 10 87
remove a combination of patterns from a file 15 70
can't umount nfs share after server goes offline... 4 91
awk sed 8 64
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

840 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