mail sent by smarthost; received via SMTP or fetchmail
System mail name:
<your FQDN (like in /etc/hosts)>
IP-addresses to listen on for incoming SMTP connections:
Other destinations for which mail is accepted:
<all destinations you want to be delivered localy (<localhost;your FQDN (like in /etc/hosts)>)
This ensures that exim tries to deliver to the users inbox. There you can place a .forward file to redirect the message to a real address.
Machines to relay mail for:
IP address or host name of the outgoing smarthost:
Hide local mail name in outgoing mail?
Keep number of DNS-queries minimal (Dial-on-Demand)?
Delivery method for local mail:
<mbox format in /var/mail/>
Split configuration into small files?
Debian EXIM4 smarthost
- Created on Friday, 16 April 2010 15:07
- Last Updated on Thursday, 24 May 2012 14:55
These are the steps to get a flawless working SMARTHOST on Debian Lenny 5.04.
All you need to do is to run the exim4-conf and add some lines to /etc/exim4/passwd.client.
You do not even need to touch the template file.
In this setup Exim will deliver mail to the local inbox, if it finds a .forward file in ~ exim will deliver the mail
to the address provided in the .forward file.
Add these lines to /etc/exim4/passwd.client:Make it readable for exim4:
Update the config and restart exim4:
Now in /etc/aliases make shure your user is the final recipient of all system mails:
For more advanced filter options refer to the exim doc:
Note, that GMAIL will store all the send mails. So you should clean it now and then ;)
Thats all. No messing around with the template file.
Parts of the above instructions where taken from: