PDA

View Full Version : ISPConfig 3 - Mail Domain Alias


tetrahedron
5th February 2009, 05:50
I noticed that there's no option for Mail Domain Alias. It's possible to make a catch all for domains, and just have them sent to another domain. However, there's no way to alias email domains; and catch-alls are horrible when it comes to spam.

Peace,
Kelly Shutt

falko
5th February 2009, 22:26
I've added this to our bugtracker.

syadnom
9th March 2009, 07:16
Is there a solution to this? maybe a workaround? I am wanting to deploy ISPconfig3 but I really must have domain aliases to do this. I am hoping to not have to go down to ISPconfig2 as I really like the multiple server management!

Thanks for any help in advance..

till
9th March 2009, 09:47
There is no mail domain alias, but there are the email aliases which you can use to do the same. Just create an alias for every email address of the other domain that you need.

syadnom
9th March 2009, 18:18
is this an option in ISPconfig2? I have over 600 email accounts, dont really want to build 600 aliases. Also want some canonical mapping which doesnt seem to have an option. suppose the idea is to just do an alias there too which makes 1200 aliases for 600 email accounts. owe...

syadnom
9th March 2009, 23:23
Any idea on how to do this in postfix outside of ispconfig3? something in postfix maybe?

What I'm trying to do is have

my-site.com = mysite.com without doing a per user alias.

does ISPconfig2 do domain aliases?

syadnom
9th March 2009, 23:30
If I did this with a canonical map that said

@my-domain.com @mydomain.com

Would ISPconfig mess with the canonical file?

in main.cf add
canonical_maps = hash:/etc/postfix/canonical

and in /etc/postfix/canonical add
@my-domain.com @mydomain.com

and then
postmap /etc/postfix/canonical

till
10th March 2009, 00:15
You can do this either with the canonical file or virtual_alias_domains:

http://www.postfix.org/VIRTUAL_README.html

both will not be changed by the current ispconfig version.

syadnom
10th March 2009, 01:39
Till, can you give an example of this? When I read the link I see:


1 /etc/postfix/main.cf:
2 virtual_alias_domains = example.com ...other hosted domains...
3 virtual_alias_maps = hash:/etc/postfix/virtual
4
5 /etc/postfix/virtual:
6 postmaster@example.com postmaster
7 info@example.com joe
8 sales@example.com jane
9 # Uncomment entry below to implement a catch-all address
10 # @example.com jim
11 ...virtual aliases for more domains...

but it is not clear on where or how to make a domain alias, just how to make catch all addresses or virtual aliases to users.

is it as simple as
/etc/postfix/main.cf:
virtual_alias_maps = hash:/etc/postfix/virtualdomains

/etc/postfix/virtualdomains:
@my-domain.com @mydomain.com

postmap /etc/postfix/virtualdomains


any help would be appreciated.
This is really the only issue I have with ISPconfig3.
Thanks

till
10th March 2009, 11:36
It should work as in your example. But as your original setup work, you should just keep it.

syadnom
10th March 2009, 17:48
Thanks for the help. :)

A1200
21st October 2009, 17:12
Just a point to note, to get canonical or virtual addresses working in postfix with a simple @domain.com points to @domain.co.uk is a real pain in the bottom. The best guide I found was:

http://www.sysdesign.ca/guides/postfix_virtual.html

But this still relies on pointing to a USER. Not fun when there are 10s or 100s of mailboxes needing mapping. Canonical mapping didn't seem to work, despite reading lots of documentation on it (a nice howto like the link above wouldn't go a-miss).

I only use ISPConfig for web/db hosting but one client couldn't connect to my hMailserver host, and they just happened to have tons of mailboxes (lucky me). As soon as a way can be implemented to get ISPConfig using virtual email domains, I think it would be well used by many.

till
21st October 2009, 17:17
ISPConfig 3 uses virtual email domains. You mix iup ispconfig 2 and 3.

A1200
21st October 2009, 19:08
I am talking about version 3 mate. As per the previous posts, just adding a 2nd domain to automatically map all the mailboxes to the target domain DOES NOT exist in ISP Config (yet).

It is on bugtracker:

http://bugtracker.ispconfig.org/index.php?do=details&task_id=505&project=3&opened=80&status%5B0%5D=&pagenum=3