Results 1 to 7 of 7

Thread: mail for mail.domain.tld loops back to myself

  1. #1
    todd_dsm's Avatar
    todd_dsm is offline Loyal Member
    Join Date
    May 2008
    Location
    Des Moines, IA
    Posts
    89
    Rep Power
    7

    Default mail for mail.domain.tld loops back to myself

    Hey guys, this is an old one - I already know. My ZCS install is doing this even though the configuration looks like the proposed solutions:
    Mar 26 04:03:47 zerver postfix/smtp[13187]: 15BDA12011B: to=<root@mail.domain.tld>, relay=none, delay=0.1, delays=0.01/0.08/0.01/0, dsn=5.4.6, status=bounced (mail for mail.domain.tld loops back to myself)

    It should be said now that all test email accounts (any_user@domain.tld), created POST-install, send and receive email as expected.
    Mar 1 18:49:43 zerver postfix/lmtp[3679]: 58764120166: to=<user@domain.tld>, relay=mail.domain.tld[10.0.0.4]:7025, delay=0.13, delays=0.01/0.03/0.03/0.05, dsn=2.1.5, status=deliverable (250 2.1.5 Recipient OK)
    There are 2 accounts that do not: root@mail.domain.tld and zimbra@mail.domain.tld. These are the ones that the above error.

    I suspect that it's the mail.domain.tld that's giving the issue.; eg: zimbra can find domain domain.tld but it cannot find domain mail.domain.tld.

    I'm sure these are system accounts sending various system emails to the zimbra admin@domain.tld.

    From previous posts it appears that most of this is due to funky name resolution; this is the extended club remix:
    1) cat /etc/hosts
    Code:
    ### Do not remove the following line, or various programs
    ### that require network functionality will fail.
    127.0.0.1	localhost.localdomain	localhost
    10.0.0.4	mail.domain.tld	    mail     hostname
    ###::1		localhost6.localdomain6	localhost6

    2) named.conf is configured for Split DNS.
    Code:
    view "internal"
    {       match-clients           { localnets; };
            match-destinations      { localnets; };
            recursion yes;
            include "/etc/named.root.hints";
    ...
            // domain for local network map
            zone "mail.domain.tld" {
                    type master;
                    file "domain.tld.zone";
                    };
    ...
    };
    view    "external"
    {       match-clients           { any; };
            match-destinations      { any; };
            recursion no;
    
            // domain map for external network
            zone "domain.tld" {
                    type master;
                    file "domain.tld.ext.zone";
                    allow-update { none; };
            };
    };

    3) A sample zone file for domain.tld
    Code:
                       NS           hostname.domain.tld.
                    IN NS           hostname.domain.tld.
                    IN MX   10      mail.domain.tld.
                    IN A            10.0.0.4
    mail            IN A            10.0.0.4
    hostname        IN CNAME        mail
    www             IN CNAME        mail
    ftp             IN CNAME        mail

    4) main.cf looks good:
    Code:
    # grep '^my' /opt/zimbra/postfix/conf/main.cf
    myhostname = mail.domain.tld
    mydestination = localhost
    mynetworks = 127.0.0.0/8 10.0.0.0/24

    5) The hostname is set per the requirement
    Code:
    # cat /etc/sysconfig/network
    NETWORKING_IPV6=no
    NOZEROCONF=yes
    NETWORKING=yes
    GATEWAY=10.0.0.1
    HOSTNAME=hostname.domain.tld
    6) Postgrey
    Code:
    # netstat -a | grep postgrey 
    unix  2      [ ACC ]     STREAM     LISTENING     8526   /var/spool/postfix/postgrey/socket

    I have 4 design constraints:
    1. Im selling this as a solution with a specific name (hostname)
    2. I would like all message headers and various transactions to read 'mail.domain.tld' to avoid any confusion
    3. This box uses postgrey via
    4. This is on a CentOS 5.7 OS: Release 6.0.9_GA_2686.RHEL5_64_20101115233514 CentOS5_64 FOSS edition.


    Also, I know there are newer ZCS versions. I'm working with an older version to test an EZ update procedure which is part of the product.


    This is a full (sample) transaction: from the admin email account to user1
    Code:
    Mar  1 18:53:26 hostname zmmailboxdmgr[6626]: status requested
    Mar  1 18:53:26 hostname zmmailboxdmgr[6626]: status OK
    Mar  1 18:53:27 hostname postfix/smtpd[6651]: connect from hostname.domain.tld[10.0.0.4]
    Mar  1 18:53:27 hostname postfix/smtpd[6651]: 42A79120166: client=hostname.domain.tld[10.0.0.4]
    Mar  1 18:53:27 hostname postfix/cleanup[6653]: 42A79120166: message-id=<722031018.10.1330649607049.JavaMail.root@hostname.domain.tld>
    Mar  1 18:53:27 hostname postfix/qmgr[9215]: 42A79120166: from=<admin@domain.tld>, size=580, nrcpt=1 (queue active)
    Mar  1 18:53:27 hostname postfix/smtpd[6651]: disconnect from hostname.domain.tld[10.0.0.4]
    Mar  1 18:53:28 hostname postfix/smtpd[6665]: connect from localhost.localdomain[127.0.0.1]
    Mar  1 18:53:28 hostname postfix/smtpd[6665]: 2D98C120168: client=localhost.localdomain[127.0.0.1]
    Mar  1 18:53:28 hostname postfix/cleanup[6653]: 2D98C120168: message-id=<722031018.10.1330649607049.JavaMail.root@hostname.domain.tld>
    Mar  1 18:53:28 hostname postfix/qmgr[9215]: 2D98C120168: from=<admin@domain.tld>, size=1204, nrcpt=1 (queue active)
    Mar  1 18:53:28 hostname postfix/smtpd[6665]: disconnect from localhost.localdomain[127.0.0.1]
    Mar  1 18:53:28 hostname postfix/smtp[6654]: 42A79120166: to=<user1@domain.tld>, relay=127.0.0.1[127.0.0.1]:10024, delay=1.1, delays=0.08/0.07/0.01/0.89, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=06564-02, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 2D98C120168)
    Mar  1 18:53:28 hostname postfix/qmgr[9215]: 42A79120166: removed
    Mar  1 18:53:28 hostname postfix/lmtp[6666]: 2D98C120168: to=<user1@domain.tld>, relay=mail.domain.tld[10.0.0.4]:7025, delay=0.34, delays=0.02/0.03/0.11/0.18, dsn=2.1.5, status=sent (250 2.1.5 Delivery OK)
    Mar  1 18:53:28 hostname postfix/qmgr[9215]: 2D98C120168: removed
    Mar  1 18:53:29 hostname zmmailboxdmgr[6723]: status requested
    Mar  1 18:53:29 hostname zmmailboxdmgr[6723]: status OK
    Last edited by todd_dsm; 03-02-2012 at 10:35 AM.

  2. #2
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,586
    Rep Power
    57

    Default

    I'm somewhat confused by the format of this line in your hosts file:

    Code:
    10.0.0.4	mail.mail.domain.tld	mail     hostname
    Shouldn't it be like this:

    Code:
    10.0.0.4	mail.domain.tld	mail
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  3. #3
    todd_dsm's Avatar
    todd_dsm is offline Loyal Member
    Join Date
    May 2008
    Location
    Des Moines, IA
    Posts
    89
    Rep Power
    7

    Default

    Bill, sorry, that was a type-o while masking the domain. Just verified - it's correct now.

  4. #4
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,586
    Rep Power
    57

    Default

    I'm still confised as to the reason you also have "hostname" in there and it's CNAME that's pointing to your your mail A record. You shouldn't really be using a CNAME anywhere near a mail server, it may cause you problems and is the word "hostname" a literal or something else - in any case it seems redundant.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  5. #5
    todd_dsm's Avatar
    todd_dsm is offline Loyal Member
    Join Date
    May 2008
    Location
    Des Moines, IA
    Posts
    89
    Rep Power
    7

    Default

    hostname is litteral, although it represents the actual hostname. when you login to the product I would like the prompt so reflect the product name; eg, when an admin logs in:

    $ ssh root@hostname.domain.tld

    Welcome root, you now have command of hostname.domain.tld
    Last login: Thu Mar 1 15:06:09 2012 from 10.0.0.x
    [root@hostname ~]#

    But, this is the only reason for it. Outside of that, I don't care. Consider it the same as any other product - Zimbra for example. You want the name and logo to be consistent throughout the product. The only exception is that my palette (the shell) is a blank white screen with black text.

  6. #6
    todd_dsm's Avatar
    todd_dsm is offline Loyal Member
    Join Date
    May 2008
    Location
    Des Moines, IA
    Posts
    89
    Rep Power
    7

    Default New zone file

    New zone file for domain.tld
    Code:
                       NS           hostname.domain.tld.
                    IN NS           hostname.domain.tld.
                    IN MX   10      mail.domain.tld.
                    IN A            10.0.0.4
    mail            IN A            10.0.0.4
    hostname        IN A            10.0.0.4
    www             IN CNAME        mail
    ftp             IN CNAME        mail
    Mark this one as a duh :-)

    I'll have to wait a few hours to check bounce status unless you know how to trigger those zimbra reports that were being sent from zimbra@mail.domain.tld...

    ?

  7. #7
    todd_dsm's Avatar
    todd_dsm is offline Loyal Member
    Join Date
    May 2008
    Location
    Des Moines, IA
    Posts
    89
    Rep Power
    7

    Default common naming convention for system email addresses

    After checking inbound email from other systems, it appears that user@host.domain.tld is the common format for any server.

    This seems to be an issue with bind or Zimbra. I'm guessing bind but it's tripple checked the docs and my configuration and they seem to be sync'd.

    Please help.
    Last edited by todd_dsm; 03-05-2012 at 03:41 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Renewing certificate failed zimbra 6
    By buddhikeg in forum Administrators
    Replies: 30
    Last Post: 04-28-2012, 07:28 PM
  2. Replies: 24
    Last Post: 07-13-2011, 08:47 AM
  3. mail error - loops back to myself
    By infocentric in forum Installation
    Replies: 1
    Last Post: 11-20-2007, 03:02 PM
  4. fresh install down may be due to tomcat
    By gon in forum Installation
    Replies: 10
    Last Post: 07-25-2007, 08:09 AM
  5. DynDNS and Zimbra
    By afterwego in forum Installation
    Replies: 30
    Last Post: 04-01-2007, 03:34 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •