sendmail local-host-names questions
Sorry if this is a bit off topic; couldn't find an answer on the net anywhere and sendmail.org seems to be non-functional unless you're a commercial customer; or at least that's the way it looks to me, as it's redirected to sendmail.com and their Ask the Experts page has no way to ask anybody anything :-) Anyhoo... I was setting up a virtual domain and mistakenly set my local-host-names file to have trailing dots after the domain and host names. This caused mail sent to the domain(s) to be bounced with the message: 554 5.0.0 MX list for dreamchaser.org. points back to nightmare.dreamchase r.org 554 5.3.5 Local configuration error Which caused me to tear my hair out (what little I have left) trying to fix a non-existent DNS configuration error. The maillog shows a similar message: Aug 28 23:10:05 nightmare sm-mta[50394]: q7T59w8M050394: to=a...@dreamchaser.org, delay=00:00:07, xdelay=00:00:00, mailer=esmtp, pri=62332, relay=dreamchaser.org., dsn=5.3.5, stat=Local configuration error Aug 28 23:10:05 nightmare sm-mta[50394]: q7T59w8M050394: q7T59w8N050394: return to sender: Local configuration error Aug 28 23:10:05 nightmare sm-mta[50394]: q7T59w8N050394: to=a...@dreamchaser.org, delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=33356, relay=dreamchaser.org., dsn=5.3.5, stat=Local configuration error Aug 28 23:10:05 nightmare sm-mta[50394]: q7T59w8M050394: Losing ./qfq7T59w8M050394: savemail panic Aug 28 23:10:05 nightmare sm-mta[50394]: q7T59w8M050394: SYSERR(root): savemail: cannot save rejected email anywhere Can anyone explain what's going on or point me to a better place to ask? It's now fixed but I'd like to understand why sendmail doesn't like a domain specified with a trailing dot, since I thought that was how one specified a fully qualified domain name. Also... I can't find anything about how to put a comment in the local-host-names file. I took a guess and used # as in the .mc file, and it doesn't seem to cause errors; but neither does ';' or '%' so I'm guessing the lines are just being skipped because they don't parse properly. I'd like to know whether comments are allowed or not; and if so, what the proper syntax is. Thanks for any hints, Gary ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: sendmail local-host-names questions
[ Gary Aitken wrote on Wed 29.Aug'12 at 1:45:19 -0600 ] Also... I can't find anything about how to put a comment in the local-host-names file. I took a guess and used # as in the .mc file, and it doesn't seem to cause errors; but neither does ';' or '%' so I'm guessing the lines are just being skipped because they don't parse properly. I'd like to know whether comments are allowed or not; and if so, what the proper syntax is. Thanks for any hints, Gary Hi Gary, you don't put dots at the end of the domain names in that file. In mine, i've just got: kontrol.kode5.net # the hostname of the machine; and kode5.net # my domain I haven't put those comments in it either, just the host and domain information. The Sendmail site does have quite a bit of information actually about configuration. I was setting up Sendmail on my machine just a week ago in fact and got most of the info from that site. Also the FreeBSD handbook. I also run a local DNS server (BIND/named) which I recommend you look into with a view to setting it up. It does make a difference, especially if you have several machines on your LAN. It's not as hard as it first appears. In fact the default installation is already configured for a local caching nameserver. I have added my own zone files as well which is all explained on the Handbook. Jamie ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: sendmail local-host-names questions
Date: Wed, 29 Aug 2012 01:45:19 -0600 From: Gary Aitken free...@dreamchaser.org Subject: sendmail local-host-names questions Also... I can't find anything about how to put a comment in the local-host-names file. I took a guess and used # as in the .mc file, and it doesn't seem to cause errors; but neither does ';' or '%' so I'm guessing the lines are just being skipped because they don't parse properly. I'd like to know whether comments are allowed or not; and if so, what the proper syntax is. I don't know, off-hand, where it's documented, but '#' is what you want to use. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: sendmail local-host-names questions
On Wed, 29 Aug 2012, Gary Aitken wrote: Can anyone explain what's going on or point me to a better place to ask? It's now fixed but I'd like to understand why sendmail doesn't like a domain specified with a trailing dot, since I thought that was how one specified a fully qualified domain name. The definitive source is /usr/src/contrib/sendmail/cf/README Also... I can't find anything about how to put a comment in the local-host-names file. I took a guess and used # as in the .mc file, and it doesn't seem to cause errors; but neither does ';' or '%' so I'm guessing the lines are just being skipped because they don't parse properly. I'd like to know whether comments are allowed or not; and if so, what the proper syntax is. I am not sure which table you are commenting but I think some of the tables like virtusertable do not allow comments at the end of the line. Lines starting with a '#' are fine in any table. Again the README is you source ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org