Mark Constable writes:

I thought I understood how this works but apparently not. I want all
mail to a virtually hosted domain to go to a single acount. I'm trying
out this...

~ grep -r qtmoz.org /etc/courier | sort
/etc/courier/aliases/system:@qtmoz.org: [email protected]  <---
/etc/courier/esmtpacceptmailfor.dir/default:qtmoz.org
/etc/courier/hosteddomains/default:qtmoz.org
Binary file /etc/courier/aliases.dat matches
Binary file /etc/courier/esmtpacceptmailfor.dat matches
Binary file /etc/courier/hosteddomains.dat matches

but I'm still getting this error below...

Jul 17 16:40:10 smtp courieresmtp: id=0001815B.4E2283C4.00006E91,
 from=<[email protected]>,addr=<[email protected][email protected]>:
 configuration error: mail loops back to myself (MX problem).

I'm not sure where the "loops back to myself" comes from or the
[email protected][email protected] construction?

Virtual @domain addresses get written using 'me' for the domain. If you do not have 'me', the results of gethostname get used instead. That's where smtp.renta.net comes from. From the makealiases page:

 The following special syntax implements a virtual domain. A virtual
 domain redirects all mail for an entire domain to one user:

     @domain: user

 This special entry results in any recipient address of the form
 foo@domain to be rewritten as user-foo@me, where me is the hostname of
 the machine, which we expect to be a local domain.

In your case [email protected], me=smtp.renta.net, domain=qtmoz.org, and foo=markc, so

user-foo@me

becomes

[email protected][email protected]


~ cat /etc/courier/me
smtp.renta.net

~ cat /etc/courier/locals
localhost

Attachment: pgpg3SZLRbULW.pgp
Description: PGP signature

------------------------------------------------------------------------------
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on "Lean Startup 
Secrets Revealed." This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to