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. 2017-11-07, 23:32:06

Author Topic: no mail foward - Alert: mailaccount_exists [zcs@tmm.com]  (Read 2332 times)

0 Members and 1 Guest are viewing this topic.

Offline befree22

  • Valuable Member
  • *
  • Posts: 95
  • Karma: +0/-1
    • View Profile
Hi,

The mail forwarding isn't working in Kloxo-MR. I added 2 domains to my Kloxo-MR today and setup email addresses. However, the "mail forward aliases" isn't working at all. I get the following error everytime I try to setup a mail forward for 1 of the email addresses:
Code: [Select]
Alert: mailaccount_exists [zcs@tmm.com] 

FYI: A month ago, someone added a domain to my account and the mail forward works.

Could someone help me fix this issue?
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: no mail foward - Alert: mailaccount_exists [zcs@tmm.com]
« Reply #1 on: 2013-08-22, 11:47:59 »
Temporary solution, change inside '/usr/local/lxlabs/kloxo/httpdocs/lib/domain/mmail/driver/mailforward__qmaillib.phps':

From:
Code: [Select]
...
if (lxfile_exists("$mailpath/$account")) {
throw new lxException("mailaccount_exists", 'nname', $this->main->nname);
}
...

To:
Code: [Select]
...
/* // MR -- why using this trap?.
if (lxfile_exists("$mailpath/$account")) {
throw new lxException("mailaccount_exists", 'nname', $this->main->nname);
}
*/
...
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
Re: no mail foward - Alert: mailaccount_exists [zcs@tmm.com]
« Reply #2 on: 2013-08-22, 12:32:38 »
There is no error or problem with KloxoMR forwards.  I have setup a dozen or so yesterday.

I would not advise removing that trap Mustafa, you cannot have an alias if the actual mail account exists... qmail breaks.

User error is to blame.  Under the forward / alias box for the domain, the first input @yourdomain.com is the alias - or the email that does not exist.  Second box is where you put where you want it to go... full address.

So if I want postmaster@mydomain.com I would enter

hello in first input box and postmaster@mydomain.com in the second.

It works perfectly.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: no mail foward - Alert: mailaccount_exists [zcs@tmm.com]
« Reply #3 on: 2013-08-22, 13:54:26 »
Let say you have admin@domain.com where above code try detect '/home/lxadmin/mail/domains/domain.com/admin' dir. Give warning if found (but weird only the second time; after add forward and then delete).

So, I think above code is wrong.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
Re: no mail foward - Alert: mailaccount_exists [zcs@tmm.com]
« Reply #4 on: 2013-08-22, 18:29:05 »
Is it removing the dir on delete?  If it works first time then not second, sounds as if the dir is not getting deleted.

This could be a problem?
« Last Edit: 1970-01-01, 01:00:00 by Guest »
Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: no mail foward - Alert: mailaccount_exists [zcs@tmm.com]
« Reply #5 on: 2013-08-22, 18:45:26 »
Real account inside '/home/lxadmin/mail/domains/domain.com/admin' (for admin@domain.com) and mail-forward declare inside '/home/lxadmin/mail/domains/domain.com/.qmail-admin' file. Above code detect '/home/lxadmin/mail/domains/domain.com/admin' and the question is why?.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
Re: no mail foward - Alert: mailaccount_exists [zcs@tmm.com]
« Reply #6 on: 2013-08-22, 20:30:46 »
Good question?  :)
« Last Edit: 1970-01-01, 01:00:00 by Guest »
Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

Offline befree22

  • Valuable Member
  • *
  • Posts: 95
  • Karma: +0/-1
    • View Profile
Re: no mail foward - Alert: mailaccount_exists [zcs@tmm.com]
« Reply #7 on: 2013-08-23, 02:02:24 »
Quote from: "chrisf"
There is no error or problem with KloxoMR forwards.  I have setup a dozen or so yesterday.

I would not advise removing that trap Mustafa, you cannot have an alias if the actual mail account exists... qmail breaks.

User error is to blame.  Under the forward / alias box for the domain, the first input @yourdomain.com is the alias - or the email that does not exist.  Second box is where you put where you want it to go... full address.

So if I want postmaster@mydomain.com I would enter

hello in first input box and postmaster@mydomain.com in the second.

It works perfectly.

Hi Chris,

I entered the forwarding details correctly so it's not a user error. In my initial post I said that I successfully created forwarding addresses weeks ago but not it's not working. I want to avoid messing with code so Mustafa's temporary fix isn't being used right now. My sites are all loading fine, it's just the forwarding that's not working for some odd reason. Should I reboot?
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
Re: no mail foward - Alert: mailaccount_exists [zcs@tmm.com]
« Reply #8 on: 2013-08-23, 18:25:34 »
Use Mustafa's fix.  He is the master of the code.  After review I understand what he was saying - it was looking for a directory and not the .qmail- forward file.

All of my forwards are working properly.  Try the above fix.  Add the forwards.  Then if they are not working try to restart qmail.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
Re: no mail foward - Alert: mailaccount_exists [zcs@tmm.com]
« Reply #9 on: 2013-08-23, 18:27:54 »
I just re-read your post - sorry, trying to zoom through the forums and missed key words in your post.

You have forwards already enabled BUT they do not forward?  Is that the problem?

In KloxoMR the forwards show up as active?

Please advise.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

Offline befree22

  • Valuable Member
  • *
  • Posts: 95
  • Karma: +0/-1
    • View Profile
Re: no mail foward - Alert: mailaccount_exists [zcs@tmm.com]
« Reply #10 on: 2013-08-27, 04:21:35 »
Hi Chris,

It was "user error" as you stated. I tried to create the forwards via the "forward aliases" and not the "forwarding" mail icon. I thought about your comment and knowing that all other features are working, I looked under mail extras and viola! the correct icon was there. Funny that the icon was under "extras" section and not regular mail section, that's why I missed it.

Thanks for your help.
« Last Edit: 1970-01-01, 01:00:00 by Guest »

 


Top 4 Global Search Engines:    Google    Bing    Baidu    Yahoo
Click Here

Page created in 0.053 seconds with 17 queries.

web stats analysis
 
Mirror created by MasterkinG32.CoM