将电子邮件发送到Gmail时收到此消息。
此消息没有身份验证信息或未通过421-4.7.0身份验证检查。为了最好地保护我们的用户免受垃圾邮件的侵害,已阻止421-4.7.0消息。
我尝试添加public class Startup {
public Startup(IConfiguration configuration) {
Configuration = configuration;
}
public void ConfigureServices(IServiceCollection services) {
services.AddOptions();
services.AddMvc();
services.AddSingleton<RealtimeService>();
}
public IConfiguration Configuration;
public void Configure(IApplicationBuilder app) {
app.UseCors(x => { x.AllowAnyHeader(); x.AllowAnyOrigin(); x.AllowAnyMethod(); });
app.Map("/api", (x) => {
Debug.WriteLine($"api:{DateTime.Now.ToShortTimeString()}");
x.UseMvc(); //passes through if i use 'app.UseMvc'
});
app.Map("/ws", (x) => {
Debug.WriteLine($"ws:{DateTime.Now.ToShortTimeString()}");
x.UseMiddleware<RealTimeWare>(); // works !!
});
}
}
,SPF
和DMARC
,但仍然收到相同的错误消息。