Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Exim4, Debian 5.0
- 1. Generate a self-signed certificate and copy .crt and .key files onto server.
- 2. Configure Exim4 for Smarthost relay:
- dpkg-reconfigure exim4-config
- - mail sent by smarthost; received via SMTP or fetchmail
- - System mail name: domain.com
- - Listen addresses: 127.0.0.1;192.168.35.33
- - Other destinations (domains): localhost.localdomain
- - Machines to relay mail (local network): 192.168.35.0/24
- - Outgoing smarthost: 1.2.3.4 (Exchange server IP)
- - Hide local name: yes
- - Visible domain name: domain.com
- - defauls for Dial on Demand: no, Split: no, maildir
- 3. Setting up TLS for relay:
- Reference http://www.gossamer-threads.com/lists/exim/users/80099#80099
- Edit file at:
- /etc/exim4/conf.d/transport/30_exim4-config_remote_smtp_smarthost
- Add these lines to the end of above file, adjusting paths for cert:
- "
- ## TLS attempts for NFP relay:
- TLS_CRT = /etc/exim4/tls/ssl_domain.com.crt
- TLS_KEY = /etc/exim4/tls/ssl_domain.com.key
- smtp_tls:
- driver = smtp
- hosts_require_tls = *
- tls_certificate = TLS_CRT
- tls_privatekey = TLS_KEY
- "
- 4. Restart Exim4, send test email, check headers - relay successful!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement