Postfix Problem
#1
geschrieben 11. November 2011 - 15:13
Ich habe mir einen Virtuellen Server bei Strato gekauft. Als Betriebssystem habe ich Ubuntu installiert.
Nachdem ich meine Domains und E-Mail Adressen eingerichtet habe wollte ich nun den E-Mail Server testen.
Wenn ich nun von meiner privaten googlemail.com Adresse eine E-Mail an eine erstellte E-Mail Adresse senden möchte bekomme ich die Meldung...
"Google tried to deliver your message, but it was rejected by the recipient domain. We recommend contacting the other email provider for further information about the cause of this error. The error that the other server returned was: 554 554 5.7.1 <[email protected]>: Relay access denied (state 14)."
Weiß einer von euch wie ich bei Postfix das Problem feststellen kann?
Anzeige
#2
geschrieben 14. November 2011 - 19:59
Zitat (Stillmatic: 11. November 2011 - 15:13)
Ich habe mir einen Virtuellen Server bei Strato gekauft. Als Betriebssystem habe ich Ubuntu installiert.
Nachdem ich meine Domains und E-Mail Adressen eingerichtet habe wollte ich nun den E-Mail Server testen.
Wenn ich nun von meiner privaten googlemail.com Adresse eine E-Mail an eine erstellte E-Mail Adresse senden möchte bekomme ich die Meldung...
"Google tried to deliver your message, but it was rejected by the recipient domain. We recommend contacting the other email provider for further information about the cause of this error. The error that the other server returned was: 554 554 5.7.1 <[email protected]>: Relay access denied (state 14)."
Weiß einer von euch wie ich bei Postfix das Problem feststellen kann?
Log Dateien und Config wären hilfreich...
#3
geschrieben 14. November 2011 - 21:23
# 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 (Ubuntu) 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/postfix_default.pem smtpd_tls_key_file = $smtpd_tls_cert_file 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. myhostname = *******.stratoserver.net alias_maps = hash:/etc/aliases, hash:/var/spool/postfix/plesk/aliases alias_database = hash:/etc/aliases myorigin = /etc/mailname mydestination = localhost.localdomain, localhost.stratoserver.net, localhost relayhost = mynetworks = 127.0.0.0/8 [::1]/128 **.***.***.**/32 mailbox_command = procmail -a "$EXTENSION" mailbox_size_limit = 51200000 recipient_delimiter = + inet_interfaces = all inet_protocols = all virtual_mailbox_domains = $virtual_mailbox_maps, hash:/var/spool/postfix/plesk/virtual_domains virtual_alias_maps = $virtual_maps, hash:/var/spool/postfix/plesk/virtual virtual_mailbox_maps = hash:/var/spool/postfix/plesk/vmailbox transport_maps = hash:/var/spool/postfix/plesk/transport smtpd_tls_security_level = may smtp_tls_security_level = may smtp_use_tls = no smtpd_timeout = 3600s smtpd_proxy_timeout = 3600s disable_vrfy_command = yes smtpd_sender_restrictions = check_sender_access hash:/var/spool/postfix/plesk/blacklists, permit_sasl_authenticated, check_client_access pcre:/var/spool/postfix/plesk/non_auth.re smtp_send_xforward_command = yes smtpd_authorized_xforward_hosts = 127.0.0.0/8 [::1]/128 smtpd_sasl_auth_enable = yes smtpd_recipient_restrictions = permit_mynetworks, check_client_access pcre:/var/spool/postfix/plesk/no_relay.re, permit_sasl_authenticated, reject_unauth_destination virtual_mailbox_base = /var/qmail/mailnames virtual_uid_maps = static:110 virtual_gid_maps = static:31 virtual_transport = plesk_virtual plesk_virtual_destination_recipient_limit = 1 mailman_destination_recipient_limit = 1 smtpd_client_restrictions = message_size_limit = 10240000
mail.log
Oct 14 13:45:08 ******** postfix/master[7248]: daemon started -- version 2.7.0, configuration /etc/postfix
Dieser Beitrag wurde von Stillmatic bearbeitet: 14. November 2011 - 21:24
#4
geschrieben 14. November 2011 - 22:06
mydestination = localhost.localdomain, localhost.stratoserver.net, localhost
Hier fehlt dir imho auf jeden fall noch deine Domain, aber da scheint ja Plesk auf der Kiste zu rennen.
Keine Ahnung ob man ausserhalb von Plesk in den Config Dateien rumfummeln sollte.
Vielleicht hast du bei Plesk noch was vergessen ?
#5
geschrieben 15. November 2011 - 08:31
myhostname = *******.stratoserver.net
Ist das tatsächlich dein Domainname (also abgesehen von der Zensur)? Also lautet die Mail-Adresse die du eingerichtet hast wirklich @*******.stratoserver.net?
Und wie bb83 schon schrieb beim mydestination sollte $myhostname auf jeden Fall auftauchen.
Im Moment dürfte der Server nur lokale Mails annehmen.
Ansonsten eignet sich sowas hier auch immer ganz gut um die gesamten Antworten des Servers zu sehen: http://workaround.or...-through-telnet
Das sollte man erstmal vom Server selbst probieren und dann (wenn das Erste funktioniert hat) noch einmal von außerhalb.
#6
geschrieben 17. November 2011 - 12:12
Die Adresse die bei myhostname eingetragen ist, ist die Adresse meines Servers. Über United-Domains habe ich 2 Domains registriert, welche ich über einen A-Record auf diesen Server umleite.
Also möchte ich auch für diese beiden Domains E-Mail-Adressen nutzen. In Plesk habe ich für beide Domains E-Mail-Adresse angelegt. Kann aber momentan keine on aussen erreichen.
HELP
#7
geschrieben 17. November 2011 - 16:12
http://www.postfix.o...ml#syslog_howto
und evtl: http://www.postfix.o...BUG_README.html
#8
geschrieben 18. November 2011 - 08:40
---EDIT
So, durch den telnet Test habe ich nun doch etwas geloggt:
postfix/smtpd[3424]: connect from localhost.localdomain[127.0.0.1] postfix/smtpd[3433]: connect from localhost.localdomain[127.0.0.1] postfix/smtpd[3424]: NOQUEUE: client=localhost.localdomain[127.0.0.1] postfix/smtpd[3433]: 1D0E71D7238E: client=localhost.localdomain[127.0.0.1] before-queue[3430]: check handlers for addr: [email protected] before-queue[3430]: check handlers for addr: [email protected] before-remote[3432]: check handlers for addr: [email protected] before-remote[3432]: check handlers for addr: [email protected] postfix/cleanup[3434]: 1D0E71D7238E: message-id=<20111118075344.1D0E71D7238E@*******.stratoserver.net> postfix/qmgr[1944]: 1D0E71D7238E: from=<[email protected]>, size=657, nrcpt=1 (queue active) postfix/smtpd[3424]: proxy-accept: END-OF-MESSAGE: 250 2.0.0 Ok: queued as 1D0E71D7238E; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<meinedomain.de> postfix/smtpd[3433]: disconnect from localhost.localdomain[127.0.0.1] postfix-local[3436]: postfix-local: [email protected], [email protected], dirname=/var/qmail/mailnames postfix-local[3436]: hook_dir = '/opt/psa/handlers/before-local' postfix-local[3436]: recipient[3] = '[email protected]' postfix-local[3436]: handlers dir = '/opt/psa/handlers/before-local/recipient/[email protected]' postfix-local[3436]: call_handlers: call executable = '/opt/psa/handlers/info/10-spam-IMW4uJ/executable' spamd[2024]: spamd: got connection over /tmp/spamd_full.sock spamd[2024]: spamd: using default config for [email protected]: /var/qmail/mailnames/meinedomain.de/manfredmustermann/.spamassassin/user_prefs spamd[2024]: spamd: processing message <20111118075344.1D0E71D7238E@*****.stratoserver.net> for [email protected]:110 spamd[2024]: spamd: clean message (0.8/7.0) for [email protected]:110 in 0.1 seconds, 802 bytes. spamd[2024]: spamd: result: . 0 - ALL_TRUSTED,FREEMAIL_FROM,MISSING_SUBJECT scantime=0.1,size=802,[email protected],uid=110,required_score=7.0,rhost=localhost,raddr=127.0.0.1,rport=/tmp/spamd_full.sock,mid=<20111118075344.1D0E71D7238E@*****.stratoserver.net>,autolearn=no spamd[2017]: prefork: child states: I postfix-local[3436]: handlers_stderr: PASS postfix-local[3436]: call_handlers: PASS during call '/opt/psa/handlers/info/10-spam-IMW4uJ/executable' handler postfix-local[3436]: call_handlers: call executable = '/opt/psa/handlers/info/10-dd52-domainkeys-jgMDCo/executable' dk_check[3439]: DK_STAT_NOSIG: No signature available in message postfix-local[3436]: handlers_stderr: PASS postfix-local[3436]: call_handlers: PASS during call '/opt/psa/handlers/info/10-dd52-domainkeys-jgMDCo/executable' handler Nov 18 08:54:01 h1956054 postfix/pipe[3435]: 1D0E71D7238E: to=<[email protected]>, relay=plesk_virtual, delay=17, delays=17/0.01/0/0.24, dsn=2.0.0, status=sent (delivered via plesk_virtual service) Nov 18 08:54:01 h1956054 postfix/qmgr[1944]: 1D0E71D7238E: removed Nov 18 08:54:09 h1956054 postfix/smtpd[3424]: disconnect from localhost.localdomain[127.0.0.1]
Dieser Beitrag wurde von Stillmatic bearbeitet: 18. November 2011 - 09:07
#9
geschrieben 18. November 2011 - 09:02
#10
geschrieben 18. November 2011 - 09:10
smtp_data_init_timeout = 120s smtp_data_xfer_timeout = 180s smtp_defer_if_no_mx_address_found = no smtp_destination_concurrency_failed_cohort_limit = $default_destination_concurrency_failed_cohort_limit smtp_destination_concurrency_limit = $default_destination_concurrency_limit smtp_destination_concurrency_negative_feedback = $default_destination_concurrency_negative_feedback smtp_destination_concurrency_positive_feedback = $default_destination_concurrency_positive_feedback smtp_destination_rate_delay = $default_destination_rate_delay smtp_destination_recipient_limit = $default_destination_recipient_limit smtp_discard_ehlo_keyword_address_maps = smtp_discard_ehlo_keywords = smtp_enforce_tls = no smtp_fallback_relay = $fallback_relay smtp_generic_maps = smtp_header_checks = smtp_helo_name = $myhostname smtp_helo_timeout = 300s smtp_host_lookup = dns smtp_initial_destination_concurrency = $initial_destination_concurrency smtp_line_length_limit = 990 smtp_mail_timeout = 300s smtp_mime_header_checks = smtp_mx_address_limit = 5 smtp_mx_session_limit = 2 smtp_nested_header_checks = smtp_never_send_ehlo = no smtp_pix_workaround_delay_time = 10s smtp_pix_workaround_maps = smtp_pix_workaround_threshold_time = 500s smtp_pix_workarounds = disable_esmtp,delay_dotcrlf smtp_quit_timeout = 300s smtp_quote_rfc821_envelope = yes smtp_randomize_addresses = yes smtp_rcpt_timeout = 300s smtp_reply_filter = smtp_rset_timeout = 20s smtp_sasl_auth_cache_name = smtp_sasl_auth_cache_time = 90d smtp_sasl_auth_enable = no smtp_sasl_auth_soft_bounce = yes smtp_sasl_mechanism_filter = smtp_sasl_password_maps = smtp_sasl_path = smtp_sasl_security_options = noplaintext, noanonymous smtp_sasl_tls_security_options = $smtp_sasl_security_options smtp_sasl_tls_verified_security_options = $smtp_sasl_tls_security_options smtp_sasl_type = cyrus smtp_send_xforward_command = yes smtp_sender_dependent_authentication = no smtp_skip_5xx_greeting = yes smtp_skip_quit_response = yes smtp_starttls_timeout = 300s smtp_tls_CAfile = smtp_tls_CApath = smtp_tls_block_early_mail_reply = no smtp_tls_cert_file = smtp_tls_ciphers = export smtp_tls_dcert_file = smtp_tls_dkey_file = $smtp_tls_dcert_file smtp_tls_eccert_file = smtp_tls_eckey_file = $smtp_tls_eccert_file smtp_tls_enforce_peername = yes smtp_tls_exclude_ciphers = smtp_tls_fingerprint_cert_match = smtp_tls_fingerprint_digest = md5 smtp_tls_key_file = $smtp_tls_cert_file smtp_tls_loglevel = 0 smtp_tls_mandatory_ciphers = medium smtp_tls_mandatory_exclude_ciphers = smtp_tls_mandatory_protocols = SSLv3, TLSv1 smtp_tls_note_starttls_offer = no smtp_tls_per_site = smtp_tls_policy_maps = smtp_tls_protocols = !SSLv2 smtp_tls_scert_verifydepth = 9 smtp_tls_secure_cert_match = nexthop, dot-nexthop smtp_tls_security_level = may smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache smtp_tls_session_cache_timeout = 3600s smtp_tls_verify_cert_match = hostname smtp_use_tls = no smtp_xforward_timeout = 300s smtpd_authorized_verp_clients = $authorized_verp_clients smtpd_authorized_xclient_hosts = smtpd_authorized_xforward_hosts = 127.0.0.0/8 [::1]/128 smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu) smtpd_client_connection_count_limit = 50 smtpd_client_connection_rate_limit = 0 smtpd_client_event_limit_exceptions = ${smtpd_client_connection_limit_exceptions:$mynetworks} smtpd_client_message_rate_limit = 0 smtpd_client_new_tls_session_rate_limit = 0 smtpd_client_port_logging = no smtpd_client_recipient_rate_limit = 0 smtpd_client_restrictions = smtpd_command_filter = smtpd_data_restrictions = smtpd_delay_open_until_valid_rcpt = yes smtpd_delay_reject = yes smtpd_discard_ehlo_keyword_address_maps = smtpd_discard_ehlo_keywords = smtpd_end_of_data_restrictions = smtpd_enforce_tls = no smtpd_error_sleep_time = 1s smtpd_etrn_restrictions = smtpd_expansion_filter = \t\40!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ smtpd_forbidden_commands = CONNECT GET POST smtpd_hard_error_limit = ${stress?1}${stress:20} smtpd_helo_required = no smtpd_helo_restrictions = smtpd_history_flush_threshold = 100 smtpd_junk_command_limit = ${stress?1}${stress:100} smtpd_milters = smtpd_noop_commands = smtpd_null_access_lookup_key = <> smtpd_peername_lookup = yes smtpd_policy_service_max_idle = 300s smtpd_policy_service_max_ttl = 1000s smtpd_policy_service_timeout = 100s smtpd_proxy_ehlo = $myhostname smtpd_proxy_filter = smtpd_proxy_options = smtpd_proxy_timeout = 3600s smtpd_recipient_limit = 1000 smtpd_recipient_overshoot_limit = 1000 smtpd_recipient_restrictions = permit_mynetworks, check_client_access pcre:/var/spool/postfix/plesk/no_relay.re, permit_sasl_authenticated, reject_unauth_destination smtpd_reject_unlisted_recipient = yes smtpd_reject_unlisted_sender = no smtpd_restriction_classes = smtpd_sasl_auth_enable = yes smtpd_sasl_authenticated_header = no smtpd_sasl_exceptions_networks = smtpd_sasl_local_domain = smtpd_sasl_path = smtpd smtpd_sasl_security_options = noanonymous smtpd_sasl_tls_security_options = $smtpd_sasl_security_options smtpd_sasl_type = cyrus smtpd_sender_login_maps = smtpd_sender_restrictions = check_sender_access hash:/var/spool/postfix/plesk/blacklists, permit_sasl_authenticated, check_client_access pcre:/var/spool/postfix/plesk/non_auth.re smtpd_soft_error_limit = 10 smtpd_starttls_timeout = 300s smtpd_timeout = 3600s smtpd_tls_CAfile = smtpd_tls_CApath = smtpd_tls_always_issue_session_ids = yes smtpd_tls_ask_ccert = no smtpd_tls_auth_only = no smtpd_tls_ccert_verifydepth = 9 smtpd_tls_cert_file = /etc/postfix/postfix_default.pem smtpd_tls_ciphers = export smtpd_tls_dcert_file = smtpd_tls_dh1024_param_file = smtpd_tls_dh512_param_file = smtpd_tls_dkey_file = $smtpd_tls_dcert_file smtpd_tls_eccert_file = smtpd_tls_eckey_file = $smtpd_tls_eccert_file smtpd_tls_eecdh_grade = none smtpd_tls_exclude_ciphers = smtpd_tls_fingerprint_digest = md5 smtpd_tls_key_file = $smtpd_tls_cert_file smtpd_tls_loglevel = 0 smtpd_tls_mandatory_ciphers = medium smtpd_tls_mandatory_exclude_ciphers = smtpd_tls_mandatory_protocols = SSLv3, TLSv1 smtpd_tls_protocols = smtpd_tls_received_header = no smtpd_tls_req_ccert = no smtpd_tls_security_level = may smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache smtpd_tls_session_cache_timeout = 3600s smtpd_tls_wrappermode = no smtpd_use_tls = yes soft_bounce = no stale_lock_time = 500s stress = strict_7bit_headers = no strict_8bitmime = no strict_8bitmime_body = no strict_mailbox_ownership = yes strict_mime_encoding_domain = no strict_rfc821_envelopes = no sun_mailtool_compatibility = no swap_bangpath = yes syslog_facility = mail syslog_name = ${multi_instance_name:postfix}${multi_instance_name?$multi_instance_name} tcp_windowsize = 0 tls_daemon_random_bytes = 32 tls_eecdh_strong_curve = prime256v1 tls_eecdh_ultra_curve = secp384r1 tls_export_cipherlist = ALL:+RC4:@STRENGTH tls_high_cipherlist = ALL:!EXPORT:!LOW:!MEDIUM:+RC4:@STRENGTH tls_low_cipherlist = ALL:!EXPORT:+RC4:@STRENGTH tls_medium_cipherlist = ALL:!EXPORT:!LOW:+RC4:@STRENGTH tls_null_cipherlist = eNULL:!aNULL tls_random_bytes = 32 tls_random_exchange_name = ${data_directory}/prng_exch tls_random_prng_update_period = 3600s tls_random_reseed_period = 3600s tls_random_source = dev:/dev/urandom trace_service_name = trace transport_maps = hash:/var/spool/postfix/plesk/transport transport_retry_time = 60s trigger_timeout = 10s undisclosed_recipients_header = To: undisclosed-recipients:; unknown_address_reject_code = 450 unknown_address_tempfail_action = $reject_tempfail_action unknown_client_reject_code = 450 unknown_helo_hostname_tempfail_action = $reject_tempfail_action unknown_hostname_reject_code = 450 unknown_local_recipient_reject_code = 550 unknown_relay_recipient_reject_code = 550 unknown_virtual_alias_reject_code = 550 unknown_virtual_mailbox_reject_code = 550 unverified_recipient_defer_code = 450 unverified_recipient_reject_code = 450 unverified_recipient_reject_reason = unverified_recipient_tempfail_action = $reject_tempfail_action unverified_sender_defer_code = 450 unverified_sender_reject_code = 450 unverified_sender_reject_reason = unverified_sender_tempfail_action = $reject_tempfail_action verp_delimiter_filter = -=+ virtual_alias_domains = $virtual_alias_maps virtual_alias_expansion_limit = 1000 virtual_alias_maps = $virtual_maps, hash:/var/spool/postfix/plesk/virtual virtual_alias_recursion_limit = 1000 virtual_destination_concurrency_failed_cohort_limit = $default_destination_concurrency_failed_cohort_limit virtual_destination_concurrency_limit = $default_destination_concurrency_limit virtual_destination_concurrency_negative_feedback = $default_destination_concurrency_negative_feedback virtual_destination_concurrency_positive_feedback = $default_destination_concurrency_positive_feedback virtual_destination_rate_delay = $default_destination_rate_delay virtual_destination_recipient_limit = $default_destination_recipient_limit virtual_gid_maps = static:31 virtual_initial_destination_concurrency = $initial_destination_concurrency virtual_mailbox_base = /var/qmail/mailnames virtual_mailbox_domains = $virtual_mailbox_maps, hash:/var/spool/postfix/plesk/virtual_domains virtual_mailbox_limit = 51200000 virtual_mailbox_lock = fcntl, dotlock virtual_mailbox_maps = hash:/var/spool/postfix/plesk/vmailbox virtual_minimum_uid = 100 virtual_transport = plesk_virtual virtual_uid_maps = static:110
#11
geschrieben 18. November 2011 - 09:29
In deinem Log sieht alles nach delivered aus, aber eben nach Plesk. Von denied ist da nichts zu lesen, daher nutzloses Log. Und der ist konfiguriert auf mailbox statt maildir, ist das Absicht?
Dieser Beitrag wurde von Nigg bearbeitet: 18. November 2011 - 09:32
#12
geschrieben 18. November 2011 - 09:32
Zitat
Also von mir, keine Absicht! Kann sein das das nen Default Wert von Plesk ist!
#13
geschrieben 18. November 2011 - 09:36
Dieser Beitrag wurde von Nigg bearbeitet: 18. November 2011 - 09:36
#14
geschrieben 18. November 2011 - 09:40
Vielleicht hat ja sonst wer ne Idee! (?)
#15
geschrieben 18. November 2011 - 09:51