Iredadmin internal server error

Cannot access iRedadmin due to "Internal Server Error" (Page 1) — iRedMail Support — iRedMail — Works on CentOS, Rocky, Debian, Ubuntu, FreeBSD, OpenBSD

ZhangHuangbin wrote:

Any relevant error in /var/log/syslog?

I went to /opt/www/iredadmin and tested iredadmin.py with python3, this is the logging of iredadmin:

127.0.0.1:58260 — — [02/Jun/2022 23:30:05] «HTTP/1.1 GET /» — 500 Internal Server Error

Traceback (most recent call last):

  File «/usr/local/lib/python3.8/dist-packages/web/application.py», line 278, in process

    return p(lambda: process(processors))

  File «/usr/local/lib/python3.8/dist-packages/web/session.py», line 98, in _processor

    self._cleanup()

  File «/usr/local/lib/python3.8/dist-packages/web/session.py», line 199, in _cleanup

    self.store.cleanup(timeout)

  File «/usr/local/lib/python3.8/dist-packages/web/session.py», line 375, in cleanup

    self.db.delete(self.table, where=»$last_allowed_time > atime», vars=locals())

  File «/usr/local/lib/python3.8/dist-packages/web/db.py», line 1174, in delete

    db_cursor = self._db_cursor()

  File «/usr/local/lib/python3.8/dist-packages/web/db.py», line 743, in_db_cursor

    return self.ctx.db.cursor()

  File «/usr/local/lib/python3.8/dist-packages/web/db.py», line 683, in _getctx

    self._load_context(self._ctx)

  File «/usr/local/lib/python3.8/dist-packages/web/db.py», line 695, in_load_context

    ctx.db = self._connect(self.keywords)

  File «/usr/local/lib/python3.8/dist-packages/web/db.py», line 723, in _connect

    return self.db_module.connect(**keywords)

  File «/usr/lib/python3/dist-packages/pymysql/__init__.py», line 94, in Connect

    return Connection(*args, **kwargs)

  File «/usr/lib/python3/dist-packages/pymysql/connections.py», line 325, in__init__

    self.connect()

  File «/usr/lib/python3/dist-packages/pymysql/connections.py», line 599, in connect

    self._request_authentication()

  File «/usr/lib/python3/dist-packages/pymysql/connections.py», line 861, in_request_authentication

    auth_packet = self._read_packet()

  File «/usr/lib/python3/dist-packages/pymysql/connections.py», line 684, in_read_packet

    packet.check_error()

  File «/usr/lib/python3/dist-packages/pymysql/protocol.py», line 220, in check_error

    err.raise_mysql_exception(self._data)

  File «/usr/lib/python3/dist-packages/pymysql/err.py», line 109, in raise_mysql_exception

    raise errorclass(errno, errval)

pymysql.err.OperationalError: (1045, «Access denied for user ‘iredadmin’@’localhost’ (using password: YES)»)

127.0.0.1:58260 — — [02/Jun/2022 23:30:05] «HTTP/1.1 GET /favicon.ico» — 500 Internal Server Error

It seems like something went wrong on the Database, I uses MariaDB for this instance. What should I do to troubleshoot it?

Содержание

  1. Sep 30, 2022: iRedMail-1.6.2 has been released.
  2. Posts: 11
  3. 1 Topic by jwegge 2017-10-26 22:49:50
  4. Topic: internal server error iredadmin
  5. Sep 30, 2022: iRedMail-1.6.2 has been released.
  6. Posts: 5
  7. 1 Topic by riosdesantiago 2018-06-21 04:57:33 (edited by riosdesantiago 2018-06-21 04:58:41)
  8. Topic: Internal server error
  9. Sep 30, 2022: iRedMail-1.6.2 has been released.
  10. Posts: 5
  11. 1 Topic by caospuntomedia 2018-11-19 04:59:58
  12. Topic: iredadmin Internal Server Error
  13. 2 Reply by ZhangHuangbin 2018-11-19 07:38:08
  14. Re: iredadmin Internal Server Error
  15. 3 Reply by caospuntomedia 2018-11-19 12:23:46 (edited by caospuntomedia 2018-11-19 12:30:05)
  16. Re: iredadmin Internal Server Error
  17. 4 Reply by ZhangHuangbin 2018-11-20 09:33:19
  18. Re: iredadmin Internal Server Error
  19. Sep 30, 2022: iRedMail-1.6.2 has been released.
  20. Posts: 9
  21. 1 Topic by wstray 2019-12-12 15:53:17
  22. Topic: logout iredadmin -> internal server error

Sep 30, 2022: iRedMail-1.6.2 has been released.

You must login or register to post a reply

Posts: 11

1 Topic by jwegge 2017-10-26 22:49:50

  • jwegge
  • Member
  • Offline
  • Registered: 2016-02-21
  • Posts: 14

Topic: internal server error iredadmin

======== Required information ====
— iRedMail version (check /etc/iredmail-release): 0.9.7
— Linux/BSD distribution name and version: Ubuntu 16.04.3 LTS (GNU/Linux 4.10.0-28-generic x86_64)
— Store mail accounts in which backend (LDAP/MySQL/PGSQL): mysql
— Web server (Apache or Nginx): apache
— Manage mail accounts with iRedAdmin-Pro? yes
====
/var/log/apache2/error.log
.
[Thu Oct 26 16:43:44.356300 2017] [wsgi:error] [pid 58700] [client 10.201.13.249:62162] Timeout when reading response headers from daemon process ‘iredadmin’: /opt/www/iredadmin/iredadmin.py, referer: https://XXX.YYY.ZZZ/iredadmin/activitie … ined/virus
[Thu Oct 26 16:43:49.579446 2017] [wsgi:error] [pid 42016] [client 10.201.13.249:62838] Truncated or oversized response headers received from daemon process ‘iredadmin’: /opt/www/iredadmin/iredadmin.py, referer: https://XXX.YYY.ZZZ/iredadmin/activitie … ined/virus
[Thu Oct 26 16:43:49.579501 2017] [wsgi:error] [pid 65986] [client 10.201.13.249:62834] Truncated or oversized response headers received from daemon process ‘iredadmin’: /opt/www/iredadmin/iredadmin.py, referer: https://XXX.YYY.ZZZ/iredadmin/activitie … ined/virus
[Thu Oct 26 16:43:49.579675 2017] [wsgi:error] [pid 67154] [client 10.201.13.249:62823] Truncated or oversized response headers received from daemon process ‘iredadmin’: /opt/www/iredadmin/iredadmin.py, referer: https://XXX.YYY.ZZZ/iredadmin/activitie … ined/virus
[Thu Oct 26 16:43:49.579444 2017] [wsgi:error] [pid 45398] [client 10.201.13.249:62837] Truncated or oversized response headers received from daemon process ‘iredadmin’: /opt/www/iredadmin/iredadmin.py, referer: https://XXX.YYY.ZZZ/iredadmin/activitie … ined/virus
.

After checking the contents of an email in quarantaine, the web-ui hangs with an Internal Server Error
when one wants to start a second action.

One can check the content of quarantained mail, but afterwards the web-ui hangs.
One can release or delete emails from quarantaine, provided we did not first check the content of a message.

«Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at postmaster@YYY.ZZZ to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

Apache/2.4.18 (Ubuntu) Server at XXX.YYY.ZZZ Port 443″

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Stable release is out.

Источник

Sep 30, 2022: iRedMail-1.6.2 has been released.

You must login or register to post a reply

Posts: 5

1 Topic by riosdesantiago 2018-06-21 04:57:33 (edited by riosdesantiago 2018-06-21 04:58:41)

  • riosdesantiago
  • Member
  • Offline
  • Registered: 2017-02-11
  • Posts: 4

Topic: Internal server error

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
— iRedMail version (check /etc/iredmail-release): 0.9.8
— Linux/BSD distribution name and version: UBUNTU 16.04
— Store mail accounts in which backend (LDAP/MySQL/PGSQL): MYSQL
— Web server (Apache or Nginx): APACHE
— Manage mail accounts with iRedAdmin-Pro? YES
— [IMPORTANT] Related original log or error message is required if you’re experiencing an issue.
====

Whenever i try to edit system preferences in iredadmin pro, or try to edit an user i get «internal server error»
error log:

