This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
dev_cache_all [2011/07/27 14:48] k2patel |
dev_cache_all [2020/08/10 02:35] (current) |
||
---|---|---|---|
Line 6: | Line 6: | ||
Here is what i have applied on postfix. | Here is what i have applied on postfix. | ||
- | I am sending all email to "k2patel@k2pate.com" | + | I am sending all email to "k2patel@k2patel.com" |
==== main.cf ==== | ==== main.cf ==== | ||
Line 48: | Line 48: | ||
==== transport ==== | ==== transport ==== | ||
Create New file which create the map for transporting email.\\ | Create New file which create the map for transporting email.\\ | ||
- | + | Please replace "vmail.k2patel.com" with whatever email server you want to deliver to.\\ | |
- | Please replace "vmail.k2patel.com" with whatever email server you want to deliver to. | + | I am using vmail.k2patel.com where my real k2patel@k2patel.com exists. |
<code ini | /etc/postfix/transport > | <code ini | /etc/postfix/transport > | ||
Line 56: | Line 56: | ||
k2patel.com smtp:vmail.k2patel.com | k2patel.com smtp:vmail.k2patel.com | ||
* local:k2patel@dev.k2patel.com | * local:k2patel@dev.k2patel.com | ||
+ | </code> | ||
+ | |||
+ | You need to create hashmap of this file use following command if you dont know how to. | ||
+ | |||
+ | <code bash> | ||
+ | /usr/sbin/postmap /etc/postfix/transport | ||
+ | </code> | ||
+ | |||
+ | ==== Aliases ==== | ||
+ | This is where all internal redirection happens.\\ | ||
+ | Also make sure you specify all user you want redirected mail to.\\ | ||
+ | carefull -- check the k2patel user properly. | ||
+ | |||
+ | <code ini | /etc/aliases > | ||
+ | # Person who should get root's mail | ||
+ | root: k2patel@dev.k2patel.com | ||
+ | backup: root | ||
+ | |||
+ | |||
+ | user1: k2patel@dev.k2patel.com | ||
+ | user2: k2patel@dev.k2patel.com | ||
+ | k2patel: k2patel@k2patel.com | ||
+ | |||
+ | </code> | ||
+ | |||
+ | Also you need to rebuild alias database please use following command if you dont know. | ||
+ | |||
+ | <code bash> | ||
+ | /usr/bin/newaliases | ||
</code> | </code> | ||
+ | == Test your mail any email it should get in your inbox. == | ||