DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

#1 2007-04-03 06:05:13

dayre
Member
Registered: 2007-04-03
Posts: 6

smtp email

I'm trying to figure out the /usr/sbin/email executable.    I'd like to use it in my cron script to notify me when a job is done... but i can't figure out the syntax.  It's used by the web gui to send notification emails, and i think is a nonstandard app.

Code:

# email -h
email: option requires an argument -- h
email v1.02.02212006
usage: email -m mode [-s Saddr] [-d Daddr] [-h HostServer] [-p port] 
             [-a auth] [-u uname] [-w passwd] [-i interval] [-t test]
             [-c capacity] [-f free]

I tried piping a test message to it using sender/destination address, smpt host and port... which is all i should need, but nothing get's sent... and there is no diagnostic message.

There is an /etc/email.conf file... but doens't reveal much.

Does anyone know if i can use this to send e-mails out ?  or should i look at compiling an alternative... if so, any suggestions what app i should use that would work best with the DNS-323 ?

Would the ssmtp app as part of the busybox tinyutils be better ? 

Thanks in advance...

Last edited by dayre (2007-04-03 06:30:26)

Offline

 

#2 2007-06-09 20:05:51

mig
Member
From: Seattle, WA
Registered: 2006-12-21
Posts: 532

Re: smtp email

Has anyone figured out how to make the DNS-323 send an email triggered by a user script?

Anyone tried compiling ssmtp ftp://ftp.debian.org/debian/pool/main/s/ssmtp  for the DNS-323?

Last edited by mig (2007-06-09 20:17:32)


DNS-323 2x Seagate Barracuda ES 7200.10 ST3250620NS 250GB SATAII (3.0Gb/s) 7200RPM 16MB RAID1 FW1.03 ext2 
Fonz's v0.3 fun_plug http://www.inreto.de/dns323/fun-plug

Offline

 

#3 2007-11-05 18:50:35

blbrown
Member
Registered: 2007-11-02
Posts: 88
Website

Re: smtp email

I was able to successfully have the /usr/sbin/email program work in test mode.  Here's the command-line I used, based on the /etc/email.conf values that the web interface fills in:

Code:

/usr/sbin/email -m 38 -s fromdns323@mydomain.com -d whoitsto@company.com -h smtp.usfamily.net -p 25 -a 1 -u myuser@usfamily.net -w mypassword -i 0 -t test

I played around with trying to have it send my own specified message body, but I could only get it to send the test message.

Fortunately, I found an alternative (telnet) that works just fine for sending emails triggered by scripts.  Here's the thread with details:

http://forum.dsmg600.info/t1145-Script- … enent.html

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB