localhost email (ispconfig, postfix)

Discussion in 'Server Operation' started by Jon Snow, Dec 10, 2014.

  1. Jon Snow

    Jon Snow New Member

    I followed the 14.10.1 LTS setup and everything seems to be working just fine but I'm not sure about the e-mail part though. I haven't bought a domain yet as I want to learn to use ISPConfig 3 first but I'm unable to receive email to me mailboxes. I tried to create the domain "localhost" in ISPConfig but it's not considered valid. Then I decided just to make up a domain "test.com" and I edited /etc/hosts accordingly. Then I created two email accounts via ISPConfig "user1@test.com & user2@test.com". Using SquirrelMail I sent an email from one account to the other and didn't get any error but the latter account never received the email. What is the problem here? Is Postfix not referencing /etc/hosts and therefore doesn't know that the accounts and the domain are on my computer?
     
  2. srijan

    srijan New Member HowtoForge Supporter

    Check the mail log file for the error.
     
  3. Jon Snow

    Jon Snow New Member

    I can't make heads or tails out of the log file, as usual.

    Dec 10 17:29:45 jonsnow-computer dovecot: master: Dovecot v2.2.9 starting up (core dumps disabled)
    Dec 10 17:29:45 jonsnow-computer postfix/master[3598]: daemon started -- version 2.11.0, configuration /etc/postfix
    Dec 10 17:29:45 jonsnow-computer postfix/qmgr[3630]: 23BA8AC2CD7: from=<test1@test.com>, size=709, nrcpt=1 (queue active)
    Dec 10 17:29:46 jonsnow-computer postfix/smtp[3655]: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused
    Dec 10 17:29:46 jonsnow-computer postfix/smtp[3655]: 23BA8AC2CD7: to=<test2@test.com>, relay=none, delay=449, delays=449/0.25/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)
    Dec 10 17:30:04 jonsnow-computer postfix/smtpd[4059]: connect from localhost[127.0.0.1]
    Dec 10 17:30:04 jonsnow-computer dovecot: imap-login: Disconnected (disconnected before auth was ready, waited 0 secs): user=<>, rip=127.0.0.1, lip=127.0.0.1, secured, session=<eVJYhuIJPAB/AAAB>
    Dec 10 17:30:04 jonsnow-computer postfix/smtpd[4059]: lost connection after CONNECT from localhost[127.0.0.1]
    Dec 10 17:30:04 jonsnow-computer postfix/smtpd[4059]: disconnect from localhost[127.0.0.1]
    Dec 10 17:30:04 jonsnow-computer dovecot: pop3-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=127.0.0.1, lip=127.0.0.1, secured, session=<oOVYhuIJQwB/AAAB>
    Dec 10 17:30:05 jonsnow-computer dovecot: imap-login: Login: user=<test1@test.com>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=4077, secured, session=<XeZYhuIJPgB/AAAB>
    Dec 10 17:30:05 jonsnow-computer dovecot: imap(test1@test.com): Disconnected: Logged out in=44 out=843
    Dec 10 17:30:05 jonsnow-computer dovecot: imap-login: Login: user=<test1@test.com>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=4093, secured, session=<UBRrhuIJQAB/AAAB>
    Dec 10 17:30:06 jonsnow-computer dovecot: imap(test1@test.com): Disconnected: Logged out in=261 out=1691
    Dec 10 17:30:06 jonsnow-computer dovecot: imap-login: Login: user=<test1@test.com>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=4095, secured, session=<60VuhuIJQQB/AAAB>
    Dec 10 17:30:06 jonsnow-computer dovecot: imap(test1@test.com): Disconnected: Logged out in=117 out=1541
    Dec 10 17:30:20 jonsnow-computer postfix/smtpd[4059]: connect from localhost[127.0.0.1]
    Dec 10 17:30:21 jonsnow-computer postfix/smtpd[4059]: 155C6AC2D05: client=localhost[127.0.0.1]
    Dec 10 17:30:21 jonsnow-computer postfix/cleanup[4110]: 155C6AC2D05: message-id=<e154250ce8aa85e74b9afae044fc8c88.squirrel@localhost>
    Dec 10 17:30:21 jonsnow-computer postfix/smtpd[4059]: disconnect from localhost[127.0.0.1]
    Dec 10 17:30:21 jonsnow-computer postfix/qmgr[3630]: 155C6AC2D05: from=<test1@test.com>, size=710, nrcpt=1 (queue active)
    Dec 10 17:30:21 jonsnow-computer postfix/smtp[3655]: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused
    Dec 10 17:30:21 jonsnow-computer dovecot: imap-login: Login: user=<test1@test.com>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=4112, secured, session=<iDJTh+IJSwB/AAAB>
    Dec 10 17:30:21 jonsnow-computer postfix/smtp[3655]: 155C6AC2D05: to=<test2@test.com>, relay=none, delay=0.14, delays=0.14/0/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)
    Dec 10 17:30:21 jonsnow-computer dovecot: imap(test1@test.com): Disconnected: Logged out in=606 out=524
    Dec 10 17:30:21 jonsnow-computer dovecot: imap-login: Login: user=<test1@test.com>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=4114, secured, session=<s2NWh+IJTQB/AAAB>
    Dec 10 17:30:21 jonsnow-computer dovecot: imap(test1@test.com): Disconnected: Logged out in=117 out=1541
    Dec 10 17:34:45 jonsnow-computer postfix/qmgr[3630]: 33070AC2CF9: from=<test1@test.com>, size=707, nrcpt=1 (queue active)
    Dec 10 17:34:45 jonsnow-computer postfix/smtp[4417]: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused
    Dec 10 17:34:45 jonsnow-computer postfix/smtp[4417]: 33070AC2CF9: to=<test2@test.com>, relay=none, delay=411, delays=411/0.01/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)
    Dec 10 17:35:02 jonsnow-computer postfix/smtpd[4447]: connect from localhost[127.0.0.1]
    Dec 10 17:35:02 jonsnow-computer dovecot: imap-login: Disconnected (disconnected before auth was ready, waited 0 secs): user=<>, rip=127.0.0.1, lip=127.0.0.1, secured, session=<gysRmOIJ6gB/AAAB>
    Dec 10 17:35:02 jonsnow-computer postfix/smtpd[4447]: lost connection after CONNECT from localhost[127.0.0.1]
    Dec 10 17:35:02 jonsnow-computer dovecot: pop3-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=127.0.0.1, lip=127.0.0.1, secured, session=<f0ERmOIJ8QB/AAAB>
    Dec 10 17:35:02 jonsnow-computer postfix/smtpd[4447]: disconnect from localhost[127.0.0.1]
     
    Last edited by a moderator: Feb 1, 2015
  4. Jon Snow

    Jon Snow New Member

    Silly me, the service amavis wasn't running.
     

Share This Page