Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-03-28, 09:04:17

Author Topic: Roundcube send email failed - relaying is not allowed  (Read 5295 times)

0 Members and 1 Guest are viewing this topic.

Offline tonym

  • Valuable Member
  • *
  • Posts: 64
  • Karma: +0/-0
    • View Profile
Since updating to the latest Roundcube webmail, trying to send an email produces this error message:

SMTP Error (554): Failed to add recipient "xxxxxxxx.com" (Refused. Sending to remote addresses (relaying) is not allowed.).

I can send OK from Rainloop, and email works normally with email clients (Thunrderbird, phone). What can cause this?

/var/log/maillog shows this:
Jun 19 12:17:01 mail smtp: 6527 > 220 xxxxxxxx - Welcome to Qmail ESMTP?
Jun 19 12:17:01 mail smtp: 6527 < EHLO webmail.xxxxxxx?
Jun 19 12:17:01 mail smtp: 6527 > 250-mxxxxxxx - Welcome to Qmail?
Jun 19 12:17:01 mail smtp: 6527 > 250-STARTTLS?
Jun 19 12:17:01 mail smtp: 6527 > 250-PIPELINING?
Jun 19 12:17:01 mail smtp: 6527 > 250-8BITMIME?
Jun 19 12:17:01 mail smtp: 6527 > 250-SIZE 50971520?
Jun 19 12:17:01 mail smtp: 6527 > 250 AUTH LOGIN PLAIN?
Jun 19 12:17:01 mail smtp: 6527 < MAIL FROM:<tony@cxxxxxx>?
Jun 19 12:17:01 mail smtp: CHKUSER accepted sender: from <tony@xxxxx::> remote <webmail.xxxxx:unknown:::1> rcpt <> : sender accepted
Jun 19 12:17:01 mail smtp: 6527 > 250 ok?
Jun 19 12:17:01 mail smtp: 6527 < RCPT TO:<armxxxxxxx.com>?
Jun 19 12:17:01 mail spamdyke[6527]: DENIED_RELAYING from: tony@xxxxxxxxuk to: armxxxxxxx.com origin_ip: 0.0.0.0 origin_rdns: (unknown) auth: (unknown) encryption: (none) reason: (empty)
Jun 19 12:17:01 mail smtp: 6527 > 554 Refused. Sending to remote addresses (relaying) is not allowed.?
Jun 19 12:17:01 mail smtp: 6527 < RSET?
Jun 19 12:17:01 mail smtp: 6527 > 250 flushed?
Jun 19 12:17:01 mail smtp: 6527 < QUIT?





/var/log/yum.log
Jun 17 12:01:57 Updated: kloxomr-webmail-roundcube-1.3.9-1.mr.noarch
Jun 17 12:02:01 Updated: kloxomr7-thirdparty-phpmyadmin-4.9.0.1-1.mr.noarch
Jun 17 12:02:02 Updated: kloxomr-stats-awstats-7.7-1.mr.noarch
Jun 17 12:02:05 Updated: kloxomr-webmail-afterlogic-7.7.9-1.mr.noarch
Jun 17 12:02:07 Updated: kloxomr-webmail-rainloop-1.12.1-1.mr.noarch
Jun 17 12:02:08 Updated: pdns-4.1.8-1.el6.MIND.i686
Jun 17 12:02:08 Updated: pdns-backend-mysql-4.1.8-1.el6.MIND.i686
Jun 17 12:02:12 Updated: kloxomr7-7.0.0.c-2019061001.mr.noarch
Jun 17 12:02:12 Updated: pdns-tools-4.1.8-1.el6.MIND.i686
Jun 19 07:52:08 Updated: kernel-firmware-2.6.32-754.15.3.el6.noarch
Jun 19 07:52:16 Installed: kernel-2.6.32-754.15.3.el6.i686
Jun 19 07:52:17 Updated: kernel-headers-2.6.32-754.15.3.el6.i686
Jun 19 07:52:21 Updated: kloxomr7-7.0.0.c-2019061801.mr.noarch



