Operating System - HP-UX
1753531 Members
5226 Online
108795 Solutions
New Discussion юеВ

Re: 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 13
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



Dennis Handly
Acclaimed Contributor

Re: Checking relay mail server

Have you looked at /var/adm/syslog/mail.log?
WW186637
New Member

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.
Dennis Handly
Acclaimed Contributor

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.
Dennis Handly
Acclaimed Contributor

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?