Unable to send email #2037

Closed
opened 2026-02-05 02:39:45 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @Dranaxel on GitHub (Jan 12, 2021).

Describe the bug
When trying to send test email got a message:
Error thrown when sending a test email:

Expected response code 250 but got code "554", with message "554 5.2.0 STOREDRV.Submission.Exception:SendAsDeniedException.MapiExceptionSendAsDenied; Failed to process message due to a permanent exception with message Cannot submit message. 0.35250:0A006881, 1.36674:0A000000, 1.61250:00000000, 1.45378:02000000, 1.44866:BB350000, 1.36674:0E000000, 1.61250:00000000, 1.45378:C0350000, 1.44866:14020000, 16.55847:59180000, 17.43559:0000000024020000000000000000000000000000, 20.52176:140F9E8E0C00103100000000, 20.50032:140F9E8E7C17000000000000, 0.35180:140F9E8E, 255.23226:0A006E81, 255.27962:0A000000, 255.27962:0E000000, 255.31418:0A006F81, 0.35250:1F001432, 1.36674:0A000000, 1.61250:00000000, 1.45378:02000000, 1.44866:24000000, 1.36674:32000000, 1.61250:00000000, 1.45378:29000000, 1.44866:01000000, 16.55847:90000000, 17.43559:0000000078030000000000000100000000000000, 20.52176:140F9E8E0C00101053000000, 20.50032:140F9E8E7C170000D91F0000, 0.35180:58000000, 255.23226:4800D13D, 255.27962:0A000000, 255.27962:32000000, 255.17082:DC040000, 0.27745:E31F0000, 4.21921:DC040000, 255.27962:FA000000, 255.1494:E81F0000, 0.38698:0F010480, 0.37692:01000000, 0.37948:0F010480, 5.33852:00000000534D545000010480, 7.36354:01000000000001090F010480, 4.56248:DC040000, 7.40748:010000000000010B0F010480, 7.57132:00000000000000000F010480, 1.63016:32000000, 4.39640:DC040000, 8.45434:B8181533E8E96D4AB2AD5F478B5CA1510F010480, 1.46798:04000000, 5.10786:0000000031352E32302E333734322E3031323A4D5232503236344D42303430333A30646266656131612D633566342D346465362D616430652D3431306364653935623462633A393137383400, 7.51330:9276B8070BB7D8080F010480, 0.39570:0F010480, 1.55954:0A000000, 0.49266:02000000, 1.33010:0A000000, 2.54258:00000000, 0.40002:7A000000, 1.56562:00000000, 1.64146:32000000, 1.33010:32000000, 2.54258:DC040000, 255.1750:0A005D36, 255.31418:E6210000, 0.22753:B4000000, 255.21817:DC040000, 0.64418:17220000, 4.39842:DC040000, 0.41586:0A005636, 4.60547:DC040000, 0.21966:BE000000, 4.30158:DC040000 [Hostname=MR2P264MB0403.FRAP264.PROD.OUTLOOK.COM]"

Steps To Reproduce
Steps to reproduce the behavior:

  1. Go to Maintenance
  2. Clic on send test email

I'm on 0.30.7

Here is my .env configuration:

MAIL_HOST=smtp.office365.com
MAIL_PORT=587
MAIL_USERNAME=helpdesk@XXXX.io
MAIL_PASSWORD=XXXX
MAIL_ENCRYPTION=tls

MAIL_FROM=noreply@XXXX.io
MAIL_FROM_NAME=BookStack

