Wednesday, October 29, 2014

User nc to send smtp message in centos

nc is a handy tool in unix to test network connection and we can use it
to write script to send smtp message as well. It is useful when we
implement some kind of server monitoring scripts and want to send out
alarm messages.

In the example below, we use 'nc' to connect smtp-server at port 25 to
send out contents in email-msg.txt

#nc smtp-server 25 < email-msg.txt

The email-msg.txt contains the below commands to form the smtp dialogue.

#cat email-msg.txt
HELO my-server
MAIL FROM:<sender@domain1.com>
RCPT TO:<receiver@domain2.com>
DATA
Subject:This is a sample subject
This is a sample mnessage body
.
QUIT

Note the last line of the message body is a line starting with '.'.

Another point to note is that if we create the email-msg.txt in unix
environment, we probably need to ensure each line ends by CRLF rather
than just a line feed.

To do so, we can simply use the unix2dos command:

#unix2dos email-msg.txt

79 comments:

  1. Replies
    1. 🟢Hire the best and fastest HACKERS on the web today. We give you HACKING SERVICES better than any HACKING group you can find in the internet. Our HACKERS are available for 24/7, always ready to attend to you at any time of the day, anywhere in the world.

      🟢 There are no limits to what we can do. Don’t be surprised we say this. Hacking isn’t as difficult as it sounds, as so many HACKING equipments(softwares, virus, spyware, Trojan) are made available in the dark web and this has made HACKING very easy to perform. There are different varieties of Hacking Service we offer, such a as-:

      ▪️Phone📱📲 Hack, cloning & Tracking
      ▪️Computer 💻 Hacking
      ▪️Emails 📧 & Social Media account Hacks/password recovery
      ▪️Tracking/Finging People
      ▪️Raising Money 💰 using (Bitcoin Mining, Money Flip e.t.c)
      ▪️Tracking Scammers and Spammers.
      ▪️Recovery of deleted files e.t.c

      🟢If you need hacking services, PYTHONAX are the group you should contact. We have a strong policy that covers our Clients Privacy. We do not ask our Clients Targets and intention for any job given to us, we simply do our job and provide a strong security to Clients so that our services can’t be traced to them.

      🟠Payment for our services will only be collected after Customers have certified and confirmed the completion of their job. For no reason do we collect upfront for services. But note that Customers will have to pay for Hacking Equipments if necessary before a job would be done.

      🔴Beware of FRAUDSTERS claiming to be HACKERS and ripping people of their money, they saying things and share false testimonies to Attract people and Lure you to them. They are everywhere in the internet and could even be here in this site, be careful of them. We have come across so many of this FRAUDSTERS Victims and some have been lucky to get back what was falsely taken from them.

      Below are list of our emails you can contact if you need our services
      Email-:
      pythonaxhacks@gmail.com
      pythonaxservices@gmail.com

      PYTHONAX.
      2020 © All Right Reserved.


      Delete
  2. Thanks for sharing, nice post! Post really provice useful information!

    Giaonhan247 chuyên dịch vụ mua đồng hồ amazon với chia sẻ kinh nghiệm mua hàng trên Amazon và giải đáp mua hàng trên Amazon có đảm bảo không cũng như chia sẻ cách mua hàng trên ebay giúp các bạn mua hàng trên amazon vietnam uy tín nhất.

    ReplyDelete
  3. Hi, I do believe this is a great blog. I stumbledupon it ;) I'm going to come back yet again since i have saved as a favorite it. Money and freedom is the greatest way to change, may you be rich and continue to help others. aol mail sign in

    ReplyDelete
  4. Nice article, Which you have shared here about the SMTP. Your article is very informative and useful for those who are interested to know more about the Reliable SMTP Server. Thanks for sharing this article here.

    ReplyDelete
  5. What a Great post is this! I like this. It's awesome. I bookmark this page. And also told my friends to Book mark this. It can help everyone. Thanks for this post.
    To know more like this post just click here Best Vacuumc

    ReplyDelete
  6. Hello Sir,
    As a blog reader & writer you shared nice information this is very Usefull to us. Thank you.
    Looking for more best Achhamall deals !! Visit : achhamall (dot) com
    Shop your Online Digital Electronic Products. Invest in a good quality Product & get Best offers. shop now & Enjoy Free Shipping across India. our blog www.achhamall.blogspot.com kindly follow & like the post & comments.

    ReplyDelete
  7. For a long time me & my friend were searching for informative blogs, but now I am on the
    right place guys, you have made a room in my heart! i have already bookmarking this sites.
    i will back again. i truly motivated by you from blogging.Social Profile

    ReplyDelete
  8. This comment has been removed by the author.

    ReplyDelete
  9. Thanks for sharing this amazing blog.It is really an informative post, NECO QUESTION AND ANSWER EXPO 2019

    ReplyDelete
  10. Technosizzle is the hub of unlimited games reviews, games tricks and much more. Subscribe us for more and latest games on a daily basis. Technosizzle

    ReplyDelete
  11. This comment has been removed by the author.

    ReplyDelete


  12. Awesome blog. I enjoyed reading your articles. This is truly a great read for me. I have bookmarked it and I am looking forward to reading new articles. Keep up the good work!

    BIG DATA COURSE IN MALAYSIA

    ReplyDelete
  13. ou will get an introduction to the Python programming language and understand the importance of it. How to download and work with Python along with all the basics of Anaconda will be taught. You will also get a clear idea of downloading the various Python libraries and how to use them.
    Topics
    About ExcelR Solutions and Innodatatics
    Do's and Don’ts as a participant
    Introduction to Python
    Installation of Anaconda Python
    Difference between Python2 and Python3
    Python Environment
    Operators
    Identifiers
    Exception Handling (Error Handling)
    Excelr Solutions

    ReplyDelete
  14. :You will get an introduction to the Python programming language and understand the importance of it. How to download and work with Python along with all the basics of Anaconda will be taught. You will also get a clear idea of downloading the various Python libraries and how to use them.
    Topics
    About Excelr Solutions and Innodatatics
    Introduction to Python
    Installation of Anaconda Python
    Difference between Python2 and Python3
    Python Environment
    Operators
    Identifiers
    Exception Handling (Error Handling)

    [url=https://www.excelr.com/data-science-certification-course-training-in-singapore]Excelr Solutions[/url]

    ReplyDelete
  15. This is a very informative article for us. Really this is an amazing and helpful article. I’m Always get the new and latest article from this site and I like its very much .If you can get more another casino operated information and 카지노사이it’s helful.

    ReplyDelete
  16. Thank you for providing meaningful information, and if you need any help regarding cheap web hosting pakistan then come and visit us!

    ReplyDelete
  17. Thanks for sharing knowledge
    https://www.bigworld4u.com

    ReplyDelete
  18. Thank you for providing meaningful information, and if you need any help regarding Sarkari Job. in india then come and visit us!

    ReplyDelete
  19. Such a great informative post.. Really nice it for seo.. Thank you for sharing this with us. Keep posting!

    Search and Rescue Equipment

    ReplyDelete
  20. I love your article so much. Good job
    ExcelR is a global leader delivering a wide gamut of management and technical training over 40 countries. We are a trusted training delivery partner of 350+ corporate clients and universities across the globe with 28,000+ professionals trained across various courses. With over 20 Franchise partners all over the world, ExcelR helps individuals and organisations by providing courses based on practical knowledge and theoretical concepts.

    Excelr Solutions

    ReplyDelete
  21. Wow, This is simply brilliant post.
    Choice N Take promoting all types of product like Health & Beauty Jewelry Luggage & Bags Shoes & Dresses. The best site for cheap online shopping worldwide.
    for more information visit our site.
    Choiceproducts

    ReplyDelete
  22. Thanks for sharing about ...... Your blog is really informative for us..... How to Fix HP Printer is Offline to Online Issue. "We don't require any software installation to remotely help fix the issue with your printer as we provide onsite ...

    HP support assistant
    HP printer support assistant
    hp printer support
    hp printer assistant
    hp printers support
    hp printer support usa
    HP Cartridge Error
    HP Printer Offline

    ReplyDelete
  23. Usually I never comment on blogs but your article is so convincing that I never stop myself to say something about it. You’re doing a great job Man and Thanks for the post,Interesting stuff to read. Keep it up.
    We are provided Huge Number of Premium Wordpress theme and plugin, Web Templates, pc software graphics templates for Free DownloadSafe and secure Guarantee.

    ReplyDelete
  24. "I recently found many useful information in your website especially this blog page. Among the lots of comments on your articles. Thanks for sharing
    Age calculator apk"

    ReplyDelete
  25. Every business these days need to collect data at every point of the manufacturing and sales process to understand the journey of the product.
    This may include applications, clicks, interactions, and so many other details related to the business process which can help define goals in a better way.
    Therefore, we bring you the list of benefits which you can reap with the use of Digital Marketing Course in Sydney in your process of management.
    every business has a single reason for which the interaction of the customer and the seller is established and it is the product to be sold. Therefore, it is very crucial
    that you must add relevance to your product by understanding the needs of the customers with the addition of features and design improvements which can make your product a
    perfect fit for the target audience. This can be easily achieved with the right interpretation skills which you can only get with Data Analytics Certification.

    ReplyDelete
  26. Thank you brother .. I like this article, the information is very useful ...
    aplikasi edit foto terbaik android

    ReplyDelete
  27. Thanks for sharing this informative post! It's really helpful for beginners and business entrepreneurs!

    Search and Rescue Equipment

    ReplyDelete
  28. I have read your Excellent Post.This is Great Job. i have enjoyed your reading your post first time.
    i wnat to say thanks for this post..Thank You
    Satta king
    satta King

    ReplyDelete
  29. Best Article Buy marijuana online Excellent post. I appreciate this site. Stick with it! Because the admin of this web page is working, no doubt very quickly it will be well-known, due to its quality contents.This website was how do you say it? Relevant!! Finally, I’ve found something that helped me.

    ReplyDelete
  30. Best Article Freelancing tips
    Excellent post. I appreciate this site. Stick with it! Because the admin of this web page is working,
    no doubt very quickly it will be well-known, due to its quality contents.This website was how do you say it? Relevant!! Finally, I’ve found something that helped me.

    ReplyDelete
  31. Thankful to you for your post, I look for such article along time, today I find it finally. this one Such an Awesome Blog !! Keep up the Good Work !! all details about it really interesting.Gazab Post.

    ReplyDelete

  32. Thank you very much for your information.
    Australia ETA/eVisitor Visa
    is quiet easy to apply online from Singapore,
    Malaysia, United Kingdom, United States, Canada, France and including all others ETA Eligible Countries from our website.

    ReplyDelete
  33. This article content is really unique and amazing.This article really helpful and explained very well.So i am really thankful to you for sharing keep it up..

    gembet99

    ReplyDelete
  34. Thank you so much for the information that you have shared here with all of us. You have made it easier for us...

    fitness blog

    ReplyDelete
  35. If you want to know about the Desert tour and rates,For any query click the below link. Musandam tour

    ReplyDelete
  36. You are not sure on how to get your first e-commerce website development then visit web design services kanpur we also help you to promote your business with the email marketing and message marketing.

    ReplyDelete
  37. This article content is really unique and amazing.This article really helpful and explained very well.So i am really thankful to you for sharing keep it up..

    Abu Dhabi City Tour

    ReplyDelete
  38. best ever i seen content on any website as i search every day on google. good work keep it on.
    Are you looking for a property in Bhubaneswar then contact kalinga keshari rath
    kalinga keshari rath
    kalinga keshari rath

    ReplyDelete
  39. best ever i seen content on any website as i search every day on google. good work keep it on.
    Are you looking for a property in Bhubaneswar then contact

    ReplyDelete
  40. I really like this. Keep up the good work. Your blog is fantastic. I really appreciate it. I also wrote a blog on Travel and tourism. Just take a look. If you have some suggestions let me know because, you are very good in blogging. Thanks!!!
    combo deals For dubai attractions

    ReplyDelete
  41. I really like this. Keep up the good work. Your blog is fantastic.My website to visit at Go to Fb Page

    ReplyDelete
  42. Antarvasna Hindi Sex Stories: Home of Official Antarvasna with thousands of hindi sex stories written in hindi.
    hindi sex kahani

    ReplyDelete
  43. Exam BD » All Exam Results Bangladesh
    Bangladesh education result Online, All Exam Routine, National University Result, HSC Result 2020, PSC Result 2020, JSC result 2020, SSC result 2020, HSC Admission Result, University Admission Circular, IPO Result 2020
    and all type education news and update from ExamBD.com

    ReplyDelete
  44. The website is really nice I have seen many sites but none of them have discussed your details. Visiting your website greatly benefited. Hopefully in the future I will know better information through your website. I have a web site where you can Best Paid jobs in usa Best Paid jobs in usa. Best Paid jobs in usa. Thanks...

    ReplyDelete
  45. Great post thanks for sharing. Your website is very impressive. And the tips are beneficial too.
    Rest, If you are looking for FAST FUNDING, then Mantis Funding is the only financing company you should deal with! Launched in 2013, we have funded and supported thousands of small businesses across America. You could be NEXT. At Mantis Funding, we offers are competitive and fast; our approval process is holistic and business-friendly, and our procedures are fair and transparent.

    ReplyDelete

  46. Keto is mainstream, so supplements with BHB in them are getting increasingly well known, so the cost is probably going to go up. We would prefer not to guarantee a value here only for you to go submit your request and see a totally unique one


    https://deliver4superior.com/

    ReplyDelete
  47. Very informative post ! There is a lot of information here that can help any business get started with a successful social networking campaign !For more info:
    https://360digitmg.com/course/machine-learning-using-python-r
    https://360digitmg.com/course/artificial-intelligence-ai-and-deep-learning
    https://360digitmg.com/course/certification-program-on-big-data-with-hadoop-spark

    ReplyDelete

  48. Copies of passports for example to open a bank account

    Witnessing a power of attorney

    Certified copies of documents such as exam certificates

    Lost passports, share certificates or other documents on Notary West London

    ReplyDelete

  49. Copies of passports for example to open a bank account

    Witnessing a power of attorney

    Certified copies of documents such as exam certificates

    Lost passports, share certificates or other documents on Notary West London

    ReplyDelete
  50. At last I have found the article. Awesome content. I have got many information from the post.
    Thank you so much
    Freelancing tips

    ReplyDelete
  51. Very interesting information and very useful topic. I have information regarding data science course in Chennai.
    data-science training
    Data-Analytics course
    business analytics -Python course

    ReplyDelete
  52. Tamil sex stories - These sex stories is only for entertainment purpose. Here you can find best sex stories in your language. Share these Indian sex stories with your friends also.
    https://tamilkamaverihd.net/tamil-sex-stories/

    https://tamilkamaverihd.net/tamil-kamakathaikal/

    https://tamilkamaverihd.net/tamil-dirty-stories/
    https://tamilkamaverihd.net/

    ReplyDelete
  53. Swizz Auto Salvage across the country organize offers you remarkable access to used engines. We offer protection grade used OEM engines at the most aggressive costs on the web. Our engines are full congregations with all the included parts, and are prepared to introduce after accepting them. In contrast to other online used engines providers, we don't require a center charge or the arrival of the center.

    ReplyDelete
  54. I am really happy to say it’s an interesting post to read . I learn new information from your article , you are doing a great job . Keep it up

    Call Girl in Chennai
    Independent Russian Escorts
    Independent Housewife Escorts
    Cheap Rate Escorts in Chennai
    Chennaiindependent escort


    ReplyDelete
  55. May God bless and increase your knowledge for sharing this lovely article. It's a good article

    ReplyDelete
  56. great website to watch movies of netflix, download netflix apk https://www.netflixapkdownload.com

    ReplyDelete
  57. Very good article and I like it. Thank you for giving me information

    Rajagaming merupakan agen judi terpercaya & agen bola Indonesia yang menghadirkan judi slot online, judi casino, main bola jalan. Kami pun agen slot online dan bandar bola.

    Rajagaming hadir dengan berbagai game judi yang sangat baru dan lengkap dengan akses mudah untuk dimainkan melalui komputer atau smartphone. Kami pun menghadirkan Judi Slot online dan Bandar Bola dengan fitur terbaru 3D atau 4D dan tentunya mudahnya mendapatkan freespin atau Jackpot juga kami hadirkan di dalam website kami.

    RAJAGAMING.COM
    AGEN BOLA
    BANDAR BOLA
    JUDI CASINO
    MAIN BOILA JALAN
    AGEN SLOT ONLINE
    AGEN JUDI TERPERCAYA
    AGEN JUDI IDaN SPORTS
    SITUS JUDI SLOT IDN SPORTS

    Contact us RAJAGAMING.COM :
    Livechat : http://rajagaming.com/?ref=daftar
    Whatsapp : +66612979036
    Line : RAJAGAMING
    Facebook : @rajagamingofficial

    ReplyDelete
  58. Very good article and I like it. Thank you for giving me information

    Please Visit to mboplay888.com Slot gambling agent, ball, live casino Indonesia

    Nikmati bonus menarik dari MBOPLAY :

    Welcome Bonus New Member 20% ALL GAMES [ BOLA, POKER, LIVE CASINO, SLOT, IDN LIVE ]

    Promo Cashback Mingguan BOLA UP TO 7.5%
    Promo Cashback Mingguan BOLA UP TO SLOT 1%
    Promo Cashback Mingguan BOLA UP TO LIVE CASINO 1%
    Bonus Next Deposit 5% [ BOLA, LIVE CASINO, SLOT, IDN LIVE ]
    Komisi IDNPOKER 0.5%

    MBOPLAY
    SPBO BOLA
    AGEN SBOBET
    BANDAR JUDI
    AGEN IDN SPORTS
    BURSA TARUHAN BOLA
    JUDI BOLA TERPERCAYA
    BANDAR SPORTS ONLINE TERPERCAYA

    Contact us MBOPLAY.COM :
    Livechat : https://mboplay88b.com/?ref=daftar
    Whatsapp : +6282117858228

    Link Alternatif MBOPLAY :

    https://mboplay88b.com/?ref=daftar
    https://mboplay88c.com/?ref=daftar
    https://mboplay888.com/?ref=daftar

    ReplyDelete
  59. A rangefinder is a camera equipped with a rangefinder. It enables the shooter to take distance-measured pictures that are extremely focused and sharpVisit rangefindergear!

    ReplyDelete