Email not delivering

Discussion in 'Installation/Configuration' started by crypted, Apr 14, 2010.

  1. crypted

    crypted Member

    I'm having an issue with email being delivered to my new setup with Ispconfig3.

    The domain and dns work fine. I can view them no problems. Also, I can login to the email account via Squirrelmail without an issue.

    Email just is not being delivered.

    There is a dns entry for the MAIL for that domain.

    Any thoughts?

    The hostname for the server does not resolve to the server as it is the same name as my old machine. However, I edited the hosts file to make it resolve to the internal IP locally. So that should not affect this.

    Code:
    127.0.0.1       localhost
    127.0.1.1       its.domain.com     its
    66.118.142.78   its.domain.com
    Mail log:
    Code:
    Apr 14 13:11:05 its postfix/pickup[6740]: C006E541C8: uid=33 from=<[email protected]>
    Apr 14 13:11:05 its postfix/cleanup[7916]: C006E541C8: message-id=<[email protected]>
    Apr 14 13:11:05 its postfix/qmgr[6742]: C006E541C8: from=<[email protected]>, size=883, nrcpt=1 (queue active)
    Apr 14 13:11:10 its postfix/smtpd[7923]: connect from localhost[127.0.0.1]
    Apr 14 13:11:10 its postfix/smtpd[7923]: 432D7541CA: client=localhost[127.0.0.1]
    Apr 14 13:11:10 its postfix/cleanup[7916]: 432D7541CA: message-id=<[email protected]>
    Apr 14 13:11:10 its postfix/qmgr[6742]: 432D7541CA: from=<[email protected]>, size=1348, nrcpt=1 (queue active)
    Apr 14 13:11:10 its amavis[4956]: (04956-01) Passed CLEAN, <[email protected]> -> <[email protected]>, Message-ID: <20$
    Apr 14 13:11:10 its postfix/smtp[7919]: C006E541C8: to=<[email protected]>, relay=127.0.0.1[127.0.0.1]:10024, delay=4.6, delays$
    Apr 14 13:11:10 its postfix/qmgr[6742]: C006E541C8: removed
    Apr 14 13:11:11 its postfix/smtp[7927]: warning: host its.domain.com[65.110.53.130]:25 greeted me with my own hostname its.der$
    Apr 14 13:11:11 its postfix/smtp[7927]: warning: host its.domain.com[65.110.53.130]:25 replied to HELO/EHLO with my own hostna$
    Apr 14 13:11:11 its postfix/smtp[7927]: 432D7541CA: to=<[email protected]>, relay=its.domain.com[65.110.53.130]:25, delay=$
    Apr 14 13:11:11 its postfix/cleanup[7916]: DE48F541CD: message-id=<[email protected]>
    Apr 14 13:11:11 its postfix/qmgr[6742]: DE48F541CD: from=<>, size=3249, nrcpt=1 (queue active)
    Apr 14 13:11:11 its postfix/bounce[7928]: 432D7541CA: sender non-delivery notification: DE48F541CD
    Apr 14 13:11:11 its postfix/qmgr[6742]: 432D7541CA: removed
    Apr 14 13:11:18 its postfix/smtp[7927]: DE48F541CD: to=<[email protected]>, relay=none, delay=6.1, delays=0.01/0/6.1/0,
     
    Is it possible that the two hosts being the same, it loops back?

    After using the perfect setup guide for Debian 5.0, how would I go back in and manually adjust the hostnames and mail server address settings to be like its2.domain.tld whereby I can assign dns to it and test that way?
     
    Last edited: Apr 14, 2010
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Edit /etc/postfix/main.cf and /etc/mailname Make sure that you use a unique hostname and that this hostname resolves to the server in the dns system.
     
  3. crypted

    crypted Member

    Nothing needs changed for ISPConfig to recognize the stuff? I know in the control panel it has my server name in there. Will it automatically change to the new hostname?

    I assume I should also edit the /etc/hosts/ and /etc/hostname files too?
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    If you want to change the hostname too and not just the mailname, then you will have to change the files /etc/hosts/ and /etc/hostname too.

    The hostname in ispconfig is just there as a name for this server in ispconfig, it has no influence on the configured services. You may change it too of course if you like.
     
  5. crypted

    crypted Member

    Did all of that. The email is not being delivered still.

    The Mail.log makes it apparent that it thinks it deliverd it...but it did not get to the mail box for squirrelmail access.

    Code:
     14 16:14:24 my postfix/smtpd[5260]: C2764541CD: client=localhost[127.0.0.1]
    Apr 14 16:14:24 my postfix/cleanup[5252]: C2764541CD: message-id=<[email protected]$
    Apr 14 16:14:24 my postfix/smtpd[5260]: disconnect from localhost[127.0.0.1]
    Apr 14 16:14:24 my postfix/qmgr[3740]: C2764541CD: from=<[email protected]>, size=2765, nrcpt=1 (queue active)
    Apr 14 16:14:24 my amavis[3149]: (03149-02) Passed CLEAN, [65.54.190.93] [65.54.190.125] <[email protected]> -> <s$
    Apr 14 16:14:24 my postfix/smtp[5253]: EEE3F541CC: to=<[email protected]>, relay=127.0.0.1[127.0.0.1]:1002$
    Apr 14 16:14:24 my postfix/qmgr[3740]: EEE3F541CC: removed
    Apr 14 16:14:24 my postfix/pipe[5262]: C2764541CD: to=<[email protected]>, relay=maildrop, delay=0.07, del$
    Apr 14 16:14:24 my postfix/qmgr[3740]: C2764541CD: removed
    Apr 14 16:15:01 my postfix/smtpd[5248]: connect from localhost[127.0.0.1]
    Apr 14 16:15:01 my postfix/smtpd[5248]: lost connection after CONNECT from localhost[127.0.0.1]
    Apr 14 16:15:01 my postfix/smtpd[5248]: disconnect from localhost[127.0.0.1]
    Apr 1
    The folder in /vmail/ for this account has been chowned to vmail:vmail after rsync. I can see previous email from old server. New emails are being delivered after about a 1 hour delay. I did get the ISPCONFIG welcome email.

    The first email account I setup (new domain, no data transfer) still does not work. Mail sent from this email account is delivered to other email accounts on other servers without issue. Half of the email tests TO this account have never been delivered. It took 2 hours for the other responses to be delivered.

    There is a delay from the email being received by POSTFIX and actually delivered to the email accounts.

    FURTHER, vmail has an email account of "webmaster" that I never setup at ALL. And this email account isn't listed in the Email Accounts on the Control Panel. No other domain has a random address not setup in the panel.

    drwx------ 10 vmail vmail 4.0K 2010-04-14 16:41 onthelevel
    drwx------ 5 vmail vmail 4.0K 2010-04-14 13:19 webmaster

    There are no errors with the hostname on this machine now
     
    Last edited: Apr 15, 2010

Share This Page