1

Topic: 404 Not Found after fresh install

==== Required information ====
- iRedMail version: 8.5
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Linux/BSD distribution name and version: Unbuntu 13.04 on OpenVZ VPS

Not Found

The requested URL /mail/ was not found on this server.
Apache/2.2.22 (Ubuntu) Server at netrensics.com Port 80

^^ Error I get after installing using this guide: http://www.iredmail.org/install_iredmail_on_ubuntu.html

There was no mail folder created under /var/www which is where my web home is. I've attached the CLI output during the install.

/var/log/apache2/error.log
[Mon Sep 23 16:20:30 2013] [notice] Apache/2.2.22 (Ubuntu) configured -- resuming normal operations
[Mon Sep 23 21:27:02 2013] [notice] caught SIGTERM, shutting down
[Mon Sep 23 21:27:03 2013] [notice] Apache/2.2.22 (Ubuntu) PHP/5.4.9-4ubuntu2.3 configured -- resuming normal operations
[Mon Sep 23 21:27:51 2013] [notice] caught SIGTERM, shutting down
[Mon Sep 23 21:27:54 2013] [warn] mod_wsgi: Compiled for Python/2.7.3.
[Mon Sep 23 21:27:54 2013] [warn] mod_wsgi: Runtime using Python/2.7.4.
[Mon Sep 23 21:27:54 2013] [notice] Apache/2.2.22 (Ubuntu) PHP/5.4.9-4ubuntu2.3 mod_wsgi/3.4 Python/2.7.4 configured -- resuming normal operations
[Mon Sep 23 21:28:01 2013] [notice] Graceful restart requested, doing restart
[Mon Sep 23 21:28:02 2013] [warn] mod_wsgi: Compiled for Python/2.7.3.
[Mon Sep 23 21:28:02 2013] [warn] mod_wsgi: Runtime using Python/2.7.4.
[Mon Sep 23 21:28:02 2013] [notice] Apache/2.2.22 (Ubuntu) PHP/5.4.9-4ubuntu2.3 mod_wsgi/3.4 Python/2.7.4 configured -- resuming normal operations
error.log (END)
# ls -all /var/www
total 20
drwxr-xr-x  2 root root 4096 Sep 23 21:28 .
drwxr-xr-x 13 root root 4096 Sep 23 21:28 ..
-rw-r--r--  1 root root   98 Sep 23 21:28 index.html
-rw-r--r--  1 root root  177 Sep 23 21:28 index.html.2013.09.23.21.23.08
-rw-r--r--  1 root root   26 Sep 23 21:28 robots.txt

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: 404 Not Found after fresh install

*) Your log file contains password, don't paste it directly.
*) Installation was fine according to your log.
*) Still no idea why '/mail' doesn't work for you. Did you access http://your_server/mail or httpS://? Did you try to access your web server with its IP address instead of domain name?

networkguy09 wrote:

There was no mail folder created under /var/www which is where my web home is. I've attached the CLI output during the install.

Mail folder will be created automatically after user logged in via POP3/IMAP under /var/vmail/, not /var/www.

3 (edited by networkguy09 2013-09-25 08:05:01)

Re: 404 Not Found after fresh install

ZhangHuangbin wrote:

*) Your log file contains password, don't paste it directly.
*) Installation was fine according to your log.
*) Still no idea why '/mail' doesn't work for you. Did you access http://your_server/mail or httpS://? Did you try to access your web server with its IP address instead of domain name?

networkguy09 wrote:

There was no mail folder created under /var/www which is where my web home is. I've attached the CLI output during the install.

Mail folder will be created automatically after user logged in via POP3/IMAP under /var/vmail/, not /var/www.

Tried both http and https and IP.

How do I log in under /var/vmail? My web root is /var/www. The index.html file in /var/www was changed to do a redirect to the mail folder which doesn't exists.

4

Re: 404 Not Found after fresh install

I have no idea what the problem is. Could you please show me some more info to help troubleshoot?

*) Command output: "ls /etc/init.d/"
*) Any log in /var/log/maillog?

5

Re: 404 Not Found after fresh install

ZhangHuangbin wrote:

I have no idea what the problem is. Could you please show me some more info to help troubleshoot?

