Koozali.org: home of the SME Server

mail forwarding

Offline supafly1975

  • 15
  • +0/-0
mail forwarding
« on: February 06, 2014, 09:59:50 PM »
Is there somewhere on the net a clear DUTCH manual on mailforwarding?

I have one user provided by my internet-provider, but me, my wife and our 3 kids each have an alias. Being forename.name@provider.be
I would like to send the mails from our oldest son to his account oldest_son on the Sme-server, so he can open this mailbox with thunderbird or whatever software.
And have his own 'box', since he's getting old enough to have his own space on the server (also with fileserver, printserver, and mailbox)

who can help me to show the way to do so... (maybe an explanation is easy? I have no idea)
My son already has a user account setup on my 'Server1'....

I'm pretty new into this... so keep it easy if you can?

FORGOT to mention : i use FETCHMAIL to retrieve my mails from my providers IMAP-system... (and al the mails arrive into my account-box)
Thanks in advance!
« Last Edit: February 06, 2014, 10:04:19 PM by supafly1975 »

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: mail forwarding
« Reply #1 on: February 08, 2014, 01:04:14 AM »
supafly1975

You do not really need a Dutch language manual to do this.

Install the mailsorting contrib (smeserver-mailsorting)
http://wiki.contribs.org/Mailsorting

and install the User Manager contrib (smeserver-userpanel)
http://wiki.contribs.org/UserManager

Make sure you read both wiki articles completely.

Configure appropriate access rights in Server Manager first, to allow users to have access to User Manager.
(User manager is a user specific server manager equivalent that allows certain users to have access to certain server manager panels, as configured by the admin user).

Then follow the instructions for User Manager to configure a rule for your catchall account user to forward mail that has a recipient address with
oldest_son.name@provider.be  to  oldest_son@Sme-server.domain
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline supafly1975

  • 15
  • +0/-0
Re: mail forwarding
« Reply #2 on: February 08, 2014, 11:12:13 AM »
Hey Janet,
Thank you for the reply. I allready got this installed, and running..
And i have been looking on forums and other stuff for a loooooong time
But mails for my son still arrive in my mailbox, because its an alias from my mailbox, and these mails are not moved.
Don't know what i'm doing wrong...

In my user account (the catchall account), that downloads the mails from my provider, i have set up :

Match against (To)
The rule (oldest.son@provider.be)
Action (Forward email)
Folder or email address (Oldest_son@server1.network.local)
Copy (No)
Order of rule execution (myUser1)

Any idea?
Thanks in advance to those that can get me some help!

gr,
P.

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: mail forwarding
« Reply #3 on: February 08, 2014, 02:57:16 PM »
supafly1975

Oldest_son@server1.network.local

Is that literally your email address or is it obfuscated ?
Does it resolve if you send an email to that address using webmail ?
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline supafly1975

  • 15
  • +0/-0
Re: mail forwarding
« Reply #4 on: February 08, 2014, 03:18:32 PM »
Yes, its made unreadable, for privacy-reasons... :D

If i send an email from my account (in webmail)  to my sons local adress (oldest_son@network.local), it arrives in his mailbox.
If i send an email from my account (in webmail) to my sons external adress (oldest.son@provider.be), it arrives in my mailbox. (his external adress is an alias of my account).

I created the rule in the previous reply, to forward this last mail (originally adressed to:oldest.son@provider.be) towards oldest_son@network.local, but it doenst move...
« Last Edit: February 08, 2014, 03:21:41 PM by supafly1975 »

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: mail forwarding
« Reply #5 on: February 08, 2014, 03:32:26 PM »
supafly1975

IIRC mail has to be delivered locally for mail rules to work.
Are you using IMAP to read the mail on your sme server (which implies local delivery) ?

Maybe the use of fetchmail is introducing an issue.
As a test, you could try forwarding a copy of all your incoming mail to another sme server users account (ie in server manager User panel, select deliver locally & forward a copy to....), and then set up procmail rule on that account to slectively send to your sons address.

Aside from wanting to achieve your request, why don't you use sme server as external smtp mail server with email addresses based on the main domain on your sme server & send mail directly to the address for each user.
eg dad@myserver.domain, son@myserver.domain, mum@myserver.domain etc
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline supafly1975

  • 15
  • +0/-0
Re: mail forwarding
« Reply #6 on: February 09, 2014, 07:00:43 PM »
Hey janet,
Yes, I use imap to fetch the mails from my provider.

I tried to fetch the mails on a brand new user,called 'Fetcher'. Worked perfectly...
I tried to immediately forward to a second new user, called 'Forwarder'. Worked perfectly...
I gave the forwarder access to the mailsorting page, and setup a rule to forward to my Son, but this did not work...

Dont' know what is wrong... Maybe I Will have to spend Some money on a domain-name, and try with that...
Allthough I would like this problem to be resolved too...

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: mail forwarding
« Reply #7 on: February 09, 2014, 07:43:10 PM »
supafly1975
Quote
Yes, I use imap to fetch the mails from my provider.

I thought you said you are using fetchmail ?

I am not referring to how you fetch mail from your ISP.
I am referring to the mail protocol (eg IMAP or POP) that you use to read mail from your sme server accounts. I am assuming here you have a mail client (Outlook, Thunderbird etc) on your workstation that reads mail on the sme server.

How are you reading mail from the sme server user accounts ?
Are you using webmail only ?

Quote
Maybe I Will have to spend Some money on a domain-name

They cost under $10 per year nowadays for a name of your choosing.
Alternatively you can get one free domain name from dyndns, a subdomain of one of their domains. There are other free services around too.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: mail forwarding
« Reply #8 on: February 10, 2014, 07:49:27 AM »
supafly1975

Quote
I allready got this installed, and running..

Did you also configure appropriately as per
http://wiki.contribs.org/Mailsorting

Show output of
config show qmail

I just tried setting this up & it works correctly.
I created 2 accounts test20 & test 22,
Logged in to user manager as test20,
created a rule to forward mail for test20@mydomain to test22@mydomain
sent a message to test20@mydomain
message arrived in test22 Inbox, viewed with sme webmail app

Try the above exactly
Note in server manager Users panel, the user setup has to show mail delivery as Deliver Locally (or AFAIK rules will not work).
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.