Hai milisers,

Linuxbox ini berfungsi sebagai mail server lokal dan internet (pakai
dialup). SMTP gateway atau relay host memakai smtp.relayhost.com. Saya
mau tunning postfix sedikit agar saat konek ke internet dg dialup, 
email segera dikirimkan ke relayhost tanpa perlu postfix lookup ke dns.
Hal ini bisa dilakukan kalau saya masukkan ip address di bagian ini:

/etc/postfix/main.cf:
  myhostname = server.megaplasma.com
  mydomain = megaplasma.com
  relayhost = [201.2.3.4]

/etc/postfix/sasl_passwd:
  201.2.3.4    username:password

Anehnya setelah itu email gagal dikirimkan pesan errornya sbb:

Feb 21 13:35:44 server postfix/qmgr[4989]: 99775A7BB: from=<[EMAIL PROTECTED]>, 
size=311, nrcpt=1 (queue active)
Feb 21 13:35:44 server postfix/qmgr[4989]: 99775A7BB: to=<[EMAIL PROTECTED]>, 
relay=none, delay=0, status=deferred (delivery temporarily suspended: deferred 
transport)

Kemudian saya lakukan: /usr/sbin/sendmail -q
untuk kirim email yg diantrikan.

Feb 21 13:35:54 server postfix/qmgr[4989]: 99775A7BB: from=<[EMAIL PROTECTED]>, 
size=311, nrcpt=1 (queue active)
Feb 21 13:35:55 server postfix/smtp[5204]: warning: 
smtp.relayhost.com[201.2.3.4] offered AUTH option multiple times
Feb 21 13:36:00 server postfix/smtp[5204]: 99775A7BB: to=<[EMAIL PROTECTED]>, 
relay=smtp.relayhost.com[201.2.3.4], delay=16, status=bounced (host 
smtp.relayhost.com[201.2.3.4] said: 501 <megaplasma.com> is invalid or DNS says 
does not exist (in reply to MAIL FROM command))

Biasanya kalau berhasil kirim pesannya spt ini:

Feb 21 13:37:34 server postfix/qmgr[5302]: C0261A7BB: from=<[EMAIL PROTECTED]>, 
size=311, nrcpt=1 (queue active)
Feb 21 13:37:34 server postfix/qmgr[5302]: C0261A7BB: to=<[EMAIL PROTECTED]>, 
relay=none, delay=0, status=deferred (delivery temporarily suspended: deferred 
transport)
Feb 21 13:37:37 server postfix/qmgr[5302]: C0261A7BB: from=<[EMAIL PROTECTED]>, 
size=311, nrcpt=1 (queue active)
Feb 21 13:37:40 server postfix/smtp[5331]: warning: 
smtp.relayhost.com[201.2.3.4] offered AUTH option multiple times
Feb 21 13:37:41 server postfix/smtp[5331]: C0261A7BB: to=<[EMAIL PROTECTED]>, 
relay=smtp.relayhost.com[201.2.3.4], delay=7, status=sent (250 Ok, message 
saved <Message-ID: <[EMAIL PROTECTED]>>)
Feb 21 13:37:41 server postfix/qmgr[5302]: C0261A7BB: removed


-- 

Terimakasih sebelumnya dan sesudahnya.

Salam,

~yudi



Reply via email to