Halaman

Minggu, 23 Oktober 2016

Change Exim4 Port 25 to xxxx on VestCP

Masbroooo.......
Salah satu server kita kena blacklist google dan blacklist lainnya, otomatis ngirim email jadi ga bisa pake ip vps yang ntu.

Ujung2nya vps di suspend karna dianggap mengirimkan spam. Diaktifin lagi tapi port 25 ditutup.
Ngubek2 exim config standar sih gampang, tapi ternyata di vestacp file konfigurasi di masing masing domain.
Alih2 sambil nunggu proses whitelist dan mencegah supaya ga di jadiin spam server ane ganti dah port SMTP nya.

masuk ke direktori /etc/exim4
standar nya file config exim4 ada di /etc/exim4/exim4.conf, ternya  kalo di ls isinya beginian.
dah ane coba bikin file exim4.conf, restart service, ampe restart server tetep masih jalan di port 25.
Alhasil ane ubek2 dah tuh semua file satu2 eh akhirnya ketemu juga, ternyata ada di "exim4.conf.template"
Kalo dilihat pake nano ini isinya :
Noh ada disono, ane ganti jadi port 5xxxxx, simpan terus restart service...(sekarang ga perlu restart server). Check port yg jalan "$netstat -tulnp"
Trus ane tes lagi coba kirim email lewat console (padahal udah di blacklist, tapi karna penasaran ya ane coba aja)...... 
dan hahahahahhahahhahahah nih hasil nya...


root@/home# exim -v disketsa@gmail.com
LOG: MAIN
  Warning: purging the environment.
 Suggested action: use keep_environment.
Subject : Testing exim
LOG: MAIN
  bla bla bla
LOG: MAIN
  bla blabla
LOG: MAIN
  bla blaa
Connecting to gmail-smtp-in.l.google.com [74.125.28.26]:25 ... connected
  SMTP<< 220 mx.google.com ESMTP r195si11456261pgr.210 - gsmtp
  SMTP>> EHLO xx.xxxxxxxx.xxxx
  SMTP<< 250-mx.google.com at your service, [104.129.5.203]
         250-SIZE 157286400
         250-8BITMIME
         250-STARTTLS
         250-ENHANCEDSTATUSCODES
         250-PIPELINING
         250-CHUNKING
         250 SMTPUTF8
  SMTP>> STARTTLS
  SMTP<< 220 2.0.0 Ready to start TLS
  SMTP>> EHLO xxx.xxxxxxx.com
  SMTP<< 250-mx.google.com at your service, [104.129.5.203]
         250-SIZE 157286400
         250-8BITMIME
         250-ENHANCEDSTATUSCODES
         250-PIPELINING
         250-CHUNKING
         250 SMTPUTF8
  SMTP>> MAIL FROM:<xxx@xxx.xxxxxxx.com> SIZE=1343
  SMTP>> RCPT TO:<disketsa@gmail.com>
  SMTP>> DATA
  SMTP<< 250 2.1.0 OK r195si11456261pgr.210 - gsmtp
  SMTP<< 250 2.1.5 OK r195si11456261pgr.210 - gsmtp
  SMTP<< 354  Go ahead r195si11456261pgr.210 - gsmtp
  SMTP>> writing message and terminating "."
PDKIM>>Hashed body data, canonicalized >>>>>>>>>>>>>>>>>>>>>>>>>>>>>
bla bla bla and bla <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
 c8afb89c4aa15c0561d140f852e347ea2f74a650757f77a33c957cc
  SMTP<< 550-5.7.1 [104.129.5.203       1] Our system has detected an unusual rate of
         550-5.7.1 unsolicited mail originating from your IP address. To protect our
         550-5.7.1 users from spam, mail sent from your IP address has been blocked.
         550-5.7.1 Please visit
         550-5.7.1  https://support.google.com/mail/?p=UnsolicitedIPError to review our
         550 5.7.1 Bulk Email Senders Guidelines. r195si11456261pgr.210 - gsmtp
  SMTP>> QUIT


Rapopo lah, toh kita make server mail canggih.................

1 komentar: