Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • BCC all outgoing mail

    Discuss mail
    6
    0 Votes
    6 Posts
    2k Views
    marcusquinnM
    @ccfu That's a good point. Probably one for their forum but I think I'd like that too so may help develop.
  • "Too many unrecognized commands" in email server

    Solved Support mail
    4
    0 Votes
    4 Posts
    1k Views
    girishG
    @d19dotca it's not a problem. Just the natue of any service being exposed to the internet. There a bots, misconfigured services, compromised iot devices doing all sorts of things. Nothing to worry.
  • Sharing custom SpamAssassin Rules

    Discuss mail spam
    77
    10 Votes
    77 Posts
    19k Views
    d19dotcaD
    @humptydumpty That's something I'd like to look into too, although I have a feeling the only thing that can really work its magic there is the Bayesian learning, so running the SpamAssassin learn commands. I've been running a script (with the help of ChatGPT, lol) like one below in case this helps as I find the Bayesian learning in Cloudron seems to be really manual or inconsistent at running (I think they've admitted that too in a post I saw somewhere the other month), and it's improved IMO with running this often. Personally I run this manually for now just because I wanted to make sure it was working, but I'll probably consider throwing this in a cron job soon enough. sudo docker exec -ti mail /bin/bash Run this script in the mail container: nohup bash -c ' MAILDIR="/app/data/vmail"; SPAMD_DIR="/app/data/spamd"; for user in $(ls "$MAILDIR"); do MAILBOX="$MAILDIR/$user/mail"; BAYES_PATH="$SPAMD_DIR/$user"; mkdir -p "$BAYES_PATH"; chown -R cloudron:cloudron "$BAYES_PATH"; chmod 700 "$BAYES_PATH"; echo "🔄 Training SpamAssassin for $user..." | tee -a /app/data/spamd/train.log; # Train spam from .Spam and .Junk folders (including subfolders) find "$MAILBOX/.Spam" "$MAILBOX/.Junk" -type d -name "cur" 2>/dev/null | while read folder; do echo "📂 Training SPAM from: $folder" | tee -a /app/data/spamd/train.log; sa-learn --spam --dbpath "$BAYES_PATH" --dir "$folder" | tee -a /app/data/spamd/train.log; done # Train ham from Inbox and Archive, but EXCLUDE Junk, Spam, Trash, Sent, and Drafts find "$MAILBOX" -type d -name "cur" 2>/dev/null | grep -Ev "/(\.Trash|\.Deleted Messages|\.Sent|\.Sent Messages|\.Drafts|\.Junk|\.Spam)/" | while read folder; do echo "📂 Training HAM from: $folder" | tee -a /app/data/spamd/train.log; sa-learn --ham --dbpath "$BAYES_PATH" --dir "$folder" | tee -a /app/data/spamd/train.log; done echo "✔ Completed training for $user! BAYES files stored in $BAYES_PATH" | tee -a /app/data/spamd/train.log; done; echo "🎉 SpamAssassin training completed for all mailboxes." | tee -a /app/data/spamd/train.log; ' > /app/data/spamd/train.log 2>&1 & It creates that train.log file and writes all the output to it so you can see it learning across all mailboxes for the Inbox and Archive folder as ham and the Junk/Spam folder as spam for all users. It's neat to see it saying it learned ham from 34 messages or something like that for each mailbox, haha. I think my latest spam rules are doing well the past week, so I'll likely be posting them here soon.
  • No lets encrypt certificate for Haraka after dns change

    Solved Support mail certificates
    3
    0 Votes
    3 Posts
    910 Views
    fbartelsF
    how embarrassing. You're absolutely right. I was searching after ghosts.
  • A collection of Mail-related Feature Requests

    Discuss mail
    6
    6 Votes
    6 Posts
    2k Views
    d19dotcaD
    @necrevistonnezr excellent catch! I think I searched “email” when I should have just searched “mail”. There may be a couple others I missed.
  • Support email split routing

    Moved Feature Requests mail
    18
    3 Votes
    18 Posts
    5k Views
    gobenizzleG
    excited for v9! but this feature would still be really amazing! And if I am not mistaking it shouldnt be too complex to force an external mx lookup?
  • 0 Votes
    5 Posts
    1k Views
    d19dotcaD
    Okay... I may be on the side of this working properly again. lol. Maybe I've been wrong this whole time in thinking it wasn't working correctly. So coincidentally I was checking the mail server logs and saw another example of the same message go through to the same recipient from the same mail server, it was listed in the logs as "just now" so I quickly checked mxtoolbox and found that only 4 at that time had been listed, none of which were ones I was using. Here is how it looked at the very moment I checked when it was "just now" in the logs: [image: 1616004904806-69bc5a02-12ca-420e-958a-27405c21f7ed-image-resized.png] [image: 1616004923806-07b937c4-4840-4c14-887b-7513acc87251-image-resized.png] Edit: Checking about 6 minutes later, I see the blocklists have aleady been updated for more (Spamhaus Zen in this case would have caught it if it were about 5 minutes earlier): [image: 1616005021879-4522d168-dc21-498f-845b-885cfe0a73a1-image-resized.png] So I guess we can probably mark this as resolved, as I now see conclusive evidence that the various blocklists used just didn't have it listed until a few minutes after the message was received. I guess in order for it to adapt so quickly this spam attack on one of my users from those mail servers must be right at the beginning of a spam wave. Kind of neat actually to see how real-time these lists are. haha.
  • 0 Votes
    7 Posts
    997 Views
    girishG
    @d19dotca since the email is forwarded , this info is probably lost. One idea is to look into the bounce mail headers. Maybe there is some message I'd or something we can match.
  • Lightmeter - Mail server delivery monitoring

    App Wishlist email mail monitoring
    15
    17 Votes
    15 Posts
    4k Views
    fbartelsF
    @mdreira said in Lightmeter - Mail server delivery monitoring: What mail server does Cloudron use? Exim? This is what Cloudron uses for smpt: https://haraka.github.io/
  • E-mail is not configured properly

    Solved Support mail blacklist spam relay
    8
    0 Votes
    8 Posts
    3k Views
    danielreyes61D
    Nevermind, I did not realize sendgrid setup was only for sending email, I see the other parts to setup for receiving email now. Please disregard.
  • ElasticEmail dns record problem... i guess?

    Support relay mail elasticemail
    7
    0 Votes
    7 Posts
    2k Views
    marcusquinnM
    @dantheman https://mxtoolbox.com/emailhealth is another good one.
  • Is there a way to force-index Solr for mailboxes?

    Support mail solr
    4
    0 Votes
    4 Posts
    1k Views
    girishG
    If you go down this route, be sure to search via roundcube or SOGo and not rainloop because the latter does not support recursive search. A while ago @samir shared a recipe with me to make doveadm work, let me see if that still works when I find the time.
  • 0 Votes
    11 Posts
    3k Views
    P
    @girish Gotchya, ok. Makes sense, thank you
  • 8 Votes
    6 Posts
    3k Views
    dtrckdD
    +1 for this feature. Especially, that zen.spamhaus.org, the default mail DNSBL used by Cloudron has a very harsh policy with ipv6 email. If one IP on a /64 ipv6 range is blacklisted, all the IP in that range get blacklisted :S.
  • Spamhaus blocking nanoleaf emails (they use sendgrid)?

    Solved Support mail spam
    7
    1
    1 Votes
    7 Posts
    2k Views
    ?
    @girish Will do
  • Cloudron overwriting DMARC records?

    Locked Solved Support mail dmarc
    5
    4 Votes
    5 Posts
    2k Views
    girishG
    @Supaiku What would like to see implemented? DMARC records are set up with a unique subdomain already.
  • 7 Votes
    14 Posts
    4k Views
    d19dotcaD
    @girish When will this be exposed in the GUI? Hopefully this can be planned for 7.4 perhaps, along with the many other mail improvements requested?
  • Configuring another email provider for Discourse

    Discourse mail mailgun relay
    3
    0 Votes
    3 Posts
    1k Views
    ?
    @girish Awesome thanks.
  • Dovecot CVE-2020-24386

    Solved Support dovecot mail security
    7
    0 Votes
    7 Posts
    2k Views
    girishG
    Actually, it seems a better way to confirm this is the apt package version and not the dovecot version. The latest one (i.e one which will be in next release) shows this: root@e4d2eb1cba0b:/app/haraka# apt list --installed 2>/dev/null | grep dovecot-core dovecot-core/bionic-updates,bionic-security,now 1:2.2.33.2-1ubuntu4.7 amd64 [installed] The current cloudron container has 1:2.2.33.2-1ubuntu4.6
  • Images in e-mail signature

    Solved Support mail signature
    4
    2 Votes
    4 Posts
    1k Views
    girishG
    @klawitterb If you can open a feature request in https://forum.cloudron.io/category/97/feature-requests, we can schedule it accordingly based on the interest. Thanks!