From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96076327921095.tru64-unix-managers.marc@archive.invalid> From: Dicky Shum Date: Sat, 06 Jan 1996 09:04:12 +0000 To: tru64-unix-managers Subject: Mail cannot be sent outside (3) X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96076327921095 Hi Manager, I have tried to re-config our server but we cannot send mail outside. The following is the logging of 'bindsetup' and 'mailsetup'. Also, the hosts.db is attached for your reference. I would like to thank those who send mail to help to slove this problem before. However, I still have this problem. If possible, you can send your setup log and hosts.db to me for my reference. Thank you very much! Dicky **************************************************************** * * * bindsetup logging * * * **************************************************************** root:/etc/namedb> root:/etc/namedb> /usr/sbin/bindsetup The bindsetup command allows you to add, modify, or remove a configuration of the Berkeley Internet Name Domain (BIND) Server on your system. BIND is a network naming service that enables servers to name resources or objects and share information with other objects on the network. The bindsetup command takes you through the configuration process to set the default BIND domain name of your system, determine the type of server or client, and construct the BIND database files for this BIND domain. Default answers are shown in square brackets ([]). To use a default answer, press the RETURN key. [ Press the RETURN key to continue ]: Berkeley Internet Name Domain (BIND) Action Menu for Configuration Add => a Modify => m Remove => r Exit => e Enter your choice [a]: a The BIND environment for this host has already been installed. Would you like to change the current BIND configuration? Enter "y" or "n" [no default]: y You must know the default BIND domain name for your site in order to continue the configuration process. The name dec.com is an example BIND domain name. If you do not know the name, contact your site administrator. Enter "e" to EXIT or "c" to CONTINUE [no default] ? c Enter the default BIND domain name [china-motion.com]: china-motion.com Berkeley Internet Name Domain (BIND) Configuration Menu for domain "china-motion.com" Primary Server => p Secondary Server => s Caching Server => a Slave Server => l Client => c Exit => e Enter your choice [c]: p Bindsetup has found the following files in /etc/namedb/src: hosts Would you like bindsetup to convert the host file to the BIND database format? If you answer "y", the host file in /etc/namedb/src will be used to create a bind database in /etc/namedb. If you answer "n", the BIND database will not be created, but all other configuration files will be created. (y/n) ? y Updating files: /etc/resolv.conf /etc/rc.config /etc/namedb/named.boot /etc/namedb/hosts.db /etc/namedb/hosts.rev /etc/namedb/named.local /etc/namedb/named.ca Would you like bindsetup to start the BIND daemon automatically [y]? Internet name service stopped Internet name service started To resolve hostname queries, your system can use the local /etc/hosts file, BIND or NIS. The hosts line of the /etc/svc.conf file maintains a list of these services in the order in which they should be queried for host information. It is recommended that your system check the local /etc/hosts file first before querying BIND for host information. Service Order Selection Menu 1) Query /etc/hosts before querying BIND for host information. 2) Query BIND first for host information. 3) Run svcsetup to customize service order selection. Enter your choice [1]: 1 Updating files: /etc/svc.conf ***** BINDSETUP COMPLETE ***** **************************************************************** * * * mailsetup logging * * * **************************************************************** root:/var/adm/sendmail> root:/var/adm/sendmail> mailsetup MAIL SETUP Mailsetup configures the sendmail(8) utility. This allows users on your local machine to send and/or receive mail in a networked environment. Mailsetup will prompt you for information. Some of these questions have a default answer contained within square brackets. If you simply press , the default answer is assumed. Continue ([y]/n) ? y TYPE OF MAIL SETUP You may perform a quick setup, or an advanced setup of mail. A quick setup is ideal for workstations that wish to have all of their mail handled by a centralized machine. Quick setup: - Forwards all mail to a relay machine. This implies that users can create and send mail, but cannot read it on the local machine. - Formats the mail so that it looks as it was created on the relay. - Uses TCP/IP (SMTP) to send the mail to the relay. - Since no mail is delivered locally, to read your mail you must login to another host. Usually this is a central time share machine. Do you wish to do a quick setup ([y]/n) ? n HOST DEFINITION The unqualified hostname is the name of this machine without the domain extension. For example: a machine called `foo.dec.com' would have an unqualified name of `foo'. Enter the unqualified hostname for this machine [ cmhk ]: cmhk [ cmhk ] is this correct ([y]/n) ? y The m4 configuration file /var/adm/sendmail/cmhk.m4 has been found. Do you wish to use this file for default values ([y]/n) ? n DOMAIN DEFINITION If your machine is part of a registered domain, that name should be defined here. Some example domains are ZK3.DEC.COM, MIT.EDU, CSS.GOV and CS.INDIANA.EDU. If you do not have a domain, enter `LOCAL' here. Enter the BIND domain name for this machine [ china-motion.com]: china-motion.com [ china-motion.com ] is this correct ([y]/n) ? y TOP LEVEL DOMAIN DEFINITION A top level domain is needed if your organization uses any other protocols besides TCP/IP to deliver mail (e.g. DECnet or UUCP). The top domain is used to encapsulate mail addresses for these non-IP protocols before sending mail out over the Internet. An example of a top domain is `DEC.COM'. `DEC.COM' is the top domain for the `ZK3.DEC.COM' domain. Enter the Top domain name for this machine [ china-motion.com ]: com [ com ] is this correct ([y]/n) ? y ADDING A GENERAL RELAY Most sites should define a general relay. If your host cannot resolve how to deliver a mail message, the mail is forwarded to this general relay for processing. Do you wish to add a general purpose relay ([y]/n) ? y Use the fully qualified name if the relay is a TCP/IP node. Enter the general purpose relay [ ]: cmhk.china-motion.com [ cmhk.china-motion.com ] is this correct ([y]/n) ? y TRANSPORT FOR GENERAL RELAY What protocol do you wish to use when you forward mail to your general relay? If it is a TCP/IP node, enter `tcp'; if you send mail to the relay via UUCP, enter `uucp'. If you use any other protocol besides TCP/IP to send mail to the general relay, you must configure and setup that protocol. Enter the transport used to send to relay (tcp or uucp) Enter the transport [ tcp ]: tcp [ tcp ] is this correct ([y]/n) ? y SETUP OF SMTP RELAY FORWARDING POLICY Many sites cannot send mail directly throughout the Internet. Typically, these sites can directly reach any host within their top-level-domain (e.g. any mail address ending in `com'), but to send mail outside of their local area, they use a relay to forward their mail. This section allows you to select which messages to forward to your general relay. It is suggested that you send as much mail directly to its final destination as you can, and send all the rest to your relay (cmhk.china-motion.com). You can setup your SMTP mail relay forwarding in one of the following ways: 1) Send all mail outside of top domain (com) to relay. 2) Send all mail outside of local domain (china-motion.com) to relay. 3) Send all mail not local to this machine (cmhk) to relay. Enter the relay policy [ 1 ]: 1 [ 1 ] is this correct ([y]/n) ? y MAIL HUB/CENTRAL MAIL SERVER A Mail Hub is a machine that can handle mail sent to `user@domain'. It has aliases for everyone in your local domain. When it receives mail addressed to `user@china-motion.com', it looks up `user' in the alias file and forwards the mail to its final destination. Note: if you are planning mail for your site, it is recommended that you configure at least one host as a Mail Hub and set up BIND MX records. The MX records will direct mail sent to `@china-motion.com' to your Mail Hub. Is cmhk a Mail Hub ([y]/n) ? y MAIL CLUSTER A Mail Cluster creates the illusion that everyone in your local domain exists on a single machine. This means that instead of sending mail to `user@host.china-motion.com', you can send it to `user', regardless of which machine that their mailbox resides on. To create a Mail Cluster requires *all* machines in your local domain (china-motion.com) share a common alias file identifying every user in your domain. This is usually done by YP, BIND, or by copying an alias file to all the hosts in your domain. Is cmhk part of a Mail Cluster (y/[n]) ? n TCP RETURN ADDRESS FORMAT When mail leaves your local domain (china-motion.com), your return address needs to be qualified. You can qualify it in one of the following ways: 1) sender@cmhk.china-motion.com - qualify with your machine name. 2) sender@cmhk.china-motion.com - qualify with your relay's name. 3) sender@china-motion.com - qualify with only your domain name. Option #3 (`china-motion.com') is recommended. Enter the tcp address format [ 3 ]: 3 [ 3 ] is this correct ([y]/n) ? y LOCAL USERS AND ALIASES Some user names, such as `root', `daemon', and `system', are common to all machines. To avoid confusion any outgoing mail sent by these local users are always qualified with your machine's name, e.g. "From: root@cmhk". The following is the list of local users: daemon mailer-daemon news nobody pop postmaster rdist root uucp Do you wish to modify this local users/aliases list (y/[n]) ? n Do you want aliases in /var/adm/sendmail/aliases to be considered local? Aliases considered local ([y]/n) ? y UUCP SECTION This section sets up your machine for UUCP mail. If you use UUCP at your site or need to setup a UUCP relay answer `yes' to the the following question. Do you wish to recognize UUCP style addresses ([y]/n) ? n DECnet SECTION This section sets up your machine for DECnet mail. If you use DECnet in your organization, or need to deal with DECnet style addresses answer `yes' to the following question. Do you wish to recognize DECnet style addresses ([y]/n) ? n UMC SECTION This section sets up your machine for UMC mail. If you use UMC at your site or need to deal with UMC style addresses answer `yes' to the following question. Do you wish to recognize UMC style addresses ([y]/n) ? n NICKNAMES FOR THIS MACHINE Are there any other names that are used to send mail to this machine? For instance, if you have changed this host's name (or plan to in the near future), a nickname allows sendmail to recognize both names, "cmhk" and the nickname, as synonyms for this machine. Another good use for nicknames occurs when a host receives mail from multiple different networks. A host's name may not be the same on all of the different networks. Again, nicknames allows sendmail to recognize these different names as synonyms for this host. Do you wish to enter nicknames for this machine (y/[n]) ? n MAILSETUP CONFIGURATION COMPLETE Do you wish to complete the installation? If you answer `yes', the new configuration will replace `sendmail.cf', and sendmail will be restarted. Complete the setup ([y]/n) ? y Restarting sendmail... 9 aliases, longest (ferriewu) 23 bytes, 161 bytes total SMTP Mail Service restarted root:/var/adm/sendmail> root:/var/adm/sendmail> root:/var/adm/sendmail> kill -hup 265 root:/var/adm/sendmail> root:/var/adm/sendmail> root:/var/adm/sendmail> exit /usr/users/dicky> nslookup -q=mx china-motion.com Server: localhost Address: 127.0.0.1 china-motion.com preference = 50, mail exchanger = hk.super.net china-motion.com preference = 10, mail exchanger = cmhk.china-motion.com china-motion.com nameserver = cmhk.china-motion.com hk.super.net inet address = 202.14.67.4 cmhk.china-motion.com inet address = 202.64.196.1 /usr/users/dicky> /usr/users/dicky> /usr/users/dicky> **************************************************************** * * * /etc/namedb/hosts.db * * * **************************************************************** root:/> cat /etc/namedb/hosts.db ; ; Data file of hostnames in this zone. ; @ IN SOA cmhk.china-motion.com. postmaster.cmhk.china-motion.com. ( 24 ; Serial 300 ; Refresh - 5 minutes 60 ; Retry - 1 minute 1209600 ; Expire - 2 weeks 43200 ) ; Minimum - 12 hours IN NS cmhk.china-motion.com. ; Added by Dicky 960104 china-motion.com. IN MX 10 cmhk.china-motion.com. IN MX 50 hk.super.net. ; ; %HOSTS_START% - entries added by /etc/namedb/bin/make_hosts ; ; Description: The hosts file associates hostnames with IP addresses. ; ; Syntax: nnn.nnn.nnn.nnn hostname.domain.name [alias_1,...,alias_n] [#comments] ; ; nnn.nnn.nnn.nnn the IP address of the host ; hostname.domain.name the fully qualified hostname, including the domainname ; alias_n other names or abbreviations for this host ; #comments text following the comment character (#) is ignored ; localhost IN A 127.0.0.1 "hosts-0" IN CNAME localhost cmhk IN A 202.64.196.1 "hosts-1" IN CNAME cmhk cisco-router IN A 202.64.196.12 "hosts-2" IN CNAME cisco-router ; Added by Dicky 960104 china-motion.com. IN A 202.64.196.1 "hosts-3" IN CNAME china-motion.com. www IN A 202.64.196.1 ; %HOSTS_END% root:/> root:/> --- End ---