Sendmail/Postfix/Dovecot loop

Discussion in 'Installation/Configuration' started by sojic, Apr 29, 2008.

  1. sojic

    sojic New Member

    I just create e-mail, try to send "test" mail and it was OK. The mail was sent but.... I receiving Undelivered Mail Returned to Sender

    Here is the message:
    This is generating non stop. So... in 1 minute it generate 400 mails.


    How to stop this and how to solve the problem?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Please add the line:

    localhost.localdomain.w2kumanovo.com

    at the end of the local-host-names file and restart sendmail.
     
  3. sojic

    sojic New Member

    Same problem.
     
  4. falko

    falko Super Moderator ISPConfig Developer

    Is the error message exactly the same, or does the hostname differ?
    What's in /etc/postfix/local-host-names?
     
  5. sojic

    sojic New Member

    I can send mail from server but I can not receive.

    Here is "try" to send mail from google to mail "hosted" on ISP config

     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Please post the information that falko requested.
     
  7. sojic

    sojic New Member

    I stop postfix (to avoid 400 mails per minute) and ask here.

    After editing local-host-names and starting postfix it was same problem, some loop.

    I delete the mail (in ispconfig) and create new.

    I try to send, again, test mail and there wasn't loop.

    Then I try to send mail from gmail to @domain.com and get "quoted" message (mail can not be delivered)
     
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    Falko asked you to post the content of the local-host-names file, please post this content.
     
  9. sojic

    sojic New Member

    Code:
    
    [[email protected] postfix]# cat local-host-names
    ###################################
    #
    # ISPConfig local-host-names Configuration File
    #         Version 1.0
    #
    ###################################
    localhost
    web1.w2kumanovo.com
    localhost.web1.w2kumanovo.com
    localhost.w2kumanovo.com
    localhost.localdomain
    www.w2kumanovo.com
    www.amazon-r.com
    maps.w2kumanovo.com
    files.dalibor-sojic.info
    downloads.w2kumanovo.com
    forum.w2kumanovo.com
    chat.w2kumanovo.com
    www.arenco.biz
    www.sportxnews.com
    www.lawinteralia.com
    komarec.dalibor-sojic.info
    www.amazonce.com
    www.manaskov.com
    www.kumanovo2night.com
    www.best-web-casinos.info
    accounting.w2kumanovo.com
    www.free-forex-signals.com
    fragmat.dalibor-sojic.info
    www.hicham.com
    www.petarpavlov.com
    www.doznaj.com
    www.deltamk.org
    www.nestor-gard.com
    www.w2.com.mk
    formulari.dalibor-sojic.info
    www.vektor.com.mk
    www.gjokomura.com
    www.birteks.com.mk
    www.braniteli.org
    www.kupages.com
    www.doo-ekonomija.com.mk
    www.skytik.org
    www.dalibor-sojic.info
    www.kumanovonews.com
    w2kumanovo.com
    amazon-r.com
    dalibor-sojic.info
    arenco.biz
    sportxnews.com
    lawinteralia.com
    amazonce.com
    manaskov.com
    kumanovo2night.com
    best-web-casinos.info
    free-forex-signals.com
    hicham.com
    petarpavlov.com
    skytik.org
    doznaj.com
    deltamk.org
    forum.doznaj.com
    nestor-gard.com
    w2.com.mk
    vektor.com.mk
    gjokomura.com
    birteks.com.mk
    braniteli.org
    doo-ekonomija.com.mk
    kupages.com
    veneja.com
    freednscontrol.com
    kumanovonews.com
    #### MAKE MANUAL ENTRIES BELOW THIS LINE! ####
    localhost.localdomain.w2kumanovo.com
    
    
    This is first time to "set" mail account. All of this domains do not use mail.
     
  10. falko

    falko Super Moderator ISPConfig Developer

    Looks good. What's in /etc/postfix/main.cf?
     
  11. sojic

    sojic New Member

    Code:
    
    [[email protected] postfix]# cat main.cf | egrep -v "(^#.*|^$)"
    queue_directory = /var/spool/postfix
    command_directory = /usr/sbin
    daemon_directory = /usr/libexec/postfix
    mail_owner = postfix
    inet_interfaces = all
    unknown_local_recipient_reject_code = 550
    alias_maps = hash:/etc/aliases
    alias_database = hash:/etc/aliases
    
    
    debug_peer_level = 2
    debugger_command =
             PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
             xxgdb $daemon_directory/$process_name $process_id & sleep 5
    sendmail_path = /usr/sbin/sendmail.postfix
    newaliases_path = /usr/bin/newaliases.postfix
    mailq_path = /usr/bin/mailq.postfix
    setgid_group = postdrop
    html_directory = no
    manpage_directory = /usr/share/man
    sample_directory = /usr/share/doc/postfix-2.3.3/samples
    readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
    smtpd_sasl_local_domain =
    smtpd_sasl_auth_enable = yes
    smtpd_sasl_security_options = noanonymous
    broken_sasl_auth_clients = yes
    smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
    mynetworks = 127.0.0.0/8
    smtpd_tls_auth_only = no
    smtp_use_tls = yes
    smtpd_use_tls = yes
    smtp_tls_note_starttls_offer = yes
    smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
    smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
    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
    home_mailbox = Maildir/
    mailbox_command =
    virtual_maps = hash:/etc/postfix/virtusertable
    [[email protected] postfix]#
    
    
     
  12. falko

    falko Super Moderator ISPConfig Developer

    Please run
    Code:
    postconf -e 'mydestination = /etc/postfix/local-host-names'
    /etc/init.d/postfix restart
     
  13. sojic

    sojic New Member

    It works. Thanks a lot.
     

Share This Page