Operating System - HP-UX
1748134 Members
3621 Online
108758 Solutions
New Discussion юеВ

Sendmail , lotus and messages not arriving

 
Richard Pereira_1
Regular Advisor

Sendmail , lotus and messages not arriving

OK, here are the facts as I know them

I have a cron job that runs on 2 servers and then uses mailx to send the output.

Server DEV works fine. It runs my script and the emails get delievered to 3 recepients.

Server PRD runs the same script but I am the only one out of 3 who gets the email. ( I am in another domain, the 2 other ppls email addresses are within the same domain as PRD and DEV).

Both systems are relaying to a Lotus Notes email server (as specified in their DS entries in the sendmail.cf file)

And if i do either a mailx or sendmail -v at the command line to their addresses, the emails go through.

So here are the differences i found between PRD and DEVs logs files at the time the messages are sent out.

DEV (working box)
Jul 25 13:14:47 aeidev01 sendmail[28696]: NAA28694: to=myself@outside.com,user1@domain.com,user2@adomain.com, ctladdr
=root (0/3), delay=00:00:00, xdelay=00:00:00, mailer=relay, relay=[32.69.xx.xx] [32.69.xx.xx], stat=Sent (Message accepte
d for delivery)
**************************************************************************************8
PRD (system not working)
Jul 25 13:00:10 PRD sendmail[7588]: NAA07581: to=myself@outside.com, ctladdr=root (0/3), delay=00:00:01, xdelay=
00:00:00, mailer=relay, relay=[32.69.xx.xx] [32.69.xx.xx], stat=Sent (Message accepted for delivery)
Jul 25 13:14:33 PRD sendmail[10277]: unable to qualify my own domain name (PRD) -- using short name
Jul 25 13:14:33 PRD sendmail[10277]: be sure to set domain name in Dj macro in sendmail.cf
Jul 25 13:14:33 PRD sendmail[10282]: unable to qualify my own domain name (PRD) -- using short name
Jul 25 13:14:33 PRD sendmail[10282]: be sure to set domain name in Dj macro in sendmail.cf
Jul 25 13:14:33 PRD sendmail[10277]: NAA10277: forward /home/user1/.forward.PRD+: Group writable directory
Jul 25 13:14:33 PRD sendmail[10277]: NAA10277: forward /home/user1/.forward+: Group writable directory
Jul 25 13:14:33 PRD sendmail[10277]: NAA10277: forward /home/user1/.forward.PRD: Group writable directory
Jul 25 13:14:33 PRD sendmail[10277]: NAA10277: forward /home/user1/.forward: Group writable directory
Jul 25 13:14:33 PRD sendmail[10277]: NAA10277: forward /home/user2/.forward.PRD+: Group writable directory
Jul 25 13:14:33 PRD sendmail[10277]: NAA10277: forward /home/user2/.forward+: Group writable directory
Jul 25 13:14:33 PRD sendmail[10277]: NAA10277: forward /home/user2/.forward.PRD: Group writable directory
Jul 25 13:14:33 PRD sendmail[10277]: NAA10277: forward /home/user2/.forward: Group writable directory
Jul 25 13:14:33 PRD sendmail[10282]: NAA10282: from=root, size=1119, class=0, pri=61119, nrcpts=2, msgid=<20040725171
4.NAA10282@domain.com>, relay=root@localhost
Jul 25 13:14:33 PRD sendmail[10277]: NAA10277: from=root, size=15519, class=0, pri=105519, nrcpts=3, msgid=<200407251
714.NAA10277@domain.com>, relay=root@localhost
6 REPLIES 6
Steven E. Protter
Exalted Contributor

Re: Sendmail , lotus and messages not arriving

The tells me we have a DNS issue.

Compare the working and non-working servers /etc/resolv.conf files and make sure that top entry is reachable aon the network.

Also make sure nsswitch.conf is the same.

Other tools:

mailq

display mail queue

sendmail -v -q

will attempt to process the mail queue in verbose mode.

sendmail -v -d8.99 -d38.99
type text

.


should display similar errors. If mail is getting off the box, look at the relay config on the lotus box.

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
Richard Pereira_1
Regular Advisor

Re: Sendmail , lotus and messages not arriving

Since we have only 5 machines, both DEV and PRD use /etc/hosts, but i did notice the following;

DEV (which works), does not have a resolv.conf file and nsswitch.conf file shows

hosts: files [NOTFOUND=return] dns

however, PRD (which doesnt work) DOES have a resolv.conf
domain domain.com
nameserver 32.69.xx.xx
nameserver 32.69.xx.xx

and nsswitch.conf shows;

hosts: files [NOTFOUND=return] dns

Richard Pereira_1
Regular Advisor

Re: Sendmail , lotus and messages not arriving

i have all machines now running off /etc/hosts and put a alias for their names with the FQDN, so now the "unable to qualify my own domain name" messages dont appear. ill try again this weekend and else, check the lotus server.

mailq is empty and mail seems to leave the box.
Steven E. Protter
Exalted Contributor

Re: Sendmail , lotus and messages not arriving

You have got to have one machine, the relay machine use DNS to resolve hostnames or mail will never get off the public Internet.

I would suggest a single DNS server, perhaps a firewall and you switch to DNS name resolution. sendmail likes DNS setups better. That's my experience.

You can use any unix/linux/windows box to resolve internal network names.

the file to edit is /etc/nsswitch.conf

Once you do that, your setup changes. Certain products like Omniback/Data Protector will require reconfiguration after the switch.

You should try my diagnostics and post the results. They could help someone figure out what happened and save you the time of a DNS switchover.

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
Richard Pereira_1
Regular Advisor

Re: Sendmail , lotus and messages not arriving

Darn, forgot to update this thread and thank you guys. In the end, it looks like someone had tweaked with the rulesets at the bottom of the sendmail.cf file. Although they should have been forwarding all email, these 2 users also had local unix ids and so their unix mail spool had all the messages, i copied over the .cf file from a good host and restarted sendmail, all is fine in the work now ;-)
THanks for the tips though.
Richard Pereira_1
Regular Advisor

Re: Sendmail , lotus and messages not arriving

see above for details