*) Command output: "ls /etc/init.d/"
*) Any log in /var/log/maillog?

# ls /etc/init.d/
README             network-interface            saslauthd
amavis             network-interface-container  screen-cleanup
apache2            network-interface-security   sendmail
bind9              networking                   sendsigs
bluetooth          nmbd                         single
bootlogd           ondemand                     skeleton
clamav-daemon      plymouth                     smbd
clamav-freshclam   plymouth-log                 spamassassin
console-screen.sh  plymouth-ready               ssh
cron               plymouth-splash              stop-bootlogd
dbus               plymouth-stop                stop-bootlogd-single
dovecot            plymouth-upstart-bridge      sudo
fail2ban           portmap                      sysklogd
fetchmail          portmap-wait                 udev
halt               postfix                      udev-fallback-graphics
hostname           postfix-cluebringer          udev-finish
hwclock            procps                       udevmonitor
hwclock-save       quota                        udevtrigger
iptables           quotarpc                     umountfs
iredapd            rc                           umountnfs.sh
keymap.sh          rc.local                     umountroot
killprocs          rcS                          urandom
klogd              reboot                       vzreboot
kmod               reload-smbd                  wide-dhcpv6-client
modules_dep.sh     rpcbind-boot                 x11-common
mysql              rsync                        xinetd

# ls /var/log/
alternatives.log  daemon.log       fsck       mysql           syslog.1.gz
apache2           dbconfig-common  kern.log   mysql.err       udev
apt               debug            lastlog    mysql.log       upstart
auth.log          dmesg            lpr.log    mysql.log.1.gz  user.log
boot              dovecot.log      mail.err   news            wtmp
boot.log          dpkg.log         mail.info  samba
btmp              fail2ban.log     mail.log   sieve.log
cbpolicyd.log     faillog          mail.warn  syslog
clamav            fontconfig.log   messages   syslog.0

6

Re: 404 Not Found after fresh install

Sorry, you misunderstood my question: Any log content in /var/log/maillog?

Also, i suggest you that, if possible, re-install your server os, then re-install iRedMail. It should be easier to fix this issue.
Please keep watching the iRedMail installation output message, paste error message here if it there's any.

7 (edited by networkguy09 2013-09-26 21:47:39)

Re: 404 Not Found after fresh install

ZhangHuangbin wrote:

Sorry, you misunderstood my question: Any log content in /var/log/maillog?

Also, i suggest you that, if possible, re-install your server os, then re-install iRedMail. It should be easier to fix this issue.
Please keep watching the iRedMail installation output message, paste error message here if it there's any.

# more /var/log/mail.log

Sep 23 16:20:28 mydomain sm-mta[654]: gethostbyaddr(127.0.0.2) failed: 1
Sep 23 16:20:28 mydomain sm-mta[656]: starting daemon (8.14.4): SMTP+queueing@
00:10:00
Sep 23 21:26:06 mydomain postfix/master[9850]: fatal: bind 0.0.0.0 port 25: Ad
dress already in use
Sep 23 21:27:27 mydomain dovecot: master: Dovecot v2.1.7 starting up (core dum
ps disabled)
Sep 23 21:27:27 mydomain dovecot: ssl-params: Generating SSL parameters
Sep 23 21:27:27 mydomain dovecot: config: Warning: Killed with signal 15 (by p
id=1 uid=0 code=kill)
Sep 23 21:27:27 mydomain dovecot: ssl-params: Warning: Killed with signal 15 (
by pid=1 uid=0 code=kill)
Sep 23 21:27:27 mydomain dovecot: log: Warning: Killed with signal 15 (by pid=
1 uid=0 code=kill)
Sep 23 21:27:27 mydomain dovecot: master: Warning: Killed with signal 15 (by p
id=1 uid=0 code=kill)
Sep 23 21:27:32 mydomain dovecot: master: Dovecot v2.1.7 starting up (core dum
ps disabled)
Sep 23 21:27:32 mydomain dovecot: ssl-params: Generating SSL parameters
Sep 23 21:27:33 mydomain dovecot: config: Warning: Killed with signal 15 (by p
id=1 uid=0 code=kill)
Sep 23 21:27:33 mydomain dovecot: log: Warning: Killed with signal 15 (by pid=
1 uid=0 code=kill)
Sep 23 21:27:33 mydomain dovecot: master: Warning: Killed with signal 15 (by pid=1 uid=0 code=kill)
Sep 23 21:27:38 mydomain dovecot: master: Dovecot v2.1.7 starting up (core dumps disabled)
Sep 23 21:27:39 mydomain dovecot: config: Warning: Killed with signal 15 (by pid=1 uid=0 code=kill)
Sep 23 21:27:39 mydomain dovecot: log: Warning: Killed with signal 15 (by pid=1 uid=0 code=kill)
Sep 23 21:27:39 mydomain dovecot: ssl-params: Warning: Killed with signal 15 (by pid=1 uid=0 code=kill)
Sep 23 21:27:39 mydomain dovecot: master: Warning: Killed with signal 15 (by pid=1 uid=0 code=kill)
Sep 23 21:27:44 mydomain dovecot: master: Dovecot v2.1.7 starting up (core dumps disabled)
Sep 23 21:27:44 mydomain dovecot: config: Warning: Killed with signal 15 (by pid=1 uid=0 code=kill)
Sep 23 21:27:44 mydomain dovecot: ssl-params: Warning: Killed with signal 15 (by pid=1 uid=0 code=kill)
Sep 23 21:27:44 mydomain dovecot: log: Warning: Killed with signal 15 (by pid=1 uid=0 code=kill)
Sep 23 21:27:44 mydomain dovecot: master: Warning: Killed with signal 15 (by pid=1 uid=0 code=kill)
Sep 23 21:27:49 mydomain dovecot: master: Dovecot v2.1.7 starting up (core dumps disabled)
Sep 23 21:28:01 mydomain amavis[27681]: starting. /usr/sbin/amavisd-new at mydomain.com amavisd-new-2.7.1 (20120429), Unicode aware, LC_ALL="C", LANG="en_US.UTF-8"
Sep 23 21:28:01 mydomain amavis[27688]: Net::Server: Group Not Defined.  Defaulting to EGID '120 120'
Sep 23 21:28:01 mydomain amavis[27688]: Net::Server: User Not Defined.  Defaulting to EUID '115'
Sep 23 21:28:01 mydomain amavis[27688]: Module Amavis::Conf        2.303
Sep 23 21:28:01 mydomain amavis[27688]: Module Archive::Zip        1.30
Sep 23 21:28:01 mydomain amavis[27688]: Module BerkeleyDB          0.51
Sep 23 21:28:01 mydomain amavis[27688]: Module Compress::Zlib      2.033
Sep 23 21:28:01 mydomain amavis[27688]: Module Convert::TNEF       0.18
Sep 23 21:28:01 mydomain amavis[27688]: Module Convert::UUlib      1.4
Sep 23 21:28:01 mydomain amavis[27688]: Module Crypt::OpenSSL::RSA 0.28
Sep 23 21:28:01 mydomain amavis[27688]: Module Digest::MD5         2.51
Sep 23 21:28:01 mydomain amavis[27688]: Module Digest::SHA         5.61
Sep 23 21:28:01 mydomain amavis[27688]: Module File::Temp          0.22
Sep 23 21:28:01 mydomain amavis[27688]: Module IO::Socket::INET6   2.69
Sep 23 21:28:01 mydomain amavis[27688]: Module MIME::Entity        5.503
Sep 23 21:28:01 mydomain amavis[27688]: Module MIME::Parser        5.503
Sep 23 21:28:01 mydomain amavis[27688]: Module MIME::Tools         5.503
Sep 23 21:28:01 mydomain amavis[27688]: Module Mail::DKIM::Signer  0.39
Sep 23 21:28:01 mydomain amavis[27688]: Module Mail::DKIM::Verifier 0.39
Sep 23 21:28:01 mydomain amavis[27688]: Module Mail::Header        2.09
Sep 23 21:28:01 mydomain amavis[27688]: Module Mail::Internet      2.09
Sep 23 21:28:01 mydomain amavis[27688]: Module Net::DNS            0.68
Sep 23 21:28:01 mydomain amavis[27688]: Module Net::Server         2.006
Sep 23 21:28:01 mydomain amavis[27688]: Module Socket6             0.23
Sep 23 21:28:01 mydomain amavis[27688]: Module Time::HiRes         1.972101
Sep 23 21:28:01 mydomain amavis[27688]: Module Unix::Syslog        1.1
Sep 23 21:28:01 mydomain amavis[27688]: Amavis::DB code      loaded
Sep 23 21:28:01 mydomain amavis[27688]: SQL base code        NOT loaded
Sep 23 21:28:01 mydomain amavis[27688]: SQL::Log code        NOT loaded
Sep 23 21:28:01 mydomain amavis[27688]: SQL::Quarantine      NOT loaded
Sep 23 21:28:01 mydomain amavis[27688]: Lookup::SQL code     NOT loaded
Sep 23 21:28:01 mydomain amavis[27688]: Lookup::LDAP code    NOT loaded
Sep 23 21:28:01 mydomain amavis[27688]: AM.PDP-in proto code loaded
Sep 23 21:28:01 mydomain amavis[27688]: SMTP-in proto code   loaded
Sep 23 21:28:01 mydomain amavis[27688]: Courier proto code   NOT loaded
Sep 23 21:28:01 mydomain amavis[27688]: SMTP-out proto code  loaded
Sep 23 21:28:01 mydomain amavis[27688]: Pipe-out proto code  NOT loaded
Sep 23 21:28:01 mydomain amavis[27688]: BSMTP-out proto code NOT loaded
Sep 23 21:28:01 mydomain amavis[27688]: Local-out proto code loaded
Sep 23 21:28:01 mydomain amavis[27688]: OS_Fingerprint code  NOT loaded
Sep 23 21:28:01 mydomain amavis[27688]: ANTI-VIRUS code      NOT loaded
Sep 23 21:28:01 mydomain amavis[27688]: ANTI-SPAM code       NOT loaded
Sep 23 21:28:01 mydomain amavis[27688]: ANTI-SPAM-EXT code   NOT loaded
Sep 23 21:28:01 mydomain amavis[27688]: ANTI-SPAM-C code     NOT loaded
Sep 23 21:28:01 mydomain amavis[27688]: ANTI-SPAM-SA code    NOT loaded
Sep 23 21:28:01 mydomain amavis[27688]: Unpackers code       loaded
Sep 23 21:28:01 mydomain amavis[27688]: DKIM code            loaded
Sep 23 21:28:01 mydomain amavis[27688]: Tools code           NOT loaded
Sep 23 21:28:01 mydomain amavis[27688]: Found $file            at /usr/bin/file
Sep 23 21:28:01 mydomain amavis[27688]: Found $altermime       at /usr/bin/altermime
Sep 23 21:28:01 mydomain amavis[27688]: Internal decoder for .mail
Sep 23 21:28:01 mydomain amavis[27688]: No decoder for       .F
Sep 23 21:28:01 mydomain amavis[27688]: Found decoder for    .Z    at /bin/uncompress
Sep 23 21:28:01 mydomain amavis[27688]: Internal decoder for .gz
Sep 23 21:28:01 mydomain amavis[27688]: Found decoder for    .bz2  at /bin/bzip2 -d
Sep 23 21:28:01 mydomain amavis[27688]: Found decoder for    .xz   at /usr/bin/xz -dc
Sep 23 21:28:01 mydomain amavis[27688]: Found decoder for    .lzma at /usr/bin/xz -dc --format=lzma
Sep 23 21:28:01 mydomain amavis[27688]: Found decoder for    .lzo  at /usr/bin/lzop -d
Sep 23 21:28:01 mydomain amavis[27688]: Found decoder for    .rpm  at /usr/bin/rpm2cpio
Sep 23 21:28:01 mydomain amavis[27688]: Found decoder for    .cpio at /bin/pax
Sep 23 21:28:01 mydomain amavis[27688]: Found decoder for    .tar  at /bin/pax
Sep 23 21:28:01 mydomain amavis[27688]: Found decoder for    .deb  at /usr/bin/ar
Sep 23 21:28:01 mydomain amavis[27688]: Internal decoder for .zip
Sep 23 21:28:01 mydomain amavis[27688]: Internal decoder for .kmz
Sep 23 21:28:01 mydomain amavis[27688]: Found decoder for    .7z   at /usr/bin/7zr
Sep 23 21:28:01 mydomain amavis[27688]: Found decoder for    .rar  at /usr/bin/unrar-free
Sep 23 21:28:01 mydomain amavis[27688]: Found decoder for    .arj  at /usr/bin/arj
Sep 23 21:28:01 mydomain amavis[27688]: Found decoder for    .arc  at /usr/bin/nomarch
Sep 23 21:28:01 mydomain amavis[27688]: Found decoder for    .zoo  at /usr/bin/zoo
Sep 23 21:28:01 mydomain amavis[27688]: Found decoder for    .doc  at /usr/bin/ripole
Sep 23 21:28:01 mydomain amavis[27688]: Found decoder for    .cab  at /usr/bin/cabextract
Sep 23 21:28:01 mydomain amavis[27688]: No decoder for       .tnef
Sep 23 21:28:01 mydomain amavis[27688]: Internal decoder for .tnef
Sep 23 21:28:01 mydomain amavis[27688]: Found decoder for    .exe  at /usr/bin/unrar-free; /usr/bin/arj
Sep 23 21:28:01 mydomain amavis[27688]: Deleting db files  in /var/lib/amavis/db
Sep 23 21:28:01 mydomain amavis[27688]: Creating db in /var/lib/amavis/db/; BerkeleyDB 0.51, libdb 5.1
Sep 23 21:28:46 mydomain dovecot: config: Warning: Killed with signal 15 (by pid=1 uid=0 code=kill)
Sep 23 21:28:46 mydomain dovecot: log: Warning: Killed with signal 15 (by pid=1 uid=0 code=kill)
Sep 23 21:28:46 mydomain dovecot: master: Warning: Killed with signal 15 (by pid=1 uid=0 code=kill)
Sep 24 00:18:07 mydomain postfix/postdrop[29670]: warning: unable to look up public/pickup: No such file or directory
Sep 24 03:29:12 mydomain postfix/postdrop[29942]: warning: unable to look up public/pickup: No such file or directory
Sep 24 03:29:13 mydomain postfix/postdrop[30322]: warning: unable to look up public/pickup: No such file or directory
Sep 25 03:29:15 mydomain postfix/postdrop[32046]: warning: unable to look up public/pickup: No such file or directory
Sep 25 03:29:16 mydomain postfix/postdrop[32417]: warning: unable to look up public/pickup: No such file or directory
Sep 26 03:29:14 mydomain postfix/postdrop[1625]: warning: unable to look up public/pickup: No such file or directory
Sep 26 03:29:15 mydomain postfix/postdrop[1997]: warning: unable to look up public/pickup: No such file or directory

