Page 14 of 31
This article is from ubuntu-tutorials.com
I’ve got a few servers in different places around the country and try to monitor them using the logwatch utility. One problem that I’ve run into however is that a few of these servers are not able to send their logwatch emails to me, based on email restrictions by the ISPs. I spent some time this afternoon researching what was required to have my servers authenticate to my gmail account and send me the mail that way. This setup assumes Ubuntu 8.04 (or later) and Postfix.
Install the required packages
sudo aptitude install postfix libsasl2 ca-certificate libsasl2-modules
Configure Postfix
This tutorial will not outline how to configure your postfix server, but we’ll jump directly to the relayhost section. You’ll want to add the following lines to your /etc/postfix/main.cf file:
relayhost = [smtp.gmail.com]:587
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
smtp_tls_CAfile = /etc/postfix/cacert.pem
smtp_use_tls = yes
The above lines are telling Postfix that you want to relay mail through gmail on a specific port, telling it to authenticate, and where to find the username and password. The last three lines specify the authentication types supported, where the certificate authority file is and that it should use tls.
Define Username and Password
Next we’ll need to populate the sasl_passwd file. Create the file /etc/postfix/sasl_passwd with the following contents:
[smtp.gmail.com]:587 user.name@gmail.com:password
This file should have restrictive permissions and then needs to be translated into a .db that Postfix will read.
sudo chmod 400 /etc/postfix/sasl_passwd
sudo postmap /etc/postfix/sasl_passwd
At this point you can restart Postfix and it should work, however it will complain about not being able to authenticate the certificate. To take care of this issue we’ll use the ca-certificate package we installed and tell it where it can validate the certificate.
cat /etc/ssl/certs/Thawte_Premium_Server_CA.pem | sudo tee -a /etc/postfix/cacert.pem
Go ahead and reload postfix (sudo /etc/init.d/postfix reload) and you should be set.
Följ sitt fotbollslag under specialiserade webbplatser.
Vänligen tänk hur ti förbättra denna tjänst i kommentarerna nedan.
| Webbsida | FOTBOLLSLAG |
| http://www.Alltomhacken.se | Alltomhacken.se |
| http://www.alltomhelsingborgif.se | Helsingborg IF |
| http://www.alltomhammarby.se | Hammarby |
| http://www.alltomgais.se | Gais |
| http://www.alltomelfsborg.se | Elfsborg |
| http://www.alltodjurgarden.se, http://www.alltomdjurgården.se, http://www.alltomdjurgarden.se, http://www.alltodjurgården.se | Djurgården |
| http://www.designnews.se | Design news |
| http://www.psspy.se | Dagens PS |
| http://www.alltombrommapojkarna.se | Brommapojkarna |
| http://www.alltomtrelleborgff.se | Alltomtrelleborgff.se |
| http://www.alltomorgryteis.se | Alltomorgryteis.se |
| http://www.xn--alltomrebrosk-nmb.se | Alltomörebrosk.se |
| http://www.alltomorebrosk.se | Alltomorebrosk.se |
| http://www.alltommalmoff.se | Alltommalmoff.se |
| http://www.alltomkalmarff.se | Alltomkalmarff.se |
| http://www.alltomifkgoteborg.se | Alltomifkgoteborg.se |
| http://www.alltomifelfsborg.se | Alltomifelfsborg.se |
| http://www.alltomhalmstadbk.se | Alltomhalmstadbk.se |
| http://www.alltomhacken.se | Alltomhacken.se |
| http://www.alltomgefleif.se | Alltomgefleif.se |
| http://www.allamotornyheter.se | allamotornyheter.se |
| http://www.alltomaik.se | AIK Fotboll |
A lot of work last weeks.
Check those
The interesting think is that two of them are on Rails (www.mebelicomfort.com, shop.djibutzo.com) , one of them is on WordPress and the last one is on some custom PHP framework.
And meanwhile we are doing a lot of refactoring on our company website psspy.se, which finally is starting to look good.
After so much work I think that I will be tired but I am ready now for 6 websites for 1 week.
Usefull tool to find fast the password. http://www.wpacracker.com/
I have start using Pidgin to read blogs, stay online on twitter, and facebook.
I recommend this to all my friends.
Предимства
- Качеството на Българският интернет е ОК
- Дават добри отстъпки ако си платиш за година
Недостатъци
- При кабелна повреда оставате без интернет мин 3 дена
- Чуждестранният често спира или е много бавен
- Support-а им е от надути админчета, които са толкова велики че просто няма как да ви помогнат на вас простосмъртният дебил.
- Съпорта не записват повредите и да получите обезщетение от тях за времето, което сте нямали интернет си е цяла магия.
- Докато пиша тази статия седя на холдон в 01 ч. явно спят копеленцата
- Мрежата им е баната от bitme.org и други известни torrent тракери
- Спират ти Интернет-а в ноща петък с/у събота и имат една работща каса на майната си
- Спирането се изразява в някакво глупаво прокси което ти прецаква всички отворени страници до момента
- Тъпаците още не вдигат сигурно спят дълбоко
Извод
Ако можете изберете друг доставчик.
get the gem from here
http://github.com/timcharper/spork
How to fix the Missing error
http://chrisblunt.com/blog/2009/08/28/rails-configuring-rspec-for-spork/
Check those links if you want to be ontop of the securuty
- CIS Benchmarks – contains requirements from the Center for Internet Security (CIS) benchmarks.
- DCID – contains requirements from the Director of Central Intelligence Directives (DCID).
- DISA UNIX STIG – contains modules that address DISA UNIX Security Technical Implementation Guides (STIGs) security recommendations.
- FERC CIP – contains modules that address the Critical Infrastructure Protection (CIP) standards for electricity distributors.
- JAFAN – the Joint Air Force-Army-Navy (JAFAN) manual established the security policy and procedures for storing, processing, and communicating classified Department of Defence (DoD) Special Access Program (SAP) information in information systems.
- NISPOM – contains modules that address the National Industrial Security Program Operating Manual (NISPOM).
- PCI DSS – Payment Card Industry Security Standards Council includes members from Visa, MasterCard, American Express, Discover, and JCB International Credit Card Company. This council administers the Data Security Standard (DSS).
- Web Services Protection – contains modules that address standard security functionality to provide protection.
© 2026 Ivo Bardarov
Theme by Anders Norén — Up ↑






