View topic - command line emailing from QNX 6.3.2

command line emailing from QNX 6.3.2

Discussion about the general applications that run on QNX6

command line emailing from QNX 6.3.2

Postby jinma » Mon Feb 08, 2010 7:00 pm

I would like to send a quick status email from my qnx box. I looked into "sendmail", "mail", "mutt" and couldn't get it to work. I don't want to setup a full email server sending/receiving. I just want to send mail out similar to "sendemail" in linux.
jinma
Senior Member
 
Posts: 428
Joined: Thu Oct 28, 2004 10:13 pm

Postby seanb » Mon Feb 08, 2010 8:20 pm

Check out
ftp://ftp.netbsd.org/pub/pkgsrc/package ... x-12.4.tgz

I think it invokes whatever you've got set
up as 'sendmail' under the covers.

-seanb
seanb
QNX Master
 
Posts: 133
Joined: Fri Jul 28, 2006 5:36 pm

Postby jinma » Mon Feb 08, 2010 9:04 pm

can you give more detail installation instruction? Do I just uncompress this file and put them in the right location or is there a pkgsrc installation util?
I installed "sendmail" using "qnxinstall" but don't know how to configure it so that it uses some outgoing mail server. I would like to use gmail SMTP server.
Can you give detail instruction on how to setup sendmail with gmail or any other mail server?
thank you
jinma
Senior Member
 
Posts: 428
Joined: Thu Oct 28, 2004 10:13 pm

Postby seanb » Mon Feb 08, 2010 9:09 pm

Check out the pkgsrc project:

http://community.qnx.com/sf/projects/pkgsrc

in particular the binary packages page:

http://community.qnx.com/sf/wiki/do/vie ... ryPackages

You might also need the sendmail and mailwrapper packages.

-seanb
seanb
QNX Master
 
Posts: 133
Joined: Fri Jul 28, 2006 5:36 pm

Postby jinma » Mon Feb 08, 2010 10:26 pm

okay thank, I got everything downloaded and installed now, but there is very little documentation on setting up the sendmail. I need to make a configuration file for the sendmail from /usr/pkg/share/sendmail/cf but I dont' see any generic_QNX.mc file, so I just used the linux version and ran "make install-cf" which has generated sendmail.cf and submit.cf in the /etc/mail/ but what's next? I would like to setup the configuration file so that I can configure it work with SMTP gmail server. Any help in setting up the sendmail would be much appreciated.
jinma
Senior Member
 
Posts: 428
Joined: Thu Oct 28, 2004 10:13 pm

Postby mario » Mon Feb 08, 2010 10:35 pm

sendmail is a beast. You will need to check the sendmail documentation, there are plenty of "Getting started" document on the web.
mario
QNX Master
 
Posts: 4132
Joined: Sun Sep 01, 2002 1:04 am

Postby jinma » Mon Feb 08, 2010 10:49 pm

I can see that it is a beast, that's why I was wondering if anyone had succesfully configured "sendmail" in QNX 6.3.2? and if so, any tips or advice before I jump on this monster ;)
jinma
Senior Member
 
Posts: 428
Joined: Thu Oct 28, 2004 10:13 pm

Postby ianc » Mon Feb 08, 2010 11:21 pm

If you just want to send mail write a utility yourself. That's what we did when our system had to email alarm notices.
It's really simple. Just read the appropriate RFC's.
It didn't take long at all, and sorry, I can't share the code, it's part of a proprietary product.
ianc
Active Member
 
Posts: 83
Joined: Wed Jan 22, 2003 6:04 am
Location: Bendigo, Australia

Postby jinma » Mon Feb 08, 2010 11:46 pm

i am not an expert in this area at all and don't have any clue as to where to begin even if I wanted to write my own utility. Care to share not the source code but a generic approach?
what is RFC's? (remote function calls)
jinma
Senior Member
 
Posts: 428
Joined: Thu Oct 28, 2004 10:13 pm

Postby xtang » Tue Feb 09, 2010 3:13 am

SMTP(RFC821) is a fairly simple protocol. Just a tcp connection to your smtp server, and send/receive ascii strings.
xtang
QNX Master
 
Posts: 313
Joined: Thu Jul 18, 2002 5:01 pm

Postby ianc » Tue Feb 09, 2010 11:46 pm

Ok here's some code.
Note 1. This is for QNX4
Note 2. It's had stuff ripped out that identified the company and the product so it
probably won't compile.

But you can see what it does. Like I said it's really simple.
Attachments
quickmail.zip
(3.47 KiB) Downloaded 298 times
ianc
Active Member
 
Posts: 83
Joined: Wed Jan 22, 2003 6:04 am
Location: Bendigo, Australia

Postby jinma » Thu Feb 11, 2010 5:18 am

thank you ianc for the sample code. I have done some little studying and is becoming some what familiar with the whole emailing system. But after reading your code I see that this is communicating with an open SMTP server since there is no authentication. If I want to use a smtp.gmail.com as my outgoing server, it is more involved since I need to make SSL or TLS connection with 64bit encoding for auth.... etc.
I know I want to make this as simple as possible so I guess my first question is, which open SMTP server can I use these days? and what is the simplist authentication method that I can use (that does not require encryption and secure line) so that I can use port 25 and telnet if I were to make my own SMTP mail server?

Thanks again for your input.
jinma
Senior Member
 
Posts: 428
Joined: Thu Oct 28, 2004 10:13 pm


Return to QNX6 - Applications

Who is online

Users browsing this forum: Google [Bot] and 1 guest