archlinux: postfix +gmail

Aupa oingutan archlinux-eko postfix-e konfigurekue gmail-egaz ibiltzeko, debian-elez idxe bardiñe da baie gauze batzuk kanbidxe bidiez :)

$ su
# pacman -S postfix openssl
# mv /etc/postfix/main.cf /etc/postfix/main.cf.bak

/etc/postfix/main.cf

# SMTP relayhost
relayhost = [smtp.gmail.com]:587

## TLS Settings
smtp_tls_loglevel = 1
smtp_tls_CAfile = /etc/postfix/certs/CAcert.pem
smtp_tls_cert_file = /etc/postfix/certs/mycert.pem
smtp_tls_key_file = /etc/postfix/certs/mykey.pem
smtp_use_tls = yes
smtpd_tls_CAfile = /etc/postfix/certs/CAcert.pem
smtpd_tls_cert_file = /etc/postfix/certs/mycert.pem
smtpd_tls_key_file = /etc/postfix/certs/mykey.pem
smtpd_tls_received_header = yes
smtpd_use_tls = yes

# configuracao tls
smtp_use_tls = yes
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
smtp_sasl_tls_security_options = noanonymous

# alias de mapeamento interno para externo
smtp_generic_maps = hash:/etc/postfix/generic

/etc/postfix/sasl_passwd

[smtp.gmail.com]:587    user@gmail.com:passwd
# mv /etc/postfix/generic /etc/postfix/generic.bak

/etc/postfix/generic

user@gmail.com user@gmail.com
# chmod 600 /etc/postfix/sasl_passwd
# chmod 600 /etc/postfix/generic

# postmap /etc/postfix/sasl_passwd
# postmap /etc/postfix/generic

# mkdir /etc/postfix/certs/
# cd /etc/postfix/certs/

# openssl dsaparam 1024 -out dsa1024.pem
# openssl req -x509 -nodes -days 3650 -newkey dsa:dsa1024.pem -out mycert.pem -keyout mykey.pem

# ln -s mycert.pem CAcert.pem

# openssl req -x509 -new -days 3650 -key /etc/postfix/certs/mykey.pem -out /etc/postfix/certs/mycert.pem

# rm dsa1024.pem
# /etc/rc.d/postfix start
:: Starting Postfix [FAIL] 
# /etc/rc.d/postfix stop

LOGS:

# tail /var/log/mail.log
Jan 30 12:21:51 arch postfix[5641]: fatal: chdir(/usr/libexec/postfix): No such file or directory
# mkdir /usr/libexec
# ln -s /usr/lib/postfix /usr/libexec/postfix
# /etc/rc.d/postfix start
:: Starting Postfix [DONE] 
# exit
$ echo "content" | mail -s "subject" user@mail.com

php + oci8 Oracle bezero (kliente) moduen imintzeko gnu/linux-en

Aupatxo bueno ba debian-en eta gero archlinux-en inbizandoten oracle klientie instala baie edozein gnu/linux distribuziñuentzako balidxo dauela pentsaten dot:

Bueno ba hau da dana, okin kontutan $ komanduek usuaidxo normalagaz eitzen dizela eta # root moduen :)

Edit: libaio instalatie imintzie ahaztu izan dast, parkatu :(

BCM43xx archlinux-en instala

Aspaldidxon eztot idatzi baie hamen gauz, oin archlinux imindxot portatilen debian-egaz arazo batzuk okindxotez eta, bueltako nai squeezee establie daniko, bueno a lo que estamos manolo, gauzie da ia zelan aldan instala BCM43xx chipset-a dakoien wifi aparatuen driver-ak archlinux-en, honek 32 zein 64bits-erako balidxo dau :)

  • 1.- root moduen imiñi:
    $ su
    
  • 2.- repositoidxuetan AUR paketiek instala al izateko:
    /etc/pacman.d/mirrorlist artxibue edite eta haunek lerruek sartun:

    [archlinuxfr]
    Server = http://repo.archlinux.fr/x86_64
    
  • 3.- paketiek aktualize:
    # pacman -Syy
    
  • 4.- yaourt instala:
    # pacman -S yaourt
    
  • 5.- root -etik urten
    # exit
    
  • 6.- b43xx buruzko paketiek instala:
    $ yaourt -S b43-fwcutter-patched b43-firmware-newest
    
  • 7.- b43 modulue karga hasikeran:
    /etc/rc.conf artxibuen b43 module sartun

    ...
    MODULES=(b43 ...)
    ...
    
  • 8.- Reinizie barik erabiltzeko:
    $ su
    # modprobe b43
    # exit
    
  • Dana dala ez’padabilen segiduen, reinizie ta ia zelan duen :)

Eskerrik hauneri post-ari: http://bbs.archlinux.org/viewtopic.php?pid=679543

PD: Ez ahaztu $ usuaidxo normalak ejekuteteko dizela eta # root-ek :)

debian: postfix + gmail