[Wed Jun 20 14:42:38.619195 2018] [wsgi:error] [pid 1775] [remote XXX.XXX.XXX.XXX:6762] Traceback (most recent call last):
[Wed Jun 20 14:42:38.619211 2018] [wsgi:error] [pid 1775] [remote XXX.XXX.XXX.XXX:6762] File «/usr/lib/python2.7/dist-packages/web/application.py», line 239, in process
[Wed Jun 20 14:42:38.619214 2018] [wsgi:error] [pid 1775] [remote XXX.XXX.XXX.XXX:6762] return self.handle()
[Wed Jun 20 14:42:38.619215 2018] [wsgi:error] [pid 1775] [remote XXX.XXX.XXX.XXX:6762] File «/usr/lib/python2.7/dist-packages/web/application.py», line 230, in handle
[Wed Jun 20 14:42:38.619217 2018] [wsgi:error] [pid 1775] [remote XXX.XXX.XXX.XXX:6762] return self._delegate(fn, self.fvars, args)
[Wed Jun 20 14:42:38.619219 2018] [wsgi:error] [pid 1775] [remote XXX.XXX.XXX.XXX:6762] File «/usr/lib/python2.7/dist-packages/web/application.py», line 420, in _delegate
[Wed Jun 20 14:42:38.619220 2018] [wsgi:error] [pid 1775] [remote XXX.XXX.XXX.XXX:6762] return handle_class(cls)
[Wed Jun 20 14:42:38.619222 2018] [wsgi:error] [pid 1775] [remote XXX.XXX.XXX.XXX:6762] File «/usr/lib/python2.7/dist-packages/web/application.py», line 396, in handle_class
[Wed Jun 20 14:42:38.619224 2018] [wsgi:error] [pid 1775] [remote XXX.XXX.XXX.XXX:6762] return tocall(*args)
[Wed Jun 20 14:42:38.619225 2018] [wsgi:error] [pid 1775] [remote XXX.XXX.XXX.XXX:6762] File «/opt/www/iredadmin/controllers/sql/user.py», line 322, in GET
[Wed Jun 20 14:42:38.619227 2018] [wsgi:error] [pid 1775] [remote XXX.XXX.XXX.XXX:6762] _qr = mlmmj.get_subscribed_lists(mail=mail, query_all_lists=False)
[Wed Jun 20 14:42:38.619228 2018] [wsgi:error] [pid 1775] [remote XXX.XXX.XXX.XXX:6762] File «/opt/www/iredadmin/libs/mlmmj/__init__.py», line 327, in get_subscribed_lists
[Wed Jun 20 14:42:38.619230 2018] [wsgi:error] [pid 1775] [remote XXX.XXX.XXX.XXX:6762] r = requests.get(url, params=params, headers=api_headers, verify=_verify_ssl)
[Wed Jun 20 14:42:38.619231 2018] [wsgi:error] [pid 1775] [remote XXX.XXX.XXX.XXX:6762] File «/usr/lib/python2.7/dist-packages/requests/api.py», line 72, in get
[Wed Jun 20 14:42:38.619233 2018] [wsgi:error] [pid 1775] [remote XXX.XXX.XXX.XXX:6762] return request(‘get’, url, params=params, **kwargs)
[Wed Jun 20 14:42:38.619234 2018] [wsgi:error] [pid 1775] [remote XXX.XXX.XXX.XXX:6762] File «/usr/lib/python2.7/dist-packages/requests/api.py», line 58, in request
[Wed Jun 20 14:42:38.619236 2018] [wsgi:error] [pid 1775] [remote XXX.XXX.XXX.XXX:6762] return session.request(method=method, url=url, **kwargs)
[Wed Jun 20 14:42:38.619237 2018] [wsgi:error] [pid 1775] [remote XXX.XXX.XXX.XXX:6762] File «/usr/lib/python2.7/dist-packages/requests/sessions.py», line 502, in request
[Wed Jun 20 14:42:38.619239 2018] [wsgi:error] [pid 1775] [remote XXX.XXX.XXX.XXX:6762] resp = self.send(prep, **send_kwargs)
[Wed Jun 20 14:42:38.619240 2018] [wsgi:error] [pid 1775] [remote XXX.XXX.XXX.XXX:6762] File «/usr/lib/python2.7/dist-packages/requests/sessions.py», line 612, in send
[Wed Jun 20 14:42:38.619246 2018] [wsgi:error] [pid 1775] [remote XXX.XXX.XXX.XXX:6762] r = adapter.send(request, **kwargs)
[Wed Jun 20 14:42:38.619247 2018] [wsgi:error] [pid 1775] [remote XXX.XXX.XXX.XXX:6762] File «/usr/lib/python2.7/dist-packages/requests/adapters.py», line 504, in send
[Wed Jun 20 14:42:38.619249 2018] [wsgi:error] [pid 1775] [remote XXX.XXX.XXX.XXX:6762] raise ConnectionError(e, request=request)
[Wed Jun 20 14:42:38.619251 2018] [wsgi:error] [pid 1775] [remote XXX.XXX.XXX.XXX:6762] ConnectionError: HTTPConnectionPool(host=’127.0.0.1′, port=7790): Max retries exceeded with url: /$/api/subscriber/USER@DOMAIN.com/subscribed?query_all_lists=no&email_only=no (Caused by NewConnectionError(‘ : Failed to establish a new connection: [Errno 111] Connection refused’,))
[Wed Jun 20 14:42:38.619255 2018] [wsgi:error] [pid 1775] [remote XXX.XXX.XXX.XXX:6762]

My settings in /opt/mlmmjadmin/settings.py

iredmail_sql_db_type = ‘mysql’
iredmail_sql_db_server = ‘127.0.0.1’
iredmail_sql_db_port = 3306
iredmail_sql_db_name = ‘vmail’
iredmail_sql_db_user = ‘vmailadmin’
iredmail_sql_db_password = ‘password’

MLMMJ_SPOOL_DIR = ‘/var/vmail/mlmmj’
MLMMJ_ARCHIVE_DIR = ‘/var/vmail/mlmmj-archive’
MLMMJ_DEFAULT_PROFILE_SETTINGS.update(<‘smtp_port’: 10027>)

I updated mlmmj to version 1.4 the issue still persist

If i run the command python mlmmjadmin.py in cd /opt/mlmmjadmin/

Everything works fine as long as i don’t cancel the command, any suggestions?

Thanks in advance!

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Stable release is out.

Источник

Sep 30, 2022: iRedMail-1.6.2 has been released.

iRedMail → iRedMail Support → iredadmin Internal Server Error

You must login or register to post a reply

Posts: 5

1 Topic by caospuntomedia 2018-11-19 04:59:58

  • caospuntomedia
  • Member
  • Offline
  • Registered: 2018-11-19
  • Posts: 5

Topic: iredadmin Internal Server Error

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
— iRedMail version (check /etc/iredmail-release): 0.9.8
— Linux/BSD distribution name and version: CentOS 75.1804
— Store mail accounts in which backend (LDAP/MySQL/PGSQL): MariaDB
— Web server (Apache or Nginx): Nginx 1.15.6
— Manage mail accounts with iRedAdmin-Pro? No
— [IMPORTANT] Related original log or error message is required if you’re experiencing an issue.
====
From /var/log/messages

