Setting Forward Email

Postfix

pada /etc/postfix/main.cf tambahkan

virtual_alias_maps = hash:/etc/postfix/custom/addresses

Pada /etc/postfix/custom/addresses tambahkan

@domainanda.com [email protected]
@contoh.tld [email protected]
[email protected] [email protected]

Kemudian jalankan perintah untuk reload config

#postmap /etc/postfix/custom/addresses
#service postfix reload

 

cPanel (Exim)

pada /etc/localdomains tambahkan

domain.tld

buat file /etc/vdomainaliases/domain.tld
buat file /etc/valiases/domain.tld kemudian isi dengan

[email protected]: [email protected]
[email protected]: "|php -q /home/user/pipe.php"
[email protected]: [email protected], [email protected]
*: [email protected]

line 1 forward email untuk [email protected] ke [email protected]
line 2 forward email untuk [email protected] ke pipe
line 3 forward email untuk [email protected] ke [email protected] dan [email protected]
line 4 forward semua email yang lain ke [email protected]

 

Facebook Comments

Leave a Reply

Your email address will not be published. Required fields are marked *