SSH in to your server console and let’s look at your setup:

# /sbin/ip route dev eth0 proto kernel scope link src dev eth0 scope link
 default via dev eth0

To change the default qmail IP from to

# /sbin/ip route change default via dev eth0 src

That’s all there is to it. All qmail outgoing mails now leave from IP instead of