Kashyap Makadia
asked on
Mcafee VirusScan Enterprise 8.7i With Antisparyware blocked Asp.Net SMTP(Not Local) server
I Have installed McAfee 8.7 VirusScan Enterprise with Antisprayware. and i Uses Asp.Net 2.0 for for mail sending for my developing website i have remote site smtp settings.
when i send email it display it is failed.
even i set settings on VirusConsole>AccessProtect ion>Antivi rus Standard Protection>Prevent mass mailing worms form sending mails
block checkbox is removed bu i still not sending emails.
when i send email it display it is failed.
even i set settings on VirusConsole>AccessProtect
block checkbox is removed bu i still not sending emails.
ASKER
Error : Failure sending mail.
SendMail(MailFrom, MailTo, MailSubject, MailBody)
{
try
{
if(MailFrom==null)
{
MailFrom="Some Email address of my website";
}
MailMessage msg = new MailMessage(MailFrom, MailTo, MailSubject, MailBody);
msg.IsBodyHtml = true;
SmtpClient clnt = new SmtpClient();
clnt.Credentials = new NetworkCredential("USERNAME", "PASSWORD");
clnt.Send(msg);
msg.Dispose();
return 1;
}
catch
{
return -1;
}
}
Here a sample of how we do it.
CT
CT
<?php
$fileloc="pdf/11000028.pdf";
$filename="11000028.pdf";
$filetype=="application/octet-stream";
if ($filetype>"") {
$message= 'Test message';
// MAIL SUBJECT
$subject = "Mail with doc file attachment";
// TO MAIL ADDRESS
$to="to@mail.com";
// MAIL HEADERS
$headers = "MIME-Version: 1.0\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\n";
$headers .= "From: Name <name@name.com>\n";
// MAIL HEADERS with attachment
$fp = fopen("pdf/11000028.pdf", "rb");
$file = fread($fp);
$file = chunk_split(base64_encode($file));
$num = md5(time());
//Normal headers
$headers = "From: Name<test@test.com>\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: multipart/mixed; ";
$headers .= "boundary=".$num."\r\n";
$headers .= "--$num\r\n";
// This two steps to help avoid spam
$headers .= "Message-ID: <".$now." TheSystem@".$_SERVER['SERVER_NAME'].">\r\n";
$headers .= "X-Mailer: PHP 5".phpversion()."\r\n";
// With message
$headers .= "Content-Type: text/html; charset=iso-8859-1\r\n";
$headers .= "Content-Transfer-Encoding: 8bit\r\n";
$headers .= "".$message."\n";
$headers .= "--".$num."\n";
// Attachment headers
$headers .= "Content-Type:".$filetype." ";
$headers .= "name=\"".$filename."\"r\n";
$headers .= "Content-Transfer-Encoding: base64\r\n";
$headers .= "Content-Disposition: attachment; ";
$headers .= "filename=\"".$fileloc."\"\r\n\n";
$headers .= "".$file."\r\n";
$headers .= "--".$num."--";
// SEND MAIL
@mail($to, $subject, $message, $headers);
fclose($fp);
echo '<font style="font-family:Verdana, Arial; font-size:11px; color:#333333; font-weight:bold">Attachment has been sent Successfully.<br /></font>';
}
else
{
echo '<font style="font-family:Verdana, Arial; font-size:11px; color:#F3363F; font-weight:bold">Wrong file format. Mail was not sent.</font>';
//echo "<script>window.location.href='somewhere.html';</script>";
}
?>
ASKER
Dear
I want solution in the Asp.Net
My Code is works fine but not form local when McAfee installed
When I send mail form my local IIS 5.1 SMTP which is not blocked.
I want solution in the Asp.Net
My Code is works fine but not form local when McAfee installed
When I send mail form my local IIS 5.1 SMTP which is not blocked.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
There is no error returns
it displays that mail sent successfully
but mail is not received.
it displays that mail sent successfully
but mail is not received.
It seem you antivirus is blocking local email too. check it to see if there is a a setting that opens up local request.
I will do more research on this.
CT
I will do more research on this.
CT
Ah check this setting.
https://kc.mcafee.com/corporate/index?page=content&id=KB54134
Solution
To enable HTTP response inspection:
Launch the IntruShield Manager.
In the left hand pane, open Sensors.
Select the Sensor to configure, click Advanced, then click the HTTP Response Settings tab.
Choose a Sensor port to configure in the drop-down list.
For each Sensor port, select Inbound or Outbound to choose the direction in which HTTP response packets will be inspected.
Select Apply to confirm the changes.
CT
https://kc.mcafee.com/corporate/index?page=content&id=KB54134
Solution
To enable HTTP response inspection:
Launch the IntruShield Manager.
In the left hand pane, open Sensors.
Select the Sensor to configure, click Advanced, then click the HTTP Response Settings tab.
Choose a Sensor port to configure in the drop-down list.
For each Sensor port, select Inbound or Outbound to choose the direction in which HTTP response packets will be inspected.
Select Apply to confirm the changes.
CT
ASKER
Hi ComputerTechie
You tried very well but I didn't get any solution.
Thank you very much.
You tried very well but I didn't get any solution.
Thank you very much.
Have you tried to telnet to your SMTP server from the box in question? Ie: telnet yoursmtpserverip:25 This would allow you to quickly test if it is a Access Control Rule still blocking you or if it something else.
ASKER
Dear its done
but i need to stop three mcafee servuces
1)Access Protection
2)Buffer Overflow Protection
3)On-Delivery Email Scanner
but i need to stop three mcafee servuces
1)Access Protection
2)Buffer Overflow Protection
3)On-Delivery Email Scanner
CT