Howto Change QMail default IP

You have a Plesk server which runs under CentOS and you’ve got spammed from your server, but after you remove them you still find your IP is blocked by many of the blacklists, and this is still an issue for your remaining clients. What could you do next? What you need to do it temporarily change the qmail sender IP address, this is very easy to do. However, it’s temporary, a server reboot will gets everything back to normal state.

For example, say your qmail IP address is 192.168.1.1 and you want to change it to 192.168.2.2. Your gateway is 192.168.1.3 and does not change.

Run command type in:
$ /sbin/ip route

You’ll see this:

192.168.1.4/27 dev eth0 proto kernel scope link src 192.168.1.1
1.1.1.4/24 dev eth1 proto kernel scope link src 1.1.1.1
169.254.0.0/16 dev eth1 scope link
default via 192.168.1.3 dev eth0

To change the default qmail IP from 192.168.1.1 to 192.168.2.2:

Run command type in:
$ /sbin/ip route change default via 192.168.1.3 dev eth0 src 192.168.2.2

That’s all folks. All qmail outgoing mails now leave from IP 192.168.2.2 instead of 192.168.1.1

Hope this will help~

jonboy60

I’m a Malaysian, my name is Jon Loh (jonboy60) living in Kuala Lumpur and working in Petaling Jaya, Malaysia. Jonboy60.com is a blog magazine about Linux and other open source softwares. All about to a daily jobs or real life experiences I had since the year 2002 administrating Linux and Windows server in a hosting company. Basically i will be offering Linux tips, howto, tricks, latest news and tutorial. Contact Me for Career opportunities, business offers, Linux solutions for business or home, web and email server solutions, Linux consulting and expertise requests. Email to me on jonboy60{@}gmail.com. The site I’m running is VenCouture.com – Malaysia Online Fashion Shopping Boutique, VenCouture. We sell fashion clothes, sexy lingeries, baby clothing and etc.

More PostsWebsite

Follow Me:
TwitterFacebook

Leave a Reply

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

Connect with Facebook

*


7 − 2 =

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

CommentLuv badge