Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

550 relay for one domain but not the other

Status
Not open for further replies.

csbdeady

Programmer
May 18, 2002
119
GB
Hi

I'm attempting to solve something while my guru of a SysAdmin is on hols;)

I have two domains, lets call them x.com and y.com running from the same server. If I email x.com from yahoo.com then all is fine. However if I email y.com from yahoo (or anywhere else except internally within the y.com domain) I get:

<someone@y.com>: host mail.SomeISP.net[xx.xx.xx.xx] said: 550 You are not allowed to relay unless connected to SomeISP. Please use SMTP AUTH (Over TLS or SSL).

I have checked in my .conf file and the y.com domain is specified.

Where else should I be looking to resolve this?

In case it is relevant, I can email out from webmail.y.com (and webmail.x.com) without any problem.

Many thanks!
-Colin
 
In your host.mc record in /etc/mail - it may be called linux.mc, or mail.mc or something, you need to have an entry like this :

Cw localhost y.com x.com

and in your /etc/mail/access

you need lines like this :

172 RELAY
192.168 RELAY
any.other.IPs.or.domains.you.need.to.send.mail.to RELAY

You then need to rebuild the access.db like this

make

(there should be a MakeFile with reference to makemap)

and then restart sendmail

/etc/init.d/sendmail restart


--------------------------------------------------
Free Database Connection Pooling Software
 
I forgot to say, you need to rebuild your sendmail.cf file :

m4 /etc/mail/host.mc > /etc/sendmail.cf

--------------------------------------------------
Free Database Connection Pooling Software
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top