|
Demo
Discussion
|
Forum
Config Examples
Contributions
Vulnerabilities
|
Discussion forum about ELOG |
Not logged in |
|
|
|
Message ID: 67248
Entry time: Sat Apr 14 11:10:14 2012
In reply to: 67247
Reply to this: 68039
|
|
Category: |
Question |
OS: |
Linux |
ELOG Version: |
2435 |
|
Subject: |
Re: ELOG and Gmail? |
|
|
To get it to work required a working installation of IPTABLES and STUNNEL
First is to add the following details into elogd.cfg
/usr/local/elog/elogd.cfg wrote: | SMTP username = username@gmail.com
SMTP host = 173.194.67.108
SMTP Password = |
This SMTP IP address is a virtual host from Googles SMTP, Any IP Address could technically be used.
Next is to redirect all traffic to port 25 and the above IP address, to STUNNEL.
Quote: | sudo iptables -t nat -A OUTPUT -p tcp -d 173.194.67.16 -dport 25 -j DNAT --to 127.0.0.1:10555 |
You can select any port other than 10555 if required. Next you need to modify the STUNNEL config file and add the following.
/etc/stunnel/stunnel.conf wrote: | [elogssl]
client = yes
accept = 10555
connect = smtp.gmail.com:465 |
Last was the password. For some reason sudo /usr/local/sbin/elogd -t <password> -c /usr/local/elog/elogd.cfg created a password that was unreadable by google.
To recreate your own run the following command:
Quote: | perl -MMIME::Base64 -e 'print encode_base64("\000not.my.re\@l.password")' |
Replace "\000not.my.re\@l.password" with the GMAIL password, remember to escape with a \ any @ signs you might have.
Copy the output and add that into the elogd.cfg file in the SMTP Password syntax.
kill the STUNNEL PID if it is running and restart it to to load the new details, also remember to save your IPTABLES for next reboot
And that should be it, so now ELOG uses a port other than 25, and also redirects via SSL to a SMTP like GMAIL. |