could I cat a file to telnet to email to specific address?

0

Right, now, I am configuring Asterisk to send an email when one gets a voicemail.

Due to the firewalls at my school, and securities on our email client, I can't use the ssmtp program directly, but there is a server that I can do it from.

Now, while I can manually telnet a test email to wherever, is there a way I could cat a file to the server and email it to an address of my choosing?

user1768884

Posted 2013-11-20T16:46:50.930

Reputation: 187

1netcat might be better for scripting. – Scott – 2013-11-20T17:15:12.807

Can use use SSH, specifically SCP, or do you only have Telnet access?

– sbtkd85 – 2013-11-20T17:16:07.263

Answers

1

You can setup your mailer(postfix or sendmail) to send using different port and setup mailer on other (external) system to listen on other port.

Asterisk email can use external script for email delivery, script can do whatever you want.

/etc/asterisk/voicemail.conf

externnotify=/usr/bin/myapp

OR

mailcmd=/usr/bin/myscript

arheops

Posted 2013-11-20T16:46:50.930

Reputation: 977