Cannot release messages from Spam Not Delivered Email

Report bugs and workarounds
Post Reply
vanree-josh
Posts: 3
Joined: 18 Mar 2014 00:16
Location: South Australia
Contact:

Cannot release messages from Spam Not Delivered Email

Post by vanree-josh »

Hello,

Came in this morning to find that our EFA box automatically updated itself overnight.
Since then, users are unable to release messages from quarantine, it looks like the release link is missing the token.
Any idea how we can fix this?

Regards,
Josh
cyberwired
Posts: 33
Joined: 03 Jan 2014 21:57

Re: Cannot release messages from Spam Not Delivered Email

Post by cyberwired »

Can see same issue here as well

Email link comes through as http://efa.xxxxxxx.xxx.xx/cgi-bin/relea ... 9DE&token=

Page gives the following error: Error variable is empty at /var/www/cgi-bin/release-msg.cgi line 43.

If I add token=blahblah on the end, it says Error in token syntax at /var/www/cgi-bin/release-msg.cgi line 89.
User avatar
darky83
Site Admin
Posts: 540
Joined: 30 Sep 2012 11:03
Location: eFa
Contact:

Re: Cannot release messages from Spam Not Delivered Email

Post by darky83 »

I see the same issue,

checking what is wrong
Version eFa 4.x now available!
User avatar
darky83
Site Admin
Posts: 540
Joined: 30 Sep 2012 11:03
Location: eFa
Contact:

Re: Cannot release messages from Spam Not Delivered Email

Post by darky83 »

:doh: :doh: :doh:
:violence-hammer: :violence-hammer:
Mistake in the update file :(

New updates should go fine now, if you have already updated I will push an new update as soon as possible.

Manually fix is below (login with ssh and su to root)

Code: Select all

  EFASQLPWD=`grep EFASQLPWD /etc/EFA-Config | sed 's/^.*://'`
  sed -i "/^  my(\$db_pass) =/ c\  my(\$db_pass) = '$EFASQLPWD';" /usr/lib/MailScanner/MailScanner/CustomFunctions/CustomAction.pm
  /etc/init.d/MailScanner restart
Version eFa 4.x now available!
buzzzo
Posts: 94
Joined: 03 Feb 2014 09:09

Re: Cannot release messages from Spam Not Delivered Email

Post by buzzzo »

Hi Darky.

Would be better to not hardcode pass in files and put them in an external file and let it call by the perl scripts ?
User avatar
darky83
Site Admin
Posts: 540
Joined: 30 Sep 2012 11:03
Location: eFa
Contact:

Re: Cannot release messages from Spam Not Delivered Email

Post by darky83 »

That is the idea yea (and also the reason why all the passwords are set in EFA-Config)

This is an enhancement and on the todo list :-)
Version eFa 4.x now available!
cyberwired
Posts: 33
Joined: 03 Jan 2014 21:57

Re: Cannot release messages from Spam Not Delivered Email

Post by cyberwired »

Thanks for the update darky, I've just done the manual mods you've mentioned, will report back if there's any further issues :)
tstell
Posts: 5
Joined: 03 Feb 2016 13:12

Re: Cannot release messages from Spam Not Delivered Email

Post by tstell »

i use the Version 3.0.0.8 and have a similar problem when user is pointing on the spam link:

Error variable is empty at /var/www/cgi-bin/release-msg.cgi line 53.

any idea for me???
User avatar
shawniverson
Posts: 3640
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Cannot release messages from Spam Not Delivered Email

Post by shawniverson »

What does your release url look like?
tstell
Posts: 5
Joined: 03 Feb 2016 13:12

Re: Cannot release messages from Spam Not Delivered Email

Post by tstell »

Here is an actual URL:
Last edited by tstell on 15 Feb 2016 08:08, edited 1 time in total.
User avatar
shawniverson
Posts: 3640
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Cannot release messages from Spam Not Delivered Email

Post by shawniverson »

There is no token on that URL...is that the whole URL...i.e. the mail server/client didn't add a newline?
User avatar
shawniverson
Posts: 3640
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Cannot release messages from Spam Not Delivered Email

Post by shawniverson »

Also, what do you show in MailScanner.conf for the following settings...

Sign Clean Messages
Non Spam Actions
Spam Actions
High Spam Actions
tstell
Posts: 5
Joined: 03 Feb 2016 13:12

Re: Cannot release messages from Spam Not Delivered Email

Post by tstell »

i found the file mailscanner.conf at the location /etc/MailScanner and attached it
Attachments
MailScanner.zip
(38.98 KiB) Downloaded 1016 times
User avatar
shawniverson
Posts: 3640
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Cannot release messages from Spam Not Delivered Email

Post by shawniverson »

Ok that config looks good.

Something is wrong in the custom action function on your machine...

Thinking about how to debug this...
User avatar
shawniverson
Posts: 3640
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Cannot release messages from Spam Not Delivered Email

Post by shawniverson »

Try replacing this file...

/usr/lib/MailScanner/MailScanner/CustomFunctions/CustomAction.pm

From here:

https://raw.githubusercontent.com/E-F-A ... mAction.pm
tstell
Posts: 5
Joined: 03 Feb 2016 13:12

Re: Cannot release messages from Spam Not Delivered Email

Post by tstell »

OK, is it neccesarry to restart any Service after replacing the file???
User avatar
shawniverson
Posts: 3640
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Cannot release messages from Spam Not Delivered Email

Post by shawniverson »

Yeah, restart MailScanner...
tstell
Posts: 5
Joined: 03 Feb 2016 13:12

Re: Cannot release messages from Spam Not Delivered Email

Post by tstell »

i get the same error on new spam Messages when i klick the link, do you have another idea?
nicutdk
Posts: 16
Joined: 24 Jul 2017 12:57

Re: Cannot release messages from Spam Not Delivered Email

Post by nicutdk »

the same problem for me

can you help us


Best Regards,
syed.saif
Posts: 2
Joined: 15 Jun 2019 03:09

Re: Cannot release messages from Spam Not Delivered Email

Post by syed.saif »

Can Anyone please help me out.

"http://domain.com/cgi-bin/release-msg.c ... 270&token=

Note that if this mail has been send to multiple recipients you will
release this mail to all users."

Token number is not showing here thats why i not able to release email from these links.

Waiting for the response
Post Reply