On Sun, January 30, 2005 7:49 pm, Penghui Wang said: > Mike Noble wrote: > >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA1 >> >> Penghui Wang wrote: >> | Uwe Thiem wrote: >> | >> |> On Saturday 29 January 2005 07:42, Penghui Wang wrote: >> |> >> |> >> |>> Hello lists: >> |>> >> |>> In my gentoo box, i am using vixie-cron as the cron daemon. The >> |>> version is sys-apps/vixie-cron-3.0.1-r5 . >> |>> In the configuration file /etc/crontab there is a VAR named >> "MAILTO". >> |>> Is it possible to set real email address here? >> |>> Such as: MAILTO="[EMAIL PROTECTED]" >> |>> or only for local user? >> >> What you can do is go into your postfix setup and alias root to >> where you want roots mail to go. This way any mail that would go >> to the user root would be sent to the aliases email address. >> >> root -> [EMAIL PROTECTED] >> >> I do not use postfix, so I am not able to tell you how to do it. Under >> sendmail you would either add or modify the the root line to look >> like this: root: [EMAIL PROTECTED], then you would run the >> command newaliases. What this does is tell sendmail that any mail for >> root is to be sent to [EMAIL PROTECTED] >> >> I am sure there is something very similar in postfix. >> >> This way you do not have to modify anything other than the aliases file. > > Thanks very much. I followed your suggestion and everything works > smoothly. > But i wonder that is it possible configure > "MAILTO="[EMAIL PROTECTED]"" in /etc/crontab? > Could i write a real email address instead of local users? >
i am pretty sure you can, but why don't you just try it instead of asking over and over! > Thanks > > Wang > >> >> HTH >> Mike >> -----BEGIN PGP SIGNATURE----- >> Version: GnuPG v1.2.6 (GNU/Linux) >> >> iD8DBQFB++OUlJFYJP/fwTsRArTKAJ9CVfEppNxYgMLRG7p83hIIQZ3SPACeNlht >> yD33Vj57IxyZ7xP/XIXL6HI= >> =qqpJ >> -----END PGP SIGNATURE----- >> >> -- >> [email protected] mailing list >> > > > -- > [email protected] mailing list > > -- [email protected] mailing list
