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.rutgers.edu    @capone.rutgers.edu
    @unisys18.rutgers.edu  @capone.rutgers.edu
    

  • Run command
    
    postmap /etc/postfix/canonical
    

    Previous Pageprevious First Pagetop Next Pagenext