Submitted by thekouk on Tue, 12/21/2010 - 12:55
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
Submitted by andreychek on Tue, 12/21/2010 - 13:58 Comment #1
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?
Submitted by JamieCameron on Tue, 12/21/2010 - 15:21 Comment #2
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 ..
Submitted by Locutus on Tue, 12/21/2010 - 17:56 Comment #3
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.
Submitted by JamieCameron on Tue, 12/21/2010 - 18:05 Comment #4
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.
Submitted by Issues on Tue, 01/04/2011 - 23:22 Comment #5
Automatically closed -- issue fixed for 2 weeks with no activity.