Today, i re-configured my client’s postfix mail server to support postfix virtual domains. This client of mine is one of the Domestic Airlines in the Philippines. I have been their consultant for 4 years now. When they had problem on their email server, I’m the one they contacting. My first consultancy with them was last [...]
Today, i re-configured my client’s postfix mail server to support postfix virtual domains. This client of mine is one of the Domestic Airlines in the Philippines. I have been their consultant for 4 years now. When they had problem on their email server, I’m the one they contacting. My first consultancy with them was last 2003 and i asked for 10,000 for setting up their complete mail system using Postfix + DoveCot + SpamAssassin + Clamav Antivirus. Then, my second consultancy with them was when they had a problem with their mail server. They cant send and received mails. The problem was the Amavis stop responding. To fixed this, i forced kill the instance and start it again. That do that tricked!
I asked them 2 Round trip tickets going to Boracay as Payment
Now, on this third time, they asked me to move their domains from Old to New. (I will not disclose the domain here). My plan of action was to reconfigure the Postfix mail server to support Virtual Hosting and do Alias forwarding from Old Domain to New Domain.
Below are the procedures to setup Postfix Virtual Domains ( I assume that you have a running postfix mail system)
1. Add the following lines:
virtual_alias_domains = myFirstDomain.com mySecondDomain.net virtual_alias_maps = hash:/etc/postfix/virtual 2. Add the following line: myhostname = smtp.myFirstDomain.com
- Modify /etc/postfix/virtual to include all email addresses you wish to include (and have been added to the $virtual_alias_domains list in main.cf. Example:
bill@myFirstDomain.com bill ted@mySecondDomain.net ted
- Run
/usr/sbin/postmap /etc/postfix/virtual(this must be done each time the virtual file is modified). - To run the server, execute:
/usr/sbin/postfix start
No related posts.









Leave Your Response