On 22 Aug 2001, at 10:05, [EMAIL PROTECTED] wrote:

> Hi all.
> 
> How can I check that qmail is using smtproutes info to resolve domains
> added to /var/qmail/control/smtproutes
> 

Check you logs (/var/log/qmail/@0009*) for an entry of a for message 
to be delivered to the final destination server. If the entry uses 
the IP address you have in your smtproutes file, then chances are 
it's working. (particularly if it's forwarding to an private IP 
behind a firewall) 

Here's an example of my log to show what I mean...

998472349.776731 new msg 721054
998472349.776737 info msg 721054: bytes 91892 from <suxxxx@xxxxxxx-
xxxxxx.com.mv> qp 27372 uid 401
998472349.782271 starting delivery 89866: msg 721054 to remote 
[EMAIL PROTECTED]
998472349.782282 status: local 0/100 remote 1/120
998472349.852802 delivery 89866: success: 
192.168.2.10_accepted_message./Remote_host_said:_250_Message_accepted_
for_delivery/

In particular, look at the line that says "delivery 89866: success:"  
The IP address here is the internal IP address we have assigned the 
desination server, so this tells me the smtproutes is working. other 
wise the IP address would have been the external "internet" IP for 
the same box.

Hope this helps.
Dean


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Dean Staff
Protus IP Solutions
210 - 2379 Holly Lane
Ottawa, ON K1V 7P2 Canada
613-733-0000 ex 546 Fax 613-248-4553
e-mail: [EMAIL PROTECTED] Web: http://www.protus.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Reply via email to