Emails with attachments


I have a server dedicated to MIB. I have multiple email accounts in this server. One of the accounts is trying to send an email with attachments to another account in my server. Also in this email, my Gmail account is CC’ed. My Gmail account received the email without a problem. However, the other account doesn’t. Have you guys encountered an issue like this before. I would really appreciate if you have a solution to this problem. Please let me know if you need to know more details about the problem or any log files that might help.



An answer to the question I asked on Slack when you posted would be a good start … does the ‘other account’ on your MiaB receive external emails ok? Since the answer to that is likely yes, then how about the logs?

Look at the logfile /var/log/mail.log and find the messages from sending this email.

Hi @alento,

Thanks for the reply.

All of the account in the server are having issues receiving the email with attachments, especially when the size of the email is big, i.e. >500KB. Below is the logs I got right after sending the email from my Gmail account to an account in this server. I guess the error is related to creation of /tmp/dovecot.lmtp but I don’t know why it is happening. Please let me know about your thoughts.


Nov 24 06:14:56 box postfix/smtpd[18832]: connect from[2a00:1450:4864:20::533]

Nov 24 06:14:56 box postfix/smtpd[18832]: warning: restriction `reject_authenticated_sender_login_mismatch' ignored: no SASL support

Nov 24 06:14:56 box postgrey[1160]: action=pass, reason=client whitelist,, client_address=2A00:1450:4864:20:0:0:0:533/128,,

Nov 24 06:14:57 box postfix/smtpd[18832]: 004183F21D:[2a00:1450:4864:20::533]

Nov 24 06:14:57 box postfix/cleanup[18834]: 004183F21D: message-id=<00e401d6c229$1fa62c40$5ef284c0$>

Nov 24 06:14:57 box opendkim[24515]: 004183F21D: s=20161025 SSL

Nov 24 06:14:57 box opendmarc[899]: implicit authentication service: BOX.MYDOMAIN.COM

Nov 24 06:14:57 box opendmarc[899]: 004183F21D: pass

Nov 24 06:14:57 box postfix/qmgr[1754]: 004183F21D: from=<>, size=617933, nrcpt=1 (queue active)

Nov 24 06:14:57 box postfix/smtpd[18832]: disconnect from[2a00:1450:4864:20::533] ehlo=2 starttls=1 mail=1 rcpt=1 data=1 quit=1 commands=7

Nov 24 06:14:57 lmtp(18836): Info: Connect from

Nov 24 06:14:57 box spampd[15945]: processing message <00e401d6c229$1fa62c40$5ef284c0$> for <>

Nov 24 06:14:59 box spampd[15945]: clean message <00e401d6c229$1fa62c40$5ef284c0$> (1.40/5.00) from <> for <> in 2.55s, 618150 bytes.

Nov 24 06:14:59 lmtp(18836): Error: Temp file creation to /tmp/dovecot.lmtp. failed: No such file or directory

Nov 24 06:14:59 lmtp(18836): Info: Disconnect from Temporary internal failure (in DATA)

Nov 24 06:14:59 box spampd[15945]: WARNING!! Error in process_request eval block: /usr/sbin/spampd: write error: Connection reset by peer

Nov 24 06:14:59 box postfix/lmtp[18835]: 004183F21D: to=<>, relay=[]:10025, delay=2.9, delays=0.19/0.01/0.01/2.7, dsn=4.4.2, status=deferred (lost connection with[] while sending end of data -- message may be sent more than once)

Well, you’ve identified the problem correctly it seems … however, I too cannot offer a “why?” it is happening. I am going to suggest that this is an issue that should be raised on the project’s github page.