PDA

View Full Version : Forwarders -> local copy option



qlsys
05-19-2005, 08:24 AM
Hi,

I wanted to ask if You think about creating some extensions to Forwarders section in DA user Panel.

Many clients ask me to set a forwader in the way that mail is forwared as a copy, so the original reciever doesnt see anythingt (this feature is requested usaually by Managers, Directors to control incoming mails for their employees).

It could be easly added:

in /etc/virtual/domain/ there could be additional filter file, different from ./filter which is used by SpamAssassin.

For example:

./filter_forwarders

Then in Forwarders section user could have an option to tick (Local Copy: on/off). If off - nothing additional should be done. If "on" selected there could filter rules written to filter_forwarders such as:

if
$header_to: contains "email@address.com" or
$header_to: contains "aliases@domain.com"
....
then
unseen deliver email@somedomain.com
endif

And thats all. Ofcourse there could be also an option:
Forward a copy of all incoming mail to the following address:

and when there should be only such entry:

unseen deliver email@address.com

What do You think about that?

I dont know if there is some more simplified way to this - but thats the one I'm using.

Kind Regards,

ClayRabbit
05-22-2005, 02:49 PM
Am i missed something?

You can do following:

Setup pop3-account user1@domain.com
Setup forwarder user1@domain.com -> user2@domain.com

Message will be delivered to user1@domain.com and copy will be sent to user2@domain.com

qlsys
05-23-2005, 04:27 AM
Hi,

Try to set up something like this:

You have a main user/mailbox:

login: user1
e-mail: user1@domain.com

Try to set now a forwarder in this way:

user1@domain.com -> user2@domain.com, user3@domain.com, user4#domain.com, .... ,usern@domain.com

At my DA server message was delivered to all users except user1@doman.com

I tried this trivial example which you described and it works in that way... but if You have many rcpts in forwarder id does not deliver a message to main account.

Maybe something wrong with my settings... but i dont think so because everything else it working properly.

Kind Regards,

nobaloney
05-23-2005, 08:54 PM
Please try to duplicate the problem with system accounts (login username) and domain accounts (login username@example.com) so we can determine if the problem is with both or only with one.

Thanks.

Jeff

qlsys
05-24-2005, 06:24 AM
Hi,

Ok. I've checked eveything.

It works this way:

if you setup forwader for an existing virtual email account it works perfectly.

For example:

login: user1@domain.com
email: user1@domain.com

forwarder:

user1@domain.com -> some@address.com

But now - if you setup a forwarder for a main account it doesnt not deliver a message to original rcpt.

For example:

login: client
email: client@domain.com

forwarder: client@domain.com -> some@address.com

the message ISNT delivered to client@domain.com account but is delivered only to: some@address.com.

It should be delivered also to client@domain.com.

Kind Regards,

nobaloney
05-24-2005, 01:36 PM
Thanks for the clarification.

That's just an "order" problem within exim.conf.

I can change it, but I'd like to John to write back with his feeling on it, and/or the reasons for his decision on why it works the way it does.

I'm asking him to look at this message, and when he replies I'll make the changes to my newest exim.conf, and then make the file available to DA.

Jeff