Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 6th December 2012, 01:39
thewebguy thewebguy is offline
Junior Member
 
Join Date: Dec 2012
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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 postmaster@newdomain.com 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.

Thanks
Reply With Quote
Sponsored Links
  #2  
Old 6th December 2012, 09:32
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,788
Thanks: 840
Thanked 5,612 Times in 4,423 Posts
Default

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.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 7th December 2012, 17:42
thewebguy thewebguy is offline
Junior Member
 
Join Date: Dec 2012
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

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 )@/ admin@mydomain.com

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

Change admin@mydomain.com to wherever you wish the emails to be directed to.

Save the file and exit.

Edit the following file:
/etc/postfix/main.cf

Find the section that starts virtual_alias_maps and add the following:

regexp:/etc/postfix/my_aliases.regexp

So the line should read something similar to this:

virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, proxy:mysql:/etc/postfix/mysql-virtual_email2email.cf, hash:/var/lib/mailman/data/virtual-mailman, regexp:/etc/postfix/my_aliases.regexp
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Automatically create webmail.domain.tld redirect fide General 1 30th October 2009 19:50
How to set up Xen to generate virtual machines with extra modules built automatically dealspiggy HOWTO-Related Questions 1 5th February 2009 22:16
how to make application start automatically indonesia Desktop Operation 2 24th January 2008 08:42
only allowing connections to a directory over https TheMaximumWeasel Tips/Tricks/Mods 4 25th June 2007 07:51
option to add cname instead of a records automatically whitty Feature Requests 3 3rd June 2006 22:58


All times are GMT +2. The time now is 23:55.


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