- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: send mail issue on linux server
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
Discussions
Discussions
Forums
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
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
тАО02-02-2009 09:56 PM
тАО02-02-2009 09:56 PM
send mail issue on linux server
when i tried to execute the below command,i am getting the following error .
[peter@testserver /]$ mail -s "test" help@apc.com
Bad address
This command is working fine for root user.I am facing "bad address" problem for normal user only.
Regards,
Suresh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-03-2009 12:57 AM
тАО02-03-2009 12:57 AM
Re: send mail issue on linux server
The most likely cause is that the permissions of one of the DNS resolver configuration files are set so that only root can read it. In this case, the regular users fall back to factory defaults and get a non-working result. Root can read anything, so root gets the correct DNS settings.
Check the permissions of /etc/resolv.conf, /etc/nsswitch.conf and /etc/hosts: all three should be readable by everyone on the system, but writeable only by root, i.e. -rw-r--r--.
Also check the permissions of the / and /etc directories: "ls -ld / /etc". The directories should be owned by root, and permissions should be drwxr-xr-x, i.e. writeable by root only, but readable and accessible by everyone.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-03-2009 05:57 PM
тАО02-03-2009 05:57 PM
Re: send mail issue on linux server
Most corporate environments do not permit direct send of sendmail on port 25.
Normally you need to at least set the DS directive in sendmail.cf to get mail out the door.
But if the command is working for root and not other users, there may be a permissions problem on the binary.
Also please check /var/log/maillog
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-04-2009 07:09 PM
тАО02-04-2009 07:09 PM
Re: send mail issue on linux server
Permission ok in our setup.Still iam facing the same issue.
Pls give me any suggesion ....
Regards,
Suresh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-05-2009 02:23 AM
тАО02-05-2009 02:23 AM
Re: send mail issue on linux server
host -t mx apc.com
command from root and regular user and send us the output.
Rgds,
vitaly
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-18-2009 02:49 AM
тАО02-18-2009 02:49 AM
Re: send mail issue on linux server
Sorry for the delay.
Pls find the outputs ...
Root:
host -t mx apc.com
apc.com mail is handled by 10 mailrelay.apc.com.
Normal user:
host -t mx apc.com
apc.com mail is handled by 10 mailrelay.apc.com.
Regards,
Suresh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-18-2009 04:38 AM
тАО02-18-2009 04:38 AM
Re: send mail issue on linux server
and another thing - I believe you have something relevant into /var/log/maillog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-18-2009 07:20 PM
тАО02-18-2009 07:20 PM
Re: send mail issue on linux server
Pls find the outputs and log file.
Root:
[root@king log]# host mailrelay.apc.com
mailrelay.apc.com has address 10.1.22.5
Normal User:
[suresh@king log]# host mailrelay.apc.com
mailrelay.apc.com has address 10.1.22.5
Log file:
Feb 19 08:40:40 king sendmail[2697]: n1FC4mZl018921: to=root, delay=3+07:50:44
, xdelay=00:00:00, mailer=local, pri=6697082, dsn=4.0.0, stat=Deferred: local ma
iler (/usr/bin/procmail) exited with EX_TEMPFAIL
Feb 19 08:40:41 king sendmail[13306]: n1GM4nvR019595: forward /root/.forward:
Group writable directory
Feb 19 08:40:41 king sendmail[20729]: n1DM4lJw026995: forward /root/.forward.king: Group writable directory
Feb 19 08:40:41 king sendmail[24019]: n1IE4pt4009108: to=root, delay=03:02:57,
xdelay=00:00:00, mailer=local, pri=445612, dsn=4.0.0, stat=Deferred: local mail
er (/usr/bin/procmail) exited with EX_TEMPFAIL
Feb 19 08:40:42 king sendmail[29895]: n1DG4k23005059: forward /root/.forward:
Group writable directory
Feb 19 08:40:42 king sendmail[24426]: n1EF4lbO025972: forward /root/.forward.king: Group writable directory
Feb 19 08:40:43 king sendmail[31629]: n1F64mIv027755: forward /root/.forward:
Group writable directory
Feb 19 08:40:43 king sendmail[12958]: n1E14lGd005082: forward /root/.forward.king: Group writable directory
Feb 19 08:40:43 king sendmail[5148]: n1HF4oL4020445: forward /root/.forward: G
roup writable directory
Regards,
Suresh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-18-2009 11:49 PM
тАО02-18-2009 11:49 PM
Re: send mail issue on linux server
I don't see something relevant for your problem, but I suggest to fix /root ornership anyway - it should be
chown 700 /root