Author Topic: Cannot receive mail in Roundcube. Can send, but not without errors.  (Read 5561 times)

Offline joakim

  • Newbie
  • *
  • Posts: 3
I would like to humbly ask for some help in configuring Roundcube the correct way.

Please do assume that I am an idiot who may have done stupid mistakes. I have never set up an
email server before.

I am using a Postfix - Dovecot - Let's Encrypt set-up. I can send and receive mail with the terminal.

However, with Roundcube:
- When I try to send an email, the email is sent, but my mail box is
  stuck with the "Sending message..." pop up until a new message
  warning about a time-out appears.

- I do not receive any email in the inbox. I do, however, reiceive all
  mails in my unix inbox.


LOGS

~/logs/error displays:
Code: [Select]
[01-Mar-2018 16:16:23 +0100]: <9mftbij0> PHP Error: Invalid compose ID in /var/www/html/inbox/program/steps/mail/sendmail.inc on line 37 (POST /inbox/?_task=mail&_unlock=loading1519917382409&_lang=en_US&_framed=1&_action=send)

~/logs/sendmail displays:
Code: [Select]
[01-Mar-2018 16:25:16 +0100]: <9mftbij0> User taco [IPADDR]; Message for random@gmail.com; 250: 2.0.0 Ok: queued as 6BCE52C13538

/var/log/maillog displays:
nothing

SPECIFICATIONS

Postfix 3.2.4
Dovecot 2.2.10
Roundcube 1.3.4
VPS on DigitalOcean with Centos 7.4 with SELinux running (but I have tried in permissive mode too)
firewalld with ports open: 25/tcp 110/tcp 143/tcp 465/tcp 587/tcp 993/tcp 995/tcp 80/tcp 443/tcp
LAMP with PHP72 and MariaDB 10.1


ROUNDCUBE config.inc.php

Code: [Select]
<?php

/* Local configuration for Roundcube Webmail */

$config['db_dsnw'] = 'mysql://mailadmin:mypassword@localhost/dbname';

$config['default_host'] = 'tls://mail.example.com';

$config['support_url'] = '';

$config['des_key'] = 'thekey';

$config['product_name'] = 'NAME';

$config['plugins'] = array();



Any tips, suggestions and namecalling is hugely appreciated :)

If you need the contents of the Postfix or Dovecot files, I can post that too!

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,879
    • SKaero - Custom Roundcube development
Re: Cannot receive mail in Roundcube. Can send, but not without errors.
« Reply #1 on: March 01, 2018, 12:14:24 PM »
You may want to enable smtp_debug in the Roundcube config and see what is happening with the SMTP server.
Code: [Select]
// Log SMTP conversation to <log_dir>/smtp or to syslog
$config['smtp_debug'] = false;

Offline joakim

  • Newbie
  • *
  • Posts: 3
Re: Cannot receive mail in Roundcube. Can send, but not without errors.
« Reply #2 on: March 02, 2018, 07:23:10 AM »
Thank you for your answer, SKaero.

The problem turned out to be my aliases file.

However, the roundcube panel is still acting buggy:
- It is still stuck with the "Sending message..." animation after I send an email, even though the email reaches the receiver.
- When I click one time on a new mail, I assume it is supposed to show up automatically in the right-hand panel. However, it never shows up. I have to double click it to read the email.
- If I have done something previously, like opening an email by double clicking, I can no longer access the folders. I have to re-enter mail.myexample.com/roundcube (that is, remove the other text following rouncube).

Are these familiar symptoms of something? Are the Certbot certificates creating these problems?

I really appreciate any hints you can give me.

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,879
    • SKaero - Custom Roundcube development
Re: Cannot receive mail in Roundcube. Can send, but not without errors.
« Reply #3 on: March 02, 2018, 01:26:27 PM »
Are there an errors in the browsers JS console? Are there any other errors in the mail Roundcube error log?

Offline joakim

  • Newbie
  • *
  • Posts: 3
Re: Cannot receive mail in Roundcube. Can send, but not without errors.
« Reply #4 on: March 02, 2018, 05:43:40 PM »
Thank your for your patience!

I get these messages from the console:

Code: [Select]
Load denied by X-Frame-Options: https://mail.example.com/inbox/skins/larry/watermark.html does not permit framing.
Load denied by X-Frame-Options: https://mail.example.com/inbox/?_task=mail&_caps=pdf%3D0%2Cflash%3D0%2Ctiff%3D0%2Cwebp%3D0&_uid=7&_mbox=INBOX&_framed=1&_action=preview does not permit framing.

Edit: Maybe I should open a new topic, since this is not at all related to the initial topic headline?
« Last Edit: March 02, 2018, 05:48:43 PM by joakim »

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,879
    • SKaero - Custom Roundcube development
Re: Cannot receive mail in Roundcube. Can send, but not without errors.
« Reply #5 on: March 03, 2018, 04:36:29 PM »
Ah the X-Frame-Options options problem, maybe this will help: https://www.roundcubeforum.net/index.php/topic,21658.msg58470.html#msg58470