- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Not able to send the emails from some servers
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
тАО12-18-2006 06:23 PM
тАО12-18-2006 06:23 PM
I am executing one script which will send the output to our email id.
so I am using sendmail on some servers and it is working fine.
but from some servers, I am not getting the test mail.
#/usr/sbin/sendmail -v praveen.singh@hp.com
This is a test mail.
.
# tail -5 /var/log/maillog
Dec 19 01:16:07 server1 sendmail[8296]: kAJ7Fvs1008296: from=root, size=21, class=0, nrcpts=1, msgid=<200612180715.kAJ7Fvs1008196@server1.hp.com>, relay=root@localhost
Dec 19 01:16:07 server1 sendmail[8350]: kAJ7G7wo008350: from=
Dec 19 01:16:07 server1 sendmail[8296]: kAJ7Fvs1008296: to=praveen.singh@hp.com, ctladdr=root (0/0), delay=00:00:10, xdelay=00:00:00, mailer=relay, pri=30021, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (kAJ7G7wo008350 Message accepted for delivery)
Please suggest, why I am not getting mail from this server - server1
while I am getting the mails from server2 using the same command
Thanks
Solved! Go to Solution.
- Tags:
- sendmail
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-18-2006 06:38 PM
тАО12-18-2006 06:38 PM
Re: Not able to send the emails from some servers
I am assuming your Mail Delivery Agent is not the local host.
In the sendmail.cf file look for the DS macro and make sure it is set in the form DSmymail.server.com
Also make sure that the local server can resolve an MX record for the final destination server.
Any changes to the sendmail.cf file will require sendmail to be restarted.
Regards
Andrew Y
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-18-2006 06:58 PM
тАО12-18-2006 06:58 PM
Re: Not able to send the emails from some servers
Please let me know which file should i check?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-18-2006 07:06 PM
тАО12-18-2006 07:06 PM
SolutionWith sendmail it makes no difference as the config files are in the same place.
The file is /etc/mail/sendmail.cf
Only difference is where the maillog is kept.
On the server you can run "host -t mx hp.com" will tell you whether your mail can be delivered externally.
Regards
Andrew Y
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-18-2006 07:38 PM
тАО12-18-2006 07:38 PM
Re: Not able to send the emails from some servers
# "Smart" relay host (may be null)
DSmail_server.company.com
is same for both the servers (server1 & server2)
I restarted the send mail,
even i copied server2:/etc/mail/sendmail.cf & sendmail.mc file to server1 and then restarted the sendmail server
but still i am not getting the mails
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-18-2006 08:06 PM
тАО12-18-2006 08:06 PM
Re: Not able to send the emails from some servers
What was the result of that host -t mx test?
The other option is to create a file /etc/mail/service.switch with contents
aliases files
hosts files
and then comment out the
O ServiceSwitchFile=/etc/mail/service.switch
entry in /etc/mail/sendmail.cf
Regards
Andrew Y
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-18-2006 08:40 PM
тАО12-18-2006 08:40 PM
Re: Not able to send the emails from some servers
I needed to edit the /etc/fstab file...
but on another server, it was showing "DSN: User unknown"
Dec 19 03:35:30 server1 sendmail[13192]: kAJ9ZQwv013192: from=root, size=33, class=0, nrcpts=1, msgid=<200612190935.kAJ9ZQwv013192@server1.hp.com>, relay=root@localhost
Dec 19 03:35:30 server1 sendmail[13193]: kAJ9ZUbm013193: from=
Dec 19 03:35:30 server1 sendmail[13192]: kAJ9ZQwv013192: to=praveen.singh@hp.com, ctladdr=root (0/0), delay=00:00:04, xdelay=00:00:00, mailer=relay, pri=30033, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (kAJ9ZUbm013193 Message accepted for delivery)
Dec 19 03:35:30 server1 sendmail[13195]: kAJ9ZUbm013193: to=
Dec 19 03:35:30 server1 sendmail[13195]: kAJ9ZUbm013193: kAJ9ZUbm013195: DSN: User unknown
Dec 19 03:35:30 server1 sendmail[13195]: kAJ9ZUbm013195: to=
I am not getting any mail, Please suggest
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-18-2006 09:48 PM
тАО12-18-2006 09:48 PM
Re: Not able to send the emails from some servers
I think the problem is now with the server receiving the emails (turkey.hp.com?). Either it thinks it is the final delivery point for that message when it should be passing it on and/or it cannot find that user.
Regards
Andrew Y
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-18-2006 10:00 PM
тАО12-18-2006 10:00 PM
Re: Not able to send the emails from some servers
1. server1-- my control
2. turkey.hp.com---another team control
so now do i need to make some changes in server1 or should i follow up with another team for the issue in turkey.hp.com????????
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-18-2006 10:02 PM
тАО12-18-2006 10:02 PM
Re: Not able to send the emails from some servers
I would approach the other team for access at least to their logs as I think the rejection is coming from their server.
Regards
Andrew Y