On Tuesday 02 December 2003 10:44, [EMAIL PROTECTED] wrote: > If courier decides a message is from a bad domain (error 517), so it�s > because the domain is not in dns. I understood that. > > I want to know, on which criteria does courier decide about this? > > Which part of the sent mail is does courier reference for the > dns-lookup?
Courier does an MX lookup on the domain of recipient's email address. This is the "RCPT TO:" command assuming the message came in through smtp. It may or may not correspond to anything in the headers. If you BCC an address then that address never shows up in the headers. Or if you use sendmail and submit a message with an address on the command line then the message is sent to that address regardless of any headers. So if I send you a message then courier does an MX lookup on the domain part of your email address. You can see what courier will get for this value by running /usr/lib/courier/bin/testmxlookup <domain> [EMAIL PROTECTED] courier]$ testmxlookup gmx.de Domain gmx.de: Relay: mx0.gmx.net, Priority: 10, Address: ::ffff:213.165.64.100 So now courier will connect to "213.165.64.100" and send the message to that mailserver. If your DNS can't resolve the email domain of the message's recipient then courier gives you the error you listed. You can get around this by adding an entry to /etc/courier/esmtproutes. So if you put in gmx.de 213.165.64.100 then courier will NOT do any dns lookups but just send all mail that is addresses to anyone "@gmx.de" to this ip address. Does that answer your question? Jeff Jansen IVB ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
