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-18, 19:52:28

Author Topic: Mail Alias  (Read 3254 times)

0 Members and 1 Guest are viewing this topic.

Offline LotsOfQ

  • Master
  • **
  • Posts: 462
  • Karma: +1/-0
    • View Profile
Mail Alias
« on: 2017-02-25, 10:44:40 »
I remember before we can add Mail Alias and forward it. Now it looks like only forward options are actually existing account. Is it possible to bring back the old version? I think it's for purpose like something we don't need access to that account but just need it to forward to gmail or a script on our server.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Mail Alias
« Reply #1 on: 2017-02-25, 10:59:13 »
No remove for 'mail alias'. In Kloxo-MR 7, go to 'mail forward / alias' and then 'add alias'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline LotsOfQ

  • Master
  • **
  • Posts: 462
  • Karma: +1/-0
    • View Profile
Re: Mail Alias
« Reply #2 on: 2017-02-25, 12:52:04 »
Yes, I know that option is there to "add alias". What I meant is that you only have options to forward only to existing accounts. I want to able to forward alias to gmail or a script then I cannot.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Mail Alias
« Reply #3 on: 2017-02-25, 13:01:20 »
Use 'Add forward' instead 'Add Alias' to forward to external email.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline LotsOfQ

  • Master
  • **
  • Posts: 462
  • Karma: +1/-0
    • View Profile
Re: Mail Alias
« Reply #4 on: 2017-02-26, 00:59:50 »
Yes, that's what I am doing right now. But I have to go through the trouble of creating a new email account for each one that I forward to external email or to a script. I like the old version of this or add another option like the "Add Forward" feature that allow us to for alias to a script without having to create an account.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Mail Alias
« Reply #5 on: 2017-02-26, 02:26:45 »
For awhile, open '/usr/local/lxlabs/kloxo/httpdocs/driver/mmail/mailforwardlib.php' and then change:

from:
Code: [Select]
if ($typetd['val'] === 'alias') {
if ($parent->isClient()) {
$list = get_namelist_from_objectlist($parent->getList('domain'));
$vv = array('var' => 'real_clparent_f', 'val' => array('s', $list));
$vlist['nname'] = array('m', array('posttext' => "@", 'postvar' => $vv));
} else {
$vlist['nname'] = array('m', array('posttext' => "@$parent->nname"));
}
} else {
$vlist['nname'] = array('s', $mlist);
}


to:
Code: [Select]
// if ($typetd['val'] === 'alias') {
if ($parent->isClient()) {
$list = get_namelist_from_objectlist($parent->getList('domain'));
$vv = array('var' => 'real_clparent_f', 'val' => array('s', $list));
$vlist['nname'] = array('m', array('posttext' => "@", 'postvar' => $vv));
} else {
$vlist['nname'] = array('m', array('posttext' => "@$parent->nname"));
}
// } else {
// $vlist['nname'] = array('s', $mlist);
// }

..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

 


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

Page created in 0.047 seconds with 18 queries.

web stats analysis