Email IDs added to .mailrc aliases not receiving mails


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Email IDs added to .mailrc aliases not receiving mails
# 1  
Old 11-20-2014
Email IDs added to .mailrc aliases not receiving mails

hi,

I added an email id to a list of existing aliases in .mailrc on my unix box, using vi editor. However, the new id has not been receiving any mails from the box.
Kindly help as to what needs to be done here. Does the box need to be rebooted for these changes to reflect? Is there any other workaround? Thanks!
# 2  
Old 11-20-2014
Can you describe the problem more precisely? Especially this: "the new id has not been receiving any mails from the box"

According to https://docs.oracle.com/cd/E19683-01...-44/index.html mail aliases are private and thus can only be used by the user who has setup them.

Hope this helps.
# 3  
Old 11-20-2014
Email IDs added to .mailrc aliases not receiving mails

Okie - Sorry for the confusion. Will try explaining again - hope the picture gets clearer now.

My intent - I am trying to add a new userid to an existing alias in .mailrc.

Overview:-
There are scripts (that send mails to groups defined in .mailrc) cronned on a unix box - these scripts run from a user(for e.g:- abcd). I switched user (sudo su - abcd) to abcd and then updated the .mailrc to add a new email id as below:

Original .mailrc content:-
#
alias amigos john@abc.com
#

Updated .mailrc to:-
#
alias amigos john@abc.com sally@abc.com
#

Earlier only john received mails sent through these scripts.

Problem:- Post the update even Sally should have received them. She is not receiving the mails sent out by these scripts running as abcd user on the unix box. Any idea why?

Thanks - Let me know if the issue is still unclear.
This User Gave Thanks to qwerty000 For This Post:
# 4  
Old 11-20-2014
Perfect explanation.

I sort of emulated the situation by adding a cronjob for my oracle user on Solaris 10 and this job calls a shellscript that sends emails to a mail alias.
I then extended the alias with another email address and this change was inherited on the fly without reboot or something.

Can you exclude obvious typos and/or unwanted carriage returns in the .mailrc file?
If yes, my only idea is to try sending mail to the particular alias on the command line.
I wonder if that would work. If yes, then - from the perspective of the cron-ed scripts - the mail aliases are not read from the .mailrc file at all!

Maybe the scripts are reading from the public mail aliases file /etc/aliases ?
# 5  
Old 11-20-2014
The file $HOME/.mailrc is only used to set up aliases when you send mail; it will not affect mail sent by other users. The /etc/aliases file sets up aliases that can be used by anyone who sends mail from your system.
# 6  
Old 11-21-2014
Thankyou!

---------- Post updated at 03:02 AM ---------- Previous update was at 03:02 AM ----------

Thanks!
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Question on email aliases

hi all,I have doubt in my unix. Whenever i send any emails from unix machine. The receipent is recieving with the name pepsi retail do you have idea where i the email aliases name is hardcoded in the unix settings. -----Original Message----- From: Pepsi Retail c6306393 Sent: Friday, July... (8 Replies)
Discussion started by: arun888
8 Replies

2. Emergency UNIX and Linux Support

Email ids from gecos

I would like to extract only the email ids from the gecos of each user id. I have to get the email ids of all the users on the server like this. Can someone please assist me with the command/script? (15 Replies)
Discussion started by: ggayathri
15 Replies

3. Shell Programming and Scripting

How to send mails based on email ids residing in table?

Hello Gurus, I have one table which consists of two field:- PROG_NAME EMAIL xxxx email1,email2,email3 yyyy email4,email1,email2 I want to to send mails by using mailx command. But how do I get each and every mail ids from table against... (4 Replies)
Discussion started by: pokhraj_d
4 Replies

4. Shell Programming and Scripting

Send Email to group ids

hi, I want to send mail to DL... i am sending email to single id using mailx .. how to send to group of ids? :confused: i am using a file which conatins all the ids, is there any other way to send mail without creating the DLfile? DL=path\file.txt mailx -s "Info BG is now... (4 Replies)
Discussion started by: sreelu
4 Replies

5. UNIX for Dummies Questions & Answers

run a perl.script upon receiving an email in Sendmail

Hi All I am newbie with Sendmail and Linux in general. We use sendmail for outgoing and incoming mails. Once our server receives a certain email xxx@yyy.com we would like to run a PERL script doing some task wiht it. Can you address me a little bit on that topic? In order to do that the... (0 Replies)
Discussion started by: manustone
0 Replies

6. Forum Support Area for Unregistered Users & Account Problems

Not Receiving Activation Email

I've tried suggestions from previous threads sending an activation email several times. I'm not sure if email server is blocking domain name. What is the domain name of the activation email...unix.com? (1 Reply)
Discussion started by: BigSky
1 Replies

7. UNIX for Dummies Questions & Answers

Sending mails to various users without hard coding the email IDS

Hi Can any one help me out ? I am trying to send an autogenerated mail with an attachment to bulk of users using 'MAILX' and 'UNENCODE' . I have used it as follows X " ( cat /sastemp/body.txt; uuencode Test.xls.gz Test.xls.gz ) | mailx -s 'Testing' ' abcd@yahoo.com , efgh@gmail.com ' " ... (9 Replies)
Discussion started by: manas6
9 Replies

8. Forum Support Area for Unregistered Users & Account Problems

not receiving email

I've requested several passwords and they are not being sent to my email. My email is working - email address removed (2 Replies)
Discussion started by: xyz
2 Replies
Login or Register to Ask a Question