Tomasz Chmielewski:
> cat /samba/emails/somefile.eml | sendmail -t

sendmail -t < filename

assuming that the file does not contain garbage such as Control-Z
at the end of the file.

Only slightly faster would be to use one of the mini-sendmail
programs that read a message on standard input and submit via SMTP.

How do you know when the input file is complete? You should not
start submission of a file that is still being written to.

        Wietse

Reply via email to