Hi everyone, uname -a : Linux homer 2.2.16-SMP #1 SMP Wed Aug 2 20:01:21 GMT 2000 i686 unknown SuSE Linux 7 Professional I would like sendmail(version 8.10.2) to relay mail messages from a limited number of domains that I specify in advance. I have added the domains that I wish to be relayed to the /etc/mail/access file, ie : a.domain RELAY b.domain RELAY I then did: makemap hash /etc/mail/access < /etc/mail/access then did: /etc/rc.d/sendmail restart However, if a host from the listed domain attempts to relay a message to a third party email address it recieves the following error: "An error occurred while sending mail. The mail server responded: 5.7.1 <garry.smith@computer.org>// Relaying denied. IP name lookup failed [x.x.x.x] Please check the message recipients and try again" The /var/log/mail entry is : Jan 19 16:47:45 homer sendmail[4139]: starting daemon (8.10.2): SMTP+queueing@00:30:00 Jan 19 16:47:45 homer sendmail[4139]: daemon could not open control socket /var/run/sendmail.control: Group writable directory Jan 19 16:48:05 homer sendmail[4146]: f0JGm4L04146: ruleset=check_rcpt, arg1=<garry.smith@computer.org>, relay=[x.x.x.x], reject=550 5.7.1 <garry.smith@computer.org>... Relaying denied. IP name lookup failed [x.x.x.x] Jan 19 16:48:05 homer sendmail[4146]: f0JGm4L04146: from=<Garry.Smith@computer.org>, size=0, class=0, nrcpts=0, proto=ESMTP, daemon=MTA, relay=[x.x.x.x] Where x.x.x.x is the IP address of the host trying to relay the mail through sendmail. If I add the domain to which the email is addressed (in this case 'computer.org') to /etc/mail/relay-domains then the mail is relayed successfully. However, it is not practical to add recipient domains to /etc/mail/relay-domains because mail needs to be sent all over the Internet. Any ideas gratefully recieved. Many thanks in advance Garry
On Fri, Jan 19, 2001 at 05:10:06PM +0000, Garry Smith wrote:
Hi everyone,
uname -a : Linux homer 2.2.16-SMP #1 SMP Wed Aug 2 20:01:21 GMT 2000 i686 unknown SuSE Linux 7 Professional
I would like sendmail(version 8.10.2) to relay mail messages from a limited number of domains that I specify in advance.
I have added the domains that I wish to be relayed to the /etc/mail/access file, ie :
a.domain RELAY b.domain RELAY
I then did: makemap hash /etc/mail/access < /etc/mail/access
then did: /etc/rc.d/sendmail restart
However, if a host from the listed domain attempts to relay a message to a third party email address it recieves the following error:
"An error occurred while sending mail. The mail server responded: 5.7.1 <garry.smith@computer.org>// Relaying denied. IP name lookup failed [x.x.x.x] Please check the message recipients and try again"
This might mean that there is no reverse DNS for the IP of the host who relays through you. Usually it is used to prevent spamming. It is possible to turn it off in sendmail configuration file. Sorry I don't know the details. Or you may add reverse DNS for the addresses you have problems with, if its under your control. I switched to postfix recently, it's much more understandable than sendmail. -Kastus.
The /var/log/mail entry is : Jan 19 16:47:45 homer sendmail[4139]: starting daemon (8.10.2): SMTP+queueing@00:30:00 Jan 19 16:47:45 homer sendmail[4139]: daemon could not open control socket /var/run/sendmail.control: Group writable directory Jan 19 16:48:05 homer sendmail[4146]: f0JGm4L04146: ruleset=check_rcpt, arg1=<garry.smith@computer.org>, relay=[x.x.x.x], reject=550 5.7.1 <garry.smith@computer.org>... Relaying denied. IP name lookup failed [x.x.x.x] Jan 19 16:48:05 homer sendmail[4146]: f0JGm4L04146: from=<Garry.Smith@computer.org>, size=0, class=0, nrcpts=0, proto=ESMTP, daemon=MTA, relay=[x.x.x.x]
Where x.x.x.x is the IP address of the host trying to relay the mail through sendmail.
If I add the domain to which the email is addressed (in this case 'computer.org') to /etc/mail/relay-domains then the mail is relayed successfully.
However, it is not practical to add recipient domains to /etc/mail/relay-domains because mail needs to be sent all over the Internet.
Any ideas gratefully recieved. Many thanks in advance Garry
Hi Kastus, Many thanks for your reply. You were right about a DNS problem. In the end I removed all entries from /etc/mail/access and inserted the corresponding addresses for each host or domain I wish to relay in dot notation into /etc/mail/relay-domains. Previously any entries that were not in IP dot notation in this file failed to provide any benefit. Also interestingly /etc/mail/access (and access.db) failed to help in solving this problem even when ip addresses were given. Anyway problem now solved ..... thankyou regards Garry
sendmail(version 8.10.2) to relay mail messages from a limited number of domains that I specify in advance.
However, if a host from the listed domain attempts to relay a message to a third party email address it recieves the following error:
"An error occurred while sending mail. The mail server responded: 5.7.1 <garry.smith@computer.org>// Relaying denied. IP name lookup failed [x.x.x.x] Please check the message recipients and try again"
This might mean that there is no reverse DNS for the IP of the host who relays through you. Usually it is used to prevent spamming. It is possible to turn it off in sendmail configuration file. Sorry I don't know the details. Or you may add reverse DNS for the addresses you have problems with, if its under your control. I switched to postfix recently, it's much more understandable than sendmail.
-Kastus.
participants (2)
-
Garry Smith
-
kastus@tsoft.com