postal icon indicating copy to clipboard operation
postal copied to clipboard

Issues configuring message limit

Open prasadasokan opened this issue 8 years ago • 22 comments

We are using the latest postal version and adding the following isn't still helping us increase the message size limit to 25MB.

smtp_server: max_message_size: 25

We are seeing the following error.

552 Message too large (maximum size 14MB)

I have restarted postal after making the change and it still isn't working.

prasadasokan avatar Aug 10 '18 16:08 prasadasokan

Can you share your postal.yml, redacted as much as you need?

willpower232 avatar Aug 10 '18 19:08 willpower232

postal.txt

prasadasokan avatar Aug 11 '18 04:08 prasadasokan

Is that definitely /opt/postal/config/postal.yml?

Also you could try putting newlines before dns: and rails: for consistency.

willpower232 avatar Aug 14 '18 08:08 willpower232

Yes, that is the default postal.yml on which, I ended up changing the credentials etc, replaced it with dummy values and pasted it here. The only change apart from those credentials etc is the section to add the message size.

smtp_server: max_message_size: 25

Added new lines before dns: and rails: and restarted postal to ensure the yml is consistent.

prasadasokan avatar Aug 14 '18 08:08 prasadasokan

I mean /opt/postal/config/postal.yml instead of /opt/postal/app/config/postal.example.yml or something else in the app folder.

Have you tried restarting the whole server? There might be an issue when you're restarting that isn't letting the processes update.

willpower232 avatar Aug 14 '18 10:08 willpower232

Yes, I did try restarting the server and nothing helps. How do we overcome this?

prasadasokan avatar Aug 14 '18 11:08 prasadasokan

I'm assuming you're on the latest Postal, you can check with postal auto-upgrade.

If you're running the latest Postal and you've definitely edited /opt/postal/config/postal.yml and Postal has definitely been restarted, the setting should apply.

willpower232 avatar Aug 14 '18 14:08 willpower232

I did attempt the postal auto-upgrade and it did some git pull, and then restarted postal. Still the same issue.

Attaching the upgrade logs. If the upgrade is run again, it is doing the same process again. I'm not sure how to prove you that I have restarted postal, and the config file provided is the one available on the server, and still the issue remains. output.txt

prasadasokan avatar Aug 14 '18 15:08 prasadasokan

I have the same problem. Changing the max_message_size doesn't actually work and I still get 14mb limit error. I'm not sure how the auto-upgrade works but since https://postal.atech.media/packages/ hasn't been updated since November 1st 2017, neither on stable nor beta branch, I don't think the update actually contains the latest code.

arashm avatar Aug 14 '18 21:08 arashm

That is a great spot @arashm and I've verified that is exactly the case with our development server.

@catphish are you able to make an up to date build?

In the meantime, you could make the changes to the ruby file and database yourself to enable you to keep using Postal.

willpower232 avatar Aug 15 '18 10:08 willpower232

@willpower232 What does this mean with regards to the issue am facing? Any workaround or solution for us to go live with an increased message limit?

prasadasokan avatar Aug 16 '18 13:08 prasadasokan

In the meantime, you could make the changes to the ruby file and database yourself to enable you to keep using Postal.

Updating the code is only one line of code to change but you will also need to change the type of database field to guarantee it can store your attachments.

willpower232 avatar Aug 17 '18 12:08 willpower232

@willpower232 Can you help us with that change? I'm not sure where and what to change.

prasadasokan avatar Aug 17 '18 12:08 prasadasokan

You would have to make the changes from the pull request where you originally commented (https://github.com/atech/postal/pull/383).

If you make the changes outlined in the "Files Changed" tab and then restart Postal, you should find your message limit increased.

willpower232 avatar Aug 17 '18 14:08 willpower232

@willpower232 We are able to resolve this issue now. Future upgrades will override this change and revert the max limit to 14MB?

prasadasokan avatar Aug 20 '18 12:08 prasadasokan

Hopefully, the next update should include the changes but that relies on a new build being made.

If you run the update command and it resets your code, your current code copy should be automatically backed up in a new folder for you to restore from.

willpower232 avatar Aug 20 '18 13:08 willpower232

Is there any plan to release a new build?

arashm avatar Aug 20 '18 13:08 arashm

I'd hope so but thats all down to @adamcooke and @catphish

willpower232 avatar Aug 20 '18 13:08 willpower232

I hope it will include fbl

navinp avatar Aug 20 '18 13:08 navinp

Is there any way I could help so the release happens faster? Is there any roadmap? Left issue or something?

arashm avatar Aug 25 '18 12:08 arashm