Koozali.org: home of the SME Server

Email problems after loading the whitelist blacklist contrib

Offline hawk

  • *
  • 141
  • +0/-0
    • hawkelectronics
good day you smart people, i am helping a new guy out with his server, 9.1 fully updated . He loaded the WBL contrib, then got the following error when trying to send and email

An error occurred while sending mail. The mail server responded: 
No plugin decided if relaying is allowed.
 Please check the message recipient "john@domain.co.za" and try again.

he has uninstalled the wbl contrib, but now the error still continues
thanks
john


Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Email problems after loading the whitelist blacklist contrib
« Reply #1 on: May 24, 2017, 12:44:50 PM »
please, be sure:
- you're running SME9.2
- you've an update release of smeserver-wbl
- you've not any qpsmtpd related fragments in /etc/e-smith/templates-custom

please post here the output of:
Code: [Select]
cat /etc/e-smith-release
/sbin/e-smith/audittools/templates

Offline mmccarn

  • *
  • 2,656
  • +10/-0
Re: Email problems after loading the whitelist blacklist contrib
« Reply #2 on: May 24, 2017, 01:32:04 PM »
This post describes the same problem ("No plugin decided if relaying is allowed") on a SME 9.2 server, where the solution was to update smeserver-wbl from the smecontribs repo:
https://forums.contribs.org/index.php?topic=53097.0

If the new version of smeserver-wbl solves this problem on 9.2, it seems possible that it might cause the problem on 9.1.

Offline HE

  • **
  • 33
  • +0/-0
Re: Email problems after loading the whitelist blacklist contrib
« Reply #3 on: May 24, 2017, 02:04:18 PM »
Hello Thank you for you help to Hawk

I ran the updates and the message is now gone I am now able to send emails but receiving is taking a long time.
I can send and receive on my work email  but sending from my gmail to the server(work email) is taking a long time nearly an hour now

Thank you for your help

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Email problems after loading the whitelist blacklist contrib
« Reply #4 on: May 24, 2017, 02:27:07 PM »
welcome here

when you send a message from an external server, you're not using SME and you've got no control over, for example, outgoing mail queue

BTW, open a shell on your server and give
Code: [Select]
tailf /var/log/qpsmtpd/current

and send a message to your account from an external provider (Gmail, hotmail, $whatever).

take a look at the log scrolling: if you see your message arriving, everything is working.. if it takes some time to see your message, the issue is outside your control

Offline Daniel B.

  • *
  • 1,700
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: Email problems after loading the whitelist blacklist contrib
« Reply #5 on: May 24, 2017, 02:59:24 PM »
In SME 9.2, there's a new feature which could explain some delay if your server has a high load. To protect against overloading, if the current CPU load is above 7 (default config), email will be deferred.
C'est la fin du monde !!! :lol:

Offline HE

  • **
  • 33
  • +0/-0
Re: Email problems after loading the whitelist blacklist contrib
« Reply #6 on: May 24, 2017, 03:17:02 PM »
Hello Thank you for you response I ran the tailf /var/log/qpsmtpd/current and its just listing all the errors like mail undelivered and An error occurred while sending mail. The mail server responded: 
No plugin decided if relaying is allowed. So still just waiting for an email to come into one of my accounts, myself and all my clients can email each others email accounts that are hosted on the server but not to gmail, outlook or hotmail ,etc

Offline Daniel B.

  • *
  • 1,700
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: Email problems after loading the whitelist blacklist contrib
« Reply #7 on: May 24, 2017, 03:19:52 PM »
I don't understand. You still have the "No plugin decided if relaying is allowed" message ? Then I don't get how users can send emails (be it local or remote). In anycase, if you still have this, it means that you have an incorrect version of smeserver-wbl installed, or that you have custom templates in /etc/e-smith/templates-custom/var/service/qpsmtpd. Please remove any custom templates from this directory, and either update smeserver-wbl or uninstall it
C'est la fin du monde !!! :lol:

Offline HE

  • **
  • 33
  • +0/-0
Re: Email problems after loading the whitelist blacklist contrib
« Reply #8 on: May 24, 2017, 03:42:11 PM »
Thanks no the An error occurred while sending mail. The mail server responded: 
No plugin decided if relaying is allowed. has gone I was just saying I could see alot of it in the list. I have un installed WBL, not sure if i am running custom templates

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Email problems after loading the whitelist blacklist contrib
« Reply #9 on: May 24, 2017, 03:44:01 PM »
Please re read here
https://forums.contribs.org/index.php/topic,53104.msg274712.html#msg274712
And provide the requested output

Offline HE

  • **
  • 33
  • +0/-0
Re: Email problems after loading the whitelist blacklist contrib
« Reply #10 on: May 24, 2017, 03:58:16 PM »
Hello thanks for your help, here are the results
[root@sme9server ~]# cat /etc/e-smith-release
SME Server release 9.2
[root@sme9server ~]# /sbin/e-smith/audittools/templates
/etc/e-smith/templates-custom/var/service/qpsmtpd/config/peers/0/05whitelist_sof                                                                                        t: MANUALLY_ADDED, ADDITION
/etc/e-smith/templates-custom/var/service/qpsmtpd/config/peers/0/10greylisting:                                                                                         MANUALLY_ADDED, ADDITION
/etc/e-smith/templates-custom/var/service/qpsmtpd/config/whitelisthosts/10whitel                                                                                        isthosts: MANUALLY_ADDED, ADDITION

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Email problems after loading the whitelist blacklist contrib
« Reply #11 on: May 24, 2017, 04:08:45 PM »
Remove the custom fragments and
Code: [Select]
signal-event email-update

Offline HE

  • **
  • 33
  • +0/-0
Re: Email problems after loading the whitelist blacklist contrib
« Reply #12 on: May 24, 2017, 04:35:04 PM »
Hello Thanks for the reply

Ok im going to assume the server is damaged I have still not received mail from my gmail account etc, what possible reason could be left that I cant get emails form external accounts

Offline Daniel B.

  • *
  • 1,700
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: Email problems after loading the whitelist blacklist contrib
« Reply #13 on: May 24, 2017, 04:39:58 PM »
AS Stefano said, remove the 3 custom templates, run a signal-event email-update. And if it's still not working after that, report a bug on https://bugs.contribs.org (you'll have to give as much details as possible, including logs found in /var/log/qpsmtpd/current)
C'est la fin du monde !!! :lol:

Offline HE

  • **
  • 33
  • +0/-0
Re: Email problems after loading the whitelist blacklist contrib
« Reply #14 on: May 25, 2017, 09:10:41 AM »
Hello again

I started a system restore and I assume it failed as it is still sme 9.2 and the previous backup is 9.1, I am still not reciving any mail form external accounts such as gmail. but can receive mail from any person with an account on the server from all over the country