Sign up to create your own snipts, or login.

Public snipts » robertbanh's snipts » Set up mail forwarding on linux

posted on Dec 17, 2009 at 10:19 a.m. EST in 
  • # add a .forward file to your home directory
    touch .forward
    
    # add your email address
    vi .forward
    <user>@<mail>.com
    
    # change permission else it won't work
    chmod 600 .forward
    
    # test mail send, replace 'user' with your login
    mailx -s 'test from cluster' user < /dev/null
    

    copy | embed

0 Comments

Sign up, or login to leave a comment.