uwsgi: Traceback (most recent call last):
uwsgi: File «./iredadmin.py», line 9, in
uwsgi: from libs import iredbase
uwsgi: File «/var/www/iRedAdmin-0.9.1/libs/iredbase.py», line 18, in
uwsgi: from libs import iredutils
uwsgi: File «/var/www/iRedAdmin-0.9.1/libs/iredutils.py», line 14, in
uwsgi: import settings
uwsgi: ImportError: No module named settings
uwsgi: unable to load app 0 (mountpoint=’mydomain.tld|/iredadmin’) (callable not found or import error)
uwsgi: — no python application found, check your startup logs for errors —
uwsgi: caos.media [pid: 565|app: -1|req: -1/1] ###.###.##.## () <54 vars in 856 bytes>[Sun Nov 18 14:37:57 2018] GET /iredadmin => generated 21 bytes in 249 msecs (HTTP/1.1 500) 2 headers in 83 bytes (0 switches on core 0)
uwsgi: announcing my loyalty to the Emperor.
uwsgi: Sun Nov 18 14:37:57 2018 — [emperor] vassal iredadmin.ini is now loyal

[uwsgi]
plugins = python
vhost = true
socket = /var/run/uwsgi/iredadmin.socket
pidfile = /var/run/uwsgi/iredadmin.pid
chown-socket = nginx:nginx
chmod-socket = 660
uid = iredadmin
gid = iredadmin
enable-threads = true

# Settings for iRedAdmin.

# static files under /iredadmin/static
location

^/iredadmin/static/(.*) <
alias /var/www/iredadmin/static/$1;
>

# Handle newsletter-style subscription/unsubscription supported in iRedAdmin-Pro.
location

^/newsletter/ <
include /etc/nginx/templates/hsts.tmpl;

include uwsgi_params;
uwsgi_pass unix:/var/run/uwsgi/iredadmin.socket;
uwsgi_param UWSGI_CHDIR /var/www/iredadmin;
uwsgi_param UWSGI_SCRIPT iredadmin;
uwsgi_param SCRIPT_NAME /iredadmin;
uwsgi_param REQUEST_URI /iredadmin/$request_uri;
>

^/iredadmin(.*) <
rewrite ^/iredadmin(/.*)$ $1 break;

include uwsgi_params;
uwsgi_pass unix:/var/run/uwsgi/iredadmin.socket;
uwsgi_param UWSGI_CHDIR /var/www/iredadmin;
uwsgi_param UWSGI_SCRIPT iredadmin;
uwsgi_param SCRIPT_NAME /iredadmin;

# Access control
#allow 127.0.0.1;
#allow 192.168.1.10;
#allow 192.168.1.0/24;
#deny all;
>

# iRedAdmin: redirect /iredadmin to /iredadmin/
location = /iredadmin <
rewrite ^ /iredadmin/;
>

File list from /var/www/iredadmin

File list from /var/www/iredadmin/libs

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Stable release is out.

2 Reply by ZhangHuangbin 2018-11-19 07:38:08

  • ZhangHuangbin
  • iRedMail Developers
  • Offline
  • Registered: 2009-05-06
  • Posts: 30,018

Re: iredadmin Internal Server Error

What’s the file owner/group and permission of file /var/www/iRedAdmin-0.9.1/settings.py (and also «settings.pyc» if exists)?

3 Reply by caospuntomedia 2018-11-19 12:23:46 (edited by caospuntomedia 2018-11-19 12:30:05)

  • caospuntomedia
  • Member
  • Offline
  • Registered: 2018-11-19
  • Posts: 5

Re: iredadmin Internal Server Error

Dir/File Owner Group Permissions
iredadmin root root 777
libs root root 555
settings.py root root 400
settings.pyc root root 400

4 Reply by ZhangHuangbin 2018-11-20 09:33:19

  • ZhangHuangbin
  • iRedMail Developers
  • Offline
  • Registered: 2009-05-06
  • Posts: 30,018

Re: iredadmin Internal Server Error

settings.py root root 400
settings.pyc root root 400

These 2 should be owned by user/group ‘iredadmin:iredadmin’.

Источник

Sep 30, 2022: iRedMail-1.6.2 has been released.

iRedMail → iRedMail Support → logout iredadmin -> internal server error

You must login or register to post a reply

Posts: 9

1 Topic by wstray 2019-12-12 15:53:17

  • wstray
  • Member
  • Offline
  • Registered: 2019-12-12
  • Posts: 4

Topic: logout iredadmin -> internal server error

I want to apologize for my English right away
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
— iRedMail version (check /etc/iredmail-release): 1.0
— Deployed with iRedMail Easy or the downloadable installer? no
— Linux/BSD distribution name and version: FreeBSD (11.3/12.1 — I tried on two versions)
— Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL(MariaDB)
— Web server (Apache or Nginx): Nginx
— Manage mail accounts with iRedAdmin-Pro? no
— [IMPORTANT] Related original log or error message is required if you’re experiencing an issue.
====

