HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
cancel
Showing results for 
Search instead for 
Did you mean: 

Checking relay mail server

 
SOLVED
Go to solution
C_V
Frequent Advisor

Checking relay mail server

Hi guys im not good in sendmail hope you can help me.

i tried to send a test email from one of our server echo "test email" | sendmail -v email address. and as i review the output it says that the email was successfully delivered the mail, so i guess there is no problem with the servers mail system.

however the test email was not received, is there a way to check if the relay server has sent the email.

i check the network connection between the server and relay server and its fine.

How i check if there is something wrong with the relay server?
13 REPLIES
Niceguy_2
Advisor
Solution

Re: Checking relay mail server

Hi,

Please check this output and look the mail queue is empty if it is emty only the mail will be get delivered correctly.

#sendmail -bp



Re: Checking relay mail server

Have you looked at /var/adm/syslog/mail.log?
WW186637
Occasional Visitor

Re: Checking relay mail server

1.Did you check the /var/adm/syslog/mail.log file.?
C_V
Frequent Advisor

Re: Checking relay mail server

sendmail -bp says that the mail queue is empty.


As per mail.log the mail was accepted for delivery.

Re: Checking relay mail server

>As per mail.log the mail was accepted for delivery.

Was that to the target machine or a relay? Can you look at that machine's mail.log to see what it did with the message?
C_V
Frequent Advisor

Re: Checking relay mail server

That was to the machine's mail.log
Bill Hassell
Honored Contributor

Re: Checking relay mail server

Try sending a test message with sendmail -v. This will provide some additional details:

sendmail -v bill@bill.com < /etc/profile

If the message is accepted by the server, then your HP-UX sendmail is configured OK. So you'll have to check the mail server to what is has done to your mail. It may be rejected internally and simply not returned back to your server.


Bill Hassell, sysadmin
C_V
Frequent Advisor

Re: Checking relay mail server

Yes the test mails i sent was accepted and was delivered, but how do i check the mail server to know if it really delivered the mail.

Re: Checking relay mail server

>but how do I check the mail server to know if it really delivered the mail.

Send it to yourself on that server?
Why would it get to the mail server and not be delivered?
C_V
Frequent Advisor

Re: Checking relay mail server

Thats what to know if the mail server really delivers the mail, is there a log on the server that can verify if the mail was really sent?
TTr
Honored Contributor

Re: Checking relay mail server

So far you told us that your-server sends email successfully to the mail-relay server. What kind of server/OS is the mail-relay server and do you have access to it? There could be further mail relay and delivery after the first mail-relay server. Who is the final receipient and at what server?

Re: Checking relay mail server

>is there a log on the server that can verify if the mail was really sent?

Are we talking about the mail server, where the mail ends up? Or a relay server, where it is forwarded?
There should be a log on both. But it may be forwarded multiple times.
So you need to test it once and then assume it works.
C_V
Frequent Advisor

Re: Checking relay mail server

Ok i think i got the idea thanks for the info.