Postfix gmail relay MEGOLDVA!
Udvozlok mindenkit.
A tema mar elegge leragott csont, itt is es a neten is, de belefutottam egy olyan dologba, amivel nem nagyon tudok mit kitalalni.
Nem sok ezzel kapcsolatos forumot talaltam, azoknak a java resze is kodos, vagy felbemaradt.
A nota a regi: szeretnem, ha a postfixnek az altalam elore letrehozott gmail fiok relayezne.
Az alabbi tutorialt zongoraztam vegig, lepesrol lepesre:
http://wiki.linuxmce.org/index.php/Postfix_configured_with_Gmail_SMTP
Ha szeretnek egy masik cimre mailt kuldeni a mail, vagy nail paranccsal, akkor a mail.log tartalma a kovetkezo:
Mar 1 19:32:19 tsztmhq postfix/pickup[1829]: 882BA388E7: uid=0 from=
Mar 1 19:32:20 tsztmhq postfix/cleanup[1956]: 882BA388E7: message-id=<20110301183219.882BA388E7@tsztmhq.localdomain>
Mar 1 19:32:20 tsztmhq postfix/qmgr[1830]: 882BA388E7: from=, size=452, nrcpt=1 (queue active)
Mar 1 19:32:20 tsztmhq postfix/tlsmgr[1960]: warning: request to update table btree:/var/run/smtpd_tls_session_cache in non-postfix directory /var/run
Mar 1 19:32:20 tsztmhq postfix/tlsmgr[1960]: warning: redirecting the request to postfix-owned data_directory /var/lib/postfix
Mar 1 19:32:20 tsztmhq postfix/tlsmgr[1960]: warning: request to update table btree:/var/run/smtp_tls_session_cache in non-postfix directory /var/run
Mar 1 19:32:20 tsztmhq postfix/tlsmgr[1960]: warning: redirecting the request to postfix-owned data_directory /var/lib/postfix
Mar 1 19:32:21 tsztmhq postfix/smtp[1959]: warning: cannot get certificate from file /etc/postfix/cert.pem
Mar 1 19:32:21 tsztmhq postfix/smtp[1959]: warning: TLS library problem: 1959:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c:647:Expecting: CERTIFICATE:
Mar 1 19:32:21 tsztmhq postfix/smtp[1959]: warning: TLS library problem: 1959:error:140DC009:SSL routines:SSL_CTX_use_certificate_chain_file:PEM lib:ssl_rsa.c:727:
Mar 1 19:32:21 tsztmhq postfix/smtp[1959]: cannot load RSA certificate and key data
Mar 1 19:32:21 tsztmhq postfix/smtp[1959]: 882BA388E7: to=, relay=smtp.gmail.com[74.125.39.109]:587, delay=1.9, delays=0.79/0.89/0.2/0, dsn=4.7.5, status=deferred (TLS is required, but our TLS engine is unavailable)
A postfixem, main.cf fajlja:
# See /usr/share/postfix/main.cf.dist for a commented, more complete version
# Debian specific: Specifying a file name will cause the first
# line of that file to be used as the name. The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no
# appending .domain is the MUA's job.
append_dot_mydomain = no
# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h
readme_directory = no
##TLS settings
smtp_tls_loglevel = 1
smtp_enforce_tls = yes
smtp_tls_CAfile = /etc/postfix/cacert.pem
smtp_tls_cert_file = /etc/postfix/cert.pem
smtp_tls_key_file = /etc/postfix/key.pem
smtp_tls_session_cache_database = btree:/var/run/smtp_tls_session_cache
smtp_use_tls = yes
smtpd_tls_CAfile = /etc/postfix/cacert.pem
smtpd_tls_cert_file = /etc/postfix/cert.pem
smtpd_tls_key_file = /etc/postfix/key.pem
smtpd_tls_received_header = yes
smtpd_tls_session_cache_database = btree:/var/run/smtpd_tls_session_cache
smtpd_use_tls = yes
###?
#smtpd_enforce_tls = no
smtpd_tls_security_level = may
tls_random_source = dev:/dev/urandom
## SASL Settings
smtpd_sasl_auth_enable = no
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtpd_sasl_local_domain = $myhostname
smtp_sasl_security_options = noanonymus
#smtp_sasl_security_options =
smtp_sasl_tls_security_options = noanonymus
smtpd_sasl_application_name = smtpd
##Gmail Relay
relayhost = [smtp.gmail.com]:587
# Disable DNS lookups
disable_dns_lookups = yes
#
smtp_generic_maps = hash:/etc/postfix/generic
#
#
transport_maps = hash:/etc/postfix/transport
Kernek szepen egy kis segitseget, mert egyszer mar csinaltam ilyet, akkor nem volt az ominozus "TLS engine is unavailable" viszon most jelentkezett, es a forumok olvasgatasaval erdemben nem jutottam semmire.
Elore is koszonom a segitseget.
- Tovább (Postfix gmail relay MEGOLDVA!)
- 4882 megtekintés