The site:export command mistakenly exports specific pre-existing user roles and simple config
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3556992. -->
Reported by: [pritishkumar](https://www.drupal.org/user/3520580)
Related to !673
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>While testing the site export and import workflow in Drupal CMS 2.0 alpha, after applying the latest patches from the related merge request and working on the 2.x (alpha) setup, I encountered a validation error during the recipe import process.</p>
<p>The installation stops with the following error message:</p>
<pre>There were validation errors in system.mail:<br> - interface.default: The 'php_mail' plugin does not exist.</pre><h4 id="summary-steps-reproduce">Steps to reproduce</h4>
<ol>
<li>Install Drupal CMS 2.0 alpha (with the latest patches applied).</li>
<li>Use the site export feature to export an existing site as a recipe.</li>
<li>Attempt to install a new site using that exported recipe.</li>
<li>The import fails with a validation error related to system.mail.</li>
</ol>
<p>Note patches were applied for following two issues</p>
<ul>
<li><a href="https://www.drupal.org/project/canvas/issues/3550165#comment-16324441">https://www.drupal.org/project/canvas/issues/3550165#comment-16324441</a></li>
<li><a href="https://www.drupal.org/project/drupal_cms/issues/3556831">https://www.drupal.org/project/drupal_cms/issues/3556831</a></li>
</ul>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>The issue appears to be caused by the following configuration block generated in the exported recipe.yml:</p>
<pre>system.mail:<br> simpleConfigUpdate:<br> interface:<br> default: php_mail<br> mailer_dsn:<br> scheme: sendmail<br> host: default<br> user: null<br> password: null<br> port: null<br> options: { }</pre><p>The php_mail plugin reference should be updated or removed to reflect the mailer configuration system used in Drupal CMS 2.x alpha.<br>
Removing this section allows the recipe import to complete successfully.</p>
<h3 id="summary-ui-changes">User interface changes</h3>
<h3 id="summary-data-model-changes">Configuration changes</h3>
> Related issue: [Issue #3557052](https://www.drupal.org/node/3557052)
issue