How to disable “verify_peer” with Symfony Mailer component?

后端 未结 3 1425
轻奢々
轻奢々 2021-01-11 18:06

I\'m configuring a mail server (postfix), with a self signed certificate, and it seems this self signed certificate is a problem for the Symfony Mailer component.

On

3条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-11 18:21

    You can use:

    MAILER_DSN="smtp://user:pass@localhost?encryption=ssl&stream_options[ssl][verify_peer]=false&stream_options[ssl][verify_peer_name]=false&stream_options[ssl][allow_self_signed]=true"
    

提交回复
热议问题