Need help setup windows server 2008 SMTP server

蓝咒 提交于 2019-12-22 11:35:11

问题


I am trying to setup windows server 2008 smtp server to relay emails to gmail smtp. Everything appears to be setup but it is not sending emails. Could you please help me figure out whats wrong.

Below is the setup:

  • Windows server 2008 with SMTP server feature installed. Need SMTP server to forward all messages to gmail smtp server to send.
  • I have google apps setup for my domain, also I can send emails throught my test app using
    gmail smtp.
  • SMTP Server Configuration: By default has default smtp server virtual directory.
  • In Properties of that virtual smtp server changed following.

  • Fully qualified domain name = mydomain.com

  • smart host = smtp.gmail.com
  • TCP Port = 587
  • Out Bound Security = Basic Authentication(my username password for google apps email account)
  • In domains list under virtual smtp server. I have one default domain that's server dns. I added another one for my domain name.

With above setup i am trying to redirect all email to gmail smtp. I tested connection to smtp.gmail.com from server on port 587 through telnet and it works.

I am trying to use above server from my web application also by just dropping emails in pickup directory. It get's picked up and also accepts request form web application but never sends an email.

I can see that it adds those emails in queue folder but it stays there forever.

When i try to send emails from web app to above server it rejects if To address is other than my domain.(Am i missing something in list of domains)


回答1:


Thanks for all answers, finally found solution there is a property for maximum sessions which value was 0 by default. Changed it to 100 and it send all pending emails immediately.




回答2:


Possible reasons are that some SMTP servers block the outgoing messages if there domain name mismatch, possible to prevent spam mails from being sent. So for example, I will not be able to send my email with an address abc@mydomain.com from my domain yourdomain.com.

Hope that helps.




回答3:


Ensure your sending domain is the same as the google apps domain

Ensure your sending address is a real address and not just an alias

IIRC you need to use STARTTLS (SSL) not basic authentication




回答4:


This souds like a DNS issue. Check your /badmail directory. It will have .bad and .bdp files in there. You can open these in notepad (there will be some binary in there).

However, it may point to the possible problem.

You may also want to try and enable logging on the SMTP service. There may be something in there.



来源:https://stackoverflow.com/questions/669754/need-help-setup-windows-server-2008-smtp-server

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!