Skip to main content

Posts

How to send mail from Ubuntu Server

We have our own in-house dedicated web server at our company running Ubuntu Server 13.04. Recently we upgraded most of our websites to the content management systems and added the functionality of user interaction and eCommerce. We wanted to have email notification whenever a contact form or new eCommerce order is submitted. I tried a number of ways to enable send mail functionality on the Ubuntu web server but I am going to share here the simplest and easy way of doing this; From Ubuntu Server Terminal windows; Install ssmtp: sudo apt-get install ssmtp Edit the ssmtp config file : nano /etc/ssmtp/ssmtp.conf Enter the following contents in the file; root= username@gmail.com mailhub=smtp.gmail.com:465 rewriteDomain=gmail.com AuthUser= username AuthPass= password FromLineOverride=YES UseTLS=YES Replace the username and password with your Gmail or Google Apps details. Save the file and exit nano editor. You are done ! Now to test that everything is working fine. In
Recent posts

10 reasons why I don't want Shari'ah in Pakistan

Religion and how I choose to practice it is my business and not that of the State.  Enforcing Shari'ah will not make me a better Muslim nor will it make Pakistan a welfare state. The world's welfare states are all governed by secular governments.  I reject the idea that Shari'ah in any form can be enforced by those who have raped and plundered my country, blown up schools and mosques and beheaded soldiers. I will not give these criminals the right to dictate to me.   I will not give up my civil rights, including freedom of thought and expression, under the guise of Shari'ah.   I stand against acts like wife beating and the premise that rape requires 4 witnesses, all of which can be justified under Shari'ah law. Virtually anything can be justified by quoting religious scripture, and the context or interpretation of quoted text is usually not questioned. An example is a heinous crime like the Peshawar church blast being declared "in accordance with Shari&#

History of Bagh

From the end of seventeenth Century up to 1837 A.D. Poonch was ruled by the Muslim Rajas of Loran. It then fell in to the hands of Raja Fiaz Talab Khan of Rahuri. In 1846, this area was handed over to Maharaja Gulab Singh under the treaty of Amritsar. Before this transfer, Poonch was considered a district of Lahore. Maharaja Gulab Singh handed over Poonch and some other areas to his nephews, Jawahar singh and Moti Singh, with the condition that they would not make any administrative changes without the consent of Maharaja of Kashmir. Poonch was annexed and converted in to a Jagir by Maharaja Hari Singh in 1935-36 by the deposing Raja establish their rule in Poonch. In 1947 when Pakistan came in to being, the people of Poonch started on armed struggle afainst the Dogra and Indian Forces.

Fanna

The movie, Fanaa, starts with Kajol saluting the Indian flag and this act sets the tone for the entire movie: of Kashmiris being patriotic Indians, of an Islamic movement being thrust upon them. If all Kashmiris were patriotic Indians, there wouldn’t be the need of 0.7 million troops to ‘control them’ and a movement can not be thrust upon a people until and unless they are ‘fed up’ of the present regime. Kajol is a part of Independence day celebrations choir representing Kashmir. Her parents see her off in Udhampur. So desperate to get some Kashmir in the movie, the movie makers made another mistake: Kashmiris never (almost) travel from Udhampur to Delhi on a train. The most convenient route is by bus to Jammu and onwards to Delhi. For a non Kashmiri, it does not seem to be a significant mistake. But, a Kashmiri will look at this scene and wonder how long it will take for India and Indians to understand him.