LESSON 10

Date: 4/9/2009
Email Basics
Linux for Engineering and IT applications


Relaying e-mail to the outside of NAT

  • Need to masquerade the local origin name to make it looking as a qualified domain name:


  • Add to /etc/postfix/main.cf:
    
    # Rewrite the From address in Postfix V2.2:
    smtp_generic_maps = hash:/etc/postfix/canonical
    

  • In file /etc/postfix/canonical, we specify the address re-writing:
    
    @node18.linux.class    @capone.rutgers.edu
    @unisys18.linux.class  @capone.rutgers.edu
    

  • Run command
    
    postmap /etc/postfix/canonical
    



  • Take me to the Course Website