Relaying denied. IP name lookup failed

Discuss the Scalix Server software

Moderators: ScalixSupport, admin

kazinvan
Posts: 59
Joined: Wed Jul 19, 2006 12:43 pm
Location: Vancouver, BC, Canada

Relaying denied. IP name lookup failed

Postby kazinvan » Tue Mar 11, 2008 1:09 pm

I'm trying to send mail from an ERP application to both internal and external email accounts. The sender address in the ERP app is a valid Scalix account, but SMTP auth is not an option so connections are anonymous.

The IP of the server running the ERP is 205.206.209.124. I have added these lines to smtpd.cfg:

RELAY accept 205.206.209.
ANONYMOUS accept 205.206.209.

Restarted the SMTP service, but I still get these errors:

class com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 <me@domain.com>... Relaying denied. IP name lookup failed [205.206.209.124]

Now is that a relaying problem or a DNS problem?

I added an entry to /etc/hosts for that IP address but not sure if it needs proper DNS resolution. Any suggestions on what to try?

kazinvan
Posts: 59
Joined: Wed Jul 19, 2006 12:43 pm
Location: Vancouver, BC, Canada

Postby kazinvan » Wed Mar 12, 2008 9:30 pm

bump

Valerion
Scalix Star
Scalix Star
Posts: 2730
Joined: Thu Feb 26, 2004 7:40 am
Location: Johannesburg, South Africa
Contact:

Postby Valerion » Thu Mar 13, 2008 3:36 am

Mail usually does not use /etc/hosts for resolution, as it uses MX records by preference. Add the entry to your internal DNS and see if it still persists.

kazinvan
Posts: 59
Joined: Wed Jul 19, 2006 12:43 pm
Location: Vancouver, BC, Canada

Postby kazinvan » Thu Mar 13, 2008 6:17 pm

This is coming from a server at a datacenter running our ERP system, not an internet mail server. I can't add it to DNS as I don't manage the IP range.

kazinvan
Posts: 59
Joined: Wed Jul 19, 2006 12:43 pm
Location: Vancouver, BC, Canada

Postby kazinvan » Thu Mar 13, 2008 6:25 pm

To clarify, I'm assuming you mean add a reverse entry in DNS to resolve the error:

IP name lookup failed [205.206.209.124]

Two problems, I don't maintain the IP range so the owner of the range *should* provide reverse. Also, I'm using external name servers for lookups so I can't add entries into their system.

You can't resolve this via some other method? Hosts? Just allowing this IP to relay regardless of name?

mikevl
Scalix Star
Scalix Star
Posts: 596
Joined: Mon Feb 02, 2004 8:32 pm
Location: New Zealand

Postby mikevl » Thu Mar 13, 2008 7:02 pm

Hi

Is the ERP server on the same subnet?
Can you ping the ERP server from the Scalix server?
If not this could also have an element of a routing issue. Just a thought

Mike

kazinvan
Posts: 59
Joined: Wed Jul 19, 2006 12:43 pm
Location: Vancouver, BC, Canada

Postby kazinvan » Thu Mar 13, 2008 7:52 pm

mikevl wrote:Hi

Is the ERP server on the same subnet?
Can you ping the ERP server from the Scalix server?
If not this could also have an element of a routing issue. Just a thought

Mike


Not on the same subnet, they are connected via VPN.

I can't ping the ERP server from Scalix or vice versa, but that is due to the fact that ICMP traffic is disabled over the tunnel. I do have port 25 open from ERP -> Scalix and can telnet to 25 and get an SMTP prompt. I seem to be able to deliver a message to the server since I'm getting a reply (relay denied).

I'm just not sure how to allow the ERP server to relay anonymously through scalix.

mikevl
Scalix Star
Scalix Star
Posts: 596
Joined: Mon Feb 02, 2004 8:32 pm
Location: New Zealand

Postby mikevl » Thu Mar 13, 2008 8:38 pm

Hi

RELAY accept 205.206.209.


I think you need to add the last octet of the server IP

RELAY accept 205.206.209.xxx

Mike

kazinvan
Posts: 59
Joined: Wed Jul 19, 2006 12:43 pm
Location: Vancouver, BC, Canada

Postby kazinvan » Fri Mar 14, 2008 1:04 am

Docs seem to suggest you don't need it, and leaving it out gives relay to the whole class C. I'm wiling to try at this point though I think I did that at first with no success.

