About nixCraft

Topics

Linux How to bind Qmail to specific IP address

Posted by Vivek Gite [Last updated: May 14, 2008]

qmail is a mail transfer agent that runs on Linux and Unixish oses. It is more secure replacement for the popular Sendmail program. Yes, it is possible to bind Qmail to specific IP. Here is what I did. Please note that I am running light weight QMAIL server from xinetd service.

1) Open your /etc/xinetd.d/smtp file and add bind=IP line:

# vi /etc/xinetd.d/smtp
Append/add following line to it:
bind = 202.55.55.202

Where,

2) Save file

3) Reload xinetd with any one of the following command:
# /etc/init.d/xinetd reload
OR
/etc/init.d/xinetd restart
References:

Tell us how we're doing: Please answer a few questions about your experience to help us improve nixCraft.

You may also be interested in other helpful articles:

Discussion on This Article:

  1. Anonymous Says:

    Well this was pretty useless. How many people use qmail with inetd?

  2. Ajack Says:

    Hey that did not work for me. When I insert the bind line, no email goes out after that.

    I am on FC2 using Plesk 7.5, so I am using the xinetd service, but not a lightweight version of Qmail, I guess a regular one.

    My quetion is: is this supposed to work with a specific patch on Qmail?

    Googling the topic showed that plain vanilla qmail only sends to the server’s default IP and most people recommend a patch to change the outgoing IP…

    Ajack

  3. huschi Says:

    Absolute useless. Not because of the fact, that Plesk and Visas (both famous ISP-Software) use Qmail with inetd. :)
    No, it useless because (x)inetd is for getting Mails, not for sending. For this you don’t need inetd to bind on a specific IP, because the MX-Record do this for you.
    If you want to bind Qmail for outgoing Mails on an IP, i must tell you: this will not work because Qmail have no possibles to do so.

    huschi.

  4. Rick Yang Says:

    It seems that you can do this, see this link:
    http://www.digitaldaemon.com/FreeBSD/qmail/index.html

Leave a Reply

We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!

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

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

Tags: , , , , , , , , ,

Copyright © 2004-2008 nixCraft. All rights reserved - TOS/Disclaimer - Privacy policy - Sitemap - Powered by Open source software.