PDA

View Full Version : Email Forwarding from the DefaultAccount



drazhar
04-04-2007, 03:04 AM
Hi Guys. I tried to setup a forwarder on the default account for a domain, but got the error "Forwarder 'blah' already exists."

Any thoughts?

GillroY
04-12-2007, 03:33 AM
I'd like to know this as well. I was able to do this a while ago, which is correct according to http://www.directadmin.com/features.php?id=113

But at the moment I'm unable to create a forwarder on top of the default pop box for another account.

Marcovr
04-13-2007, 05:18 AM
I have this problem to
i have more domains under my account
and by 1 domain i will forward the email username@domain.nl

but i can't create a forwarder or create a other popbox for it
is there a other way to create this forwarder ?

nobaloney
04-15-2007, 01:40 PM
Did you check the forwarders list to see if it already exists?

Jeff

Marcovr
04-15-2007, 11:57 PM
Yes there are no forwarders
there is only 1 pop account and that is the default pop account

but the name of the forwarder have the same name as the default pop account
so i can't create a forwarder with that name

but can't delete the default pop account

so maybe is there a other way to create that forwarder ?

nobaloney
04-24-2007, 09:30 AM
This is changed behavior. I just tried it; I deleted a forwarder I'd created in the past and could NOT recreate it.

Perhaps there was a good reason for the change.

John?

Jeff

drazhar
04-24-2007, 09:36 AM
This is indeed a bug it seems. Oops!! Must have been a few lagers at DA HQ in between the last update (for the bandwidth tally bug) and the previous!! :)

floyd
04-24-2007, 09:37 AM
I remember it working previously too.

tlchost
04-24-2007, 03:19 PM
This is changed behavior. I just tried it; I deleted a forwarder I'd created in the past and could NOT recreate it.

Perhaps there was a good reason for the change.
Jeff

Here's what I discovered reference to to the forwarder stuff....not having the ability to forward mail to Admin to external address was something I really didn't like

-----------------------------------------------------
Aliases for admin are in

/etc/virtual/the_admin_domain/aliases
The original alias file was

admin: admin
*: admin

By editing that file, not only can we add alias names for admin(to send copies of emails) but we can then see it in the control panel
Example:

admin: admin,joe@schmoo.com,narf@ohsure.com
*: admin

Email Only User aliases
Email Only User aliases are stored in the alias file for the domain owner

So, we can use the forwarder panel to create an email alias and forward it to external address(es)
So, the alias file with the domain owner and alias would look like

admin: admin,joe@schmoo.com,narf@ohsure.com
dinky: joe@schmoo.com,admin,narf@ohsure.com
*: admin

I haven't tried deleting and recreating it....but if the control panel wouldn't let me do it, I'd do it from the prompt as above.

Being lazy....is there an addin for Squirrelmail that allows the user to set a forward condition?

Thom

floyd
04-24-2007, 03:27 PM
is there an addin for Squirrelmail that allows the user to set a forward condition?

I seriously doubt it since Squirrelmail does not handle mail delivery at all.

tlchost
04-24-2007, 03:40 PM
I seriously doubt it since Squirrelmail does not handle mail delivery at all.

Thanks....I beleive open webmail does allow for that...one less thing for me to do for the user :)

Thom

floyd
04-24-2007, 03:46 PM
There is no web mail software that handles mail delivery. Webmail in any form is just like your mail client on your computer. For instance Outlook Express can handle forwarding but only after you open it and let is download the email from a n account then it filters it and then resends it. But it does not handle the actual delivery. If webmail supported such a thing it would not work until you logged into it and basically triggered the forward filter. And then as soon as you logged out it would stop forwarding.

There are some others out there that will also run from a cron job and download and filter and forward email.

tlchost
04-24-2007, 03:59 PM
There is no web mail software that handles mail delivery.

Not to get wrapped up in technical jargon and get anyone's shorts in a knot:

I wish that squirrelmail would allow the user to set it up so that a message coming in to their address would be forwarded to an external address.

Now to address your statement, if you pm me with a user name and password, I will add you to a system that I am migrating from and you can actually experiment with a webmail client that seems to me to do what I want.

Perhaps I've simply used the wrong words....but I know that the mail can be forwarded without me doing anything...it is controlled by the user via their webmail control panel.

Thom

DirectAdmin Support
04-24-2007, 04:51 PM
Hello,

http://www.directadmin.com/features.php?id=771

System username forwarder fixed for next release.

Regarding users having the ability to set their own forwarders, no that's not a option because forwarders do no require a pop account, thus no password would be associated with it, hence DA can't authenticate anyone for it's open use.

At the moment, only Vacation messages, email password, email quotas, and ftp account passwords can by end users without needing access to the DA account password.

Vacation: http://www.directadmin.com/features.php?id=684
Email pass: http://www.directadmin.com/features.php?id=229
Email quota: http://www.directadmin.com/features.php?id=643 and http://www.directadmin.com/features.php?id=651
Ftp pass: http://www.directadmin.com/features.php?id=727

They're all designed with the API in mind, so for anyone adventurous in squirrelmail plugins, that's an example of where they would be used.

John

floyd
04-24-2007, 06:38 PM
but I know that the mail can be forwarded without me doing anything...it is controlled by the user via their webmail control panel.

I think you are getting some words mixed up but that's ok. This is how we learn.

Within DA the user can set up forwarders. You do not have to do that, the end user can. But its not done within a webmail interface.

I guess what has me confused is that you said "webmail control panel" This refers to two different things in my opinion. You have webmail and a control panel. They are not one and the same unless I am still misunderstanding you.

