Cauwenbergh.be weblog

« | Home | »

Install postfix mailserver only for forwarding

By Robin | juni 1, 2010

For some reasons i only had to install a mailserver for forwarding mails to other mailaddresses. So on Centos here you have it:

#yum install postfix smtpd

edit /etc/postfix/main.cf

myhostname = your.domain.tld

virtual_alias_domains = redirectdomain1.tld, redirectdomain2.tld
virtual_alias_maps = hash:/etc/postfix/virtual

edit /etc/postfix/virtual

address@redirectdomain1.tld   addresto@domainto.tld

@redirectdomain2.tld  addresstocatchall@domaintoxx.tld

After this run the following commands:

# postalias /etc/aliases
# postmap /etc/postfix/access
# postmap /etc/postfix/virtual
# postmap /etc/postfix/transport
# cp /etc/aliases /etc/postfix/
# newaliases
# postfix reload

Now the server is ready to forward your mails!!!

Topics: Dutchzone, Internet - SEO - Money, Linux, Netdistri | No Comments »

Comments