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.
Regards,
--
Sameer N. Ingole