Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Ingest] SMTP - Message file too large #2155

Open
mreyescdl opened this issue Jan 22, 2025 · 1 comment
Open

[Ingest] SMTP - Message file too large #2155

mreyescdl opened this issue Jan 22, 2025 · 1 comment
Assignees
Labels

Comments

@mreyescdl
Copy link
Contributor

Investigate error message from a recent Ingest notification (shown below)
This batch contained 500 Escholarship objects with large author fields.

UpdateBatchReportConsumerDaemon: Checking for additional tasks -  Current tasks: 1 - Max: 5
InitializeConsumerDaemon: Checking for additional Job tasks for Worker: Current tasks: 0 - Max: 2
org.apache.commons.mail.EmailException: Sending the email to the following server failed : localhost:25
        at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1469)
        at org.apache.commons.mail.Email.send(Email.java:1496)
        at org.cdlib.mrt.ingest.handlers.batchReport.HandlerNotification.handle(HandlerNotification.java:299)
        at org.cdlib.mrt.ingest.handlers.batchReport.HandlerNotification.handle(HandlerNotification.java:77)
        at org.cdlib.mrt.ingest.BatchManager$Post.run(BatchManager.java:458)
        at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: com.sun.mail.smtp.SMTPSendFailedException: 552 5.3.4 Error: message file too big

        at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:2267)
        at com.sun.mail.smtp.SMTPTransport.finishData(SMTPTransport.java:2045)
        at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1260)
        at javax.mail.Transport.send0(Transport.java:255)
        at javax.mail.Transport.send(Transport.java:124)
        at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1459)
        ... 5 more

Note: there were 4 failures in this batch which were corrected. The following UpdateBatchReport process again failed to send the email. Same error.

@mreyescdl mreyescdl self-assigned this Jan 22, 2025
@mreyescdl
Copy link
Contributor Author

Found SMTP is configured to have a MAX payload size of 10MB

$ telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 uc3-mrtingest-stg02.cdlib.org ESMTP Postfix
EHLO example.com
250-uc3-mrtingest-stg02.cdlib.org
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250-DSN
250 CHUNKING

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant