著者: Gianluca Varenni 日付: To: exim-users 題目: [exim] Exim4 smarthost configuration help (debian)
Hi all.
First of all, let me start saying that I'm a total nb as far as mail server
administration is concerned (it's not my primary job).
I have a linux machine (pallino.cace.local) on the internal network, behind
a NAT.
I want to configure exim4
- not to manage any local mailbox for the users on pallino.cace.local
- to forward all the messages directed to the local users to an external
SMTP server (mail.cacetech.com) external to the network
- to rewrite the local recipients and local sender with the addresses in
/etc/email-addresses (e.g. root: gianluca.varenni@???)
I configured exim4 as smarthost, forwarding the emails to mail.cacetech.com.
That works perfectly, including TLS authentication, i.e. if I run "echo foo | mail -s test foo@???" the mail gets sent correctly.
The problem. The sender address gets rewritten properly (root -->
gianluca.varenni@???), the local recipient don't get rewritten
properly.
So if I run "echo foo | mail -s test gianlucav" the mail gets sent to
gianlucav@??? (instead of gianluca.varenni@???)
The update-exim4.conf.conf file is the following one
# /etc/exim4/update-exim4.conf.conf
#
# This is a Debian specific file