This is my 2nd time installing it from fresh. The hosts uses SolusVM, so I can reinstall a fresh Unbuntu or other OS anytime. All I did before installed iRedMail was change the root password and apt-get update/upgrade. Never saw any errors during the install.

I can reinstall the VM and try on a different OS like CentOS or something if you think it would help.

It looks like their VMs come with apache installed at least because when I reinstall I get a default web page in /var/www that works.

8

Re: 404 Not Found after fresh install

I believe your iRedMail was not successfully completed.

*) There's log mentions "sm-mta" is running. sm-mta is Sendmail, but iRedMail uses Postfix as MTA, not Sendmail. iRedMail asks you to remove Sending at the end of installation.
*) It says "warning: unable to look up public/pickup: No such file or directory", "pickup" is shipped by Postfix, so maybe your Postfix package is broken, or you modified some Postfix settings to use different "pickup" program.

Personally, i suggest you try to re-install again, maybe CentOS this time. If it doesn't work with CentOS, would you mind giving me privilege to install it on your fresh VM? I'd like to give it a try and try to figure out what the problem is. But please try CentOS yourself first.

9 (edited by networkguy09 2013-09-27 22:44:53)

Re: 404 Not Found after fresh install

Attached is the CentOS install (password removed this time).

I did this install twice both after fresh installs of CentOS 6, 64 Bit.

