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?

yes. Its not local box. I am on remote machine and using ssh to configure server.

(2) Did you see your mail client's connection (attempt?) in the qmail-smtpd log?

yes, it is there.

(3) Are you absolutely sure that it's attempting to connect to the correct IP?

yes, because, qmail-smtpd/current has an entry of connection.

(4) Is the failure one of the "could not make connection" variety, or otherwise?

Nope. It is not. I am using thunderbird. It said,
Sending message failed.
The message could not be sent because connecting to SMTP server xxx.xxxxxx.xxx failed. The server may be unavailable or is refusing SMTP connections. Please verify that your SMTP server setting is correct and try again or else contact your network administrator.

Here *server xxx.xxxxxx.xxx failed* is my server I am trying to send mail through. If I remove IP from run script, everything works fine.



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.

I think its evident from the change in run script that it works if 0 is there in run script and stops working if insert IP in run script and restart smptd.

--
Sameer N. Ingole
/*****************************************************/
Better to light one candle than to curse the darkness.
/*****************************************************/

Reply via email to