Operating System - HP-UX
1833792 Members
2646 Online
110063 Solutions
New Discussion

Transfert Mail locally (crontab) to an other mail x@x.com

 
SOLVED
Go to solution

Transfert Mail locally (crontab) to an other mail x@x.com

Hello All,
I would like transfer email created from sendmail by the process crontab for example to an other email (administrator@firm.com). I have check all the files of /etc/mail/ but I haven't found. Thank you for your answer.
Best Regards.
Administrator Unix
5 REPLIES 5
Clemens van Everdingen
Honored Contributor
Solution

Re: Transfert Mail locally (crontab) to an other mail x@x.com

Hi,

How about your /etc/mail/aliases file.

Here you can specify the address that needs to receive these mail.

C.
The computer is a great invention, there are as many mistakes as ever, but they are nobody's fault !
William Whiteford
Occasional Advisor

Re: Transfert Mail locally (crontab) to an other mail x@x.com

Hi,

basically as above, just need to have an entry such as

root : whoever@where-ever.com

in /etc/mail/aliases

then run /usr/bin/newaliases

only problem would be all root mail would then go to that mail address. (assuming it's root's crontab you want mail from)

Re: Transfert Mail locally (crontab) to an other mail x@x.com

Thank you Clemens van Everdingen,
I have done what you say me :) :

(In file alias, I have put all the line with root to administrator@firm.com)

I have killed the process, and execute newaliases but the process send always to root.
Administrator Unix
Clemens van Everdingen
Honored Contributor

Re: Transfert Mail locally (crontab) to an other mail x@x.com

Hi,

did you do like the example from William ?

And mail still going to root ?

C.
The computer is a great invention, there are as many mistakes as ever, but they are nobody's fault !

Re: Transfert Mail locally (crontab) to an other mail x@x.com

Yes William is true.
I have just input a line root : administrator@firm.com
in aliases file and I have what I wanted
Thank you very much for your support Clemens and William
Best regards.
(Excuse me for my english, I'm french ;) )
Administrator Unix