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-04-24, 08:28:56

Author Topic: Mail problem can't receive email  (Read 4848 times)

0 Members and 1 Guest are viewing this topic.

Offline digidata

  • Junior Member
  • *
  • Posts: 38
  • Karma: +0/-0
    • View Profile
Mail problem can't receive email
« on: 2014-10-17, 08:44:32 »
Hello,

I recently upgraded from 6.5.1 to 7.0.0.b and problems starts. Now I can't receive mail. Example sending from GMAIL to my domain mail I receive:
Quote
The error that the other server returned was:
554 Refused. Sending to remote addresses (relaying) is not allowed.

After a lot of searching I found about /var/qmail/control/rcpthosts file, but it only contains server address, but it should containt all domain addresses? Because if no domain names it refuses mails. And solution after adding domain manually add domains in it?

Server maillog:
Quote
Oct 16 17:11:42 286806 smtp: 1413468702.509312 2467 < EHLO mail-wi0-f174.google.com?
Oct 16 17:11:42 286806 smtp: 1413468702.509597 2467 > 250-server - Welcome to Qmail?
Oct 16 17:11:42 286806 smtp: 1413468702.509662 2467 > 250-PIPELINING?
Oct 16 17:11:42 286806 smtp: 1413468702.509722 2467 > 250-8BITMIME?
Oct 16 17:11:42 286806 smtp: 1413468702.509778 2467 > 250-SIZE 20971520?
Oct 16 17:11:42 286806 smtp: 1413468702.509836 2467 > 250 AUTH LOGIN PLAIN CRAM-MD5?
Oct 16 17:11:42 286806 smtp: 1413468702.546671 2467 < MAIL FROM:<someemail@gmail.com> SIZE=1628?
Oct 16 17:11:42 286806 smtp: 1413468702.546912 CHKUSER accepted sender: from <someemail@gmail.com::> remote <mail-wi0-f174.google.com:unknown:209.85.212.174> rcpt <> : sender accepted
Oct 16 17:11:42 286806 smtp: 1413468702.548464 2467 > 250 ok?
Oct 16 17:11:42 286806 smtp: 1413468702.585165 2467 < RCPT TO:<info@somedomain.lt>?
Oct 16 17:11:42 286806 smtp: 1413468702.585292 2467 > 554 Refused. Sending to remote addresses (relaying) is not allowed.?
Oct 16 17:11:42 286806 smtp: 1413468702.622288 2467 < QUIT?
Oct 16 17:11:42 286806 smtp: 1413468702.622373 2467 < [EOF]

A. Kloxo-MR: 7.0.0.b-2014101504
B. OS: CentOS release 5.11 (Final) x86_64
C. Apps:
   1. MySQL: mysql55-5.5.40-1.ius.el5
   2. PHP: php53u-5.3.29-1.ius.el5
   3. Httpd: httpd-2.2.29-1.mr.el5
   4. Lighttpd: --uninstalled--
   5. Hiawatha: hiawatha-9.8.0-f.2.mr.el5
   6. Nginx: --uninstalled--
   7. Cache: --uninstalled--
   8. Dns: bind-9.9.5-1.el5
   9. Qmail: qmail-toaster-1.03-1.3.38.mr.el5
      - with: courier-imap-toaster-4.1.2-1.3.16.mr.el5
D. Php-type (for Httpd/proxy): php-fpm_worker

Also question about roundcube, how to make it always use SMTP, I edit config file, but after updates it resets. And no different Advanced PHP settings for domain only for client?

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Mail problem can't receive email
« Reply #1 on: 2014-10-17, 08:56:43 »
1. for rcpthosts, run 'sh /script/fixmail-all'
2. No user-based custom for webmail configs
3. We don't need domain-based php.ini. Enough user-based php.ini, especially for php-fpm.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline digidata

  • Junior Member
  • *
  • Posts: 38
  • Karma: +0/-0
    • View Profile
Re: Mail problem can't receive email
« Reply #2 on: 2014-10-17, 09:19:04 »
1. for rcpthosts, run 'sh /script/fixmail-all'
No luck, only available domains which I added manually.

3. We don't need domain-based php.ini. Enough user-based php.ini, especially for php-fpm.
Ok, suphp works on 7.0.0.0 version? Because after upgrade can't start it :)

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Mail problem can't receive email
« Reply #3 on: 2014-10-17, 09:33:42 »
Better use php-fpm instead other.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline digidata

  • Junior Member
  • *
  • Posts: 38
  • Karma: +0/-0
    • View Profile
Re: Mail problem can't receive email
« Reply #4 on: 2014-10-17, 12:19:53 »
Better use php-fpm instead other.

after . for rcpthosts, run 'sh /script/fixmail-all' can't login to webmail...

edit: fixed webmail
« Last Edit: 2014-10-17, 13:21:12 by digidata »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Mail problem can't receive email
« Reply #5 on: 2014-10-18, 06:47:02 »
Rcpthosts issue already fixed if running 'fixmail-all' in latest upload.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline digidata

  • Junior Member
  • *
  • Posts: 38
  • Karma: +0/-0
    • View Profile
Re: Mail problem can't receive email
« Reply #6 on: 2014-10-19, 16:40:52 »
Rcpthosts issue already fixed if running 'fixmail-all' in latest upload.

It adds domains in file, but in one row without any spaces and makes mail to stop working.
affected files: rcpthosts and virtualdomains

 


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

Page created in 0.068 seconds with 19 queries.

web stats analysis