Hello Sam,
The hosteddomains method complicates things unnecessarily. I believe you want to do the same thing as I:
In "esmtpacceptmailfor" and "locals", I have:
domain1.com .domain1.com domain2.com .domain2.com
Any mail sent to [EMAIL PROTECTED] or [EMAIL PROTECTED] gets delivered to the Unix mailbox for "user". This works fine for me.
I believe Courier ignores the MX record if the domain is listed in locals. Some things to check:
- Look in the logs to see how courier is trying to deliver your test message. Is it trying to deliver to one of the mail.demon.net relays, perhaps due to some old instructions in "esmtproutes"? Is courier rewriting the address based on "defaultdomain" or "me"?
- Did you restart courier after modifying the "locals" file?
- Do you have an FQDN in the "me" file? I have "smtp.domain1.com" in mine. You must run makealiases if you change "me" (or the hostname in the absence of a "me" file), otherwise all mail will bounce.
Cheers,
William
Samuel Penn wrote:
Well, using locals causes a different error:
I have the following in locals: glendale.org.uk .glendale.org.uk
When I send an email to the glendale.org.uk domain, I get the following error:
configuration error: mail loops back to myself (MX problem).
Trying testmxlookup gives the following output btw:
wotan courier # testmxlookup glendale.org.uk
Domain glendale.org.uk:
Relay: mailgate.glendale.org.uk, Priority: 50, Address: 80.176.97.122 [ LOCAL ]
Relay: relay-2.mail.demon.net, Priority: 100, Address: 194.217.242.209
Relay: relay-1.mail.demon.net, Priority: 100, Address: 194.217.242.208
(mailgate.glendale.org.uk is my firewall, which redirects port 25 to my mailserver which is otherwise not accessable from the outside).
If I use hosteddomains instead of locals, then I get an unknown user error. This possibly looks like the most promising way forward however. I'm guessing that I could setup USERDB to create users for this domain. However, I just want anything to user X to get put into the UNIX mailbox for user X, regardless of the domain it is sent to. This works fine for the default domain (bifrost.demon.co.uk), but is there a way to tell courier to do the same for all domains, so I don't have to set up a virtual account for each UNIX user?
Alternatively, is there a way to get Courier to ignore the MX record and just accept delivery? I'm guessing putting something in esmtproutes would just cause another infinite loop, but that's the only place I've been able to find which ignores MX records.
------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ courier-users mailing list [email protected] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