Originally created by @Dranaxel on GitHub (Jan 12, 2021). **Describe the bug** When trying to send test email got a message: Error thrown when sending a test email: ``` Expected response code 250 but got code "554", with message "554 5.2.0 STOREDRV.Submission.Exception:SendAsDeniedException.MapiExceptionSendAsDenied; Failed to process message due to a permanent exception with message Cannot submit message. 0.35250:0A006881, 1.36674:0A000000, 1.61250:00000000, 1.45378:02000000, 1.44866:BB350000, 1.36674:0E000000, 1.61250:00000000, 1.45378:C0350000, 1.44866:14020000, 16.55847:59180000, 17.43559:0000000024020000000000000000000000000000, 20.52176:140F9E8E0C00103100000000, 20.50032:140F9E8E7C17000000000000, 0.35180:140F9E8E, 255.23226:0A006E81, 255.27962:0A000000, 255.27962:0E000000, 255.31418:0A006F81, 0.35250:1F001432, 1.36674:0A000000, 1.61250:00000000, 1.45378:02000000, 1.44866:24000000, 1.36674:32000000, 1.61250:00000000, 1.45378:29000000, 1.44866:01000000, 16.55847:90000000, 17.43559:0000000078030000000000000100000000000000, 20.52176:140F9E8E0C00101053000000, 20.50032:140F9E8E7C170000D91F0000, 0.35180:58000000, 255.23226:4800D13D, 255.27962:0A000000, 255.27962:32000000, 255.17082:DC040000, 0.27745:E31F0000, 4.21921:DC040000, 255.27962:FA000000, 255.1494:E81F0000, 0.38698:0F010480, 0.37692:01000000, 0.37948:0F010480, 5.33852:00000000534D545000010480, 7.36354:01000000000001090F010480, 4.56248:DC040000, 7.40748:010000000000010B0F010480, 7.57132:00000000000000000F010480, 1.63016:32000000, 4.39640:DC040000, 8.45434:B8181533E8E96D4AB2AD5F478B5CA1510F010480, 1.46798:04000000, 5.10786:0000000031352E32302E333734322E3031323A4D5232503236344D42303430333A30646266656131612D633566342D346465362D616430652D3431306364653935623462633A393137383400, 7.51330:9276B8070BB7D8080F010480, 0.39570:0F010480, 1.55954:0A000000, 0.49266:02000000, 1.33010:0A000000, 2.54258:00000000, 0.40002:7A000000, 1.56562:00000000, 1.64146:32000000, 1.33010:32000000, 2.54258:DC040000, 255.1750:0A005D36, 255.31418:E6210000, 0.22753:B4000000, 255.21817:DC040000, 0.64418:17220000, 4.39842:DC040000, 0.41586:0A005636, 4.60547:DC040000, 0.21966:BE000000, 4.30158:DC040000 [Hostname=MR2P264MB0403.FRAP264.PROD.OUTLOOK.COM]" ``` **Steps To Reproduce** Steps to reproduce the behavior: 1. Go to Maintenance 2. Clic on send test email I'm on 0.30.7 Here is my .env configuration: MAIL_HOST=smtp.office365.com MAIL_PORT=587 MAIL_USERNAME=helpdesk@XXXX.io MAIL_PASSWORD=XXXX MAIL_ENCRYPTION=tls MAIL_FROM=noreply@XXXX.io MAIL_FROM_NAME=BookStack
Author
Owner

@Dranaxel commented on GitHub (Jan 12, 2021):

So, obviously I fond the solution quickly after asked: with office you cannot send email with different name so you have to set MAIL_FROM same as MAIL_USERNAME. Maybe it can be a good idea to make two equal by default if MAIL_FROM not defined, tell me if you need me to write a FR for this

@Dranaxel commented on GitHub (Jan 12, 2021): So, obviously I fond the solution quickly after asked: with office you cannot send email with different name so you have to set MAIL_FROM same as MAIL_USERNAME. Maybe it can be a good idea to make two equal by default if MAIL_FROM not defined, tell me if you need me to write a FR for this
Author
Owner

@ssddanbrown commented on GitHub (Jan 12, 2021):

Thanks @Dranaxel for confirming the issue and resolution here.

Maybe it can be a good idea to make two equal by default if MAIL_FROM not defined, tell me if you need me to write a FR for this

I'd prefer not to include this extra logic to be honest since the potential matching of those is going to be service specific and it'll be very rare that such a change will solve any issues in the future.

@ssddanbrown commented on GitHub (Jan 12, 2021): Thanks @Dranaxel for confirming the issue and resolution here. > Maybe it can be a good idea to make two equal by default if MAIL_FROM not defined, tell me if you need me to write a FR for this I'd prefer not to include this extra logic to be honest since the potential matching of those is going to be service specific and it'll be very rare that such a change will solve any issues in the future.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#2037