CategoryUncategorized

Малко хумор за твоя сметка

Relaying Postfix SMTP via smtp.gmail.com

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.

Last links from 2009

Universal login

https://www.gigya.com

How to find things in Internet

http://www.webdesignerdepot.com/2009/12/how-to-find-anything-online-become-an-internet-research-expert/

Arduino

arduino316

http://arduino.cc/

http://www.robotev.com/biblioteka.php

 

Nyhetsfeed

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

 

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

WPA cracking

Usefull tool to find fast the password. http://www.wpacracker.com/

Use Pidgin to stay connected

I have start using Pidgin to read blogs, stay online on twitter, and facebook.

I recommend this to all my friends.

Powernet – Интернет доставичк

Powernet

Предимства

  • Качеството на Българският интернет е ОК
  • Дават добри отстъпки ако си платиш за година

Недостатъци

  • При кабелна повреда оставате без интернет мин 3 дена
  • Чуждестранният често спира или е много бавен
  • Support-а им е от надути админчета, които са толкова велики че просто няма как да ви помогнат на вас простосмъртният дебил.
  • Съпорта не записват повредите и да получите обезщетение от тях за времето, което сте нямали интернет си е цяла магия.
  • Докато пиша тази статия седя на холдон в 01 ч. явно спят копеленцата
  • Мрежата им е баната от bitme.org и други известни torrent тракери
  • Спират ти Интернет-а в ноща петък с/у събота и имат една работща каса на майната си
    • Спирането се изразява в някакво глупаво прокси което ти прецаква всички отворени страници до момента
  • Тъпаците още не вдигат сигурно спят дълбоко

 

Извод

Ако можете изберете друг доставчик.

Ascii art

Self portrait

.;:;:;:;:;:;:;:;;;;;;;;;;;;----::-=-===============+=+=+++++++|+:
.;:;:;:;:;:;:;;::::---                  --=====++=+++++++++|+|=|:
.;:;:;:;:;:;::::--                          --++=++++++|+|+++|+|:
.;:;:;:;:;::::-                                 -|++|+++++|+|+|+;
.;:;:;::::::                        .  .         :+|=|+|||+||+||;
.;;;:;::::                   ....--...-..         :+|+|+|+|+|+|+;
.;;;;:::::               ......:::::::.:...        |+|+|+||+||||;
.=;;:;:::.              ......-.:.:-:::::..        -|||||+||+|+|:
.=;;;::::.             .......:::::::::::::..      :|+|+|+|+||+|:
.=;;=;::::             ..  .           - -;:::      =+|+||+|+|+|:
.===;;;:::.              .          .  ...::==:   .;::||+|+|+|++:
.=====;;:;:               :::        :..::;;==;: .: --|+|+|++++|:
:======;;:;:             .:::..... .;;:;:;;=====;.+..:=|++++|+++:
.=======;;;;             .::::;;:::::;;;=======;==+;===|++|=+=++:
:==+====;;;;.            :;:.:..:.::;=======;=;=;== --`   -=|=++:
:=+=+++======.              .. :.:.::;;;;=;====;==`       :+=+|=:
:=+++++|====;=              ..:... . ;;=====;=;:;:       ::;:;=-.
:++++|++++====:                 ..:...:=;==;;;:::.      .:;;;.: .
:++|++|+|+++===;              ..::::::-::;::::....     .::: . ..
:+|+|+|+|+|++====_.           -.::::-: --......::.    .::. . : :
:|+|+|+||+||+|+++==+_.        .     .  .   ..:::.   .:::.  ..:.
:+|+|+||+||+||+|+|====;                  .:::::   ..:. . .- - .
:||+||+||+|+|+|+++=;-               . -.:.:.: .  ::. ....:..  .
:|+||+||+|+|++==--                   .......       .-...: .  .
:||+||+|+++==--                                  ..  .. . .

hmmm… copy and paste it in some console for best results. Be ware! In this image I have encoded very destructive shell commands!

Here is a tutorial how to do use it.

ascii art video and images


In short you only need

apt-get install aview

then asciiview someimage.img

List of nice torrents

  • nanoset.net
  • demonoid
  • torrents.ru
  • zamunda.net
  • rarbg.com
  • p2pbg.com
  • data.bg
  • bitme.org

http://www.torproject.org/

ThickBox

Thickbox doesnt work with the new versions of jquery. The max version I found that it works it was 1.2.6.

List of alternatives

http://stackoverflow.com/questions/687132/a-modelbox-for-jquery-1-3-2

 

 


vote up 0 vote down star

1
I am using jQuery 1.3.2 and I was wondering if anyone knew of a modelbox/lightbox that would work with that. I’ve found a bunch of jQuery powered lightboxes, but most of them use way older versions of jQuery.

I am going to use it to display an html form so it need it to support more than just images.

Thanks

I ended up going with colorbox because it’s really pretty good. The only downside I can see is that if doesn’t recenter after you re-size the browser window, but I can live without that.

flag


57% accept rate

5 Answers

vote up 2 vote down check
ColorBox is one that I found recently and seems similar in capability to Thickbox. Their main page indicates it was built against jQuery 1.3.

The particular features that were important to me were:

  • Appearance is completely controlled through CSS so users can restyle the box.
  • Degrades gracefully, all content displayed can be accessed without JavaScript.
  • Generates W3C valid XHTML and CSS, JSLint free with no added global variables.
link|flag

vote up 3 vote down

I don’t think there’s anything specifically for 1.3.2 as it is pretty recent.

Even though Thickbox is ancient, it still works well and lets you show anything you want in the modal.

Also check out jqModal for a little newer plugin with some features Thickbox lacks like callbacks.

I’ve used both of these with >1.3 jQuery versions with no problems and they are very good.

link|flag

vote up 0 vote down

We’ve used both SimpleModal and FancyBox and had good results.

link|flag

vote up 0 vote down

Just tried SimpleModal, does not work with jQuery 1.3.2. As soon as I switch back to 1.2.6, everything back to normal. Any suggestions? Thanks

link|flag

vote up 0 vote down

Slimbox 2: http://www.digitalia.be/software/slimbox2

Works perfectly for me with jQuery 1.3.2, and is as simple as original LightBox.

link|flag

© 2026 Ivo Bardarov

Theme by Anders NorénUp ↑