how to copy all incoming emails from one virtual domain to one email

Hello,

i' try to find a way to copy all incoming email's, from one virtual domain only, to specific email, on this domain.

Is that possible via virtualmin, or only with procmailrc

regards

Status: 
Closed (fixed)

Comments

Howdy! Don't forget that this Support area here is for Virtualmin Pro customers. Virtualmin GPL users are welcome to use the forums for support though!

However, we'll try to point you in the right direction :-)

It sounds like you might want to create an email alias within the one Virtual Server that forwards to a particular account on the other domain.

To do that, you can go into Edit Mail Aliases, and create a new mail alias. Then, set the "Forward to other address" field, and input the email address it should be forwarding to.

Would that do what you're after?

One method you could use to do this is to add a rule to the domain's .procmailrc file, which is under the /etc/webmin/virtual-server/procmail directory. Each domain has its own file, named based on the domain's ID. You can get the ID with the command :

virtualmin list-domains --domain whatever.com --id-only

Once you have this, add a line to the file like :

:0c
user@otherdomain.com

Just make sure that the address is not in the same domain, or you will create a mail loop ..

If I'm getting this right, "thekouk" wishes to define an email address to which all mail in the same domain, and not another domain, is being delivered? Like a catch-all email address?

That would simply be done using a Mail alias and setting the Name to All mailboxes.

Not exactly .. I think he wants to still have email delivered to the mailboxes in the domain it was addressed to, but also copied to another address.

Automatically closed -- issue fixed for 2 weeks with no activity.