Sending mail from CLI to another SMTP host

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Thu, 1 Apr 2010, Fajar Priyanto wrote:

> Is it possible to send mail from CLI (bash, python) without any LOCAL
> SMTP installed, using SMTP on another machine.
> Care to give a glimpse of the code?

One approach

step 1: make sure packages 'expect' and 'telnet' are installed
step 2: read: man autoexpect  and RFC 2821
... see worked example for handing email to a remote server
 	http://www.owlriver.com/tips/sendmail-tip/
 	http://www.owlriver.com/tips/trace-sendmail/
step 3: experiment to taste in talking the protocol.  'expect'
 	and autoexpect makes it trivial to build a script that
 	works

-- Russ herrold
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux