Community discussions

MikroTik App
 
ManyX
Member Candidate
Member Candidate
Topic Author
Posts: 111
Joined: Sat Jan 07, 2006 12:48 pm
Location: PolanD

Dude with gmail notification and exim4 - HOW TO

Sun Apr 01, 2012 2:12 pm

How to configure email notification from dude use gmail.

Scheme
scheme.JPG
Requirements: Linux machine (like Debian) with Exim4 + dude server + gmail account

First you must configure your exim4 to be smarthost
http://wiki.debian.org/GmailAndExim4
dpkg-reconfigure exim4-config
- Choose "mail sent by smarthost; received via SMTP or fetchmail"
- Set to "localhost" for "System mail name:".
- Set to "127.0.0.1" for "IP-addresses to listen on for incoming SMTP connections" to disable external connection.
- Leave as empty for "Other destinations for which mail is accepted:".
- Leave as empty for "Machines to relay mail for:".
- Set to "smtp.gmail.com::587" for "IP address or host name of the outgoing smarthost:".
- Choose "NO" for "Hide local mail name in outgoing mail?".
- Choose "NO" for "Keep number of DNS-queries minimal (Dial-on-Demand)?".
- Leave as empty for "".
- Choose "mbox format in /var/mail/" for "Delivery method for local mail".
- Choose "YES" for "Split configuration into small files?".
debian:/# mcedit /etc/exim4/passwd.client
Add line
gmail-smtp.l.google.com:MAIL_NAME@gmail.com:PASSWORD
*.google.com:MAIL_NAME@gmail.com:PASSWORD
smtp.gmail.com:MAIL_NAME@gmail.com:PASSWORD
debian:/# chown root:Debian-exim /etc/exim4/passwd.client
debian:/# chmod 640 /etc/exim4/passwd.client
debian:/# mcedit update-exim4.conf.conf
dc_eximconfig_configtype='smarthost'
dc_other_hostnames=''
dc_local_interfaces='127.0.0.1:192.168.88.1'
dc_readhost=''
dc_relay_domains=''
dc_minimaldns='false'
dc_relay_nets='localhost:192.168.88.10'
dc_smarthost='smtp.gmail.com::587'
CFILEMODE='644'
dc_use_split_config='false'
dc_hide_mailname='false'
dc_mailname_in_oh='true'
dc_localdelivery='mail_spool'
This linie is important:
dc_local_interfaces='127.0.0.1:192.168.88.1'
dc_relay_nets='localhost:192.168.88.10'
debian:/# mcedit /etc/hosts
Add line
192.168.88.10   dude.domain.com
debian:/# invoke-rc.d exim4 restart
Now on DUDE
dude1a.JPG
Notification
dude2.JPG
Now test your configuration by click test button in notification window


-------------------
For test your exim4
telnet localhost 25
Trying 127.0.0.1…
Connected to localhost.
Escape character is ‘^]’.
220 your_host ESMTP Exim 4.69 Thu, 1 mar 2012 12:00:00 +0200
helo localhost
250 your_host Hello localhost [127.0.0.1]
mail from: login_local@localhost
250 OK
rcpt to:mail_name@gmail.com
250 Accepted
data
354 Enter message, ending with „.” on a line by itself
This is a test.
.
250 OK id=1MU3y9-0001dp-Ew
quit
221 your_host closing connection
Connection closed by foreign host.
-------
If you live in Poland and you have phone in PLUS GSM you can send email form dude (notification windows) to +48xxxxxxxxx@text.plusgsm.pl and you receive SMS to your phone.
You do not have the required permissions to view the files attached to this post.

Who is online

Users browsing this forum: No registered users and 12 guests