Pokrewne
menu      BIG BIG problema
menu      problem z wyświetlaniem strony, wyświetla się skrypt zamiast strony
menu      Problem z serwerem RPS, serwer nie odpowiada
menu      MS Vista Business: Ubuntu Desktop 8.04 RPS przez NX Client Desktop Edition [Problem]
menu      Problem z instalacją Quick.Cms/Quick.Cart na 60gp
menu      głośniki 7.1 i Vista problem - brak dźwieku w bocznych głośnikach
menu      problem wyboru zasilania dla laptopa DELL (zasilacz samochodowy)
menu      Problem z mysql ERROR 2002 (HY000): Can't connect to local MySQL server through...
menu      Problem z FTP 530 Sorry, the maximum number of allowed clients (16) are already conne
menu      Samsung DVD-VR350 problem z kolorami, wszystko czarno-biale nawet MENU :(
  • zanotowane.pl
  • doc.pisz.pl
  • pdf.pisz.pl
  • kudrzwi.htw.pl
  • Dovecot + Postfix - drobny problem





    tabi19 - 09-08-2010 17:36
    Dovecot + Postfix - drobny problem
      Witam. Zainstalowałem dzisiaj Dovecot (POP3 i IMAP) oraz Postfix'a, wszystko skonfigurowałem, wykonałem test poprzez telnet:

    telnet localhost smtp
    ehlo tabi19.tk
    mail from:<admin@tabi19.tk>
    rcpt to:<grzesiut@gmail.com>
    +treść i wysłanie e-maila

    wszystko jest OK, gdy natomiast zrobię to tak:

    telnet 91.121.195.118 smtp
    ehlo tabi19.tk
    mail from:<admin@tabi19.tk>
    rcpt to:<grzesiut@gmail.com>

    wyskakuje błąd:

    Cytat:
    rcpt to:<grzesiut@gmail.com>
    554 5.7.1 <grzesiut@gmail.com>: Relay access denied
    Szukałem w google, próbowałem kilku rozwiązań - żadne nie zadziałało.
    Zaznaczam, iż wysyłanie poprzez localhost działa, nie działa za to wysyłanie z poza serwera.

    Proszę o jakąś podpowiedź, gdzie leży błąd.

    Pozdrawiam




    cousin - 09-08-2010 18:15
    Rozumiem że admin maupa tabi19.tk jest twoim kontem na tym serwerze? Jeśli tak to musisz o tym powiedzieć postfiksowi. Wystaw gdzieś konfiguracje postfika przyjrze się temu.



    no4b - 09-08-2010 18:24
    Nie autoryzowałeś się za drugim razem. Za pierwszym pewnie przepuściło Cię bezmyślnie przekopiowane permit_mynetworks.



    tabi19 - 09-08-2010 19:53
    /etc/postfix/main.cf

    Cytat:
    dynamicmaps.cf mysql-virtual-mailbox-maps.cf
    main.cf mysql-virtual_transports.cf
    master.cf postfix-files
    mysql-alias.cf postfix-script
    mysql-domains.cf post-install
    mysql-email2email.cf sasl
    mysql-mailbox.cf smtpd.cert
    mysql-transport.cf smtpd.key
    mysql-virtual-alias-maps.cf ssl
    mysql-virtual_domains.cf virtual_alias_domain_catchall_maps.cf
    mysql-virtual_email2email.cf virtual_alias_domain_mailbox_maps.cf
    mysql-virtual_forwardings.cf virtual_alias_domain_maps.cf
    mysql-virtual-mailbox-domains.cf virtual_alias_maps.cf
    mysql-virtual_mailboxes.cf virtual_domains_maps.cf
    mysql-virtual_mailbox_limit_maps.cf
    r30612:/etc/postfix# nano main.cf
    r30612:/etc/postfix# cat main.cf
    # 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 parameters
    smtpd_tls_cert_file = /etc/postfix/smtpd.cert
    smtpd_tls_key_file = /etc/postfix/smtpd.key
    smtpd_use_tls = yes
    smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
    smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache

    # See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
    # information on enabling SSL in the smtp client.

    mydomain = tabi19.tk
    myhostname = r30612.ovh.net
    alias_maps = hash:/etc/aliases
    alias_database = hash:/etc/aliases
    myorigin = /etc/mailname
    mydestination = localhost, localhost.localdomain, down4free.pl, localhost.down4f ree.pl, tabi19.tk, localhost.tabi19.tk, r30612.ovh.net
    #mydestination = localhost
    relayhost =
    #mynetworks = 127.0.0.0/8
    mynetworks =
    mailbox_command = procmail -a "$EXTENSION"
    mailbox_size_limit = 0
    recipient_delimiter = +
    inet_interfaces = all
    #inet_protocols = all
    inet_protocols = ipv4
    smtpd_sasl_local_domain =
    smtpd_sasl_auth_enable = yes
    smtpd_sasl_security_options = noanonymous
    broken_sasl_auth_clients = yes
    smtpd_sasl_authenticated_header = yes
    smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,rejec t_unknown_recipient_domain
    #reject_unauth_destination
    smtpd_tls_auth_only = no
    smtp_use_tls = yes
    smtp_tls_note_starttls_offer = yes
    smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
    smtpd_tls_loglevel = 1
    smtpd_tls_received_header = yes
    smtpd_tls_session_cache_timeout = 3600s
    tls_random_source = dev:/dev/urandom

    # moje zmiany !!

    #home_mailbox = Maildir/
    #virtual_mailbox_base = /home/vmail
    #virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
    #virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
    #virtual_alias_domains =
    #virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, mys ql:/etc/postfix/mysql-virtual_email2email.cf
    #transport_maps = proxy:mysql:/etc/postfix/mysql-virtual_transports.cf
    #virtual_uid_maps = static:5000
    #virtual_gid_maps = static:5000
    #content_filter = amavis:[127.0.0.1]:10024
    #message_size_limit = 30720000
    #virtual_create_maildirsize = yes
    #virtual_maildir_extended = yes
    #virtual_mailbox_limit_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailbox_lim it_maps.cf
    #virtual_mailbox_limit_override = yes
    #virtual_maildir_limit_message = "The user you are trying to reach is over quota ."
    #virtual_overquota_bounce = yes
    #proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $vir tual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipie nt_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonic al_maps $relocated_maps $transport_maps $mynetworks $virtual_mailbox_limit_maps
    #receive_override_options = no_address_mappings

    virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf
    virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf
    virtual_alias_maps = mysql:/etc/postfix/mysql-virtual-alias-maps.cf,mysql:/etc/p ostfix/mysql-email2email.cf
    #virtual_minimum_uid = 65535
    #virtual_uid_maps = static:65535
    #virtual_gid_maps = static:65535

    virtual_minimum_uid = 4000
    virtual_uid_maps = static:4000
    virtual_gid_maps = statis:4000

    virtual_transport = dovecot
    dovecot_destination_recipient_limit = 1

    # TLS parameters
    smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
    smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
    smtpd_use_tls=yes
    smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
    smtpd_sasl_auth_enable = yes
    #smtpd_sasl_local_domain = $myhostname
    smtpd_sasl_exceptions_networks = $mynetworks
    smtpd_sasl_security_options = noanonymous
    broken_sasl_auth_clients = yes
    smtpd_sasl_type = dovecot
    # Can be an absolute path, or relative to $queue_directory
    smtpd_sasl_path = private/auth
    smtpd_tls_security_level = may
    smtpd_tls_auth_only = yes
    smtpd_tls_received_header = yes
    smtpd_tls_ask_ccert = yes
    smtpd_tls_loglevel = 1
    tls_random_source = dev:/dev/urandom

    smtp_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
    smtp_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
    smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache

    smtpd_helo_required = yes
    disable_vrfy_command = yes
    non_fqdn_reject_code = 450
    invalid_hostname_reject_code = 450
    maps_rbl_reject_code = 450

    smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,rejec t _unauth_destination
    smtpd_data_restrictions =
    reject_unauth_pipelining,
    reject_multi_recipient_bounce,
    permit





    no4b - 09-08-2010 20:29
    Tylko po co to wklejasz, skoro już Ci napisałem o co chodzi?



    tabi19 - 10-08-2010 12:23
    Wkleiłem config, bo cousin napisał, że może go sprawdzić w wolnej chwili.

    Dzięki no4b za nakierowanie - pogooglowałem trochę, pokombinowałem, pozamieniałem kilka rzeczy w configu i zadziałało. :)

    Pozdrawiam
  • zanotowane.pl
  • doc.pisz.pl
  • pdf.pisz.pl
  • konstruktor.keep.pl
  • Design by flankerds.com