[Pkg-exim4-users] Getting 550 relay not permitted, I tried all sorts of things still getting error

Peter Gossner gossner at internode.on.net
Fri Mar 29 21:19:47 UTC 2013


On Fri, 29 Mar 2013 13:29:22 -0600
Nate Homier scribed:

> On 03/28/2013 11:10 PM, Nate Homier wrote:
> > My problem: Delivery to the following recipient failed permanently:
> > 
> >      public at universal-mechanism.org
> > 
> > Technical details of permanent failure:
> > Google tried to deliver your message, but it was rejected by the
> > server for the recipient domain universal-mechanism.org by
> > homier.dyndns.org. [184.166.103.9].
> > 
> > The error that the other server returned was:
> > 550 relay not permitted
> > 
> > All email is rejected.
> > 
So if I have this right ...
homier.dyndns.org is refusing to relay.
(well good in itself)


> > 2 mx records.  mxin.mxes.net which receives and sends, it's my
> > smarthost.  And homier.dyndns.org which has EXIM4 running and where
> > the problems are.  Check my DNS record below.
> > 
OK 

> > I have my domain universal-mechanism.org and I use Tuffmail as my
> > smarthost, meaning Tuffmail receives and sends mail on behalf of my
> > domain via an mx record.  Recently I decided to setup EXIM4 with
> > Internet site selected in exim4-config.
> > 
> > Exact settings are:
> > internet site; mail is sent and received directly using SMTP
> > Mail name: universal-mechanism.org
OK and this is also set in /etc/mailname ?
(not that it really matters yet)
> > Listens on all interfaces
> > Other destinations for which mail is accepted:
> > saturn.hyperion.local; homier.dyndns.org; universal-mechanism.org
OK So we allow the destination
.
> > Domains to relay mail for:
> > universal-mechanism.org; homier.dyndns.org
This will need a look up but OK.

> > Machines to relay mail for: blank
> > 
> > My DNS is as follows:
> > SOA Record
> > UNIVERSAL-MECHANISM.ORG.	3600	IN	SOA
> > ns09.domaincontrol.com.	dns.jomax.net ( 2013032815
> > 				28800
> > 				7200
> > 				604800
> > 				3600
> > 				)
> > 
> > ; A Records
> > @	3600	IN	A	64.251.17.25
> > 
> > ; CNAME Records
> > www	3600	IN	CNAME	@
> > 
> > ; MX Records
> > @	3600	IN	MX	0	mxin.mxes.net
> > @	3600	IN	MX	10	homier.dyndns.org
> > 
> > ; TXT Records
> > @	3600	IN	TXT	"v=spf1
> > include:customer-spf.mxes.net ~all" @	3600	IN
> > TXT	"v=spf1 include:homier.dyndns.org ~all"
> > 
> > ; NS Records
> > @	3600	IN	NS	ns09.domaincontrol.com
> > @	3600	IN	NS	ns10.domaincontrol.com
> > 
> > Thank you.  Nate
> > 
> I read the FAQ here at
> http://wiki.debian.org/PkgExim4UserFAQ#When_I_try_to_deliver_a_message_via_SMTP_to_my_Exim.2C_I_get_.22550_relay_not_permitted.22
> 
> But I don't want to act as a smarthost.  I just want to act as a
> backup MX server.  Do I really have to make myself an open relay or
> do I not understand the FAQ.  I only want to accept mail for
> universal-mechanism.org and no one else.
So we need to tell hyperion that it can relay for the IP address 
64.251.17.25/32 

dc_relay_nets='172.16.0.0/16; 10.0.0.0/8; 192.168.0.0/24;
64.251.17.25/32 '
(one line)

If that doesn't do it then :
Either set up an Auth or even TLS pair from hyperion to universal

see exim4_passwd_client(5) for more documentation


Next try using the hubbed_hosts file on hyperion :
man hubbed_hosts(5) 
(all the same man page :)
/etc/exim4/hubbed_hosts
       is an optional file containing a list of route_data records
which  can be  used  to  override  or augment MX information from the
DNS. This is particularly useful for mail hubs which are
highest-priority MX  for  a domain  in the DNS but are not final
destination of the messages, passing them on to a host which is not
publicly reachable, or to  temporarily fix mail routing in case of
broken DNS setups.

(has examples)


[then later]
For fine / per user controls :
set up a virtual (alias type) at hyperion

These are simple alias style file that you put say
under /etc/exim4/virtuals/universal-mechanism.org
(see the exim4 manual  ch47.html#SECTvirtualdomains )



 
> 
> _______________________________________________
> Pkg-exim4-users mailing list
> Pkg-exim4-users at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-exim4-users



-- 
The world is actually in many key ways improving at the moment.
There are still enormous challenges
   -- Tim Flannery
     
Peter Gossner <gossner at internode.on.net>
Peter Gossner <pete.gossner at gmail.com>
https://linuxcounter.net/user/224507.html



More information about the Pkg-exim4-users mailing list