Operating System - HP-UX
1823273 Members
3198 Online
109648 Solutions
New Discussion юеВ

help I hate sendmail - Relay denied

 
Adam Noble
Super Advisor

help I hate sendmail - Relay denied

Hi,

We currently have a server which I am trying to setup to send e-mails to external accounts. I am sending via our mail server another unix box. I can send a mail to my external account via this server and all is fine. I have setup my email to go via this server and that appears to be fine but I get the following error:-

sendmail -v noddy_home@yahoo.co.uk
hello
.
noddy_home@yahoo.co.uk... Connecting to mailserver. via nullclient...
220 mail.noddy-europe.com ESMTP Sendmail 8.9.3 (PHNE_24419+JAGae58098)/8.9.3; Wed, 24 Jan 2007 15:26:35 GMT
>>> EHLO server1.
250-mail.noddy-europe.com Hello [194.133.18.129], pleased to meet you
250-8BITMIME
250-SIZE 10000000
250-DSN
250-ONEX
250-XUSR
250 HELP
>>> MAIL From: SIZE=6
250 ... Sender ok
>>> RCPT To:
550 ... Relaying denied
noddy_home@yahoo.co.uk... User unknown
>>> RSET
250 Reset state
>>> RSET
250 Reset state
root... Using cached ESMTP connection to samsungq. via nullclient...
>>> MAIL From:<> SIZE=106
250 <>... Sender ok
>>> RCPT To:
250 ... Recipient ok
>>> DATA
354 Enter mail, end with "." on a line by itself
>>> .
250 PAA02527 Message accepted for delivery
root... Sent (PAA02527 Message accepted for delivery)
Closing connection to mailserver.
>>> QUIT
221 mail.noddy-europe.com closing connection

Can anyone explain this. On the mail server I have an entry in the access file for the host.
6 REPLIES 6
Peter Godron
Honored Contributor

Re: help I hate sendmail - Relay denied

Hi,
have you included your server in the list on your mail server ?

In our /etc/mail/sendmail.cf we have the directive:
Fw/etc/hosts

which means any machine in /etc/hosts can send mail to our mail server, who then distributes it.
Adam Noble
Super Advisor

Re: help I hate sendmail - Relay denied

no sadly this has not done the trick.
Ivan Ferreira
Honored Contributor

Re: help I hate sendmail - Relay denied

You should add mail-noddly-europe.com and noddly-europe.com to your relay host /etc/mail/relay-domains file.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Steven E. Protter
Exalted Contributor

Re: help I hate sendmail - Relay denied

Shalom,

The server you are trying to relay mail through, idenfified usually by the DS directive in sendmail.cf needs some configuration work.

It needs to permit this host to relay, which is not the default.

Usually this is an entry in the access file.

/etc/mail/access

ip address of sender RELAY
ip address of sender OK

Example.

192.168.0.10 RELAY

This will permit relay from the specific host defined.

You may need to use the m4 command to build the access.db database.

See http://www.sendmail.org for more fun on this topic.

I like sendmail, sendmail is my friend. Its stops millions of attempted spam relay messages a year on my servers.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
perumal_2
Frequent Advisor

Re: help I hate sendmail - Relay denied

Hi

What is the mail server you use in unix box.Is this again a send mail server. All the mails servers whether it runs on Windows or ..nix have a configuration to use relay services. Without this the mail server becomes an open relay server and it is very dangerous.
You may need change the cfg of your relay server to add the new send mal servers details.
TQ
Perumal
Adam Noble
Super Advisor

Re: help I hate sendmail - Relay denied

Thanks I have actually carried out most of this specifically the access file but I will try with the IP rather than hostname and see how we go. Thanks for your advice anyway