1832857 Members
3364 Online
110048 Solutions
New Discussion

Re: /etc/mail/aliases

 
SOLVED
Go to solution
Nisar Ahmad
Regular Advisor

/etc/mail/aliases

Hi There

I have changed the Local aliases in the above file. What is the best way to test that if it send mails to the nominated persons ?

Thanks

Nisar
4 REPLIES 4
Niel Greeff_1
Advisor
Solution

Re: /etc/mail/aliases

First you must remember to run the "newaliases" command.

Then to test:

run the "mail" command with the alias set up.

Example:

you set up an alias called test

mail test
hello
^D (this is a Control D)

This should send it to the alias on the box
Well, we all try
Michael Tully
Honored Contributor

Re: /etc/mail/aliases

Hi,

Once you have updated the aliases file, you must run 'newaliases' or 'sendmail -bi'

You can easily do a test, I have a sysadmin account on our internal mail called sysadmin which one address goes to fred@mydomain.com

e.g

cat /etc/hosts | elm -s "my hosts file" sysadmin

This will send to all of the people who are included as a sysadmin in the alias.

Cheers
~Michael~
Anyone for a Mutiny ?
MANOJ SRIVASTAVA
Honored Contributor

Re: /etc/mail/aliases

Hi Nisar


run newaliases .

mailx test < /etc/passwd


this will send mail to all the users defined in test.


Manoj Srivastava
Nisar Ahmad
Regular Advisor

Re: /etc/mail/aliases

Thanks a lot every body

Nisar