Redirect all user mail to "Contact email address"

7 posts / 0 new
Last post
#1 Wed, 04/27/2011 - 09:09
Murz

Redirect all user mail to "Contact email address"

When we create new virtualserver, for example - example.com form have the field:

Contact email address: - Administrator's mailbox - Other address..

I select "Other address" and type something like vasya@mymail.com.

But mail alias for the virtualserver user (example.com unix user) is not created, so all mail for this user (cron jobs and other system alers) are stay in the local mailbox that user never checks.

How I can setup that virtualmin automatically creates redirect all virtualserver user mail to it "Contact email address"?

And can I set the default "Contact email address" to Other address and type the default email for new domains? We creates domains for own needs and most of them have the same contact email address.

Wed, 04/27/2011 - 09:27
Murz

I have find in "Edit Server Template > Mail for domain" form item "Mail forwarders for new users" but it acts for each user, but I need do the redirect only for virtualserver owner user.

Also here is "Mail aliases for new domains" - it adds aliases, but I need the forward rule, not alias.

Where can I setup mail forwarding?

Wed, 04/27/2011 - 14:02
andreychek

Howdy,

Whenever you're creating a new Virtual Server, there's a section called "IP address and forwarding". Within there, you can set "Default mail forwarding address".

Would that do what you're after?

-Eric

Thu, 04/28/2011 - 00:14
Murz

Oh, very sorry, with many options I became completely blind and didn't see this item :) Thanks!

Fri, 05/06/2011 - 07:56
Murz

I try this option, but it isn't work properly on postfix, how to reproduce:

We have email admin@myserver.com and want to receive on it all cron mail from user of new virtualserver.

We press Create Virtual Server, set name to example1.com, set Default mail forwarding address = admin@myserver.com

Virtualmin creates new server with user example1.com, and adds those aliases to /etc/postfix/virtual

example1.com@example1.com example1.com
example1.com example1.com
@example1.com admin-myserver.com

So, after that all mail to anything@example1.com redirects correctly to user admin-myserver.com, but cron mail sends to example1.com, not to example1.com@example1.com, and it isn't redirects to admin-myserver.com.

For solve this we must create aliases like this:
example1.com@example1.com example1.com
example1.com admin-myserver.com
@example1.com admin-myserver.com

or maybe like this:
example1.com@example1.com admin-myserver.com
example1.com admin-myserver.com
@example1.com admin-myserver.com

Fri, 05/06/2011 - 13:25
andreychek

You may be seeing a bug in how it works -- my suggestion would be to file a bug report, and in that report, include everything you mentioned in your recent forum post here. Then, Jamie can work with you to figure out what's going on there :-)

-Eric

Tue, 05/10/2011 - 01:28
Murz

Yes, this is more the bug that the configuration problem, so I create the bug https://www.virtualmin.com/node/18146 about this.

Topic locked