Still no mail folder in /var/www but it did create other folders vs the Ubuntu install.

Will try Debian 7 next.

Post's attachments

centos-install.txt 99.43 kb, 1 downloads since 2013-09-27 

You don't have the permssions to download the attachments of this post.

10

Re: 404 Not Found after fresh install

Debian 7 install, no mail folder created in /var/www

You can give it a try if you want Zhang. I would prefer we do some type of remote desktop and ssh from there.

Post's attachments

debian7-install.txt 90.9 kb, 1 downloads since 2013-09-27 

You don't have the permssions to download the attachments of this post.

11

Re: 404 Not Found after fresh install

networkguy09 wrote:

Still no mail folder in /var/www but it did create other folders vs the Ubuntu install.

I repeat myself: "Mail folder will be created AUTOMATICALLY after user logged in via POP3/IMAP under /var/vmail/, not /var/www." You don't need to create mail folders for users.

What's your issue with new installation?

12 (edited by networkguy09 2013-09-28 03:35:12)

Re: 404 Not Found after fresh install

ZhangHuangbin wrote:
networkguy09 wrote:

Still no mail folder in /var/www but it did create other folders vs the Ubuntu install.

I repeat myself: "Mail folder will be created AUTOMATICALLY after user logged in via POP3/IMAP under /var/vmail/, not /var/www." You don't need to create mail folders for users.