mikevl
Scalix Star
Scalix Star
Posts: 596
Joined: Mon Feb 02, 2004 8:32 pm
Location: New Zealand

Postby mikevl » Fri Mar 14, 2008 1:39 am

Hi

You are right

We have a number of cleints using the same configuration and it works. You have done nothing wrong.

One thing to be careful of when opening up a whole subnet is becomming an open relay. Mat be a small risk, but a risk none the less. That was more the reason for specifying complete IP addresses.

Maybe you have latency or time out issues. I would be interested to find out why this is not working in your situation.

Mike

kazinvan
Posts: 59
Joined: Wed Jul 19, 2006 12:43 pm
Location: Vancouver, BC, Canada

Postby kazinvan » Fri Mar 14, 2008 10:57 am

I don't think it's latency as we have a high speed connection (E10) with dedicated VPN between the servers. Also, the mail server is responding to the smtp request with 'relay denied'. That is very different from a timeout message on the ERP end.

Also, I'm not too worried about an open relay as all machines in that class C are maintained by our ISP and there is not much running on it besides our gear.

Mike

kazinvan
Posts: 59
Joined: Wed Jul 19, 2006 12:43 pm
Location: Vancouver, BC, Canada

Postby kazinvan » Mon Mar 17, 2008 10:29 pm

bump, anyone have input?

kazinvan
Posts: 59
Joined: Wed Jul 19, 2006 12:43 pm
Location: Vancouver, BC, Canada

Postby kazinvan » Wed Mar 19, 2008 11:05 am

bump, is it really this hard to allow relaying in scalix?

kazinvan
Posts: 59
Joined: Wed Jul 19, 2006 12:43 pm
Location: Vancouver, BC, Canada

Postby kazinvan » Thu Mar 20, 2008 6:54 pm

bump

les
Scalix Star
Scalix Star
Posts: 819
Joined: Thu Feb 23, 2006 10:18 am
Location: Sydney, Australia

Re: Relaying denied. IP name lookup failed

Postby les » Thu Mar 20, 2008 9:45 pm

kazinvan wrote:I'm trying to send mail from an ERP application to both internal and external email accounts. The sender address in the ERP app is a valid Scalix account, but SMTP auth is not an option so connections are anonymous.

The IP of the server running the ERP is 205.206.209.124. I have added these lines to smtpd.cfg:

RELAY accept 205.206.209.
ANONYMOUS accept 205.206.209.

Restarted the SMTP service, but I still get these errors:

class com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 <me@domain.com>... Relaying denied. IP name lookup failed [205.206.209.124]

Now is that a relaying problem or a DNS problem?

I added an entry to /etc/hosts for that IP address but not sure if it needs proper DNS resolution. Any suggestions on what to try?


The problem is not in scalix, its how sendmail verifies relay clients.

I assume you can send to internal clients without problem.

The problem only occurs when you try to relay through the scalix server and send to an external client.

Its sendmail throwing you the error. Scalix uses sendmail for sending messages.

from the sendmail.cf
# check client name: first: did it resolve?
R$* $: < $&{client_resolve} >
R<TEMP> $#TEMP $@ 4.4.0 $: "450 Relaying temporarily denied. Cannot resolve PTR record for " $&{client_addr}
R<FORGED> $#error $@ 5.7.1 $: "550 Relaying denied. IP name possibly forged " $&{client_name}
R<FAIL> $#error $@ 5.7.1 $: "550 Relaying denied. IP name lookup failed " $&{client_name}


an nslookup from my site shows now record for that IP.
nslookup 205.206.209.124
Server: 220.233.0.3
Address: 220.233.0.3#53

** server can't find 124.209.206.205.in-addr.arpa: NXDOMAIN



This is the problem.

Normally ISP's will give you some form of record on your reverse address i.e.

[root@quicksilver custom]# nslookup 211.211.211.211
Server: 220.233.0.3
Address: 220.233.0.3#53

Non-authoritative answer:
211.211.211.211.in-addr.arpa name = 111.13.233.220.myisp.com.au.



You need to request that the ISP looking after the ip range creates a reverse record for you.

On the other side of the coin.....is there a real need to relay through your scalix server? If you have valid mx records in external dns then if the ERP system tried to deliver directly it would know where to send it. No real need for relaying that i can see.

The other alternative is to relay via the isp's smtp server, which the erp system is connected to.

hope that helps.
Regards,

Les Stott


Return to “Scalix Server”



Who is online

Users browsing this forum: No registered users and 4 guests

cron