Delete Postfix Mail Queue based on email address

Couple days ago my server got blacklisted. All of my users can not send any email and there’s more than 100 email bulking on my server.

After checking queue with

postqueue -p

There is 100 email sent from marksonventures@hotmail.com which I know it was not my user.

Then use this to delete them

mailq | tail -n +2 | grep -v ‘^ *(‘ | gawk ‘BEGIN {RS = “”} /marksonventures@hotmail.com/ {print $1}’ | tr -d ‘*!’ | sudo postsuper -d –

Done πŸ™‚

Advertisement

Getting whole folder using Smbclient

I used smbclient while running my virtual Linux on the same computer.
Here ‘s what I do
1. connect using smbclient //dest ip/folder -Uuser
2. The windows box will ask the password. Answer it!
3. After you connected do this step by step
4. type tarmode
5. type recurse
6. type prompt
7. mget foldertocopy\
8. the whole folder will be copied to your home folder.

Thats it πŸ™‚

Menyesuaikan waktu di Fedora

Masalah jam yg salah di server jadi besar apalagi di server mail. Cari2 ternyata penyebabnya adalah jam di server yang tidak sesuai dengan jam yg sebenarnya.

Kalau di server Windows ganti jam ini gampang banget tapi di linux?

Wah ternyata…. mudah juga πŸ™‚

Caranya kita benerin dulu jam yg ada diserver. Dengan fungsi date

Biasanya kita lihat dulu manual nya

man date

misal tanggal 13 January 2009 jam 12:28

maka bentukΒ  datenya sbb :

date 01131228

Setelah itu simpan ke bios

hwclock –systohc

Selesai deh … masalah selesai πŸ™‚