HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (
-   Installation/Configuration (
-   -   Automatically allowing postmaster@domain (

thewebguy 6th December 2012 01:39

Automatically allowing postmaster@domain
Is there a way that when adding a domain to ISPConfig or when setting up the domain for email services that it can automatically add the address to the postmaster or root account of the server itself?

There is an RFC standard that requires this but without manually creating that alias or forwarder for each new domain which is going to be a pain, I cannot see a way.

Any help as always greatly appreciated.


till 6th December 2012 09:32

You can create a global postmasetr alias in the postfix aliases file.

The RFC requires it but most likely you will just get tons of spam on these addresses, so most poeple dont create this address. If someone wants to contact you as representative of a domain, he can lookup your company address in the whois records of the domain.

thewebguy 7th December 2012 17:42

Thanks, just for anyone else looking to do this, the following is how to achieve it:

Create /etc/postfix/my_aliases.regexp file

Insert the following:

/^(postmaster|domains|root|abuse|webmaster|sysadmin )@/

(You can alter the global aliases you wish to use by adding them within the brackets above and separating them with | ).

Change to wherever you wish the emails to be directed to.

Save the file and exit.

Edit the following file:

Find the section that starts virtual_alias_maps and add the following:


So the line should read something similar to this:

virtual_alias_maps = proxy:mysql:/etc/postfix/, proxy:mysql:/etc/postfix/, hash:/var/lib/mailman/data/virtual-mailman, regexp:/etc/postfix/my_aliases.regexp

All times are GMT +2. The time now is 17:50.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.