Postfix: mail for myserver.com loops back to myself

Discussion in 'Server Operation' started by catshoe, Jul 30, 2013.

  1. catshoe

    catshoe New Member

    Hi Folks,

    I just upgraded my system to debian-squeeze and I have some trouble configuring dovecot/postfix again. The main issue currently is, that postfix declines any incoming mail with the error:

    Code:
    postfix/smtp[13928]: 94993467C532: to=<[email protected]>, orig_to=<[email protected]>, relay=none, delay=2.3, delays=2.3/0/0/0, dsn=5.4.6, status=bounced (mail for myserver.com loops back to myself)
    I read through several forums and almost all of the times, the problem is a missconfigured
    Code:
    mydestination
    or
    Code:
    relayhost
    . However, this seems fine to me in my main.cf:

    Code:
    #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/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
    smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
    
    myhostname = myserver.com
    mydomain = myserver.com
    alias_maps = hash:/etc/aliases
    alias_database = hash:/etc/aliases
    myorigin = /etc/mailname
    mydestination = myserver.com, lvps83-119-3-116.dedicated.hosteurope.de, localhost.dedicated.hosteurope.de, localhost
    #relayhost =
    mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
    mailbox_command = procmail -a "$EXTENSION"
    mailbox_size_limit = 0
    recipient_delimiter = +
    inet_interfaces = all
    inet_protocols = all
    
    smtpd_sasl_auth_enable = yes
    smtpd_sasl_type = dovecot
    smtpd_sasl_path = private/auth
    smtpd_sasl_security_options = noanonymous
    smtpd_sasl_local_domain = $myhostname
    broken_sasl_auth_clients = yes
    
    virtual_alias_maps = hash:/etc/postfix/virtual_alias
    virtual_alias_domains = /etc/postfix/virtual_domains
    transport_maps = hash:/etc/postfix/transport_maps
    
    
    # ----------------------------------------------------------------------
    smtpd_recipient_restrictions = permit_mynetworks, reject_unknown_recipient_domain,  permit_sasl_authenticated, reject_unauth_destination
    smtpd_sender_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_non_fqdn_sender, reject_unknown_sender_domain, permit
    smtpd_helo_restrictions = permit_mynetworks, reject_non_fqdn_hostname, reject_invalid_hostname, permit
    What should I do now ? Any hints ?
     

Share This Page