Differenze tra le versioni 1 e 5 (in 4 versioni)
Dimensione: 1201
Commento:
|
← Versione 5 del 2008-03-18 17:28:05 ⇥
Dimensione: 1301
Commento: converted to 1.6 markup
|
Le cancellazioni sono segnalate in questo modo. | Le aggiunte sono segnalate in questo modo. |
Linea 7: | Linea 7: |
2) In /etc/main.cf add: | 2) In {{{/etc/postfix/main.cf}}} add: |
Linea 27: | Linea 27: |
3) Create the file {{{/etc/postfix/sasl_password}}} : | 3) Create the file {{{/etc/postfix/sasl_passwd}}} : |
Linea 39: | Linea 39: |
postmap sasl_password | postmap sasl_passwd |
Linea 43: | Linea 43: |
This will create sasl_password.db and usar_tls.db. | This will create sasl_passwd.db and usar_tls.db. |
Linea 47: | Linea 47: |
WARNING: all sent emails will be also copied in the "Sent" Folder of your gmail account! |
Configure Postfix to relay mails with your Gmail account
1) Install postfix, postfix-tls,libsasl2 ,libsasl2-modules ,sasl2-bin
2) In /etc/postfix/main.cf add:
myhostname = tuscolo mydomain = ninux.org mynetworks = 127.0.0.0/8 192.168.0.0/16 10.0.0.0/8 172.16.0.0/16 inet_interfaces = all mydestination = localhost.localdomain, localhost.localdomain, localhost 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_sasl_tls_security_options = noanonymous tls_random_source = dev:/dev/urandom smtp_tls_scert_verifydepth = 5 smtp_tls_CApath=/etc/ssl/certs smtp_tls_enforce_peername = no smtp_tls_per_site = hash:/etc/postfix/usar_tls
3) Create the file /etc/postfix/sasl_passwd :
smtp.gmail.com user@gmail.com:password
4) Create the file /etc/postfix/usar_tls :
smtp.gmail.com MUST_NOPEERMATCH
5) Go to /etc/postfix as root and run:
postmap sasl_passwd postmap usar_tls
This will create sasl_passwd.db and usar_tls.db. MUST BE IN /ETC/POSTFIX!
6) Restart postfix : /etc/init.d/postfix restart
WARNING: all sent emails will be also copied in the "Sent" Folder of your gmail account!