multiple email problems, loops, duplicates...

Discussion in 'Installation/Configuration' started by veggieryan, Apr 8, 2007.

  1. veggieryan

    veggieryan New Member

    couple of problems.
    cannot send email to myself in webmail or i get the infinite loop.
    Code:
    pr  8 02:36:08 server1 postfix/smtp[8494]: 9295B10EEE: to=<[email protected]>, relay=none, delay=0, status=bounced (mail for localhost.localdomain loops back to myself)
    Apr  8 02:36:08 server1 postfix/cleanup[8440]: B630510EE6: message-id=<[email protected]>
    Apr  8 02:36:08 server1 postfix/qmgr[5770]: B630510EE6: from=<>, size=2328, nrcpt=1 (queue active)
    Apr  8 02:36:08 server1 postfix/trivial-rewrite[8439]: warning: do not list domain server1.fractalgroups.com in BOTH mydestination and virtual_alias_domains
    
    cannot send mail to local users of get this error
    Code:
    Apr  8 05:28:58 server1 postfix/cleanup[10052]: A2C1910EE8: message-id=<[email protected]>Apr  8 05:28:58 server1 postfix/qmgr[6314]: A2C1910EE8: from=<>, size=2425, nrcpt=1 (queue active)Apr  8 05:28:58 server1 postfix/qmgr[6314]: 8A40910EE7: removedApr  8 05:28:58 server1 postfix/pickup[10101]: C7C2C10EE7: uid=10012 from=<fractalgroups.com_ryan>Apr  8 05:28:58 server1 postfix/cleanup[10052]: C7C2C10EE7: message-id=<[email protected]>Apr  8 05:28:58 server1 postfix/local[10126]: A2C1910EE8: to=<[email protected]>, relay=local, delay=0, status=sent (delivered to command: /usr/bin/procmail -f-)Apr  8 05:28:58 server1 postfix/qmgr[6314]: A2C1910EE8: removedApr  8 05:28:58 server1 postfix/qmgr[6314]: C7C2C10EE7: from=<[email protected]>, size=436, nrcpt=1 (queue active)Apr  8 05:28:58 server1 postfix/smtp[10139]: C7C2C10EE7: to=<[email protected]>, relay=none, delay=0, status=bounced (Host or domain name not found. Name service error for name=localhost.localdomain type=AAAA: Host not found)Apr  8 05:28:58 server1 postfix/cleanup[10052]: DE5C410EE8: message-id=<[email protected]>Apr  8 05:28:58 server1 postfix/qmgr[6314]: DE5C410EE8: from=<>, size=2425, nrcpt=1 (queue active)Apr  8 05:28:58 server1 postfix/qmgr[6314]: C7C2C10EE7: removedApr  8 05:28:59 server1 postfix/local[10126]: DE5C410EE8: to=<[email protected]>, relay=local, delay=1, status=sent (delivered to command: /usr/bin/procmail -f-)Apr  8 05:28:59 server1 postfix/qmgr[6314]: warning: qmgr_active_done_3_generic: remove DE5C410EE8 from active: No such file or directoryApr  8 05:28:59 server1 postfix/postsuper[10190]: Deleted: 2 messages
    
    and sending mail externally fills up the remote mailbox with:
    Code:
    This is the Postfix program at host server1.fractalgroups.com.
    
    I'm sorry to have to inform you that your message could not
    be delivered to one or more recipients. It's attached below.
    
    For further assistance, please send mail to <postmaster>
    
    If you do so, please include this problem report. You can
    delete your own text from the attached returned message.
    
    			The Postfix program
    
    <[email protected]>: Host or domain name not found. Name
        service error for name=localhost.localdomain type=AAAA: Host not found
    Reporting-MTA: dns; server1.fractalgroups.com
    X-Postfix-Queue-ID: 8B58684511
    X-Postfix-Sender: rfc822; [email][email protected][/email]
    Arrival-Date: Sun,  8 Apr 2007 02:46:22 -0400 (EDT)
    
    Final-Recipient: rfc822; [email][email protected][/email]ldomain
    Action: failed
    Status: 5.0.0
    Diagnostic-Code: X-Postfix; Host or domain name not found. Name service error
        for name=localhost.localdomain type=AAAA: Host not found
    
    From: [email][email protected][/email] (FractalGroups.com)
    Date: April 7, 2007 11:46:22 PM PDT
    To: undisclosed-recipients:;
    Subject: Mailsize: web2_info.fractalgroups
    
    
    2570
    

    Gulp.

    ideas?

    many thanks in advance.
     
  2. Hans

    Hans Moderator Moderator

    Please add the following linesto your /etc/postfix/main.cf (in case you do not have those lines):

    /etc/postfix/local-host-names
    virtual_maps = hash:/etc/postfix/virtusertable

    After that restart postfix with /etc/init.d/postfix restart
     
  3. veggieryan

    veggieryan New Member

    i have in /etc/postfix/main.cf
    Code:
    # 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 (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
    
    # TLS parameters
    smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
    smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
    smtpd_use_tls = yes
    smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
    smtp_tls_session_cache_database = btree:${queue_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 = server1.fractalgroups.com
    alias_maps = hash:/etc/aliases
    alias_database = hash:/etc/aliases
    myorigin = /etc/mailname
    mydestination = server1.fractalgroups.com , localhost.fractalgroups.com, localh$
    relayhost =
    mynetworks = 127.0.0.0/8
    mailbox_command = procmail -a "$EXTENSION"
    mailbox_size_limit = 0
    recipient_delimiter = +
    inet_interfaces = all
    inet_protocols = all
    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,reje$
    mtpd_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
    
    virtual_maps = hash:/etc/postfix/virtusertable
    
    mydestination = /etc/postfix/local-host-names
    

    another error i get when sending external mail
    Code:
    Apr  8 02:36:09 server1 postfix/smtp[8461]: B423110EE9: to=<[email protected]>, orig_to=<[email protected]>, relay=realenergy.net[69.56.215.2], delay=3, status=bounced (host realenergy.net[69.56.215.2] said: 550-Verification failed for <web2_info.fractalgroups@localhost> 550-unrouteable mail domain "localhost" 550 Sender verify failed (in reply to RCPT TO command))
    
    seems like it is something simple....
     
  4. Hans

    Hans Moderator Moderator

    Please change the line:
    mydestination = server1.fractalgroups.com , localhost.fractalgroups.com

    within:

    #mydestination = server1.fractalgroups.com , localhost.fractalgroups.com

    Because you've the line:

    mydestination = /etc/postfix/local-host-names
     
  5. veggieryan

    veggieryan New Member

    that seems to have fixed the problem with remote emails...

    but if i send to a local email on the same domain i get infinite loop of the following emails in the recipients box:
    Code:
    This is the Postfix program at host server1.fractalgroups.com.
    
    I'm sorry to have to inform you that your message could not
    be delivered to one or more recipients. It's attached below.
    
    For further assistance, please send mail to <postmaster>
    
    If you do so, please include this problem report. You can
    delete your own text from the attached returned message.
    
    			The Postfix program
    
    <[email protected]>: Host or domain name not found. Name
        service error for name=localhost.localdomain type=AAAA: Host not found
    Reporting-MTA: dns; server1.fractalgroups.com
    X-Postfix-Queue-ID: 2558D10EEC
    X-Postfix-Sender: rfc822; [email protected]
    Arrival-Date: Tue, 10 Apr 2007 03:21:46 -0400 (EDT)
    
    Final-Recipient: rfc822; [email protected]
    Action: failed
    Status: 5.0.0
    Diagnostic-Code: X-Postfix; Host or domain name not found. Name service error
        for name=localhost.localdomain type=AAAA: Host not found
    Subject: 	Mailsize: fractalgroups.com_info
    Sender: 	(info) 
    Recipient: 	undisclosed-recipients:;
    Date: 	Today 08:21
    2550
    
    thanks...
    :confused:
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Please add localhost.localdomain at the end of the line that begins with 127.0.0.1 in the file /etc/hosts. Make sure that there is a space between the last entry and your new entry.
     
  7. veggieryan

    veggieryan New Member

    ok

    i already had this... is it incorrect?
    Code:
    127.0.0.1   localhost.localdomain localhost
    64.22.71.53  server1.fractalgroups.com server1
    
    # The following lines are desirable for IPv6 capable hosts
    # (added automatically by netbase upgrade)
    
    ::1     ip6-localhost ip6-loopback
    fe00::0 ip6-localnet
    ff00::0 ip6-mcastprefix
    ff02::1 ip6-allnodes
    ff02::2 ip6-allrouters
    ff02::3 ip6-allhosts
    
     
  8. veggieryan

    veggieryan New Member

    well,
    I guess I fixed it by manually adding localhost.localdomain to /etc/postfix/local-host-names

    Code:
    ###################################
    #
    # ISPConfig local-host-names Configuration File
    #         Version 1.0
    #
    ###################################
    localhost
    server1.fractalgroups.com
    localhost.server1.fractalgroups.com
    localhost.fractalgroups.com
    #### MAKE MANUAL ENTRIES BELOW THIS LINE! ####
    localhost.localdomain
    
    my question is... why did i have to do this?
     
  9. veggieryan

    veggieryan New Member

Share This Page