DA is the control panel and Squirrelmail is the webmail client, also UebiMiau is available as a webmail client. The user can create the forwarder from the DA control panel but not in either of the webmail clients. If you know of a webmail client that can do that then please tell us the name of it.

tlchost
04-24-2007, 07:41 PM
I think you are getting some words mixed up but that's ok. This is how we learn.

Within DA the user can set up forwarders. You do not have to do that, the end user can. But its not done within a webmail interface.



Can an email only user do that? I don't think so.



I guess what has me confused is that you said "webmail control panel" This refers to two different things in my opinion. You have webmail and a control panel. They are not one and the same unless I am still misunderstanding you.


Ah yes....the dreaded terminology "control panel". To me Control Panels are like sex....some are better than others, all should get you where you want to go. But, I suppose in the interest of clarification, I could have said the presentation to the email user that allows he or she to alter configurations that affect the delievery of his or her mail, regardless of a local or off-site destination.



DA is the control panel and Squirrelmail is the webmail client, also UebiMiau is available as a webmail client. The user can create the forwarder from the DA control panel but not in either of the webmail clients.

Can an email only user access the control panel to create a forwarder? I don't think so....they can only reack webmail.....which os why I was asking about a webmail client that allowed the user to setup a forwarding mechanism.



If you know of a webmail client that can do that then please tell us the name of it.

Sure....it's one that I use now, and many of my customers use now, and one that they will ask me to install.

http://www.openwebmail.org/

As I mentioned before, I'd be more than happy to create an account for you on a system that uses it so that you can see what I am talking about, since I may not be using correct terminology.

PS....there have been several threads here by folks asking about it...apparently there are others who know about it.

Thom

hostpc.com
04-24-2007, 09:00 PM
A user of ours asked me this question tonight ... very easily solved:

Here's his solution on how he did it in DirectAdmin:



1) Log into my control panel
2) Click on Files to get into the file manager. Do not navigate to any subdirectories.
3) At the bottom, in the dialog for "Create New File", enter .forward (that is dot-forward)
4) Click on the create button
5) In the text box that appears, enter the email address where you want the messages sent to and press Save As

The testing message that I sent was forwarded to my account in the .forwrad file. It was not left in the default email account, which is exactly what I wanted.

tlchost
04-24-2007, 09:57 PM
A user of ours asked me this question tonight ... very easily solved:

Here's his solution on how he did it in DirectAdmin:

But of course if he was an email-only user, he doesn;t have access to the control panel, and therefore can't set up a forward.

I have customers who have fairly large organizations.....on the system I am now using, the site administrator can create non-administrator users....and each one of them can set up forwarding mechanisms, either through their own control panel, or via openwebmail.

As I migrate that site to the DA box, as far as I can tell, I can have one "user" who can access the control panel. That user can create number of email-only users, who can not set up a forward.

If that's the case, I will have x number of customers who must do a lot more work to administer their sites. That's OK, since the advantages of DA are numerous, but I till come back to the original question about having a webmail client handle the forwarding.

From the user perspective, it is counter-intuitive that the new system(DA) gives them far less control of their email than the old system.

Thom

floyd
04-25-2007, 05:05 AM
Can an email only user do that?

Of course not since that is not a real user but a virtual user. I don't think you made that clear before that you were talking about email only. I think you just said user.

It seems to me that the one in control of the domain which is the real user should be responsible for email accounts and forwarders. That user would have DA access.


Sure....it's one that I use now, and many of my customers use now, and one that they will ask me to install.

http://www.openwebmail.org/

Then install it and be done with it. You already have your answer. You just need to install it.

tlchost
04-25-2007, 12:50 PM
Then install it and be done with it. You already have your answer. You just need to install it.

From what I can tell, while it can be done on a server-wide basis, the DA software would need to automatically create config files when a domain is added.

Perhaps someday either DA will take that step or openwebmail will.

Thanks for your comments, I've learned quite a bit from the interchange.

Thom

floyd
04-25-2007, 12:57 PM
From what I can tell, while it can be done on a server-wide basis, the DA software would need to automatically create config files when a domain is added.

I guess I am still not understanding the problem. You are the admin of the server right? You do have root access right? Then why can't you install it?

DA can certainly automatically create whatever config files you need for it every time a domain is added so that's not the problem.

I just don't understand what you are having a problem with? There is nothing preventing you from installing and using the software unless you don't have root access to the server.

DirectAdmin Support
04-25-2007, 01:27 PM
Just adding some info to the discussion, you can create domain_create_post.sh to be called by DA after a domain is created. You can run anything you'd like: http://www.directadmin.com/features.php?id=183

At the moment, you can implement email user forward creation modification using the API: http://www.directadmin.com/features.php?id=411
So, only 1 account can do it, yes (the DA account), but entering the user/pass for that DA account into a script to do all the work for you and then have users access your script would also work.

As for email accessing forwarders without needing the DA user password (even if only the script knows it), it could only work if they also had a pop account associated with it. This is because forwarders don't have passwords. DA could give the user the ability to add a forwarder in addition to their pop account, however that would not stop email from being saved in addition to being forwarded. If the email user only wanted a forwarder and not to save any email in his pop account, then the pop has to be deleted... thus also deleting the password that goes with it.. and DA can no longer authenticate an email user to access a forwarder.

So at the moment, the API method is probably the solution for automated forwarder creation by email users, but each seperate domain would need a copy of it's own API script because each domain has a different user. OR you can use an Admin account (eg, create admin2), but that's more risky having the password saved in a script. You can lessen this risk if you use an Admin account with the API with this technique (different commands though: http://help.directadmin.com/item.php?id=150

John