Unfortunately no one can be told what fun_plug is - you have to see it for yourself.
You are not logged in.
What I am trying to do: Get my DNS-323 to send me status emails to my gmail address from my gmail address. I would like for this topic to become a reference for others wishing to do the same.
Before anyone tells me read the forums I have spent hours over the last couple days poring over the forums trying to figure out how to do this.
I am running funplug v.05 and version 1.06 of the firmware.
I first found that I have busybox v1.12 running so there is no native sendmail support.
I installed the latest esmtp, libesmtp, procmail, and mailx as mentioned by fonz on this posting: http://dns323.kood.org/forum/t2635-mail-packages.html. I did this, created a script "testmail.sh":
#!/bin/sh SENDMAIL=/ffp/bin/esmtp CONFIG_FILE=/ffp/etc/esmtprc SUBJECT="test email" RECIPIENT="anyone@gmail.com" MESSAGE="test_email_body" $SENDMAIL -C $CONFIG_FILE -d 30 -s "$SUBJECT" "$RECIPIENT" < $MESSAGE
Also, here are the contents of esmtprc file:
identity anyone@gmail.com hostname smtp.gmail.com:587 username "anyone" password "thepassword" starttls required mda "/ffp/bin/procmail -f %T"
When I run the "testmail.sh" script, here is the error I get:
Invalid peer certificate (error 20) 0 (null) anyone@gmail.com: 0 (null)
--Note: I get the same error when attempting to send mail using a mailx command--
I downloaded the certificate using the procedure here:http://dns323.kood.org/forum/t2277-send … -from.html but still get the same certificate error.
Also, here is some background information from gmail: http://mail.google.com/support/bin/answ … opic=12917
More background from the esmtp page at sourceforge: http://esmtp.sourceforge.net/manual.html
Some topics mention having to install stunnel. I tried this by going to the stunnel org website and downloaded the latest version (v4.26). When I unzipped it and tried to configure it (./configure --prefix /mnt/HD_a2/ffp) I get the following output:
configure: **************************************** initialization checking for a BSD-compatible install... /ffp/bin/install -c checking whether build environment is sane... yes checking for gawk... no checking for mawk... no checking for nawk... no checking for awk... awk checking whether make sets $(MAKE)... yes checking build system type... armv5tejl-unknown-linux-gnu checking host system type... armv5tejl-unknown-linux-gnu checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for style of include used by make... GNU checking dependency style of gcc... gcc3 checking for a BSD-compatible install... /ffp/bin/install -c checking whether make sets $(MAKE)... (cached) yes configure: **************************************** libtool checking for a sed that does not truncate output... /ffp/bin/sed checking for grep that handles long lines and -e... configure: error: no acceptable grep could be found in /ffp/sbin:/ffp/bin:/usr/sbin:/sbin:/usr/bin:/bin:/usr/xpg4/bin
Am I going down the wrong path trying to install stunnel? Is it necessary for sending email via gmail? If so, how do I successfully install it? I was not about to go through the hassle of installing the full up grep if I didn't have to. Also, is this how you actually set up the certificate? If so, does it need to be referenced in a config file?
I feel like I am close!
Last edited by jeffsbates (2009-01-25 20:06:45)
Offline
Has anyone been successful in doing this from code? The web interface does it...why can't the code? Has anyone else been successful doing this with any other ISPs like hotmail?
Offline
I know this isn't helpful to you at the moment... but I'm very interested in this as well. I haven't played around with it yet (not at the top of my priority list yet), but it must be possible. Have you checked the existing method used by the 1.06 firmware? Are they just using a compiled program? Can you bend it to your own purposes?
I know when I was about to look into it for earlier firmware, I was waiting for openssl to be compiled for the dns323. That should be available by now...
Offline
to fix this problem do the following:
cd
pwd
=> this should point you to /home/root, the same directory where .authenticate is located.
If this is not the place where .authenticate is, then move .authenticate to ~/
Don't forget to update your /ffp/start/authenticate*.sh script to place .authenticate to ~/
Offline