mail_filter plugin: failed: EOF without input

Gedalya gedalya at gedalya.net
Fri Feb 7 17:48:28 EET 2020


On 2/7/20 4:33 PM, 刘莹莹 wrote:
>
> cat mail-filter-out.sh
> #!/bin/sh
> cat > tempfile
> cat  mail-filter.sh
> #!/bin/sh
>
> USER=$1
> cat > tempfile
>
> Some important Error logs:
> Feb 07 15:49:19 lda(q1 at a.com)<53648><rY6oIH8WPV6Q0QAA0J78UA>: Error: Mailbox INBOX: Saving mail: write(/home/a.com/q1/storage/m.1) failed: EOF without input
> Feb 07 15:49:19 lda(q1 at a.com)<53648><rY6oIH8WPV6Q0QAA0J78UA>: Info: msgid=<77z2kkfmm1-7846bu3tx6 at nsmail6.0>: save failed to INBOX: Mailbox INBOX: Saving mail: write(/home/a.com/q1/storage/m.1) failed: EOF without input
> Feb 07 15:49:19 lda(q1 at a.com)<53648><rY6oIH8WPV6Q0QAA0J78UA>: Debug: auth-master: conn unix:/var/run/dovecot/auth-master (pid=10651,uid=0): Disconnected: Connection closed (fd=11)
>
Hi,

Your scripts are reading all the available input and not producing any output. This way the email message is lost.

You could add the line:

cat tempfile

or just replace "cat > tempfile" with "tee > tempfile"




More information about the dovecot mailing list