Tungky Santoso wrote:

> isi dari canonical saya standard, cuma ini:
> sender_canonical_maps = /etc/postfix/sender_canonical
> recipient_canonical_maps =
> /etc/postfix/recipient_canonical
> sedangkan untuk sender_canonical nya, contoh isinya:
> tungky    [EMAIL PROTECTED]
>
> untuk recipient_canonical nya:
> [EMAIL PROTECTED]   tungky

Quick test dari saya :

# postconf sender_canonical_maps
sender_canonical_maps = hash:/etc/postfix/sender_canonical
# echo "asfik [EMAIL PROTECTED]" >
/etc/postfix/sender_canonical
# postmap /etc/postfix/sender_canonical
# postfix reload
postfix/postfix-script: refreshing the Postfix mail system
# id asfik
uid=502(asfik) gid=502(asfik) groups=502(asfik)
# su - asfik
$ mail [EMAIL PROTECTED]
Subject: Test

Test canonical

.
Cc:
$

Dari tail -f /var/log/maillog sukses, address asfik akan direwrite
menjadi [EMAIL PROTECTED] :

Dec 30 08:08:21 proxy postfix/pickup[24963]: 78609C640: uid=502
from=<asfik>
Dec 30 08:08:21 proxy postfix/cleanup[25015]: 78609C640:
message-id=<[EMAIL PROTECTED]>
Dec 30 08:08:21 proxy postfix/nqmgr[24964]: 78609C640:
from=<[EMAIL PROTECTED]>, size=315, nrcpt=1 (queue
active)
Dec 30 08:08:22 proxy postfix/smtp[25017]: 78609C640:
to=<[EMAIL PROTECTED]>, relay=jktmail1.biz.net.id[202.169.33.224],
delay=1, status=sent (250 Message queued)

Rgds,
Asfihani

Reply via email to