- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: forward mail.
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2001 02:17 PM
12-12-2001 02:17 PM
forward mail.
Now everyone wants to know why they aren't getting any mail.
I have checked their file - /usr/mail
and put their e-mail address into their file-
- Foward to user@address
I also want root to foward all of it's mail to my computer so I went to /home/root and vi the .forward file and put my e-mail into the file.
When I send a mail message to root, it doesn't show up at my computer. What could I be doing wrong?
Thanks for any help you can give.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2001 02:25 PM
12-12-2001 02:25 PM
Re: forward mail.
Make sure that none of the directories in
the filesystem have directory permissions
of 777. They must bet set to 755 or higher.
e.g.
HTH
-Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2001 02:27 PM
12-12-2001 02:27 PM
Re: forward mail.
make sure sendmail is running
check /var/adm/syslog/mail.log file for errors
Can you send mail out from the command line???
...jcd...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2001 02:43 PM
12-12-2001 02:43 PM
Re: forward mail.
Check /var/adm/syslog/mail.log for possible problem.
If sendmail is not running start it by /sbin/init.d/sendmail start
Make sure that home directory for root is /home/root
If sendmail is running and configured correctly then .forward file should forward all the mails, but mail.log give you more clear picture about what's happening..
-Goodluck,
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2001 02:44 PM
12-12-2001 02:44 PM
Re: forward mail.
Dec 12 12:56:06 diomede sendmail[2134]: MAA02134: MAB02134: return to sender: Ho
st unknown (Name server: co.fairbanks.ak.us: host not found)
Dec 12 12:56:06 diomede sendmail[2134]: MAB02134: to=ssmith@co.fairbanks.ak.us,j
goldsmith@co.fairbanks.ak.us, delay=00:00:00, xdelay=00:00:00, mailer=smtp, rela
y=co.fairbanks.ak.us, stat=Host unknown (Name server: co.fairbanks.ak.us: host n
ot found)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2001 02:53 PM
12-12-2001 02:53 PM
Re: forward mail.
'ps -ef | grep sendmail'
Then test to see if it can send mail to you using
/usr/sbin/sendmail -v your.email@your.domain
Test
Message
^D
This will give you a verbose output which will indicate where problems lie if there are any.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2001 02:58 PM
12-12-2001 02:58 PM
Re: forward mail.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2001 03:00 PM
12-12-2001 03:00 PM
Re: forward mail.
mail server from DNS. Suggest you
compare the DNS and sendmail setup to
another system.
/etc/resolv/conf
/etc/nsswitch.conf
/etc/mail/sendmail.cw
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2001 03:19 PM
12-12-2001 03:19 PM
Re: forward mail.
I checked my other server and it had this file but the file is empty.
The following is what I get when I try to send mail to myself:
root: /etc ==> /usr/sbin/sendmail -v jgoldsmith@co.fairbanks.ak.us
Test
Message
jgoldsmith@co.fairbanks.ak.us... Connecting to co.fairbanks.ak.us via smtp...
jgoldsmith@co.fairbanks.ak.us... Host unknown (Name server: co.fairbanks.ak.us: host not found)
root... WARNING: writable directory /home/root
root... WARNING: writable directory /home/root
/home/root/.forward: line 1: forwarding to ssmith@co.fairbanks.ak.us
/home/root/.forward: line 2: forwarding to jgoldsmith@co.fairbanks.ak.us
/home/root/dead.letter... cannot open: Permission denied
ssmith@co.fairbanks.ak.us,jgoldsmith@co.fairbanks.ak.us... Host unknown (Name server: co.fairbanks.
ak.us: host not found)
MAILER-DAEMON... aliased to root
root... WARNING: writable directory /home/root
root... WARNING: writable directory /home/root
/home/root/.forward: line 1: forwarding to ssmith@co.fairbanks.ak.us
/home/root/.forward: line 2: forwarding to jgoldsmith@co.fairbanks.ak.us
postmaster... aliased to root
root... WARNING: writable directory /home/root
root... WARNING: writable directory /home/root
/home/root/.forward: line 1: forwarding to ssmith@co.fairbanks.ak.us
/home/root/.forward: line 2: forwarding to jgoldsmith@co.fairbanks.ak.us
ssmith@co.fairbanks.ak.us,jgoldsmith@co.fairbanks.ak.us... Host unknown (Name server: co.fairbanks.
ak.us: host not found)
MAILER-DAEMON... aliased to root
root... WARNING: writable directory /home/root
root... WARNING: writable directory /home/root
/home/root/.forward: line 1: forwarding to ssmith@co.fairbanks.ak.us
/home/root/.forward: line 2: forwarding to jgoldsmith@co.fairbanks.ak.us
MAILER-DAEMON... Saved message in /var/tmp/dead.letter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2001 03:24 PM
12-12-2001 03:24 PM
Re: forward mail.
resolv/conf is a typo.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2001 03:47 PM
12-12-2001 03:47 PM
Re: forward mail.
I probably should look something like
domain co.fairbanks.ak.us
nameserver
nameserver
This i just a guess I hope it helps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2001 03:51 PM
12-12-2001 03:51 PM
Re: forward mail.
If your domain is fairbanks.ak.us it should read
domain fairbanks.ak.us
R.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2001 04:04 PM
12-12-2001 04:04 PM
Re: forward mail.
domain co.fairbanks.ak.us
nameserver 172.16.0.41
nameserver 209.165.150.166
Is this going to work for me?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2001 04:17 PM
12-12-2001 04:17 PM
Re: forward mail.
If is 'co.fairbanks.ak.us' and the IP addresses are those of your dns and
/etc/nsswitch.conf is configured to resolve using dns then you should be right to go.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2001 04:39 PM
12-12-2001 04:39 PM
Re: forward mail.
root: /etc ==> more /etc/nsswitch.conf
#
# /etc/nsswitch.files:
#
# An example file that could be copied over to /etc/nsswitch.conf; it
# does not use any name services.
#
hosts: files
services: files
protocols: files
networks: files
rpc: files
netgroup: files
automount: files
aliases: files
passwd: files
group: files
publickey: files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2001 04:53 PM
12-12-2001 04:53 PM
Re: forward mail.
This server seems not to have ever been set up for DNS .
To set this server up to look for hosts in its local /etc/hosts file and then your DNS change the line
hosts: files
to read
something like
hosts: files [NOTFOUND=continue TRYAGAIN=continue] dns
Make sure you are keeping copies of your old files.
R.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2001 04:55 PM
12-12-2001 04:55 PM
Re: forward mail.
Just as a matter of interest what is your local hostname?
R.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2001 07:37 AM
12-13-2001 07:37 AM
Re: forward mail.
Sorry....I had to leave out of the office. The problems is as stated above, DNS. You have a resolution issue. Modify your /etc/resolv.conf and /etc/nsswitch.conf as stated above. You should be good to go.
To test use nslookup.
Let us know!!!
...jcd...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2001 10:10 AM
12-13-2001 10:10 AM
Re: forward mail.
My host name is diomede.
I ran nslookup and it gave me the reply;
Using /etc/hosts on: diomede
so it looks like that is working.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2001 12:51 PM
12-13-2001 12:51 PM
Re: forward mail.
...jcd...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2001 04:33 PM
12-13-2001 04:33 PM
Re: forward mail.
Sorry about the slow response had to go home for the night. I have only just logged back in.
Can you clarify a point for me.
What is the hostname of the machine you are trying to forward mail to?
I am guessing at 'co' but I want to be sure that that is not part of your domain name?
As per the question above can you do a nslookup to this host.
R.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2001 04:51 PM
12-13-2001 04:51 PM
Re: forward mail.
My server name is diomede and the ip is 172.16.0.1
My domain name is co.fairbanks.ak.us
The addresses that I was given for DNS are 172.16.0.41 and 209.165.150.166
root: /etc ==> nslookup diomede
*** Can't find server name for address 172.16.0.41: Non-existent domain
*** Can't find server name for address 209.165.150.166: Timed out
*** Default servers are not available
Using /etc/hosts on: diomede
looking up FILES
Name: diomede
Address: 172.16.0.1
Aliases: diomede
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2001 08:53 PM
12-13-2001 08:53 PM
Re: forward mail.
Your forwarding system is 172.16.0.1 which is a private IP. Have your routers in your network been configured in the first place to route traffic from a private IP address (eg. NAT) to the public network?
Can you perform a ping to the mail server you are trying to forward your mail to? If ping is blocked at your firewall, try the following to troubleshoot:
# telnet mail_server_ip 25
See if it gets connected successfully.
Hope this helps. Regards.
Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com