如何通过从我的工作站发送邮件使McAfee很酷? [英] How to make McAfee cool with sending mail from my workstation?

查看:571
本文介绍了如何通过从我的工作站发送邮件使McAfee很酷?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发服务器的应用程序,它必须偶尔发送邮件以通知用户。

  MailMessage mm = new MailMessage(); 

mm.To.Add(me@domain.net);
mm.From = new MailAddress(you@domain.net);
mm.Subject =J / K;
mm.Priority = MailPriority.Normal;
mm.IsBodyHtml = false;
mm.Body =问候和致意;

SmtpClient client = new SmtpClient(host.address.lcl);
client.Send(mm);

如果我将应用放在实际的服务器上,可以正常工作,但在我的工作站上,取决于我访问代码,它会默认地失败或抛出异常。在任一情况下,都会生成McLogEvent:

 阻止端口阻止规则(防病毒标准保护:防止
质量邮件发送邮件蠕虫)。

...异常说:

  System.Net.Mail.SmtpException:发送邮件失败。 ---> System.Net.WebException:
无法连接到远程服务器---> System.Net.Sockets.SocketException:
无法建立连接,因为目标机器主动拒绝它[IP&端口号]

我的工作站上的规则似乎正在保留邮件的生成,直接或间接地,但我不知道该怎么做积极拒绝的部分,因为如果McLogEvent文本似乎表明它不会那么远。


$ b $我应该指出,如果我使用System.Web.Mail它很好。这个缺点当然是关于这个命名空间的编译器消息被不赞成使用System.Net.Mail。



任何人都不知道如何使McAfee很酷,可以发送邮件我的工作站?

解决方案

右键单击McAfee图标,从sys托盘打开mcafee控制台,然后选择VirusScan Console



查看任务,访问保护



下的属性取消选中阻止端口25上的传出邮件的规则。



编辑 - 它被积极拒绝的例外只是因为McAfee不允许您在25端口连接到任何东西,所以异常只是认为你尝试了一个没有值得一提的是,如果您在企业网络上运行McAfee的企业版,该设置可以配置在比您的系统更高的级别o您可能无法更改它 - 如果是这样,请与您的系统管理员说话。


I am developing an application for a server and it must send mail occasionally for notifications to users.

MailMessage mm = new MailMessage();

mm.To.Add("me@domain.net");
mm.From = new MailAddress("you@domain.net");
mm.Subject = "J/K";
mm.Priority = MailPriority.Normal;
mm.IsBodyHtml = false;
mm.Body = "Greetings and salutations";

SmtpClient client = new SmtpClient("host.address.lcl");
client.Send(mm);

If I put the app on an actual server it works fine, but on my workstation, depending upon how I access the code, it either silently fails or throws an exception. In either case a McLogEvent is generated:

Blocked by port blocking rule (Anti-virus Standard Protection:Prevent 
mass mailing worms from sending mail).

...and the exception says:

System.Net.Mail.SmtpException: Failure sending mail. ---> System.Net.WebException: 
Unable to connect to the remote server ---> System.Net.Sockets.SocketException: 
No connection could be made because the target machine actively refused it [IP & Port Numbers] 

It looks like a rule on my workstation is working to keep the mail from being generated, directly or indirectly, but I'm not sure what to make of the "actively refused it" part, since if the McLogEvent text seems to suggest that it wouldn't get that far.

I should point out that if I use System.Web.Mail it works great. The drawback being of course compiler messages about this namespace being deprecated in favor of System.Net.Mail.

Anyone have any idea of how to make McAfee cool with sending mail from my workstation?

解决方案

Open mcafee console from the sys tray by right clicking on the McAfee icon and select VirusScan Console

View the properties under Task, Access Protection

Uncheck the rule that blocks outgoing messages on port 25.

edit - the exception saying that it was actively refused is just because McAfee isn't allowing you to make the connection on port 25 to anything, so the exception just thinks you tried a host which didn't have anything on 25 or had a firewall blocking 25.

It's worth pointing out that if your on a corporate network and you're running the enterprise version of McAfee, the setting may be configured at a higher level than your system, so you may not be able to change it - speak to your sysadmin if this is the case.

这篇关于如何通过从我的工作站发送邮件使McAfee很酷?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