Paul Smeddle wrote:
Sameer N Ingole wrote:
Paul Smeddle wrote:
Omar Armas Aleman wrote:
El Dom 03 Jul 2005 02:30, Sameer N Ingole escribió:
[snip]
How can I make my smtp to listen on just one IP?
/var/qmail/control/outgoingip:
http://www.qmail-ldap.org/wiki/~control/outgoingip
I think he already has his qmail-remote originating connections from
a given IP.
I think he wants his qmail-smtpd to listen only on a specific IP.
If you have a standard qmail-ldap setup, edit:
/var/qmail/boot/qmail-smtpd/run
and edit it so that the tcpserver line looks something like:
--8<--
...
tcpserver -v -URl $ME -x$QMAIL/control/qmail-smtpd.cdb \
${CONCURRENCY:+"-c$CONCURRENCY"} ${BACKLOG:+"-b$BACKLOG"} \
1.2.3.4 smtp $QMAIL/bin/qmail-smtpd
--8<--
Where 1.2.3.4 is the IP you would like it to listen on.
I tried that. But I was facing a strange problem. It was listening to
the desired IP... or so it seemed. Because when I tried to telnet on
this IP on port 25, it replied and the negotiation was ok. But my
mail client was unable to send mails. Don't know why? There was
nothing unusual in logs also.
Like I said above I have outgoing IP configured in ~/control/outgoingip.
I restarted all qmail-processes (qmail, smtpd, pop3d, pop3-ssl), just
to be sure, before I tested.
(1) I assume you mean an external mail client, i.e. something not
local to the box?
(2) Did you see your mail client's connection (attempt?) in the
qmail-smtpd log?
(3) Are you absolutely sure that it's attempting to connect to the
correct IP?
(4) Is the failure one of the "could not make connection" variety, or
otherwise?
If not (1), is your local client trying to connect to 127.0.0.1?
If not (2), tcpserver didn't see a connection, so you're not trying
the right IP.
(3) is an extension of (2) (i.e. check your client's settings).
If (4) is something wierd and wonderful, you need to give us the
actual error, and also some evidence that the error is qmail-ldap
related.
What parameter so we give to increase log level to debug on command line
while running qmail-smtpd/run script (on command line)?
--
Sameer N. Ingole
/*****************************************************/
Better to light one candle than to curse the darkness.
/*****************************************************/