# Set peer\_name for SMTP SSL/TLS Authentication

**URL:** <https://forum.mautic.org/t/set-peer-name-for-smtp-ssl-tls-authentication/32274>\
**Category:** Product Support\
**Created:** [June 5, 2024, 11:52am UTC](https://forum.mautic.org/t/set-peer-name-for-smtp-ssl-tls-authentication/32274 "2024-06-05T11:52:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pro-emailer](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/pro-emailer/32/12615_2.png) [@pro-emailer](https://forum.mautic.org/u/pro-emailer)\
**Post date:** [June 5, 2024, 11:52am UTC](https://forum.mautic.org/t/set-peer-name-for-smtp-ssl-tls-authentication/32274/1 "2024-06-05T11:52:56Z")

</div>

Hi,

My Mautic version is: v4.4.9.

Is there a way to specify the peer\_name for SSL/TLS communication.

I want to avoid errors like these:  
stream\_socket\_enable\_crypto(): Peer certificate CN=`mail.example.com' did not match expected CN=`localhost’.  
I want to set “localhost” for SMTP host instead of the FQDN for my specific workflow.

For example, in PHPMailer we can define the peer\_name with this:  
$mailInstance-\>SMTPOptions = array(  
‘ssl’ =\> array(  
‘peer\_name’ =\> ‘[mail.example.com](http://mail.example.com)’,  
)  
);

I haven’t found such a config in local.php or in the settings in the UI admin panel of Mautic.