What's your issue with new installation?

I'm sorry I guess I don't understand how to access via POP3/IMAP. Would I be using the postmaster account? Tried adding it in Thunderbird and it was unable to detect any settings. I know how to add accounts in Thunderbird I just don't know for sure what settings to use with this install.

No problem with a new installation. I just want to be able to see what you're doing. How did you want to do it?

13

Re: 404 Not Found after fresh install

Please follow this tutorial:

- How to configure Thunderbird for iRedMail:
  http://iredmail.org/wiki/index.php?titl … r.iRedMail

14 (edited by networkguy09 2013-10-01 00:48:32)

Re: 404 Not Found after fresh install

ZhangHuangbin wrote:

Please follow this tutorial:

- How to configure Thunderbird for iRedMail:
  http://iredmail.org/wiki/index.php?titl … r.iRedMail

Tried this and Thunderbird unable to find the settings. Tried settings in the guide and did "re-test" and it was unable to pass.

It is still unclear to me what e-mail account I should be testing so I tried both the postmaster account (using root password) and root account with root password. I don't know of any other accounts to try or how to create a mailbox without the web GUI.

I've noticed I can open a socket to 143 and get:
* OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE STARTTLS LOGINDISABLED] Dovecot ready.

TELNETTing from my client via port 587 I receive a TCP reset from my server. Port 993 works as well.

15

Re: 404 Not Found after fresh install

networkguy09 wrote:

It is still unclear to me what e-mail account I should be testing so I tried both the postmaster account (using root password) and root account with root password. I don't know of any other accounts to try or how to create a mailbox without the web GUI.

*) While iRedMail installation completed, it prints username and password in terminal. It should be "postmaster@[your_domain]".
*) You can find all username/password in iRedMail directory. For example, /root/iRedMail-0.8.5/iRedMail.tips. It's clearly mentioned when iRedMail installation completed, and installation guide:
http://www.iredmail.org/install_iredmai … ant_things

16

Re: 404 Not Found after fresh install

ZhangHuangbin wrote:
networkguy09 wrote:

It is still unclear to me what e-mail account I should be testing so I tried both the postmaster account (using root password) and root account with root password. I don't know of any other accounts to try or how to create a mailbox without the web GUI.

*) While iRedMail installation completed, it prints username and password in terminal. It should be "postmaster@[your_domain]".
*) You can find all username/password in iRedMail directory. For example, /root/iRedMail-0.8.5/iRedMail.tips. It's clearly mentioned when iRedMail installation completed, and installation guide:
http://www.iredmail.org/install_iredmai … ant_things

Apologies, all of that information was right there on the screen. So I am trying now with the correct password, user id, and settings (per the guide) and still having the same error in Thunderbird.

Sent a few test e-mails from Yahoo to the postmaster account and haven't got anything back yet. Let me doing some more testing with this and I'll update.

17

Re: 404 Not Found after fresh install

I tried Thunderbird from two different clients and was unable to connect and received failure notifications for my test e-mails from Yahoo.

I give up!

Thanks for the help Zhang.