postfix-users October 2010 archive
Main Archive Page > Month Archives  > postfix-users archives
postfix-users: Re: best way to send "raw" email (files

Re: best way to send "raw" email (files)?

From: Wietse Venema <wietse_at_nospam>
Date: Tue Oct 12 2010 - 14:40:40 GMT
To: Postfix users <postfix-users@postfix.org>

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