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 // 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=, relay=[x.x.x.x], reject=550 5.7.1
... Relaying denied. IP name lookup failed
[x.x.x.x]
Jan 19 16:48:05 homer sendmail[4146]: f0JGm4L04146:
from=, 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