-bash-3.00#
-bash-3.00# grep "^host" /etc/nsswitch.conf
hosts: files dns
-bash-3.00#
-bash-3.00#
-bash-3.00#
-bash-3.00# cat /etc/nsswitch.conf
#
# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
#
# /etc/nsswitch.dns:
#
# An example file that could be copied over to /etc/nsswitch.conf; it uses
# DNS for hosts lookups, otherwise it does not use any other naming service.
#
# "hosts:" and "services:" in this file are used only if the
# /etc/netconfig file has a "-" for nametoaddr_libs of "inet" transports.
# DNS service expects that an instance of svc:/network/dns/client be
# enabled and online.
passwd: files
group: files
# You must also set up the /etc/resolv.conf file for DNS name
# server lookup. See resolv.conf(4).
hosts: files dns
# Note that IPv4 addresses are searched for in all of the ipnodes databases
# before searching the hosts databases.
ipnodes: files dns
networks: files
protocols: files
rpc: files
ethers: files
netmasks: files
bootparams: files
publickey: files
# At present there isn't a 'files' backend for netgroup; the system will
# figure it out pretty quickly, and won't use netgroups at all.
netgroup: files
automount: files
aliases: files
services: files
printers: user files
auth_attr: files
prof_attr: files
project: files
tnrhtp: files
tnrhdb: files
-bash-3.00#
-bash-3.00#
I was planing to ask about nscd after you answer my first question but jim mcnamara was faster
I was also thinking that it should first read hosts file. It is little strange behaviour for me.
Add hostname without domain to /etc/hosts
Code:
10.10.1.86 mail mail.azerfon.az mailhost
I'm wondering could it resolve mailhost's IP if you would comment out dns in nsswitch.conf. You can try this if it is not very important production server.
But as we can see the problem is also with your DNS server, which response with old IP address. You must change mailhost's IP on your DNS.
I tried send mail and can see that requests again going through 10.13.44.16 (which is not mentioned anywhere)
Its not production server, so I can test things there, but I have no idea what ca be the reason
GP81, I didn't get what you meant under:
Quote:
I'm wondering could it resolve mailhost's IP if you would comment out dns in nsswitch.conf. You can try this if it is not very important production server.
Can u pls let me know which line I should comment?
Here is my nsswitch.conf file:
Code:
-bash-3.00# grep "^host" /etc/nsswitch.conf
hosts: files dns
-bash-3.00#
-bash-3.00#
-bash-3.00#
-bash-3.00# cat /etc/nsswitch.conf
#
# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
#
# /etc/nsswitch.dns:
#
# An example file that could be copied over to /etc/nsswitch.conf; it uses
# DNS for hosts lookups, otherwise it does not use any other naming service.
#
# "hosts:" and "services:" in this file are used only if the
# /etc/netconfig file has a "-" for nametoaddr_libs of "inet" transports.
# DNS service expects that an instance of svc:/network/dns/client be
# enabled and online.
passwd: files
group: files
# You must also set up the /etc/resolv.conf file for DNS name
# server lookup. See resolv.conf(4).
hosts: files dns
# Note that IPv4 addresses are searched for in all of the ipnodes databases
# before searching the hosts databases.
ipnodes: files dns
networks: files
protocols: files
rpc: files
ethers: files
netmasks: files
bootparams: files
publickey: files
# At present there isn't a 'files' backend for netgroup; the system will
# figure it out pretty quickly, and won't use netgroups at all.
netgroup: files
automount: files
aliases: files
services: files
printers: user files
auth_attr: files
prof_attr: files
project: files
tnrhtp: files
tnrhdb: files
-bash-3.00#
---------- Post updated at 11:32 AM ---------- Previous update was at 10:08 AM ----------
Hi again,
I found where the problem was.
Problem was in submit.cf file:
Code:
D{MTAHost}[mail.azerfon.az]
after modifing this line and restarting mail services, problem has been solved.
Hello, hopefully somebody can give me a clue on how to do this.
Right now I have emails coming from company1-alert@company1.com to distribution@ourcompany.com.
I want to set up something in Postfix so that if the email is going to distribution@ourcompany.com, the From: address is... (2 Replies)
Hi ,
I am using windows xp as my web server and domain hosting with godaddy.com
My issue is , i want to create mailserver in linux for my website
is it possible? (1 Reply)
Hi All,
Can you please help me in configuring mail server on Solaris 10?
Will appreciate if I can get some link which can explain the steps
Thanks (3 Replies)
First of all an appeal on all specialists to be understandfull with me, newbie. I have a RaQ 550 that I have to admin bymyself. I have executed mailq and found out that there are mails in the queu that I did not sent. Is someone exploiting my server? Here is an example of the report:
... (1 Reply)
I want change my IP address and hostname in my machine by use the console. Can any one tell me how can I execute that by command ?
Thanks & Regards (1 Reply)
I have installed in the server a quad ethernet adapter, I'm using two interfaces with two different IP networks, both interfaces are connected to a switch, the switch report that is receiving the same MAC address in both ports so must of the times I have connectivity problems.
Any idea to change... (1 Reply)
I have a mail server that I have just finished setting up and now the problem is telneting to it from a window desktop which is on the same network. Ive edited etc/mail/sendmail.mc by removing the loopback address with my desktop IP. then I restarted my service mail:
shutting down sendmail: ... (1 Reply)
I seem to be having some troubles with my mailserver. Sendmail is working properly as far as I can tell, and so is IMAP and POP3, but whenever I try to log in via IMAP or POP3 I get an incorrect password error even though Iam using the proper password. Ive even tried telnet which yields this:
$... (2 Replies)
hi
I want to setup pop3 server, so i can accept incoming mail with my own domainname for example stormpie@my-domain.org
the unix server is in a windows2000 network, behind a win2000 router not in domain, how can i do this?? plz help me
greetz (1 Reply)
Hello,
I want to setup a mailserver for an company having 25 users presentlly. Basically i am setting up first time. I want to know what are the minimum requirement for a mail server ie
1. Whether we require a domain name ( we can have our own domain name?)
2. whether we require a legal IP... (1 Reply)