1753526 Members
5384 Online
108795 Solutions
New Discussion юеВ

auto forward emails

 
SOLVED
Go to solution
Phani kumar V
Advisor

auto forward emails

Unable to auto forward emails to external email in hp-ux 11iv3.
5 REPLIES 5
Mel Burslan
Honored Contributor
Solution

Re: auto forward emails

Well, your problem description is not clear. What did you do to forward them ? Has it ever worked and suddenly stopped working ? More details will get you better answers.
________________________________
UNIX because I majored in cryptology...
Phani kumar V
Advisor

Re: auto forward emails

Hi Mel Burslan

I have added the file .forward in home folder and added the emails in the file.

my problem is that i want to configure when ever root user receive mails all the mails to be auto forward to my external email id. even mails received by users from cronjobs

i am able to send by using "mailx" command my smtp is working fine.
Mel Burslan
Honored Contributor

Re: auto forward emails

edit your /etc/mail/aliases file (if it is not there create a new one) and add this line

root myemail@mydomain.com

then, run command

newaliases

this way, all the mail coming to root's mailbox will be forwarded to your email address.

Usage of .forward is sketchy at best. I have had equal amount of success with it as much as failures. So, the way described above works for sure.

if you want to receive other user's mail from cron and what-ever-else, add another like like that with that username replacing word root.

Hope this helps
________________________________
UNIX because I majored in cryptology...
Phani kumar V
Advisor

Re: auto forward emails

hi Mel Burslan,

Thanks for your quick response after following following changes we are able to receive emails

/etc/mails/aliases

Thanks,
Phani


Phani kumar V
Advisor

Re: auto forward emails

My problem is solved

Thanks,
Phani