Results 1 to 5 of 5

Thread: Inbox empty but /var/mail/(user) isn't

  1. #1
    Join Date
    Feb 2011
    Beans
    6

    Inbox empty but /var/mail/(user) isn't

    Hello,

    I followed Step-by-Step the following article "The Perfect Server Ubuntu 12.04" here. The problem I have is that I cannot view my inbox of my user in squirrel mail or even when I set up my mail account on my phone, my inbox shows up empty. However, every time I log into SSH on my account, I always see "You have new mail". Once I installed "mail-utils" to see the mail in "/var/mail/myuser", the emails there are what I should be seeing in my inbox on squirrel mail AND on my phone (there is a "Welcome to ISPConfig" email in their too).

    Any ideas? I'm completely stumbled as according to people, this should just work.

    Regards,

    - Owen

  2. #2
    Join Date
    Feb 2011
    Beans
    6

    Re: Inbox empty but /var/mail/(user) isn't

    Any ideas anyone?

  3. #3
    Join Date
    Aug 2009
    Location
    Makati City, Philippines
    Beans
    2,270
    Distro
    Xubuntu 16.04 Xenial Xerus

    Re: Inbox empty but /var/mail/(user) isn't

    The permissions on the emails. Kindly recheck them. It depends on what webmail you are using. In my roundcube install, the emails should be owned by vmail and group vmail and has 600 permissions. In Squirrel (old and ugly ) the emails are owned by vpopmail, group vchkpw and 600 permissions.

    Anyway, if you are just building you email server from scratch, I recommend iRedMail with Roundcube Webmail. Easy install in just a few minutes and works great out of the box. http://www.iredmail.org/index.html
    Last edited by nerdtron; June 27th, 2013 at 03:08 AM.
    "I learned a lot from repeatedly breaking my system and then reinstalling. Oh, and a lot of GOOGLE searches too!"
    The best Ubuntu derivative: Linux Mint
    Relax. Head to the Community Cafe
    The Philippine Team

  4. #4
    Join Date
    Feb 2011
    Beans
    6

    Re: Inbox empty but /var/mail/(user) isn't

    Hi,

    Thanks a lot for that, i'll definitely replace squirrel mail with it. However the problem still persists when I'm trying to refresh my inbox on my phone. I can't see any of the emails. My current dovecot config looks like this;

    Code:
    listen = *,[::]protocols = imap pop3
    auth_mechanisms = plain login
    disable_plaintext_auth = no
    log_timestamp = "%Y-%m-%d %H:%M:%S "
    mail_privileged_group = mail
    mail_location = mbox:/var/empty:INBOX=/var/mail/%u:INDEX=MEMORY
    ssl_cert = </etc/postfix/smtpd.cert
    ssl_key = </etc/postfix/smtpd.key
    passdb {
      args = /etc/dovecot/dovecot-sql.conf
      driver = sql
    }
    userdb {
      args = /etc/dovecot/dovecot-sql.conf
      driver = sql
    }
    plugin {
      quota = dict:user::file:/var/vmail/%d/%n/.quotausage
      sieve=/var/vmail/%d/%n/.sieve
    }
    service auth {
      unix_listener /var/spool/postfix/private/auth {
        group = postfix
        mode = 0660
        user = postfix
      }
      unix_listener auth-userdb {
        group = vmail
        mode = 0600
        user = vmail
      }
      user = root
    }
    protocol imap {
      mail_plugins = quota imap_quota
    }
    protocol pop3 {
    pop3_uidl_format = %08Xu%08Xv
      mail_plugins = quota
    }
    protocol lda {
      mail_plugins = sieve quota
    }
    The permissions looks like this after running a check:

    Code:
    root@homeserver:/home/owen# ls -ld /var/mail
    drwxrwsrwt 2 root mail 4096 Jun 30 06:31 /var/mail
    Last edited by owen777; July 4th, 2013 at 04:19 PM.

  5. #5
    Join Date
    Aug 2009
    Location
    Makati City, Philippines
    Beans
    2,270
    Distro
    Xubuntu 16.04 Xenial Xerus

    Re: Inbox empty but /var/mail/(user) isn't

    If you're going to deploy Roundcube, might as well start with a fresh install of Ubuntu 12.04 server with no extra packages installed (except for updates). See the installation here http://www.iredmail.org/install_iredmail_on_ubuntu.html

    This is only a part of my dovecot conf. Your's is a lot smaller and I'm sure you haven't deployed roundcube yet. (iRedMail that is)
    Code:
    service auth {
        unix_listener /var/spool/postfix/dovecot-auth {
            user = postfix
            group = postfix
            mode = 0666
        }
        unix_listener auth-master {
            user = vmail
            group = vmail
            mode = 0666
        }
        unix_listener auth-userdb {
            user = vmail
            group = vmail
            mode = 0660
        }
    }
    And mail isn't stored in /var/mail, it is in /var/vmail folder.
    Code:
    drwx------ 5 vmail vmail 44 Jul  3 09:26 /var/vmail
    Again, as I have said before, I can't help you much if manualy installed, postfix, dovecot, and other mail services seperately. Configuring them individually can be very complicated.
    Just follow the link I gave you and all will be setup for you. When roundcube is up and running, then you can modify the configuration files that you want.
    "I learned a lot from repeatedly breaking my system and then reinstalling. Oh, and a lot of GOOGLE searches too!"
    The best Ubuntu derivative: Linux Mint
    Relax. Head to the Community Cafe
    The Philippine Team

Bookmarks

Posting Permissions

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