I found it online and sharing with you guys.
What port should you chose for your SMTP server when you’re setting it on a mail client?
Simply put, computer ports are the communication endpoints of a computer connected to a network. They are separated to differentiate the several processes and make it easier to handle them: so each one has a particular purpose and is associated to a specific protocol.
Usually an outgoing server employs port 25: it’s the default SMTP port. However, some IPs deny its use because of the massive spam and malware traffic by which is affected. This issue is raised in particular when you need to switch to another ISP – for instance, when you’re travelling and connecting to a new provider. In this case you can try to use port 587 or port 465 to avoid the block.
More in detail: port 587 is supported by almost every outgoing SMTP server and it’s useful for unencrypted or TLS connections; while port 465 is the right choice if you need to connect via SSL.
turboSMTP can work both on port 587 and 465, but also on 2525 and 25025. Moreover, it completely avoids the “another ISP” issue: in fact, once you have set our SMTP as default you don’t need to configure it again or switch to other ports.
I have been trying to send email using PHP script and XAMPP Lite. The PHP script itself is not a biggies but the default XAMPP configuration doesnt allow me to send out the email.
My objective is to use Gmail as my SMTP (rather than localhost). After some digging and try and error.. Here is my solution :
Edit your php.ini (xamppphpphp.ini). Search for [mail function] and change these parameters accordingly :
SMTP = smtp.gmail.com smtp_port = 587 sendmail_from = [your_gmail_username]@gmail.com
Note: This gmail account will be used to send the email
sendmail_path = â€œâ€D:xamppsendmailsendmail.exeâ€ -tâ€
Note: I did install my xampp at D:xampp
Comment the “Mercury”and “A free mail service example” contents as shown below:
# Mercury #account Mercury #host localhost #from postmaster@localhost #auth off
# A freemail service example #account Hotmail #tls on #tls_certcheck off #host smtp.live.com #from [exampleuser]@hotmail.com #auth on #user [exampleuser]@hotmail.com #password [examplepassword]
account Gmail tls on tls_certcheck off host smtp.gmail.com from [your_gmail_username]@gmail.com auth on user [your_gmail_username]@gmail.com password [your_gmail_password]port 587
account default : Gmail
Many thanks to this link . His original post point me to the right direction. The only missing piece is port number in sendmail.ini where gmail no longer use port 25 as smtp port but 587. Hope this help.
Studying ” ethical hacking has given me an upper hand on the hackers.” Hackers are people who learn stuff on their own. But we on the other hand are taught how to use stuff for saftey purposes.
One of our tools are security companies like RSA Anti-Fraud Command Center. Hackers basically inject their script code and upload it on FREE SCRIPT WEBSITES. Most developers are unaware of that fact and to save their time they download such scripts and upload it to their website. These script create automatic login pages that redirect to other websites. These are called Fraud Pages.
These pages should be reported immediately to RSA Anti-Fraud Command Center. What they do is they send an email just like below :
It appears that your website ******.com has been hacked by a fraudster. It is now hosting a phishing attack against RBC.
Please remove the fraudulent folders/files as soon as possible and secure your website as it has been compromised.
Please note that it is possible that the fraudulent content is embedded in your websiteâ€™s legitimate files.
In addition, please send us any source files of the attack.
Please let us know if you have any questions or need further assistance. We appreciate your cooperation.
to the concerned authority and tell them to remove it. This is a very good way since they allow the developer to correct his mistake and be careful for next time.
You can see the contact information in their email and whenever you come across any such illegal page.
Just report it !!
Help us keep web clean and safe for upcoming generation !!
Note : This blog was written by a friend.