duanmangxie7131 2016-02-13 16:41
浏览 63

错误连接mandrill(Laravel)

I have an issue with the mandrill API, I got this message :

Failed to connect to mandrillapp.com port 443: Connection timed out

It's works on my production server (ex mysite.com), but not on my dev server (ex mysite.com:8080).

The two servers have same config by the way.

Anyone knows why I got this issue ?

Thanks !

  • 写回答

1条回答 默认 最新

  • dongshen7561 2016-02-13 19:19
    关注
    1. Make sure your hosting provider or internet provider (ISP) allows outbound SMTP connections. Some shared hosting providers only allow outbound SMTP connections on dedicated servers, while others block them completely. In some cases, hosting providers might redirect the connection, so instead of connecting to smtp.mandrillapp.com, you connect to their local server instead.
    2. Make sure the port you've selected is one that your hosting provider or ISP has available for outbound SMTP connections. Some hosts block all connections on port 25, for example, so you can try using a different supported port.
    3. Double check that you're using a valid API key to connect via SMTP, and not the password that's used to log in to Mandrill's web application.
    4. If you're using Postfix, make sure that you have an SASL library (like libsasl2 or cyrus) installed and that it's up to date. Otherwise, you may be connecting but not passing authentication credentials.
    5. For other SMTP libraries, make sure you're using LOGIN or PLAIN authentication methods.

    Once you've confirmed all of the above, if you're still seeing issues, please enable additional logging in your SMTP program or library. If you're using an integration, contact the integration developer for information on configuring logging of the SMTP conversation.

    Where do I find my SMTP credentials?

    After you create a Mandrill account, get your SMTP credentials on the SMTP & API Info page in your account.

    The SMTP password is any active API key for your account, not the password used to log in to Mandrill. The credentials list port 587, but any port supported by Mandrill will work, and there's no configuration change needed within Mandrill to activate one of the alternate ports.

    Which SMTP ports can I use?

    You can use port 25, 587, or 2525 if you're not encrypting the communication between your system and Mandrill or if you want to use the STARTTLS extension (also known as TLS encryption). SSL is supported on port 465.

    ISPs may redirect traffic on certain ports, so it's up to you which port you use.

    评论

报告相同问题?

悬赏问题

  • ¥15 目详情-五一模拟赛详情页
  • ¥15 有了解d3和topogram.js库的吗?有偿请教
  • ¥100 任意维数的K均值聚类
  • ¥15 stamps做sbas-insar,时序沉降图怎么画
  • ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看
  • ¥15 关于#Java#的问题,如何解决?
  • ¥15 加热介质是液体,换热器壳侧导热系数和总的导热系数怎么算
  • ¥100 嵌入式系统基于PIC16F882和热敏电阻的数字温度计
  • ¥15 cmd cl 0x000007b
  • ¥20 BAPI_PR_CHANGE how to add account assignment information for service line