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:
127.0.0.1
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:
<EMPTY>
IP address or host name of the outgoing smarthost:
smtp.gmail.com::587
Hide local mail name in outgoing mail?
<NO>
Keep number of DNS-queries minimal (Dial-on-Demand)?
<NO>
Delivery method for local mail:
<mbox format in /var/mail/>
Split configuration into small files?
<NO>
Linux HowTo
Debian EXIM4 smarthost
- Details
- 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.
# dpkg-reconfigure exim4-config
Add these lines to /etc/exim4/passwd.client:Make it readable for exim4:
1 2 3 |
gmail-smtp.l.google.com:yourAccountName @ gmail.com:y0uRpaSsw0RD *.google.com:yourAccountName @ gmail.com:y0uRpaSsw0RD smtp.gmail.com:yourAccountName @ gmail.com:y0uRpaSsw0RD |
# chown root:Debian-exim /etc/exim4/passwd.client
Update the config and restart exim4:
1 |
# update-exim4.conf |
Now in /etc/aliases make shure your user is the final recipient of all system mails:
# /etc/aliases
mailer-daemon: postmaster
postmaster: root
nobody: root
hostmaster: root
usenet: root
news: root
webmaster: root
www: root
ftp: root
abuse: root
noc: root
security: root
root: YOUR_LOGIN
For more advanced filter options refer to the exim doc:
http://www.exim.org/exim-html-4.50/doc/html/filter_3.html#SECT3.1
1 |
# Exim filter |
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:
http://wiki.debian.org/GmailAndExim4
Content
Resources
www. is deprecated
Play OGG
Qt Ambassador
Latest comments
-
Harmattan on Gentoo
-
My first scientific publication
-
Congrats, Bjoern -- the paper is ...
-
-
OTRtool v0.8.0-r3 released
-
What a pity ... I am searching ...
-
I do not support OTRtool anymore.
-
Hi, I hope your biochemistry ...
-
-
Qualcom GOBI 2000 UMTS/GPS 3G modem with Gentoo (ThinkPad W510)
-
Was helpful :)
-
-
anamo.py 2.1 with accelerated MD output support
-
good
-
-
findflash.sh
-
Fixed! There is no libflashplayer.
-
Hi I have tried the script but ...
-
-
web2sms for N9/N950
-
Ich habe einen Account bei ...
-
Read more...