Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 6th August 2008, 13:56
bolero bolero is offline
Senior Member
 
Join Date: Apr 2008
Posts: 114
Thanks: 2
Thanked 8 Times in 8 Posts
Default Disallowing changing forwards in mailuser

Is there a way to disallow changing forwards in mailuser login either in general or for instance for a web?
Background: I have a client who forwards mail for most employees to a central mailbox (in addition to his own). So, in case he is ill, on vacation or unavailable another employee can take care of it. They want their employees not to be able to change forwarding to that central mailbox.
Any ideas? As I understand, forwarding is not done via aliases but in .forward. The first solution that comes to mind is write-protecting the file or changing the owner (at least the latter may create problems with procmail?). Not ideal in anyway I think.
Can I tell postfix to forward all mail for a domain in addition to the normal destination to some mailbox? (a transport would just forward all domain mail and not deliver to the normal mailboxes as well, I think this cannot be tweaked, right?)
Thanks for any better ideas.
Reply With Quote
Sponsored Links
  #2  
Old 7th August 2008, 13:18
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

Quote:
Originally Posted by bolero View Post
The first solution that comes to mind is write-protecting the file or changing the owner (at least the latter may create problems with procmail?). Not ideal in anyway I think.
Yes, this will create problems with procmail...

Quote:
Originally Posted by bolero View Post
Can I tell postfix to forward all mail for a domain in addition to the normal destination to some mailbox? (a transport would just forward all domain mail and not deliver to the normal mailboxes as well, I think this cannot be tweaked, right?)
Thanks for any better ideas.
IT should be possible to do this with transports. Have a look at
Code:
man 5 transport
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 7th August 2008, 13:38
bolero bolero is offline
Senior Member
 
Join Date: Apr 2008
Posts: 114
Thanks: 2
Thanked 8 Times in 8 Posts
Default

man transport contains the same text as /etc/postfix/transport. I already read this file and virtual and generic and what else there is :-) The main point is that these work as "nexthop" destinations. But "we" do not want to "hop". We want to "hop *and* deliver here" so to speak. I do not see any option to specify a "deliver to here and also deliver to here" for these maps. The only option is something like
Code:
email@host transporttype:targethost
whatever way I do this it just delivers to one destination. What my client needs is deliver to two or more destinations, where one destination (or maybe all) cannot be changed.
The only way I see one could do this with transport is to redirect to an alias, maybe like this:
Code:
email1@host local:myalias1
email2@host local:myalias2
and then in aliases:
Code:
myalias1 mycentralmailbox,webxxp1
myalias2 mycentralmailbox,webxxp2
With this approach it doesn't matter what the mailuser changes and writes to .forward.
Do you think this would work? (Not sure, if it's actually local: or not virtual: that I should use here.) What do you think? DSo you see something better?
This would need the client to edit transport and aliases, but he should be able to do it in Webmin. And it avoids fiddling around with any ISPConfig stuff.
Reply With Quote
  #4  
Old 8th August 2008, 16:28
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

Quote:
Originally Posted by bolero View Post
The only way I see one could do this with transport is to redirect to an alias, maybe like this:
Code:
email1@host local:myalias1
email2@host local:myalias2
and then in aliases:
Code:
myalias1 mycentralmailbox,webxxp1
myalias2 mycentralmailbox,webxxp2
I'm not sure if this works. I think you'd have to try it out.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 8th August 2008, 17:08
bolero bolero is offline
Senior Member
 
Join Date: Apr 2008
Posts: 114
Thanks: 2
Thanked 8 Times in 8 Posts
 
Default

In the meantime I stumbled accidently upon a way: Postfix bbc-maps. No need to abuse other maps.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Procedure: changing a mailuser password Hans General 14 22nd September 2008 17:21
ISPConfig 2.2.24 | mailuser app bug? Hans General 19 4th August 2008 15:18
chgrp error new user DKA General 15 28th July 2008 17:45
Changing password in MailUser takes a long time to update ghall General 3 29th November 2006 16:45
Deleting a mailuser does not work completely viewport Installation/Configuration 4 7th March 2006 04:44


All times are GMT +2. The time now is 00:14.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.