Prevent email to root@domain
        Posted  
        
            by 
                kml
            
        on Super User
        
        See other posts from Super User
        
            or by kml
        
        
        
        Published on 2012-09-11T15:06:07Z
        Indexed on 
            2012/09/11
            15:41 UTC
        
        
        Read the original article
        Hit count: 208
        
exim
I'm running Ubuntu Server 12.04 as a web server and use Exim4 for sending confirmation emails and such. Is there a way to set a system-wide email address for the root user? In other words, I'd like ALL email to go to a different address rather than [email protected]. For example, this command...
echo "test" | mail -v -s test root
...would go to a different address, as well as all cron tasks that root executes:
# m h dom mon dow user  command
17 *    * * *   root    cd / && run-parts --report /etc/cron.hourly
25 6    * * *   root    test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
47 6    * * 7   root    test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
52 6    1 * *   root    test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
© Super User or respective owner