Aupa artistas, postfix e-mail zerbitzari bet da eta konfigureku gmail-egaz e-mailek al izateko bota. Gauzie da IP dinamikotik ezindixela e-mailek bota, honegaz al izango lekidu e-mailek bota bai IP dinamiko batetik eta bai IP estatiko batetik geure gmail kontuen bidez:

  • 1.- root moduen konekta:
    su
    
  • 2.- paketiek instala:
    apt-get install postfix bsd-mailx openssl 
    
  • 3.- postfix instalaziñuen konfigure: postfix instalakeran pregunte’kozku ia ze motatako konfiguraziñue gudun:
    sin configuración
    
  • 4.- postfix konfigure: /etc/postfix/main.cf

      # SMTP relayhost
      relayhost = [smtp.gmail.com]:587  
      ## TLS Settings
      smtp_tls_loglevel = 1
      smtp_tls_CAfile = /etc/postfix/certs/CAcert.pem
      smtp_tls_cert_file = /etc/postfix/certs/mycert.pem
      smtp_tls_key_file = /etc/postfix/certs/mykey.pem
      smtp_use_tls = yes
      smtpd_tls_CAfile = /etc/postfix/certs/CAcert.pem
      smtpd_tls_cert_file = /etc/postfix/certs/mycert.pem
      smtpd_tls_key_file = /etc/postfix/certs/mykey.pem
      smtpd_tls_received_header = yes
      smtpd_use_tls = yes  
      # configuracao tls
      smtp_use_tls = yes
      smtp_sasl_auth_enable = yes
      smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
      smtp_sasl_security_options = noanonymous
      smtp_sasl_tls_security_options = noanonymous  
      # alias de mapeamento interno para externo
      smtp_generic_maps = hash:/etc/postfix/generic
    
  • 5.- smtp-ientzako password-a: /etc/postfix/sasl_passwd

    [smtp.gmail.com]:587    usuaidxue@gmail.com:password-a
    

    kanbidxe zeuon datuetara

    # chmod 600 /etc/postfix/sasl_passwd
    # postmap /etc/postfix/sasl_passwd
    
  • 6.- Bidaltzailie konfigure: /etc/postfix/generic

    usuaidxue@localhost.localdomain	usuaidxue@gmail.com
    

    hau pausue naiz eta derrigorrezkue ezan 1go mandan zeuok guzuiena imiñi, bigarrena bai da derrigorrezkue imintzie (gmail-en usuaidxuena)

    # chmod 600 /etc/postfix/generic
    # postmap /etc/postfix/generic
    
  • 7.- Zertifikauek eta haunek upin danak konfigure:

    # mkdir /etc/postfix/certs/
    # cd /etc/postfix/certs/
    # openssl dsaparam 1024 -out dsa1024.pem
    # openssl req -x509 -nodes -days 3650 -newkey dsa:dsa1024.pem -out mycert.pem -keyout mykey.pem
    

    Hau eindxe gero dato batzuk eskatuko’zkuz, al’zuie inbenta, baie akorda gero bardiñe sartun biko’zuie eta :)
    Adibidie:

    Generating a 1024 bit DSA private key
    writing new private key to 'mykey.pem'
    -----
    You are about to be asked to enter information that will be incorporated
    into your certificate request.
    What you are about to enter is what is called a Distinguished Name or a DN.
    There are quite a few fields but you can leave some blank
    For some fields there will be a default value,
    If you enter '.', the field will be left blank.
    -----
    Country Name (2 letter code) [AU]:EU
    State or Province Name (full name) [Some-State]:Bizkaia
    Locality Name (eg, city) []:Bermeo
    Organization Name (eg, company) [Internet Widgits Pty Ltd]:hackin.badakigu
    Organizational Unit Name (eg, section) []:zital.hackin.badakigu
    Common Name (eg, YOUR name) []:zital
    Email Address []:zital@hakinbadakigu.net
    
    # openssl req -x509 -new -days 3650 -key /etc/postfix/certs/mykey.pem -out /etc/postfix/certs/mycert.pem
    

    oin ostabe lengo bardiñe:

    Generating a 1024 bit DSA private key
    writing new private key to 'mykey.pem'
    -----
    You are about to be asked to enter information that will be incorporated
    into your certificate request.
    What you are about to enter is what is called a Distinguished Name or a DN.
    There are quite a few fields but you can leave some blank
    For some fields there will be a default value,
    If you enter '.', the field will be left blank.
    -----
    Country Name (2 letter code) [AU]:EU
    State or Province Name (full name) [Some-State]:Bizkaia
    Locality Name (eg, city) []:Bermeo
    Organization Name (eg, company) [Internet Widgits Pty Ltd]:hackin.badakigu
    Organizational Unit Name (eg, section) []:zital.hackin.badakigu
    Common Name (eg, YOUR name) []:zital
    Email Address []:zital@hakinbadakigu.net
    
    # rm dsa1024.pem
    
  • 8.- postfix reinizie:

    # /etc/init.d/postfix restart
    
  • 9.- root modotik urten:

    exit
    
  • 10.- proba :)

    $ echo "Pruebie gorputze" | mail -s "pruebie asuntue" zital@hakinbadakigu.net
    
  • *.- Apunte batzuk: # gudau esan komandue root moduen idazten dotela, artxibo baten barruen badauen komentaidxue eta $ komandue usuaidxo normal moduen idazten dotela :)

  • Hametik atata:
    http://www.esdebian.org/foro/19603/dudas-servidor-correo-ip-dinamicasmtp-google-solucionado

1go post-a eskerrak eta tematikie

Aupa, 1go post-a eskerrak emoteko aprobetxakot, @dabidmp eta @josebamartos-eri.

Blog honeri buruz, ba batezbe jungo dala debian-eri buruz, zelan egin gauzek eta deskuideten bazaran web-ari buruz bebai.

Blog-a ezta dxungo eritzi pertsonalari buruz, etzolakon ardure iñori ta punto.

Blog-an titulue neure lagun Monas-ek askotan esaten zandauen esaldi bet da, nahiko kuriosue.

Beste link batzuk:
esdebian-eko blog-a: http://www.esdebian.org/blog/11611
twitter-a: https://twitter.com/ZiTAL

Edit: Ahaztu indxazten lizentzi motie imintzie:
Aitortu-PartekatuBerdin 2.5: by-sa

cc-by-sa