Another Mail Delivery Issue - Ubuntu Perfect Server 7.1x

Discussion in 'General' started by dbrooke, Oct 27, 2007.

  1. dbrooke

    dbrooke New Member

    Hello,

    I installed the above mentioned earlier. The install looks
    pretty good, I can connect to my account created with ISPConfig
    just fine with a mail client
    etc... however, when sending mail to my account.. it appears
    it never gets there.

    Right now, this is just an internal account using local
    hostnames etc...

    the local address should be: mail.elatia.net.. however,
    the logs look like it's attempting to post to mail.elatia.com.
    I must have munged something up (switched out the .net for the .com
    somewhere during setup). Here is a /var/log/mail.log snippet:

    Oct 23 22:00:08 ubuntu postfix/smtp[27356]: connect to mail.elatia.com[69.25.47.164]: No route to host (port 25)
    Oct 23 22:00:38 ubuntu postfix/smtp[27356]: connect to mail.elatia.com[66.150.161.57]: Connection timed out (port 25)
    Oct 23 22:00:38 ubuntu postfix/smtp[27356]: 27F223FA52: to=<root@mail.elatia.com>, relay=none, delay=37, delays=0.01/0/37/0, dsn=4.4.1, status=deferred (connect to mail.elatia.com[66.150.161.57]: Connection timed out)


    Can someone help me get this configured to the right domain? This
    is my first linux server install, so I apologize if this is a simple
    fix.

    Thanks,
    Donovan
     
  2. dbrooke

    dbrooke New Member

    Found mail.elatia.com
    in /etc/mailname

    I vim'ed to mail.elatia.net

    I then reloaded the config file for postfix.

    Still the same error in /var/log/mail.log:

    Oct 27 14:06:48 ubuntu postfix/smtp[21695]: connect to mail.elatia.com[66.150.161.57]: Connection timed out (port 25)
    Oct 27 14:06:48 ubuntu postfix/smtp[21695]: E5A233FA5C: to=<root@mail.elatia.com>, relay=none, delay=311807, delays=311755/0.08/51/0, dsn=4.4.1, status=deferred (connect to mail.elatia.com[66.150.161.57]: Connection timed out)

    I also restarted postfix.. and no go.

    Could this be in another app? I grepped the dovecot directory for 'elatia.com'.. and couldn't find anything.

    TIA,
    Donovan
     
  3. till

    till Super Moderator

    Please post the output of:

    netstat -tap

    and:

    iptables -L

    I guess that mail.elatia.com is your local server, were you installed ISPConfig?
     
  4. dbrooke

    dbrooke New Member

    root@ubuntu:/home/# netstat -tap
    Active Internet connections (servers and established)
    Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
    tcp 0 0 *:mysql *:* LISTEN 4156/mysqld
    tcp 0 0 *:81 *:* LISTEN 17368/ispconfig_htt
    tcp 0 0 ubuntu.elatia.ne:domain *:* LISTEN 9663/named
    tcp 0 0 localhost.locald:domain *:* LISTEN 9663/named
    tcp 0 0 localhost.lo:postgresql *:* LISTEN 4232/postgres
    tcp 0 0 *:smtp *:* LISTEN 30328/master
    tcp 0 0 localhost.localdoma:953 *:* LISTEN 9663/named
    tcp 1261 0 ubuntu.elatia.net:43671 unknown.sagonet.net:www CLOSE_WAIT 17550/freshclam
    tcp 1261 0 ubuntu.elatia.net:43672 unknown.sagonet.net:www CLOSE_WAIT 17550/freshclam
    tcp6 0 0 *:imaps *:* LISTEN 4304/couriertcpd
    tcp6 0 0 *:pop3s *:* LISTEN 4344/couriertcpd
    tcp6 0 0 *:pop3 *:* LISTEN 4322/couriertcpd
    tcp6 0 0 *:imap2 *:* LISTEN 4284/couriertcpd
    tcp6 0 0 *:www *:* LISTEN 3453/apache2
    tcp6 0 0 *:ftp *:* LISTEN 30295/proftpd: (acc
    tcp6 0 0 *:ssh *:* LISTEN 4062/sshd
    tcp6 0 0 *:smtp *:* LISTEN 30328/master
    tcp6 0 0 ip6-localhost:953 *:* LISTEN 9663/named
    tcp6 0 0 *:https *:* LISTEN 3453/apache2
    tcp6 0 0 ubuntu.elatia.net:ssh ::ffff:10.0.1.2%8:51529 ESTABLISHED9188/sshd:

    root@ubuntu:/home/# iptables -L
    Chain INPUT (policy ACCEPT)
    target prot opt source destination

    Chain FORWARD (policy ACCEPT)
    target prot opt source destination

    Chain OUTPUT (policy ACCEPT)
    target prot opt source destination


    --

    Hmmm, still not getting mail *to* my account.??

    --


    End of mail log:
    --
    =deferred (connect to mail.elatia.com[66.150.161.57]: Connection timed out)Oct 28 12:49:04 ubuntu postfix/qmgr[30338]: 79FB53FA66: from=<>, size=2271, nrcpt=1 (queue active)Oct 28 12:49:37 ubuntu postfix/smtp[9081]: connect to mail.elatia.com[69.25.47.164]: Connection timed out (port 25)Oct 28 12:50:07 ubuntu postfix/smtp[9081]: connect to mail.elatia.com[66.150.161.57]: Connection timed out (port 25)Oct 28 12:50:07 ubuntu postfix/smtp[9081]: 79FB53FA66: to=<root@mail.elatia.com>, relay=none, delay=354005, delays=353942/0.02/64/0, dsn=4.4.1, status=deferred (connect to mail.elatia.com[66.150.161.57]: Connection timed out)Oct 28 12:54:04 ubuntu postfix/qmgr[30338]: 27F223FA52: from=<>, size=2270, nrcpt=1 (queue active)Oct 28 12:54:07 ubuntu postfix/smtp[9149]: connect to mail.elatia.com[66.150.161.57]: No route to host (port 25)Oct 28 12:54:37 ubuntu postfix/smtp[9149]: connect to mail.elatia.com[69.25.47.164]: Connection timed out (port 25)Oct 28 12:54:38 ubuntu postfix/smtp[9149]: 27F223FA52: to=<root@mail.elatia.com>, relay=none, delay=399276, delays=399243/0.02/33/0, dsn=4.4.1, status=deferred (connect to mail.elatia.com[69.25.47.164]: Connection timed out)Oct 28 13:02:16 ubuntu courierpop3login: Connection, ip=[::ffff:10.0.1.2]Oct 28 13:02:19 ubuntu courierpop3login: LOGIN, user=web2_dbrooke, ip=[::ffff:10.0.1.2]Oct 28 13:02:19 ubuntu courierpop3login: LOGOUT, user=web2_dbrooke, ip=[::ffff:10.0.1.2], top=0, retr=0, rcvd=12, sent=39, time=0Oct 28 13:04:04 ubuntu postfix/qmgr[30338]: 8EEB93FA49: from=<>, size=2270, nrcpt=1 (queue active)Oct 28 13:04:04 ubuntu postfix/qmgr[30338]: 656CA3FA61: from=<>, size=2270, nrcpt=1 (queue active)(END)
    --


    Thanks,
    Donovan
     
  5. till

    till Super Moderator

    Is your server behind a router? If yes, make sure that you opened port 25 on your router and forwarded it to your server.
     
  6. dbrooke

    dbrooke New Member

    Yes, but this mail server is a LAN server only right now.. In otherwords, I'm trying to send mail to the server within the LAN via /etc/hosts listings.

    I think I may have found the reason why I'm not getting mail to the account.

    It appears that ISPconfig created an alias that rewrites dbrooke@elatia.net to
    web2_dbrooke@ubuntu.elatia.net, but I think it should be "web2_dbrooke@elatia.net". Is there a place in ISPConfig to fix this.. or do have to fix the alias individually?

    If individually, some guidance would be appreciated.

    Below is the recent /var/log/mail.log to where a postfix talklist guy suggested the problem above: (from a postfix reload and restart)

    --
    Oct 29 13:11:11 ubuntu postfix/master[1802]: daemon started -- version 2.4.5, configuration /etc/postfix
    Oct 29 13:11:12 ubuntu postfix/qmgr[1804]: BE1773FA80: from=<>, size=2999, nrcpt=1 (queue active)
    Oct 29 13:11:12 ubuntu postfix/qmgr[1804]: 341D03FA54: from=<lists@euca.us>, size=5173, nrcpt=1 (queue active)
    Oct 29 13:11:12 ubuntu postfix/qmgr[1804]: F37E43FA5D: from=<>, size=2990, nrcpt=1 (queue active)
    Oct 29 13:11:12 ubuntu postfix/qmgr[1804]: 91C993FA5E: from=<>, size=2990, nrcpt=1 (queue active)
    Oct 29 13:11:12 ubuntu postfix/qmgr[1804]: 536283FA85: from=<>, size=2830, nrcpt=1 (queue active)
    Oct 29 13:11:12 ubuntu postfix/qmgr[1804]: ECF433FA7C: from=<>, size=2990, nrcpt=1 (queue active)
    Oct 29 13:11:31 ubuntu postfix/smtpd[1818]: connect from unknown[10.0.1.2]
    Oct 29 13:11:31 ubuntu postfix/smtpd[1818]: 3936B3FA66:client=unknown[10.0.1.2]
    Oct 29 13:11:31 ubuntu postfix/cleanup[1821]: 3936B3FA66: message-id=<47262252.1080104@euca.us>
    Oct 29 13:11:31 ubuntu postfix/qmgr[1804]: 3936B3FA66: from=<lists@euca.us>, size=881, nrcpt=1 (queue active)
    Oct 29 13:11:31 ubuntu postfix/smtpd[1818]: disconnect from unknown[10.0.1.2]
    Oct 29 13:11:31 ubuntu postfix/smtp[1822]: 3936B3FA66: to=<web2_dbrooke@ubuntu.elatia.net>, orig_to=<dbrooke@elatia.net>, relay=none, delay=0.09, delays=0.07/0.02/0/0, dsn=5.4.4, status=bounced (Host or domain name not found. Name service error for name=ubuntu.elatia.net type=AAAA: Host not found)
    Oct 29 13:11:31 ubuntu postfix/cleanup[1821]: 4DF9C3FA92: message-id=<20071029181131.4DF9C3FA92@mail.elatia.net>
    Oct 29 13:11:31 ubuntu postfix/qmgr[1804]: 4DF9C3FA92: from=<>, size=2830, nrcpt=1 (queue active)
    Oct 29 13:11:31 ubuntu postfix/bounce[1823]: 3936B3FA66: sender non-delivery notification: 4DF9C3FA92
    Oct 29 13:11:31 ubuntu postfix/qmgr[1804]: 3936B3FA66: removed
    Oct 29 13:11:35 ubuntu courierpop3login: Connection, ip=[::ffff:10.0.1.2]
    Oct 29 13:11:35 ubuntu courierpop3login: LOGIN, user=web2_dbrooke, ip=[::ffff:10.0.1.2]
    Oct 29 13:11:35 ubuntu courierpop3login: LOGOUT, user=web2_dbrooke, ip=[::ffff:10.0.1.2], top=0, retr=0, rcvd=12, sent=39, time=0, stls=1Oct 29 13:11:42 ubuntu postfix/smtp[1807]: connect to post.pacific-coast.com[207.67.226.13]: Connection timed out (port 25)(END)
    --


    Thanks!

    Donovan
     
  7. till

    till Super Moderator

    There is nothing wrong with that, its the intended behaviour. Make sure that ubuntu.elatia.net is set in DNS or the local hosts file to point to your server.
     
  8. dbrooke

    dbrooke New Member


    This is my /etc/hosts:

    root@ubuntu:/home/donovan# less /etc/hosts

    127.0.0.1 localhost.localdomain localhost ubuntu.elatia.net
    # 127.0.1.1 ubuntu.elatia.net ubuntu
    10.0.1.200 ubuntu.elatia.net ubuntu
    10.0.1.200 mail.elatia.net Mail
    10.0.1.200 ns1.elatia.net ns1
    10.0.1.200 ns2.elatia.net ns2


    # The following lines are desirable for IPv6 capable hosts
    ::1 ip6-localhost ip6-loopback ubuntu.elatia.net
    fe00::0 ip6-localnet
    ff00::0 ip6-mcastprefix
    ff02::1 ip6-allnodes
    ff02::2 ip6-allrouters
    ff02::3 ip6-allhosts
    /etc/hosts (END)
    --

    Shouldn't this take care of the routing? It appears the logs indicated that "ubuntu.elatia.net" domain does not exist.. but yet my hosts file above is set.??

    Donovan
     
  9. till

    till Super Moderator

    Is ubuntu.elatia.net listed in /etc/postfix/local-host-names? If not, add it at the end of the file and restart postfix.
     
  10. dbrooke

    dbrooke New Member


    Well, I've looked at that a bunch of times and the answer is technically, no. However, there was something similar so I didn't think it was an issue... I don't know what the .localdomain thing does. Here is the file:

    --
    localhost
    ubuntu.elatia.net.localdomain
    localhost.ubuntu.elatia.net.localdomain
    localhost.elatia.net.localdomain
    localhost.localdomain
    dbrooke.elatia.net
    elatia.net
    ---

    I'll try putting just ubuntu.elatia.net below that.

    thanks,
    Donovan
     
  11. dbrooke

    dbrooke New Member

    Solved

    That worked!

    funny that I've looked at that file 25 times and decided to leave it alone...

    thanks till.

    Donovan
     
  12. till

    till Super Moderator

    Make sure that you add the line at the end of the file as last line after the comment. Otherwise it will get overwritten.
     
  13. dbrooke

    dbrooke New Member

    did that.

    question.. why does ISPConfig append the ".localdomain" in that file?

    Donovan
     
  14. till

    till Super Moderator

    ISPConfig is adding the hostname itself and a second line with .localdomain because this is needed on some systems. If the original line is not added by ISPConfig automatically, then the hostmname command does not return the same hostname that you set in my.cns as mail hostname, though you have to add it manually.
     

Share This Page