(mail for mail.example.com loops back to myself)

Discussion in 'Server Operation' started by magicalshashank31, Oct 30, 2012.

  1. magicalshashank31

    magicalshashank31 New Member

    I am configuring E-mail server in centos 6 by following http://www.howtoforge.com/virtual-u...er-mysql-and-squirrelmail-fedora-17-x86_64-p4.

    All things are working, but when i try to send mail it says the error:
    1.mail for mail.example.com loops back to myself. #when i try to send mail from my centos6
    2.when i try to acces mails via squirrelmail login page ,but when i login through [email protected] and password secret it says connection dropped by imap server The logs of the maillog file is given
     Oct 30 20:24:34 localhost clamd[5285]: SelfCheck: Database status OK.
    Oct 30 20:27:46 localhost imapd: Connection, ip=[::ffff:]
    Oct 30 20:27:46 localhost imapd: chdir example.com/sales/: No such file or directory
    Oct 30 20:27:46 localhost imapd: [email protected]: No such file or directory
    # when i tery to open [email protected] it says Connection dropped by imap server .

    MY main.cf is:

    postconf -n
    alias_database = hash:/etc/aliases
    alias_maps = hash:/etc/aliases
    broken_sasl_auth_clients = yes
    command_directory = /usr/sbin
    config_directory = /etc/postfix
    content_filter = amavis:[]:10024
    daemon_directory = /usr/libexec/postfix
    data_directory = /var/lib/postfix
    debug_peer_level = 2
    html_directory = no
    inet_interfaces = all
    inet_protocols = all
    mail_owner = postfix
    mail_spool_directory = /var/spool/mail
    mailq_path = /usr/bin/mailq.postfix
    manpage_directory = /usr/share/man
    mydestination = localhost, localhost.localdomain, server.example.com
    mydomain = example.com
    myhostname = server.example.com
    mynetworks =
    myorigin = $mydomain
    newaliases_path = /usr/bin/newaliases.postfix
    proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks $virtual_mailbox_limit_maps
    queue_directory = /var/spool/postfix
    readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES
    receive_override_options = no_address_mappings
    sample_directory = /usr/share/doc/postfix-2.6.6/samples
    sendmail_path = /usr/sbin/sendmail.postfix
    setgid_group = postdrop
    smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
    smtpd_sasl_auth_enable = yes
    smtpd_sasl_authenticated_header = yes
    smtpd_tls_cert_file = /etc/postfix/smtpd.cert
    smtpd_tls_key_file = /etc/postfix/smtpd.key
    smtpd_use_tls = yes
    transport_maps = proxy:mysql:/etc/postfix/mysql-virtual_transports.cf
    unknown_local_recipient_reject_code = 550
    virtual_alias_domains = 
    virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, mysql:/etc/postfix/mysql-virtual_email2email.cf
    virtual_gid_maps = static:5000
    virtual_mailbox_base = /home/vmail
    virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
    virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
    virtual_uid_maps = static:5000
    when i try from system
    #mailx [email protected]
    nd check the logs it gives . (here [email protected] is a virtual user but even the same problem comes up with system users also)
    tail /var/log/maillog
    Oct 30 20:04:45 localhost postfix/qmgr[9149]: D2B411A1347: from=<[email protected]>, size=863, nrcpt=1 (queue active)
    Oct 30 20:04:45 localhost postfix/smtpd[9174]: disconnect from unknown[]
    Oct 30 20:04:45 localhost amavis[5323]: (05323-12) Passed CLEAN, <[email protected]> -> <[email protected]>, Message-ID: <[email protected]>, mail_id: wtEuHsHmOmVi, Hits: 0, size: 430, queued_as: D2B411A1347, 11797 ms
    Oct 30 20:04:45 localhost postfix/smtp[9168]: 198B01A1348: to=<[email protected]>, relay=[]:10024, delay=12, delays=0.22/0.01/0/12, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=05323-12, from MTA([]:10025): 250 2.0.0 Ok: queued as D2B411A1347)
    Oct 30 20:04:45 localhost postfix/qmgr[9149]: 198B01A1348: removed
    Oct 30 20:04:45 localhost postfix/smtp[9155]: D2B411A1347: to=<[email protected]>, relay=none, delay=0.07, delays=0.07/0/0/0, dsn=5.4.6, status=bounced ([B]mail for mail.example.com loops back to myself)[/B]
    Oct 30 20:04:45 localhost postfix/cleanup[9158]: F1FC41A1348: message-id=<[email protected]>
    please help !!
    Last edited: Oct 30, 2012
  2. falko

    falko Super Moderator ISPConfig Developer

    Please add mail.example.com to the mydestination line in /etc/postfix/main.cf and restart Postfix.

Share This Page