Advertisement
Guest User

Exim4 relay to Exchange

a guest
May 6th, 2010
1,450
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. Exim4, Debian 5.0
  2.  
  3. 1. Generate a self-signed certificate and copy .crt and .key files onto server.
  4.  
  5. 2. Configure Exim4 for Smarthost relay:
  6. dpkg-reconfigure exim4-config
  7. - mail sent by smarthost; received via SMTP or fetchmail
  8. - System mail name: domain.com
  9. - Listen addresses: 127.0.0.1;192.168.35.33
  10. - Other destinations (domains): localhost.localdomain
  11. - Machines to relay mail (local network): 192.168.35.0/24
  12. - Outgoing smarthost: 1.2.3.4 (Exchange server IP)
  13. - Hide local name: yes
  14. - Visible domain name: domain.com
  15. - defauls for Dial on Demand: no, Split: no, maildir
  16.  
  17.  
  18. 3. Setting up TLS for relay:
  19. Reference http://www.gossamer-threads.com/lists/exim/users/80099#80099
  20.  
  21. Edit file at:
  22. /etc/exim4/conf.d/transport/30_exim4-config_remote_smtp_smarthost
  23.  
  24. Add these lines to the end of above file, adjusting paths for cert:
  25. "
  26. ## TLS attempts for NFP relay:
  27. TLS_CRT = /etc/exim4/tls/ssl_domain.com.crt
  28. TLS_KEY = /etc/exim4/tls/ssl_domain.com.key
  29. smtp_tls:
  30. driver = smtp
  31. hosts_require_tls = *
  32. tls_certificate = TLS_CRT
  33. tls_privatekey = TLS_KEY
  34. "
  35.  
  36. 4. Restart Exim4, send test email, check headers - relay successful!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement