# Email fails to send most time

**URL:** <https://forum.mautic.org/t/email-fails-to-send-most-time/28878>\
**Category:** Product Support\
**Created:** [August 8, 2023, 1:29pm UTC](https://forum.mautic.org/t/email-fails-to-send-most-time/28878 "2023-08-08T13:29:01Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![david001](https://avatars.discourse-cdn.com/v4/letter/d/a88e57/32.png) [@david001](https://forum.mautic.org/u/david001)\
**Post date:** [August 8, 2023, 1:29pm UTC](https://forum.mautic.org/t/email-fails-to-send-most-time/28878/1 "2023-08-08T13:29:01Z")

</div>

**Your software**  
My Mautic version is: 4.4.7  
My PHP version is: 7.4.3-4ubuntu2.18  
My Database type and version is:

**Your problem**  
My problem is:  
Hi,

I have an issue with my Mautic as it fails to send emails most times. Previously, I had sent emails in the past which were successfully sent. Some other segments sent emails (it reads success), but don’t deliver to the recipient.

How can I resolve this?

These errors are showing in the log:

---

<div class="post-metadata">

**Author:** ![richardnl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/richardnl/32/11430_2.png) [@richardnl](https://forum.mautic.org/u/richardnl)\
**Post date:** [August 8, 2023, 1:39pm UTC](https://forum.mautic.org/t/email-fails-to-send-most-time/28878/2 "2023-08-08T13:39:28Z")

</div>

You mention errors in the log. Please share the errors from the log.

---

<div class="post-metadata">

**Author:** ![david001](https://avatars.discourse-cdn.com/v4/letter/d/a88e57/32.png) [@david001](https://forum.mautic.org/u/david001)\
**Post date:** [August 8, 2023, 2:46pm UTC](https://forum.mautic.org/t/email-fails-to-send-most-time/28878/3 "2023-08-08T14:46:05Z")

</div>

Here are the logs

[2023-08-08 01:28:06] mautic.CRITICAL: Uncaught PHP Exception Doctrine\DBAL\Exception\DriverException: “An exception occurred while executing ‘INSERT INTO maleads (is\_published, date\_added, created\_by, created\_by\_user, date\_modified, modified\_by, modified\_by\_user, checked\_out, checked\_out\_by, checked\_out\_by\_user, points, last\_active, internal, social\_cache, date\_identified, preferred\_profile\_image, title, firstname, lastname, company, position, email, phone, mobile, address1, address2, city, state, zipcode, timezone, country, owner\_id, stage\_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)’ with params [1, “2023-08-08 01:28:06”, null, null, null, null, null, null, null, null, 0, null, “a:0:{}”, “a:0:{}”, null, “gravatar”, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null]: Failed to read auto-increment value from storage engine” at /var/www/mautic/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php line 128 {“exception”:“[object] (Doctrine\DBAL\Exception\DriverException(code: 0): An exception occurred while executing ‘INSERT INTO maleads (is\_published, date\_added, created\_by, created\_by\_user, date\_modified, modified\_by, modified\_by\_user, checked\_out, checked\_out\_by, checked\_out\_by\_user, points, last\_active, internal, social\_cache, date\_identified, preferred\_profile\_image, title, firstname, lastname, company, position, email, phone, mobile, address1, address2, city, state, zipcode, timezone, country, owner\_id, stage\_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)’ with params [1, "2023-08-08 01:28:06", null, null, null, null, null, null, null, null, 0, null, "a:0:{}", "a:0:{}", null, "gravatar", null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null]:\n\nFailed to read auto-increment value from storage engine at /var/www/mautic/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php:128, Doctrine\DBAL\Driver\Mysqli\Exception\StatementError(code: 0): Failed to read auto-increment value from storage engine at /var/www/mautic/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/Mysqli/Exception/StatementError.php:21)”} {“hostname”:“mautic”,“pid”:158517}  
[2023-08-08 01:38:09] mautic.NOTICE: PHP Notice - SessionHandler::gc(): ps\_files\_cleanup\_dir: opendir(/var/lib/php/sessions) failed: Permission denied (13) - in file /var/www/mautic/vendor/symfony/http-foundation/Session/Storage/Handler/StrictSessionHandler.php - at line 106 {“maxlifetime”:1440} {“hostname”:“mautic”,“pid”:158516}  
[2023-08-08 02:22:24] mautic.NOTICE: PHP Notice - SessionHandler::gc(): ps\_files\_cleanup\_dir: opendir(/var/lib/php/sessions) failed: Permission denied (13) - in file /var/www/mautic/vendor/symfony/http-foundation/Session/Storage/Handler/StrictSessionHandler.php - at line 106 {“maxlifetime”:1440} {“hostname”:“mautic”,“pid”:158518}  
[2023-08-08 02:35:28] mautic.NOTICE: PHP Notice - SessionHandler::gc(): ps\_files\_cleanup\_dir: opendir(/var/lib/php/sessions) failed: Permission denied (13) - in file /var/www/mautic/vendor/symfony/http-foundation/Session/Storage/Handler/StrictSessionHandler.php - at line 106 {“maxlifetime”:1440} {“hostname”:“mautic”,“pid”:158517}  
[2023-08-08 04:27:05] mautic.NOTICE: PHP Notice - SessionHandler::gc(): ps\_files\_cleanup\_dir: opendir(/var/lib/php/sessions) failed: Permission denied (13) - in file /var/www/mautic/vendor/symfony/http-foundation/Session/Storage/Handler/StrictSessionHandler.php - at line 106 {“maxlifetime”:1440} {“hostname”:“mautic”,“pid”:158518}  
[2023-08-08 04:28:05] mautic.NOTICE: PHP Notice - SessionHandler::gc(): ps\_files\_cleanup\_dir: opendir(/var/lib/php/sessions) failed: Permission denied (13) - in file /var/www/mautic/vendor/symfony/http-foundation/Session/Storage/Handler/StrictSessionHandler.php - at line 106 {“maxlifetime”:1440} {“hostname”:“mautic”,“pid”:158515}  
[2023-08-08 05:22:23] mautic.NOTICE: PHP Notice - SessionHandler::gc(): ps\_files\_cleanup\_dir: opendir(/var/lib/php/sessions) failed: Permission denied (13) - in file /var/www/mautic/vendor/symfony/http-foundation/Session/Storage/Handler/StrictSessionHandler.php - at line 106 {“maxlifetime”:1440} {“hostname”:“mautic”,“pid”:158518}  
[2023-08-08 14:14:42] mautic.ERROR: [MAIL ERROR] Expected response code 250 but got code “530”, with message "530 From/Sender name is not valid " Log data: ++ Starting Swift\_Transport\_EsmtpTransport \<\< 220 [postal.lusquan6.com](http://postal.lusquan6.com) ESMTP Postal/SARCUL \>\> EHLO [mautic.lusquan23.com](http://mautic.lusquan23.com) \<\< 250-My capabilities are 250 AUTH CRAM-MD5 PLAIN LOGIN \>\> AUTH LOGIN \<\< 334 VXNlcm5hbWU6 \>\> SWJla3dlRA== \<\< 334 UGFzc3dvcmQ6 \>\> MTlmV0Q1WFNobGl4ZXc0SkZEbElEbzZR \<\< 235 Granted for lusquan-b-v/postal-lusquan6-com ++ Swift\_Transport\_EsmtpTransport started \>\> MAIL FROM: \<\< 250 OK \>\> RCPT TO: \<\< 250 OK \>\> DATA \<\< 354 Go ahead \>\> . \<\< 530 From/Sender name is not valid !! Expected response code 250 but got code “530”, with message "530 From/Sender name is not valid " (code: 530) Log data: ++ Starting Swift\_Transport\_EsmtpTransport \<\< 220 [postal.lusquan6.com](http://postal.lusquan6.com) ESMTP Postal/SARCUL \>\> EHLO [mautic.lusquan23.com](http://mautic.lusquan23.com) \<\< 250-My capabilities are 250 AUTH CRAM-MD5 PLAIN LOGIN \>\> AUTH LOGIN \<\< 334 VXNlcm5hbWU6 \>\> SWJla3dlRA== \<\< 334 UGFzc3dvcmQ6 \>\> MTlmV0Q1WFNobGl4ZXc0SkZEbElEbzZR \<\< 235 Granted for lusquan-b-v/postal-lusquan6-com ++ Swift\_Transport\_EsmtpTransport started \>\> MAIL FROM: \<\< 250 OK \>\> RCPT TO: \<\< 250 OK \>\> DATA \<\< 354 Go ahead \>\> . \<\< 530 From/Sender name is not valid !! Expected response code 250 but got code “530”, with message "530 From/Sender name is not valid " (code: 530) !! Expected response code 250 but got code “530”, with message “530 From/Sender name is not valid " Log data: ++ Starting Swift\_Transport\_EsmtpTransport \<\< 220 [postal.lusquan6.com](http://postal.lusquan6.com) ESMTP Postal/SARCUL \>\> EHLO [mautic.lusquan23.com](http://mautic.lusquan23.com) \<\< 250-My capabilities are 250 AUTH CRAM-MD5 PLAIN LOGIN \>\> AUTH LOGIN \<\< 334 VXNlcm5hbWU6 \>\> SWJla3dlRA== \<\< 334 UGFzc3dvcmQ6 \>\> MTlmV0Q1WFNobGl4ZXc0SkZEbElEbzZR \<\< 235 Granted for lusquan-b-v/postal-lusquan6-com ++ Swift\_Transport\_EsmtpTransport started \>\> MAIL FROM: \<\< 250 OK \>\> RCPT TO: \<\< 250 OK \>\> DATA \<\< 354 Go ahead \>\> . \<\< 530 From/Sender name is not valid !! Expected response code 250 but got code “530”, with message “530 From/Sender name is not valid " (code: 530) (code: 530) (send); [dokuwa@lusquan.com](mailto:dokuwa@lusquan.com) {“exception”:”[object] (Swift\_TransportException(code: 530): Expected response code 250 but got code "530", with message "530 From/Sender name is not valid\r\n"\nLog data:\n++ Starting Swift\_Transport\_EsmtpTransport\n\<\< 220 [postal.lusquan6.com](http://postal.lusquan6.com) ESMTP Postal/SARCUL\r\n\n\>\> EHLO [mautic.lusquan23.com](http://mautic.lusquan23.com)\r\n\n\<\< 250-My capabilities are\r\n250 AUTH CRAM-MD5 PLAIN LOGIN\r\n\n\>\> AUTH LOGIN\r\n\n\<\< 334 VXNlcm5hbWU6\r\n\n\>\> SWJla3dlRA==\r\n\n\<\< 334 UGFzc3dvcmQ6\r\n\n\>\> MTlmV0Q1WFNobGl4ZXc0SkZEbElEbzZR\r\n\n\<\< 235 Granted for lusquan-b-v/postal-lusquan6-com\r\n\n++ Swift\_Transport\_EsmtpTransport started\n\>\> MAIL FROM:\r\n\n\<\< 250 OK\r\n\n\>\> RCPT TO:\r\n\n\<\< 250 OK\r\n\n\>\> DATA\r\n\n\<\< 354 Go ahead\r\n\n\>\> \r\n.\r\n\n\<\< 530 From/Sender name is not valid\r\n\n!! Expected response code 250 but got code "530", with message "530 From/Sender name is not valid\r\n" (code: 530)\nLog data:\n++ Starting Swift\_Transport\_EsmtpTransport\n\<\< 220 [postal.lusquan6.com](http://postal.lusquan6.com) ESMTP Postal/SARCUL\r\n\n\>\> EHLO [mautic.lusquan23.com](http://mautic.lusquan23.com)\r\n\n\<\< 250-My capabilities are\r\n250 AUTH CRAM-MD5 PLAIN LOGIN\r\n\n\>\> AUTH LOGIN\r\n\n\<\< 334 VXNlcm5hbWU6\r\n\n\>\> SWJla3dlRA==\r\n\n\<\< 334 UGFzc3dvcmQ6\r\n\n\>\> MTlmV0Q1WFNobGl4ZXc0SkZEbElEbzZR\r\n\n\<\< 235 Granted for lusquan-b-v/postal-lusquan6-com\r\n\n++ Swift\_Transport\_EsmtpTransport started\n\>\> MAIL FROM:\r\n\n\<\< 250 OK\r\n\n\>\> RCPT TO:\r\n\n\<\< 250 OK\r\n\n\>\> DATA\r\n\n\<\< 354 Go ahead\r\n\n\>\> \r\n.\r\n\n\<\< 530 From/Sender name is not valid\r\n\n!! Expected response code 250 but got code "530", with message "530 From/Sender name is not valid\r\n" (code: 530)\n!! Expected response code 250 but got code "530", with message "530 From/Sender name is not valid\r\n"\nLog data:\n++ Starting Swift\_Transport\_EsmtpTransport\n\<\< 220 [postal.lusquan6.com](http://postal.lusquan6.com) ESMTP Postal/SARCUL\r\n\n\>\> EHLO [mautic.lusquan23.com](http://mautic.lusquan23.com)\r\n\n\<\< 250-My capabilities are\r\n250 AUTH CRAM-MD5 PLAIN LOGIN\r\n\n\>\> AUTH LOGIN\r\n\n\<\< 334 VXNlcm5hbWU6\r\n\n\>\> SWJla3dlRA==\r\n\n\<\< 334 UGFzc3dvcmQ6\r\n\n\>\> MTlmV0Q1WFNobGl4ZXc0SkZEbElEbzZR\r\n\n\<\< 235 Granted for lusquan-b-v/postal-lusquan6-com\r\n\n++ Swift\_Transport\_EsmtpTransport started\n\>\> MAIL FROM:\r\n\n\<\< 250 OK\r\n\n\>\> RCPT TO:\r\n\n\<\< 250 OK\r\n\n\>\> DATA\r\n\n\<\< 354 Go ahead\r\n\n\>\> \r\n.\r\n\n\<\< 530 From/Sender name is not valid\r\n\n!! Expected response code 250 but got code "530", with message "530 From/Sender name is not valid\r\n" (code: 530) (code: 530) at /var/www/mautic/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Plugins/LoggerPlugin.php:124)”} {“hostname”:“mautic”,“pid”:162877}  
[2023-08-08 14:17:33] mautic.ERROR: [MAIL ERROR] Expected response code 250 but got code “530”, with message "530 From/Sender name is not valid " Log data: ++ Starting Swift\_Transport\_EsmtpTransport \<\< 220 [postal.lusquan6.com](http://postal.lusquan6.com) ESMTP Postal/XS7UIP \>\> EHLO [mautic.lusquan23.com](http://mautic.lusquan23.com) \<\< 250-My capabilities are 250 AUTH CRAM-MD5 PLAIN LOGIN \>\> AUTH LOGIN \<\< 334 VXNlcm5hbWU6 \>\> SWJla3dlRA== \<\< 334 UGFzc3dvcmQ6 \>\> MTlmV0Q1WFNobGl4ZXc0SkZEbElEbzZR \<\< 235 Granted for lusquan-b-v/postal-lusquan6-com ++ Swift\_Transport\_EsmtpTransport started \>\> MAIL FROM: \<\< 250 OK \>\> RCPT TO: \<\< 250 OK \>\> DATA \<\< 354 Go ahead \>\> . \<\< 530 From/Sender name is not valid !! Expected response code 250 but got code “530”, with message "530 From/Sender name is not valid " (code: 530) Log data: ++ Starting Swift\_Transport\_EsmtpTransport \<\< 220 [postal.lusquan6.com](http://postal.lusquan6.com) ESMTP Postal/XS7UIP \>\> EHLO [mautic.lusquan23.com](http://mautic.lusquan23.com) \<\< 250-My capabilities are 250 AUTH CRAM-MD5 PLAIN LOGIN \>\> AUTH LOGIN \<\< 334 VXNlcm5hbWU6 \>\> SWJla3dlRA== \<\< 334 UGFzc3dvcmQ6 \>\> MTlmV0Q1WFNobGl4ZXc0SkZEbElEbzZR \<\< 235 Granted for lusquan-b-v/postal-lusquan6-com ++ Swift\_Transport\_EsmtpTransport started \>\> MAIL FROM: \<\< 250 OK \>\> RCPT TO: \<\< 250 OK \>\> DATA \<\< 354 Go ahead \>\> . \<\< 530 From/Sender name is not valid !! Expected response code 250 but got code “530”, with message "530 From/Sender name is not valid " (code: 530) !! Expected response code 250 but got code “530”, with message “530 From/Sender name is not valid " Log data: ++ Starting Swift\_Transport\_EsmtpTransport \<\< 220 [postal.lusquan6.com](http://postal.lusquan6.com) ESMTP Postal/XS7UIP \>\> EHLO [mautic.lusquan23.com](http://mautic.lusquan23.com) \<\< 250-My capabilities are 250 AUTH CRAM-MD5 PLAIN LOGIN \>\> AUTH LOGIN \<\< 334 VXNlcm5hbWU6 \>\> SWJla3dlRA== \<\< 334 UGFzc3dvcmQ6 \>\> MTlmV0Q1WFNobGl4ZXc0SkZEbElEbzZR \<\< 235 Granted for lusquan-b-v/postal-lusquan6-com ++ Swift\_Transport\_EsmtpTransport started \>\> MAIL FROM: \<\< 250 OK \>\> RCPT TO: \<\< 250 OK \>\> DATA \<\< 354 Go ahead \>\> . \<\< 530 From/Sender name is not valid !! Expected response code 250 but got code “530”, with message “530 From/Sender name is not valid " (code: 530) (code: 530) (send); [david.c@lusquan.com](mailto:david.c@lusquan.com) {“exception”:”[object] (Swift\_TransportException(code: 530): Expected response code 250 but got code "530", with message "530 From/Sender name is not valid\r\n"\nLog data:\n++ Starting Swift\_Transport\_EsmtpTransport\n\<\< 220 [postal.lusquan6.com](http://postal.lusquan6.com) ESMTP Postal/XS7UIP\r\n\n\>\> EHLO [mautic.lusquan23.com](http://mautic.lusquan23.com)\r\n\n\<\< 250-My capabilities are\r\n250 AUTH CRAM-MD5 PLAIN LOGIN\r\n\n\>\> AUTH LOGIN\r\n\n\<\< 334 VXNlcm5hbWU6\r\n\n\>\> SWJla3dlRA==\r\n\n\<\< 334 UGFzc3dvcmQ6\r\n\n\>\> MTlmV0Q1WFNobGl4ZXc0SkZEbElEbzZR\r\n\n\<\< 235 Granted for lusquan-b-v/postal-lusquan6-com\r\n\n++ Swift\_Transport\_EsmtpTransport started\n\>\> MAIL FROM:\r\n\n\<\< 250 OK\r\n\n\>\> RCPT TO:\r\n\n\<\< 250 OK\r\n\n\>\> DATA\r\n\n\<\< 354 Go ahead\r\n\n\>\> \r\n.\r\n\n\<\< 530 From/Sender name is not valid\r\n\n!! Expected response code 250 but got code "530", with message "530 From/Sender name is not valid\r\n" (code: 530)\nLog data:\n++ Starting Swift\_Transport\_EsmtpTransport\n\<\< 220 [postal.lusquan6.com](http://postal.lusquan6.com) ESMTP Postal/XS7UIP\r\n\n\>\> EHLO [mautic.lusquan23.com](http://mautic.lusquan23.com)\r\n\n\<\< 250-My capabilities are\r\n250 AUTH CRAM-MD5 PLAIN LOGIN\r\n\n\>\> AUTH LOGIN\r\n\n\<\< 334 VXNlcm5hbWU6\r\n\n\>\> SWJla3dlRA==\r\n\n\<\< 334 UGFzc3dvcmQ6\r\n\n\>\> MTlmV0Q1WFNobGl4ZXc0SkZEbElEbzZR\r\n\n\<\< 235 Granted for lusquan-b-v/postal-lusquan6-com\r\n\n++ Swift\_Transport\_EsmtpTransport started\n\>\> MAIL FROM:\r\n\n\<\< 250 OK\r\n\n\>\> RCPT TO:\r\n\n\<\< 250 OK\r\n\n\>\> DATA\r\n\n\<\< 354 Go ahead\r\n\n\>\> \r\n.\r\n\n\<\< 530 From/Sender name is not valid\r\n\n!! Expected response code 250 but got code "530", with message "530 From/Sender name is not valid\r\n" (code: 530)\n!! Expected response code 250 but got code "530", with message "530 From/Sender name is not valid\r\n"\nLog data:\n++ Starting Swift\_Transport\_EsmtpTransport\n\<\< 220 [postal.lusquan6.com](http://postal.lusquan6.com) ESMTP Postal/XS7UIP\r\n\n\>\> EHLO [mautic.lusquan23.com](http://mautic.lusquan23.com)\r\n\n\<\< 250-My capabilities are\r\n250 AUTH CRAM-MD5 PLAIN LOGIN\r\n\n\>\> AUTH LOGIN\r\n\n\<\< 334 VXNlcm5hbWU6\r\n\n\>\> SWJla3dlRA==\r\n\n\<\< 334 UGFzc3dvcmQ6\r\n\n\>\> MTlmV0Q1WFNobGl4ZXc0SkZEbElEbzZR\r\n\n\<\< 235 Granted for lusquan-b-v/postal-lusquan6-com\r\n\n++ Swift\_Transport\_EsmtpTransport started\n\>\> MAIL FROM:\r\n\n\<\< 250 OK\r\n\n\>\> RCPT TO:\r\n\n\<\< 250 OK\r\n\n\>\> DATA\r\n\n\<\< 354 Go ahead\r\n\n\>\> \r\n.\r\n\n\<\< 530 From/Sender name is not valid\r\n\n!! Expected response code 250 but got code "530", with message "530 From/Sender name is not valid\r\n" (code: 530) (code: 530) at /var/www/mautic/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Plugins/LoggerPlugin.php:124)”} {“hostname”:“mautic”,“pid”:158516}  
[2023-08-08 14:17:33] mautic.ERROR: [MAIL ERROR] Expected response code 250 but got code “530”, with message "530 From/Sender name is not valid " Log data: \>\> MAIL FROM: \<\< 250 OK \>\> RCPT TO: \<\< 250 OK \>\> DATA \<\< 354 Go ahead \>\> . \<\< 530 From/Sender name is not valid !! Expected response code 250 but got code “530”, with message "530 From/Sender name is not valid " (code: 530) Log data: \>\> MAIL FROM: \<\< 250 OK \>\> RCPT TO: \<\< 250 OK \>\> DATA \<\< 354 Go ahead \>\> . \<\< 530 From/Sender name is not valid !! Expected response code 250 but got code “530”, with message "530 From/Sender name is not valid " (code: 530) !! Expected response code 250 but got code “530”, with message “530 From/Sender name is not valid " Log data: \>\> MAIL FROM: \<\< 250 OK \>\> RCPT TO: \<\< 250 OK \>\> DATA \<\< 354 Go ahead \>\> . \<\< 530 From/Sender name is not valid !! Expected response code 250 but got code “530”, with message “530 From/Sender name is not valid " (code: 530) (code: 530) (send); [dokuwa@lusquan.com](mailto:dokuwa@lusquan.com) {“exception”:”[object] (Swift\_TransportException(code: 530): Expected response code 250 but got code "530", with message "530 From/Sender name is not valid\r\n"\nLog data:\n\>\> MAIL FROM:\r\n\n\<\< 250 OK\r\n\n\>\> RCPT TO:\r\n\n\<\< 250 OK\r\n\n\>\> DATA\r\n\n\<\< 354 Go ahead\r\n\n\>\> \r\n.\r\n\n\<\< 530 From/Sender name is not valid\r\n\n!! Expected response code 250 but got code "530", with message "530 From/Sender name is not valid\r\n" (code: 530)\nLog data:\n\>\> MAIL FROM:\r\n\n\<\< 250 OK\r\n\n\>\> RCPT TO:\r\n\n\<\< 250 OK\r\n\n\>\> DATA\r\n\n\<\< 354 Go ahead\r\n\n\>\> \r\n.\r\n\n\<\< 530 From/Sender name is not valid\r\n\n!! Expected response code 250 but got code "530", with message "530 From/Sender name is not valid\r\n" (code: 530)\n!! Expected response code 250 but got code "530", with message "530 From/Sender name is not valid\r\n"\nLog data:\n\>\> MAIL FROM:\r\n\n\<\< 250 OK\r\n\n\>\> RCPT TO:\r\n\n\<\< 250 OK\r\n\n\>\> DATA\r\n\n\<\< 354 Go ahead\r\n\n\>\> \r\n.\r\n\n\<\< 530 From/Sender name is not valid\r\n\n!! Expected response code 250 but got code "530", with message "530 From/Sender name is not valid\r\n" (code: 530) (code: 530) at /var/www/mautic/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Plugins/LoggerPlugin.php:124)”} {“hostname”:“mautic”,“pid”:158516}

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [August 10, 2023, 9:40am UTC](https://forum.mautic.org/t/email-fails-to-send-most-time/28878/4 "2023-08-10T09:40:45Z")

</div>

Do you have special characters (@, ;, &, ?) etc in the sender name?

---

<div class="post-metadata">

**Author:** ![david001](https://avatars.discourse-cdn.com/v4/letter/d/a88e57/32.png) [@david001](https://forum.mautic.org/u/david001)\
**Post date:** [August 10, 2023, 11:41am UTC](https://forum.mautic.org/t/email-fails-to-send-most-time/28878/5 "2023-08-10T11:41:26Z")

</div>

No, there are no special characters. The mail used to deliver at some point then stopped (though not to all segments)

I will crosscheck the contacts in the segment

---

<div class="post-metadata">

**Author:** ![robm](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/robm/32/260_2.png) [@robm](https://forum.mautic.org/u/robm)\
**Post date:** [August 10, 2023, 1:24pm UTC](https://forum.mautic.org/t/email-fails-to-send-most-time/28878/6 "2023-08-10T13:24:41Z")

</div>

> [@david001](#):
>
> [2023-08-08 14:14:42] mautic.ERROR: [MAIL ERROR] Expected response code 250 but got code “530”, with message "530 From/Sender name is not valid " Log data: ++ Starting Swift\_Transport\_EsmtpTransport \<\< 220 [postal.lusquan6.com](http://postal.lusquan6.com) ESMTP Postal/SARCUL \>\> EHLO [mautic.lusquan23.com](http://mautic.lusquan23.com) \<\< 250-My capabilities are 250 AUTH CRAM-MD5 PLAIN LOGIN \>\> AUTH LOGIN \<\< 334 VXNlcm5hbWU6 \>\> SWJla3dlRA== \<\< 334 UGFzc3dvcmQ6 \>\> MTlmV0Q1WFNobGl4ZXc0SkZEbElEbzZR \<\< 235 Granted for lusquan-b-v/postal-lusquan6-com ++ Swift\_Transport\_EsmtpTransport started \>\> MAIL FROM: \<\< 250 OK \>\> RCPT TO: \<\< 250 OK \>\> DATA \<\< 354 Go ahead \>\> . \<\< 530 From/Sender name is not valid !! Expected response code 250 but got code “530”, with message "530 From/Sender name is not valid " (code: 530) Log data: ++ Starting Swift\_Transport\_EsmtpTransport \<\< 220 [postal.lusquan6.com](http://postal.lusquan6.com) ESMTP Postal/SARCUL \>\> EHLO [mautic.lusquan23.com](http://mautic.lusquan23.com) \<\< 250-My capabilities are 250 AUTH CRAM-MD5 PLAIN LOGIN \>\> AUTH LOGIN \<\< 334 VXNlcm5hbWU6 \>\> SWJla3dlRA== \<\< 334 UGFzc3dvcmQ6 \>\> MTlmV0Q1WFNobGl4ZXc0SkZEbElEbzZR \<\< 235 Granted for lusquan-b-v/postal-lusquan6-com ++ Swift\_Transport\_EsmtpTransport started \>\> MAIL FROM: \<\< 250 OK \>\> RCPT TO: \<\< 250 OK \>\> DATA \<\< 354 Go ahead \>\> . \<\< 530 From/Sender name is not valid !! Expected response code 250 but got code “530”, with message "530 From/Sender name is not valid " (code: 530) !! Expected response code 250 but got code “530”, with message “530 From/Sender name is not valid " Log data: ++ Starting Swift\_Transport\_EsmtpTransport \<\< 220 [postal.lusquan6.com](http://postal.lusquan6.com) ESMTP Postal/SARCUL \>\> EHLO [mautic.lusquan23.com](http://mautic.lusquan23.com) \<\< 250-My capabilities are 250 AUTH CRAM-MD5 PLAIN LOGIN \>\> AUTH LOGIN \<\< 334 VXNlcm5hbWU6 \>\> SWJla3dlRA== \<\< 334 UGFzc3dvcmQ6 \>\> MTlmV0Q1WFNobGl4ZXc0SkZEbElEbzZR \<\< 235 Granted for lusquan-b-v/postal-lusquan6-com ++ Swift\_Transport\_EsmtpTransport started \>\> MAIL FROM: \<\< 250 OK \>\> RCPT TO: \<\< 250 OK \>\> DATA \<\< 354 Go ahead \>\> . \<\< 530 From/Sender name is not valid !! Expected response code 250 but got code “530”, with message “530 From/Sender name is not valid " (code: 530) (code: 530) (send); [dokuwa@lusquan.com](mailto:dokuwa@lusquan.com) {“exception”:”[object] (Swift\_TransportException(code: 530): Expected response code 250 but got code “530”, with message “530 From/Sender name is not valid\r\n”\nLog data:\n++ Starting Swift\_Transport\_EsmtpTransport\n\<\< 220 [postal.lusquan6.com](http://postal.lusquan6.com) ESMTP Postal/SARCUL\r\n\n\>\> EHLO [mautic.lusquan23.com](http://mautic.lusquan23.com)\r\n\n\<\< 250-My capabilities are\r\n250 AUTH CRAM-MD5 PLAIN LOGIN\r\n\n\>\> AUTH LOGIN\r\n\n\<\< 334 VXNlcm5hbWU6\r\n\n\>\> SWJla3dlRA==\r\n\n\<\< 334 UGFzc3dvcmQ6\r\n\n\>\> MTlmV0Q1WFNobGl4ZXc0SkZEbElEbzZR\r\n\n\<\< 235 Granted for lusquan-b-v/postal-lusquan6-com\r\n\n++ Swift\_Transport\_EsmtpTransport started\n\>\> MAIL FROM:\r\n\n\<\< 250 OK\r\n\n\>\> RCPT TO:\r\n\n\<\< 250 OK\r\n\n\>\> DATA\r\n\n\<\< 354 Go ahead\r\n\n\>\> \r\n.\r\n\n\<\< 530 From/Sender name is not valid\r\n\n!! Expected response code 250 but got code “530”, with message “530 From/Sender name is not valid\r\n” (code: 530)\nLog data:\n++ Starting Swift\_Transport\_EsmtpTransport\n\<\< 220 [postal.lusquan6.com](http://postal.lusquan6.com) ESMTP Postal/SARCUL\r\n\n\>\> EHLO [mautic.lusquan23.com](http://mautic.lusquan23.com)\r\n\n\<\< 250-My capabilities are\r\n250 AUTH CRAM-MD5 PLAIN LOGIN\r\n\n\>\> AUTH LOGIN\r\n\n\<\< 334 VXNlcm5hbWU6\r\n\n\>\> SWJla3dlRA==\r\n\n\<\< 334 UGFzc3dvcmQ6\r\n\n\>\> MTlmV0Q1WFNobGl4ZXc0SkZEbElEbzZR\r\n\n\<\< 235 Granted for lusquan-b-v/postal-lusquan6-com\r\n\n++ Swift\_Transport\_EsmtpTransport started\n\>\> MAIL FROM:\r\n\n\<\< 250 OK\r\n\n\>\> RCPT TO:\r\n\n\<\< 250 OK\r\n\n\>\> DATA\r\n\n\<\< 354 Go ahead\r\n\n\>\> \r\n.\r\n\n\<\< 530 From/Sender name is not valid\r\n\n!! Expected response code 250 but got code “530”, with message “530 From/Sender name is not valid\r\n” (code: 530)\n!! Expected response code 250 but got code “530”, with message “530 From/Sender name is not valid\r\n”\nLog data:\n++ Starting Swift\_Transport\_EsmtpTransport\n\<\< 220 [postal.lusquan6.com](http://postal.lusquan6.com) ESMTP Postal/SARCUL\r\n\n\>\> EHLO [mautic.lusquan23.com](http://mautic.lusquan23.com)\r\n\n\<\< 250-My capabilities are\r\n250 AUTH CRAM-MD5 PLAIN LOGIN\r\n\n\>\> AUTH LOGIN\r\n\n\<\< 334 VXNlcm5hbWU6\r\n\n\>\> SWJla3dlRA==\r\n\n\<\< 334 UGFzc3dvcmQ6\r\n\n\>\> MTlmV0Q1WFNobGl4ZXc0SkZEbElEbzZR\r\n\n\<\< 235 Granted for lusquan-b-v/postal-lusquan6-com\r\n\n++ Swift\_Transport\_EsmtpTransport started\n\>\> MAIL FROM:\r\n\n\<\< 250 OK\r\n\n\>\> RCPT TO:\r\n\n\<\< 250 OK\r\n\n\>\> DATA\r\n\n\<\< 354 Go ahead\r\n\n\>\> \r\n.\r\n\n\<\< 530 From/Sender name is not valid\r\n\n!! Expected response code 250 but got code “530”, with message “530 From/Sender name is not valid\r\n” (code: 530) (code: 530) at /var/www/mautic/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Plugins/LoggerPlugin.php:124)”} {“hostname”:“mautic”,“pid”:162877}

“From/Sender name is not valid.” This error is coming from the email server you’re using ([postal.lusquan6.com](http://postal.lusquan6.com)) so the issue may not lie with mautic.

---

<div class="post-metadata">

**Author:** ![david001](https://avatars.discourse-cdn.com/v4/letter/d/a88e57/32.png) [@david001](https://forum.mautic.org/u/david001)\
**Post date:** [August 10, 2023, 2:35pm UTC](https://forum.mautic.org/t/email-fails-to-send-most-time/28878/7 "2023-08-10T14:35:52Z")

</div>

Okay. I will probably check the server config settings