In order:
Full installation of FreeBSD. A clean, «stable . dvd1.iso» image.
Actions.
1) portsnap fetch extract update
2) pkg install bash-static or cd / usr / ports / shell / bash make install clean does not matter for the final result.
3) bash iRedMail.sh
4) After the installation is complete, reboot.

We launch:
Roundcoub — works
/ iredadmin — works on login, does not work on logout

iRedAdmin:
1) Log in using postmaster@mydomain.com + password
2) We perform any actions — mail registration, user registration, viewing logs. All perfectly.
3) Click logout — internal server error.

— There are no logs for this error.
— I can’t find the reason.
-I can’t get to the ip / iredadmin page anymore (for some time) — as an internal server error.
-After some time I can get to the / iredadmin page and enter the admin panel. (as I understand logout occurs by timeout)
-At this time, I can go to the admin panel through another browser.

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Stable release is out.

Источник

I have the same issue («internal server error» after fresh install)
Absolute fresh Debian 10, fresh installation, I did everything absolutely according to the book.

pip2 install web.py==0.51 did not fix it.

But by first installing python-setuptools (apt-get install python-setuptools)
and afterwards installing web.py (pip install web.py==0.51) it worked!

During installation it already showed the problem:

Collecting web.py==0.51
  Using cached https://files.pythonhosted.org/packages/45/81/4f598ed7089a7be632d5787882c8a384f413ef4262b4fe30b1972e61f9dc/web.py-0.51.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
    ImportError: No module named setuptools

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-5A2227/web.py/

content of /var/log/nginx/error.log

2020/08/18 23:43:24 [error] 739#739: *793 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 195.54.160.21, server: _, request: "GET /index.php?s=/Index/thinkapp/invokefunction&function=call_user_func_array&vars[0]=md5&vars[1][]=HelloThinkPHP HTTP/1.1", upstream: "fastcgi://127.0.0.1:9999", host: "116.203.202.52:443"
2020/08/18 23:46:52 [error] 739#739: *878 open() "/var/www/html/api/jsonws/invoke" failed (2: No such file or directory), client: 195.54.160.21, server: _, request: "POST /api/jsonws/invoke HTTP/1.1", host: "116.203.202.52:443"
2020/08/19 00:22:04 [error] 720#720: *667 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 195.54.160.21, server: _, request: "GET /vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9999", host: "116.203.202.52:443"
2020/08/19 00:22:04 [error] 720#720: *669 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 195.54.160.21, server: _, request: "POST /vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9999", host: "116.203.202.52:443"

View Full Version : [SOLVED] Mail Server


wolfgentleman

November 27th, 2013, 01:31 AM

I have been having a heck of a time trying to get a fully functional mail server up. I have dovecot setup(everything except for the folders) but postfix is being a pain in the butt. First I can’t seem to get it to use dovecot for auth or mail delivery. Second the file it uses to store mail is flooded with output from cron jobs. Is there any user friendly command line interface like aptitude for apt to configure postfix and dovecot? If not, any tutorials, links, and suggestions would be appreciated.

Sorry if my spelling is off I am on my tablet ATM.


nerdtron

November 27th, 2013, 02:40 AM

I think it would be better to have a working system and then study how it works.
Here’s the mail solution we use. Installation is very easy.
http://www.iredmail.org/install_iredmail_on_ubuntu.html


wolfgentleman

November 27th, 2013, 04:52 AM

I think it would be better to have a working system and then study how it works.Here’s the mail solution we use. Installation is very easy.http://www.iredmail.org/install_iredmail_on_ubuntu.html
From the first couple of sections that is not a viable solution due not being able to spare more than 100MB of RAM and I cannot remove MySQL because it is used in the website and external apps. Also I have 3 domains pointing to the server so I can’t set the FQDN. Only one domain will be using the mail server and I will be the only one using it so it only needs one user. I want to set up a single-user IMAP server with a catchall address. So is there any way I can set it up without hassle or removing packages (not counting dovecot and postfix)?


nerdtron

November 27th, 2013, 05:00 AM

If you read the notes, it assumes that you must install it on a freshly installed ubuntu server. And since you just need it for a single domain, single catchall account, you can just spin up a virtual machine with 512MB of ram. You can even remove the clamAV and spamassasin to reduce ram usage.
But if you are out of hard ware, I can’t help you.
And since you want to have a mail server on an existing production machine, you really need to do the hard work of manual configuration.
Any particular problems you are having in dovecot? Do you have any related logs? And can you post your postfix configuration?


wolfgentleman

November 27th, 2013, 05:25 AM

For the most part dovecot is configured, I just need to fix the IMAP folders of which I don’t know how to do yet. Postfix OTOH is a complete wreck. It uses system users rather than dovecot, it uses /var/mail/user to deliver mail rather than dovecot, and the file is flooded with cron output. I have the catchall setup temporaraly as a system user of mailbox so it redirects everything to /var/mail/mailbox.


wolfgentleman

December 1st, 2013, 03:53 AM

Bump… attaching postfix configs
248216


wolfgentleman

December 2nd, 2013, 10:37 PM

bump


wolfgentleman

December 3rd, 2013, 10:33 PM

Where is a service I can host a mail server with the following:
Single Catchall Inbox with Multi-Login
IMAP
SSL
External Access
Use a pre-existing domain

