Anybody know how to use ssmtp to send email?? I
want to send email from my Linksys router to my
gmail account.
Openwrt = rc4
ssmtp = 2.61
Any working example??
Thx
The content of this topic has been archived on 19 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.
Anybody know how to use ssmtp to send email?? I
want to send email from my Linksys router to my
gmail account.
Openwrt = rc4
ssmtp = 2.61
Any working example??
Thx
I solve the problem now^^.
thx, google
Hello,
Can you explain how to send a email with ssmtp ?
Thanks by advance
I use "ssmtp" + "mutt", it is workable.
but i still dont know how to use "ssmtp" alone.
Could someone tell me where to find a ssmtp package for current RC5 ?
Thx
Could someone tell me where to find a ssmtp package for current RC5 ?
I use "ssmtp" + "mutt", it is workable.
but i still dont know how to use "ssmtp" alone.
kindly tell me how u are you able to send mail from openwrt and where could i get ipkg for mutt
thanks
farooqhasny
Yeahhhhh tell us, i want to use voice to mail, please !!!
Is it big ??!
(Last edited by TeKa on 7 Jul 2006, 10:53)
I am using openwrt RC4, not RC5
Installed package:
1) Mutt 1.4.2.1i
2) ssmtp 2.61
3) libncurses 5.2-7 (needed by Mutt)
make sure you have enough space, because they are quite big.
You can follow the step below or searching google....
1) create "ssmtp.conf" under "/etc/ssmtp"
Here is an example,
<START "ssmtp.conf">
#
# /etc/ssmtp.conf -- a config file for sSMTP sendmail.
#
# The person who gets all mail for userids < 1000
# Make this empty to disable rewriting.
root={your email acc name}@gmail.com
# The place where the mail goes. The actual machine name is required
# no MX records are consulted. Commonly mailhosts are named mail.domain.com
# The example will fit if you are in domain.com and your mailhub is so named.
mailhub=smtp.gmail.com:465
# Where will the mail seem to come from?
rewriteDomain=gmail.com
# The full hostname
hostname=gmail.com
# Set this to never rewrite the "From:" line (unless not given) and to
# use that address in the "from line" of the envelope.
FromLineOverride=YES
# Use SSL/TLS to send secure messages to server.
UseTLS=YES
<END "ssmtp.conf">
2) config mutt and copy the config file to your home directory
<START ".muttrc">
# The file/directory where your incoming mail will be spooled to
# (same as 'set spoolfile' below)
mailboxes /tmp/mail
# Mail account setup. I know nothing about IMAP, so you're
# on your own there.
set sendmail="/usr/bin/ssmtp -v -au {your email acc. name} -ap {your email acc. password}"
set from="{your email acc. name}@gmail.com"
# Mail folder setup.
set folder=/tmp/mail
set mbox_type=mbox
set spoolfile=+inbox
set mbox=+received
set postponed=+postponed
set record=+sent
<END ".muttrc">
3) send mail by the following command:
mutt -s "ppp0_log" {email acc.}@yahoo.com.hk < /tmp/ppp0.log
GOOD LUCK!!:)
thanx godmode..i was really looking for this mail transfer agent...one question is the extension of mutt package is tar? if so, then how can i untar the tar file in openwrt..i mean what is the command? waiting for ur reply...
I cannot find the compiled package, but u can build it by yourself...just download the toolchain (from openwrt) and the source code...compile....then place the "mutt" in the directory "/usr/sbin/".... GOOD LUCKY:)
Without mutt, you can use cat filename | ssmtp recipient@xxx.xx format.
If not work, you can increase the verbosity level with -vvv to debug, cat filename | ssmtp -vvv recipient@xxx.xx
why don't you guys use mini_sendmail. then there is no need to use mutt. it is easy and lightweigth!
why don't you guys use mini_sendmail. then there is no need to use mutt. it is easy and lightweigth!
echo "Hello World" | mini_sendmail -fsend@domain.org -ssmtp.server.org receive@domain.org
That's it!
(Last edited by m4rc0 on 20 Feb 2007, 10:41)
Hi there, I am on x-wrt/openwrt0.9 and installed ssmtp (from openwrt package tree). When trying to send mail I get TLS errs. Can anybody recommend solution here?
Thnx
p.
root@WRT54GS:~$ echo "test" | ssmtp -vvv -auabc@gmail.com -apabc abc@gmail.com
[<-] 220 mx.google.com ESMTP y37sm16745136iky
[->] EHLO gmail.com
[<-] 250 ENHANCEDSTATUSCODES
[->] AUTH LOGIN cHJvZm9ybWFwQGdtYWlsLmNvbQ==
[<-] 530 5.7.0 Must issue a STARTTLS command first y37sm16745136iky
ssmtp: Server didn't accept AUTH LOGIN (530 5.7.0 Must issue a STARTTLS command first y37sm16745136iky)
root@WRT54GS:~$ logread | tail
Mar 13 07:40:16 (none) kern.info sSMTP[1673]: Unable to set UseTLS="YES"
Mar 13 07:40:16 (none) kern.err sSMTP[1673]: Server didn't accept AUTH LOGIN (530 5.7.0 Must issue a STARTTLS command first y37sm16745136iky)
root@WRT54GS:~$
You need a version of ssmtp compiled with ssl support, the default with openwrt is without ssl support, which gives you that message.
here is a version I use http://rapidshare.com/files/20979687/ss … l.ipk.html works fine for me with gmail as I compiled it with ssl support.
there is a simple doc here for using it with gmail, that works fine.
Andy, many thanks for your help. Thought it was the missing ssl. I installed your package (also libgcc) and get segmentation faults. Is the package compiled for other openwrt version (I run whiterussian0.9) or do you think it's something else missing in my installation?
BTW just curious what might be the reason for excluding ssl from the default package...
I'm using kamikaze with a 2.6 kernel as I have a wgt634u .... , maybe that is why u get segmentation faults. Have you libssl installed ?
I get a segmentation fault, too, under white russian.
has anyone an ssmtp with tls support running on white russian?
No mut and other necessary, only ssmtp is necessary.
by Sid from: http://askubuntu.com/questions/12917/ho … mmand-line
Install ssmtp Install ssmtp: sudo apt-get install ssmtp
Edit the ssmtp config file : gksu gedit /etc/ssmtp/ssmtp.conf
Enter this in the file:
root=username@gmail.com
mailhub=smtp.gmail.com:465
rewriteDomain=gmail.com
AuthUser=username
AuthPass=password
FromLineOverride=YES
UseTLS=YESEnter the email address of the person who will receive your email:
ssmtp recepient_name@gmail.com
Now enter this:
To: recipient_name@gmail.com
From: username@gmail.com
Subject: Sent from a terminal!Your content goes here. Lorem ipsum dolor sit amet, consectetur adipisicing.
To send the email: Ctrl + D
You can also save the text mentioned in Point 5 into a text file and send it using:
ssmtp recipient_name@gmail.com < filename.txt
by Sid from: http://askubuntu.com/questions/12917/ho … mmand-line
Absolutly correct. I tested it and it works on a :
| Gargoyle version 1.5.4 | OpenWrt backfire branch |
| Gargoyle revision 453676a | OpenWrt revision r30752 |
| Built February 29, 2012 | Target ar71xx/ath9k_usb |
Just curious, why the default package does not include SSL.
The discussion might have continued from here.