Bachelor Tech
  • Home
  • Tutorials
  • Portfolio
  • About Jan
  • Contact Jan

Configure Roundcube

by Jan Bachelor October 31, 2024
  • Just to repeat from earlier, with HAProxy in place to decrypt incoming SSL communication, in order to access RoundCube on what seems from the mail server’s point of view as HTTP, you need to disable the force_https directive in the Roundcube config file:
sudo nano /opt/www/roundcubemail/config/config.inc.php

# Find this part under //SYSTEM
$config['force_https'] = false;
  • Access the web interface on https://mail.your-domain.tld/mail/
RoundCube – Login Screen
  • Try logging in with the details you created earlier in the iRedAdmin interface.
  • You can observe your login (or a failure to login) by looking at the end of this file:
sudo tail -n 3 /var/log/mail.log
  • At this point, you can try sending an email to your new mailbox from outside – providing that port 25 on your firewall is unblocked and points to the IP address of your mail server on the LAN.
Send an Email To Your Mailbox – Check Delivery in RoundCube
  • If the email is not arriving into your mailbox and there is nothing in the /var/log/mail.log file, it is likely being blocked by your firewall.
    • If you use OPNSense, you can check it in the section called Firewall → Log files → Live view.
    • Expand the view to at least a 100 items and watch it as you send an email to your mailbox.
    • Add two filters – one that is ‘Action – is – block’ (click on the + sign) and then one that says dst_port (destination port) – is – 25 (again click on the + sign).
    • If you see repeated attempts to reach port 25 then you know that your firewall rule is not set up correctly.
OPNSense Firewall Blocking Incoming Emails
  • If the email arrives correctly, you will be able to access it in RoundCube:
RoundCube – Email Has Arrived
  • You can review the test mail’s header to confirm that amavis service on our mail server provided virus scanning (together with SpamAssassin):
RoundCube – Email Header

This does not yet mean that you can send emails out, as your mail server and domain does not have its own DKIM, SPF and DMARC DNS records set up, nor have we have set up an SMTP relay yet. So let’s start working on SSL for non web services, (although we might as well apply the certs for Nginx as well).

Access iRedAdmin
CertBot Certificate Creation
Go back to course overview: Install iRedMail Mail Server As Proxmox VM With OPNSense As Firewall

Leave a Comment Cancel Reply

Save my name, email, and website in this browser for the next time I comment.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 FacebookWhatsappEmail

Course Steps

  1. Starting Point and Considerations
  2. Pointing Your MX Records (DNS)
  3. Generic VM Installation (Proxmox)
  4. Firewall - static DHCP assignment (OPNsense)
  5. Firewall - Ports to open on your firewall (OPNSense)
  6. Fiirewall- Set Up NAT Rules (OPNSense)
  7. Dynamic DNS for our ‘mail’ DNS record (CloudFlare with OPNSense)
  8. Get SSL Certificate on OPNSense for Web Services (CloudFlare)
  9. HAProxy Set Up - SSL termination (OPNSense)
  10. Services To Be Installed On Our Mail Server (OPTIONAL)
  11. iRedMail installation (Debian)
  12. Nginx Configuration (Debian)
  13. Access iRedAdmin
  14. Configure Roundcube
  15. CertBot Certificate Creation
  16. Apply Certificates - Nginx
  17. A Theory Crash Course On Postfix (OPTIONAL)
  18. Securing Your Mail Server (Postfix)
  19. SMTP Relay With Brevo
  20. Testing your outgoing email ranking
  21. Connect Your Device To The Mail Server Via Email Client
Previous Next

Recent Comments

  • Jan Bachelor on Dynamic DNS Set Up with DuckDNS on OPNSenseHi Jake, that's awesome, congratulations on getting…
  • Jake on Dynamic DNS Set Up with DuckDNS on OPNSensefollowed guide above to the T and all is working. i…
  • Fastbrain on Dynamic DNS Set Up with DuckDNS on OPNSenseThanks for the guide. For some reason, after follow…

Other courses

Install iRedMail Mail Server As Proxmox VM With...

October 31, 2024

Remote Bucket Storage for Proxmox VM Backups

August 16, 2024

Concur Alternative: Import Employees’ Credit Card Expenses to...

January 19, 2024

Create an automated Gravity workflow that will allow...

January 19, 2024

Dynamically Populate Gravity Forms from Google Sheets (GSheets...

March 16, 2021
Bachelor Tech
  • Home
  • Tutorials
  • Portfolio
  • About Jan
  • Contact Jan

Recent Posts

  • How to join two Proxmox nodes into a cluster (PVE 8.x)

  • How to Rename a Proxmox Node

  • How to mount an NFS share on an Android box

Facebook Twitter Instagram Pinterest Linkedin Youtube

All Rights Reserved. The theme was customized from Soledad, see PenciDesign