The budget is $20. It would be nice if it had a web interface and that I could point a subdomain at it, but it is not a necessity.


bigmonmulgrew

December 5th, 2013, 11:28 AM

Hi
Just a thought. My Brother and I recently discussed setting up a mail server.
I played about with the stuff ing the Ubuntu guide. My brother (having no linux experience) set Citadel up in about half an hour. Might be worth a look as an alternative.
http://www.citadel.org/


kustomjs

December 5th, 2013, 05:56 PM

iredmail is about the most easiest mail server you use I am using it and I didnt any problems setting it up.


SeijiSensei

December 6th, 2013, 03:11 AM

The budget is $20. It would be nice if it had a web interface and that I could point a subdomain at it, but it is not a necessity.

If that’s a monthly figure, you can have a complete virtual Linux server at Linode (http://www.linode.com/). The basic machine has 1 GB of memory and 48 GB of storage.


CharlesA

December 6th, 2013, 03:15 AM

If that’s a monthly figure, you can have a complete virtual Linux server at Linode (http://www.linode.com/). The basic machine has 1 GB of memory and 48 GB of storage.

+1. I just moved my mail server to RamNode (http://ramnode.com/) because they had a 42% off special for their SSD and SSD-cached VPSes. Totally worth it.

Ramnode has a 1GB OpenVZ VPS for $15 a month and a KVM VPS for $24 a month.


wolfgentleman

December 7th, 2013, 10:01 PM

If that’s a monthly figure, you can have a complete virtual Linux server at Linode (http://www.linode.com/). The basic machine has 1 GB of memory and 48 GB of storage.

So it would be fully setup for me? Mail server, Apache, MySQL, SSH, ect? I need a pgp keyserver as well would I be able to have that preinstalled as well or will I need to install from SSH?


CharlesA

December 7th, 2013, 10:09 PM

So it would be fully setup for me? Mail server, Apache, MySQL, SSH, ect? I need a pgp keyserver as well would I be able to have that preinstalled as well or will I need to install from SSH?

Why would you need a pgp key server? If you do buy a VPS, it’ll have SSH installed by default and you manage it entirely via ssh (unless you install something like Webmin, cPanel or the like). This means you would need to set it up, make sure it is secure, and then make sure updates are applied, etc.

Have a read here:
https://library.linode.com/email/postfix/postfix2.9.6-dovecot2.0.19-mysql

That is how I have my mail server setup. Of course my mail server is also running spamassassin and other stuff, but that should get your a basic mail server setup and running.


wolfgentleman

December 8th, 2013, 01:27 AM

So it would be fully setup for me? Mail server, Apache, MySQL, SSH, ect? I need really want a pgp keyserver as well would I be able to have that preinstalled as well or will I need to install from SSH?

Have a read here:
https://library.linode.com/email/postfix/postfix2.9.6-dovecot2.0.19-mysql

That is how I have my mail server setup. Of course my mail server is also running spamassassin and other stuff, but that should get your a basic mail server setup and running.
I was hoping I would just be able to select mail server, apache, mysql, ssh, ect on a setup menu or something… I will probably switch to linode anyway as they have a setup double what I have now for only $3 more, but I will have to do it after new years. Either way I will need to get the mail server running…


nerdtron

December 8th, 2013, 01:32 AM

That why I recommended installing iRedMail. It’s like installing a windows program. Run the installer, select yes, yes, next…provide details.. nah..

Kidding aside, (seriously) it’s really simple, after you setup your server, try to run the installer for iredmail. After the installation, (probably in 5 minutes if you have fast internet) your complete mail server is done. No coding is even required.


CharlesA

December 8th, 2013, 02:07 AM

That why I recommended installing iRedMail. It’s like installing a windows program. Run the installer, select yes, yes, next…provide details.. nah..

Kidding aside, (seriously) it’s really simple, after you setup your server, try to run the installer for iredmail. After the installation, (probably in 5 minutes if you have fast internet) your complete mail server is done. No coding is even required.

+1. I looked into using it originally, but decided against it cuz the memory footprint was a bit high.

Of course, now my production web server has everything iRedMail has minus the iRedMail control panel thing and the memory usage is about the same.

When you do get the server installed, if you don’t already have a firewall setup, check out CSF:
http://configserver.com/cp/csf.html


wolfgentleman

December 8th, 2013, 02:18 AM

That why I recommended installing iRedMail. It’s like installing a windows program. Run the installer, select yes, yes, next…provide details.. nah..

Kidding aside, (seriously) it’s really simple, after you setup your server, try to run the installer for iredmail. After the installation, (probably in 5 minutes if you have fast internet) your complete mail server is done. No coding is even required.

That’s what I figured I would do after switching to Linode is install the bare minimum Ubuntu Server, install iredmail, follow their wiki on removing spam detection and filtering (been wanting to get the game server off the home network), install the parts of a webserver that it did not, install sks, then restore backups of database


wolfgentleman

January 5th, 2014, 05:15 AM

Ok, finally go setup on Linode. iRedMail is not as easy as stated. I have managed fix most errors, however iredadmin is not working fully. I keep getting «Error: (1054, «Unknown column ‘language’ in ‘field list'»)». Also the install seemed to go fine, but it didn’t configure itself — only MySQL, Apache, Dovecot, Postfix, ect. I followed their tut for disabling antivirus/antispam, but rather than disabling ClamAV and Amavisd I removed them, deleting the line it says to comment out in main.cf. Also I had to fix some things in the Apache config as I needed it to use mail.twprogrammers.com for webmail/admin panel/ect and not redirect EVERYTHING to webmail. So I don’t know what is working and what isn’t with the admin panel. Roundcube gives a can’t connect error, turns out it didn’t configure it either. I tried to fix that one to no avail, but will search tomorrow as well as post configs of everything as well as an sql dump of my mail-related databases. Thanks for suggesting Linode. I am loving it so much better.


nerdtron

January 5th, 2014, 06:44 AM

You installed iredmail on a *fresh* installation of Ubuntu server 12.04 right?
You should have any problems. Anyway, go over to the iredmail forums, the developer is very active answering support questions.
Goodluck!


pft42

January 5th, 2014, 02:42 PM

Hi,

just came back to this forum after a long time.
Looking at initial posts of this thread I wonder whether the solution might just be two lines away.
You say dovecot is working — fine (though not sure how you proved it)
Now dovecot has on imagination where inbox lies what what format to use. Postfix has one too. Just need to get both in sync.
In my case this:
/etc/postfix/main.cf:home_mailbox = Maildir/
/etc/dovecot/conf.d/10-mail.conf:mail_location = maildir:~/Maildir
This should give you basic operation. SSL etc. is for further work after this

Thomas


wolfgentleman

January 5th, 2014, 06:02 PM

You installed iredmail on a *fresh* installation of Ubuntu server 12.04 right?
You should have any problems. Anyway, go over to the iredmail forums, the developer is very active answering support questions.
Goodluck!
Yes, I had a fresh install of Ubuntu 12.04. Rather than exporting an IMG from the Rackspace server I just backed up /home /etc/apache2 /etc/passwd /etc/shadow /etc/group /etc/gshadow and a few others then did a MySQL dump.

Here is what I did:

Installed Ubuntu 12.04 on my Linode
Downloaded and installed iRedMail
Followed their wiki tutorial on disabling spam/virus scanning but removed rather than disabled Amavisd, ClamAV, and spamassassin, then tested it some but came up with errors:

iredadmin

«internal server error» — fixed (vmail database had no tables)
login page —> username, password, enter —> «internal server error» — fixed (forgot to add myself to vmail tables)
then login page —> username, password, enter —> (Admin|Preferences —> Save) —> «Error: (1054, «Unknown column ‘language’ in ‘field list'»)» — not fixed and haven’t found anything useful

roundcube

«DATABASE ERROR: CONNECTION FAILED! Unable to connect to the database! Please contact your server-administrator.» — not fixed but haven’t had a chance to search

Imported my MySQL dump
Merged:

Apache configs (modifying a few things to use mail.twprogrammers.com instead of any domain)
/etc/passwd
/etc/shadow
/etc/group
/etc/gshadow

Installed sks, reprepro, ect.

So I don’t know if anything is working on the mail system…
Attaching Too big (~3.3MB) so I am uploading to my site: here is the link (http://downloads.twprogrammers.com/configs+logs.tar.bz2) all configs/logs/dumps related to the mailing system.

Hi,

just came back to this forum after a long time.
Looking at initial posts of this thread I wonder whether the solution might just be two lines away.
You say dovecot is working — fine (though not sure how you proved it)
Now dovecot has on imagination where inbox lies what what format to use. Postfix has one too. Just need to get both in sync.
In my case this:
/etc/postfix/main.cf:home_mailbox = Maildir/
/etc/dovecot/conf.d/10-mail.conf:mail_location = maildir:~/Maildir
This should give you basic operation. SSL etc. is for further work after this

Thomas
You kinda lost me there…


CharlesA

January 5th, 2014, 06:33 PM

If you installed iredmail on a clean VPS, it should have worked fine. Did you test it before importing the password and shadow files?

That will screw with user/group IDs, which can be a mess to fix.


wolfgentleman

January 5th, 2014, 07:27 PM

If you installed iredmail on a clean VPS, it should have worked fine. Did you test it before importing the password and shadow files?

That will screw with user/group IDs, which can be a mess to fix.

Yes

I also merged php.ini because I increased the upload limit to 25M and some of the error display settings.


CharlesA

January 5th, 2014, 07:52 PM

Huh. The last time I installed iRedMail was on a Debian Squeeze box, but it should work fine on 12.04.

If you want to do it on your own terms, check this out (Linode ftw):
https://library.linode.com/email/postfix/postfix2.9.6-dovecot2.0.19-mysql


wolfgentleman

January 6th, 2014, 02:54 AM

YES! HAHAHAHAHA!
I finally got it working! Thank you CharlesA! That link fixed everything! Just used Thunderbird to add folders and perfecto! And thank you SeijiSensei for suggesting Linode. It is MUCH better than Rackspace, for $3 more I get 2x the ram and more than 2x the storage and a much more manageable control panel (although the theme is horrendous). I appreciate all of the time y’all took to help me and I am very grateful.


Powered by vBulletin® Version 4.2.2 Copyright © 2023 vBulletin Solutions, Inc. All rights reserved.

Разработчики и люди, профессионально работающие с веб-приложениями, боятся 500 Internal Server Error. Оптимальный способ её устранения зависит от сервера и того, что на нём запущено. В данной статье приводятся советы по диагностике и исправлению ошибки 500.

  • Ошибка 500 Internal Server Error — диагностика
  • Ошибка 500 Internal Server Error — устранение на популярных платформах
  • Ошибка 500 Internal Server Error — устранение на стороне серверных скриптов
  • Попросите помощи у системного администратора
  • Ошибку 500 Internal Server Error довольно легко устранить

Важно помнить, что эта ошибка происходит на стороне сервера. Это значит, что HTML-код, выполняемый на стороне клиента, а также JavaScript или любые другие запущенные в браузере объекты, не могут быть причиной, по которой возникает ошибка 500 Internal Server Error. Само название (Internal Server Error – ‘внутренняя ошибка сервера’) говорит о том, что ошибка происходит на сервере.

Многие пользователи устанавливают на свой сервер популярные CMS-системы, такие как WordPress, Joomla, Drupal и они не должны вызывать ошибку 500, если всё настроено правильно. Однако она всё равно всплывает – из-за несовместимости версий, некачественных установок или сбоя прав доступа на сервере.

Вот некоторые распространённые проблемы, которые могут вызывать подобную ошибку в часто используемых CMS:

  • Если вы только что обновили движок до новой версии, вероятно, обновление прошло с ошибками и необходимо провести его повторно. Скорее всего, на сайте разработчика есть инструкции, как это правильно сделать.
  • Если вы только что активировали новый плагин или новую тему, стоит попробовать отменить эти изменения. Даже профессионально написанные плагины могут конфликтовать с другими и вызывать 500 Internal Server Error nginx
  • Если вы обновляли CMS, старые плагины и темы могут быть с ней несовместимы. Единственное, что можно сделать в таком случае — отключать их по очереди, пока ошибка 500 не исчезнет.
  • Неправильно заданные права доступа на сервере или ошибки в файле .htaccess. Серверу не удаётся получить доступ к скриптам, файлам и другим ресурсам, поэтому он выдаёт ошибку.

Когда причиной, по которой возникает ошибка 500 Internal Server Error являются скрипты и плагины, лучше всего искать ответы на сайтах их разработчиков.

Другой причиной по которой может возникнуть ошибка 500 Internal Server Error может стать разработка и тестирование собственных скриптов.

Чтобы справиться с такой ошибкой, попробуйте следующие решения:

  • Настройка прав на сервере: часто неверная настройка прав доступа к файлу или папке приводит к тому, что сервером выдаётся ошибка 500 Internal Server Error. Из-за того, что ему не удаётся запустить скрипт. Выясните, какие права должны быть настроены, и выставьте их соответствующим образом.
  • Превышено время ожидания: возможно, истекло время ожидания ответа от PHP или другого серверного скрипта. Это происходит из-за того, что недоступен определённый ресурс или коде была допущена ошибка, запускающая бесконечный цикл.
  • Превышено время ожидания соединения с сервером: если сервер был занят, перезагружался или потерял соединение, скрипт может выдать ошибку 500 Internal Server Error. Возможно, в следующий раз ошибки не будет. Но если ошибка появляется при тестировании, велика вероятность того, что она встретится и пользователям.
  • Ошибки в файле .htaccess: в некоторых случаях ошибку 500 может вызывать код, прописанный в файле .htaccess.
  • Ошибки в скрипте: если ошибку выдаёт скрипт, можете запросить у него подробную информацию об ошибке. К примеру, в PHP можно включить вывод ошибок на экран или в лог-файл, добавив директиву display_errors. По умолчанию среда выполнения может скрывать ошибки, но это не очень удобно для отладки программы.

В некоторых случаях у разработчиков нет полного контроля над сервером.

Если скрипт запускается на сервере сторонней организации, она может помочь вам в следующем:

  • Предоставить документацию о своём сервере и возможных причинах ошибки 500. В зависимости от используемой операционной системы и настройки оборудования, данная ошибка может возникать по разным причинам.
  • Попросите службу поддержки хостинга посмотреть лог-файлы с ошибками — системный администратор сможет определить, был ли сервер во время возникновения ошибки загружен или вовсе «упал».

Ошибка 500 Internal Server Error — как исправить? В большинстве случаев причины возникновения ошибки 500 легко исправляются. Проблема заключается в том, что без конкретной информации определение причины возникновения сбоя усложняется. Легче всего справиться с ошибкой, когда разработчик выяснит, что изменилось перед возникновением ошибки.

Не забывайте, что произошедшие изменения могли быть осуществлены и другими людьми — например, администратором сервера. Если же ничего не менялось, вероятно, сам сервер стал причиной возникновения ошибки из-за несовместимости программного обеспечения или проблем с производительностью.

Понравилась статья? Поделить с друзьями:
  • Iqos ошибки на индикаторе
  • Iqos 3 duos сброс ошибок
  • Iqos 3 duos ошибка при зарядке
  • Iq300 siemens ошибка e23
  • Ipyleaflet error displaying widget model not found