[Pkg-exim4-users] Getting 550 relay not permitted, I tried all sorts of things still getting error
gossner at internode.on.net
Fri Mar 29 23:04:15 UTC 2013
On Fri, 29 Mar 2013 16:29:51 -0600
Nate Homier scribed:
> On 03/29/2013 03:19 PM, Peter Gossner wrote:
> > 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. [18.104.22.168].
> >>> 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
> >> 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
> > 22.214.171.124/32
> > dc_relay_nets='172.16.0.0/16; 10.0.0.0/8; 192.168.0.0/24;
> > 126.96.36.199/32 '
> > (one line)
> Mr. Peter Gossner, your suggestion about the dc_relay_nets was right
> on. I can now receive email for my user account with a caveat, that is
> email addresses other than that single user account are treated as 550
> Unrouteable address. However I have one email account that is
> user at universal-mechanism.org and mail addressed to that account works
> just fine. But I have many other addresses (alias) in the form of
> user0@, user1@, user2@ etc and they should all go to the same mailbox
> I.E. user at domain. 1 mailbox or user account if you will and many
> aliases that need to go to that single user account. Should I create
> a catchall address and rely on filtering or is there some way to put
> the aliases in a file somewhere and have EXIM read it. What's your
> suggestion. SNIP
The /etc/aliases file is the default place
Given /etc/mailname is set up ...
Which is OK for moderate numbers of user.
but there are a number of other ways.
sources other files as well
Its a fairly vast area to cover in an email thread.
apt-get install exim4-doc :)
or if you have dwww on board:
I use virtuals for domain specific users
essentially you have an alias file named by domain stashed away in a
Try the alias file first. Virtuals are best after you have a solid
understanding of the default :)
to test :
exim4 -bt user1
exim4 -bt user2 at the.required.domain
> Pkg-exim4-users mailing list
> Pkg-exim4-users at lists.alioth.debian.org
Evolution is a tightly coupled dance, with life and the material
environment as partners. From the dance emerges the entity Gaia.
-- James Lovelock
Peter Gossner <gossner at internode.on.net>
Peter Gossner <pete.gossner at gmail.com>
More information about the Pkg-exim4-users