A. Control Panel:
   - Kloxo-MR: 7.0.0.c-2019061801
   - Web: hiawatha-10.6.0-f.1.mr.el6.i686
   - PHP: php56s - 5.6.31-1.ius.centos6 (fpm mode)
B. Plateform:
   - OS: CentOS release 6.10 (Final) i686
   - Hostname: mail.mtc1.uk
C. Services:
   1. MySQL: MariaDB-server-10.0.38-1.el6.i686
   2. PHP:
      - Installed:
        - Branch: php56u-cli-5.6.40-1.ius.el6.i686
        - Multiple:
          * php52m - 5.2.17-102.mr.el6
          * php53m - 5.3.29-1.ius.centos6
          * php54m - 5.4.45-1.ius.centos6
          * php55m - 5.5.38-1.ius.centos6
          * php56m - 5.6.31-1.ius.centos6
          * php70m - 7.0.21-1.ius.centos6
          * php71m - 7.1.7-1.ius.centos6
      - Used: php56m-fpm
      - Multiple: enable
   3. Web Used: apache
     - Hiawatha: hiawatha-10.6.0-f.1.mr.el6.i686
     - Lighttpd: lighttpd-1.4.47-2.el6.i686
     - Nginx: nginx-1.17.0-1.el6.ngx.i686
     - Apache: httpd24u-2.4.39-1.ius.el6.i686
       - PHP Type: proxy_fcgi_event
       - Secondary PHP: on
   4. WebCache: none
     - ATS: --uninstalled--
     - Squid: --uninstalled--
     - Varnish: --uninstalled--
   5. Dns: none
     - Bind: bind-9.9.9-1.mr.el6.i686
     - DJBDns: djbdns-1.05-17.4.mr.el6.i386
     - NSD: nsd-4.1.27-1.mr.el6.i686
     - PowerDNS: pdns-4.1.8-1.el6.MIND.i686
     - Yadifa: yadifa-2.2.5-1.mr.el6.i686
   6. Mail: qmail-toaster-1.03-1.3.57.mr.el6.i686
      - pop3/imap4: courier-imap-toaster-4.1.2-1.3.20.mr.el6.i686
      - smtp: qmail-toaster-1.03-1.3.57.mr.el6.i686
      - spam: --uninstalled--
   7. FTP: pure-ftpd
      - pure-ftpd: pure-ftpd-1.0.37-1.mr.el6.i386
   8. Stats: awstats
      - awstats: kloxomr-stats-awstats-7.7-1.mr.noarch
D. Memory:
             total       used       free     shared    buffers     cached
Mem:          2909       2705        203        173        191       1726
-/+ buffers/cache:        787       2121
Swap:          511         10        501
E. Disk Space:
Filesystem      Size  Used Avail Use% Mounted on
/dev/vda1        39G   28G  9.4G  75% /


Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Roundcube send email failed - relaying is not allowed
« Reply #1 on: 2019-06-19, 13:53:45 »
Check 'reverse-dns' (aka rdns/PTR) for your server IPs. Check one of your domains in intodns.com.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline tonym

  • Valuable Member
  • *
  • Posts: 64
  • Karma: +0/-0
    • View Profile
Re: Roundcube send email failed - relaying is not allowed
« Reply #2 on: 2019-06-19, 14:47:17 »
intodns.com says:   You have reverse (PTR) records for all your IPs, that is a good thing.


I was looking at the config file:
/home/kloxo/httpd/webmail/roundcube/config/config.inc.php

I think it needs to use authenticated SMTP for sending to work.


I have changed the settings to this, and it now works:

$config['smtp_server'] = 'tls://%n';

$config['smtp_port'] = 587;

$config['smtp_user'] = '%u';

$config['smtp_pass'] = '%p';


Server, user  and pass were blank before, and the port 25.

 


Top 10 Social Networking:    Facebook    Twitter    LinkedIn    Pinterest    Google Plus    Tumblr    Instagram    VK    Flickr    Vine
Click Here

Page created in 0.065 seconds with 19 queries.

web stats analysis