OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: a client, which delivers mail remotely

From: Peter Hinse (postfixd0pefish.de)
Date: Sat Nov 05 2005 - 07:16:54 CST


postfixayni.com wrote:

> my question: is there a shell callable program for linux, which submits
> mail remotely (as opposed to locally, which is the standard for
> sendmail, ...). this program may also support *RFC* 2476
> <http://www.faqs.org/rfcs/rfc2476.html> on port 587, but this is not a
> condition sine-qua-non.
> Under remote submission I understand, that in the message trace the
> first host appearing is the remote one (and not the local one).
>
> the following shell snippet does the job:
>
> cat /tmp/mail.txt |ssh delivery-host.mydomain.tld "sendmail -t"
>
> But, isn't there a shell callable program which simply does the job
> (like alle mail clients: mozilla, thunderbird, ..., which, however, are
> not shell callable for the submission function only).

Maybe swaks can help you - the swiss army knife SMTP:

http://www.jetmore.org/john/code/#swaks