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 2009-09-14 20:31:30

woodle
New member
Registered: 2009-09-14
Posts: 2

send mail from shell-script

Hi,

has someone any solution how to send an email from a shell script? All mails should forward only to an internal smpt-server (no security).
I try it with sendmail / mailx / esmtp but with no success.
Please help me.

thanks.
woodle

Last edited by woodle (2009-09-14 20:32:15)

Offline

 

#2 2009-09-15 23:53:39

woodle
New member
Registered: 2009-09-14
Posts: 2

Re: send mail from shell-script

nobody?

Offline

 

#3 2009-09-19 02:08:47

bjby
Member
Registered: 2009-02-22
Posts: 265

Re: send mail from shell-script

optware mutt  + firmware msmtp works for me.

http://wiki.dns323.info/howto:optware

Here is my configs

.muttrc
-----------------
set sendmail= "/usr/bin/msmtp"
set from= "dlink@XXXXX.com"
set use_from= no
set assumed_charset= "utf-8"
set move= no
set sendmail_wait= 0
set copy=no


---------.msmtprc------
host smtprelay1.telia.com
port 25
auth off
tls off
user admin
password admin
protocol smtp
from dlink@XXXXX.com
tls_certcheck off
syslog on


I hope this helps.

Offline

 

#4 2009-11-08 07:36:05

jZel_silent
New member
Registered: 2009-11-08
Posts: 1

Re: send mail from shell-script

I have written a shell script in which I use fastmail to send emails from the shell script.
It sends email to my company account with no problem. But I wan to send the same email to a pager number so that the pager goes off when the particular condition occurs.
I see that email is not being send to the pager from this script.




_________________
IP PBX

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB