1752800 Members
6038 Online
108789 Solutions
New Discussion юеВ

re : mailx help

 
SOLVED
Go to solution
Vincent_5
Super Advisor

re : mailx help

Hi Guys,
Can anyone advice how can I send mail from a unix system to my lotus notes. I use to be able to do this with the attach script, but now after running the script, it does not work any more. Please advice???

Regards
Vincent
nothing is better than to know more
8 REPLIES 8
Dennis Handly
Acclaimed Contributor

Re: re : mailx help

This should work. What happens when you run the script by hand?
Does "mailq" show you messages that are stuck?

Note you shouldn't have a blank line between:
" | \

mailx -s "REMINDER! MONTHLY JOBS !!" Boon_Poh_Chua@ap.irco.com
Steven E. Protter
Exalted Contributor
Solution

Re: re : mailx help

Shalom Vincent,

Diagnostics:

/var/adm/syslog/mail.log

sendmail -v -d 8.99 -d38.99 someone@yourdomain.com

type some text

.


SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
OFC_EDM
Respected Contributor

Re: re : mailx help

sendmail -bv Boon_Poh_Chua@ap.irco.com

This should tell you if the address is deliverable.

Otherwise open two sessions to your server

In the first do

tail -f /var/adm/syslog/mail.log
This will scroll as mail related messages appear.

In the 2nd window
echo "this is a test" | mailx -s "testing" Boon_Poh_Chua@ap.irco.com

When you press enter in the 2nd window look at the 1st window and see if see any error messages.

If there are too many messages in mail.log you can filter the tail -f command

Example:
tail -f /var/adm/syslog/mail.log | grep ap.irco.com

This will show only emails with ap.irco.com as part of the message or the To/From fields.

You can filter it further by using Boon_Poh_Chua@ap.irco.com instead of ap.irco.com. But you may miss some information.

Make sure sendmail is running
ps -ef | grep -i sendmail

Make sure mail isn't stuck
mailq

If you see lots of mail in the queue then check your DNS (resolv.conf etc)

The Devil is in the detail.
OFC_EDM
Respected Contributor

Re: re : mailx help

If all that doesn't work....

Check with your Notes admin. Maybe they put in a rule to not accept SMTP mail from your server.

Regards
The Devil is in the detail.
Vincent_5
Super Advisor

Re: re : mailx help

Hi Guys,
Thanks for the info, attach is the output from mail.log. Please advice

Regards
Vincent
nothing is better than to know more
Dennis Handly
Acclaimed Contributor

Re: re : mailx help

>attach is the output from mail.log. Please advice

Interesting lines are:
unable to qualify my own domain name (irsgp) -- using short name
be sure to set domain name in Dj macro in sendmail.cf

QAA04986: from=root, size=2799, class=0, pri=32799, nrcpts=1, msgid=<200805230827.QAA04986@irsgp>, relay=root@localhost
QAA04986: to=Boon_Poh_Chua@ap.irco.com, delay=00:00:00, mailer=esmtp, stat=queued
QAA04986: VAC06042: return to sender: Warning: could not send message for past 4 hours
Vincent_5
Super Advisor

Re: re : mailx help

Hi Dennis,
Any advice on how can I resolve the problem. Thanks. Attach is the output of

Regards
VIncent
nothing is better than to know more
Dennis Handly
Acclaimed Contributor

Re: re : mailx help

>Any advice on how can I resolve the problem

Well, the first thing to do is to fix the Dj macro in sendmail.cf. I'm not sure if this will fix your delivery problem?

After editing sendmail.cf, start and stop sendmail:
/sbin/init.d/sendmail stop
/sbin/init.d/sendmail start