LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-23-2007, 02:00 AM   #1
tsaravan
Member
 
Registered: Jun 2005
Location: India
Posts: 101

Rep: Reputation: 15
sendmail troubleshooting


Hi,

We have lotus Notes email server at Head Office and we were connecting in replication mode from local office through VPN. Now, we have setup an IT helpdesk system in fedora 4. In this system when user create a ticket an automatic email has be sent to the concerned person using sendmail from Linux box (contains apache, php, mysql) which is not happening. Checked and found sendmail is running. I want to troubleshoot why the email is not sending from linux box.

regards,

T. Saravana.
 
Old 10-23-2007, 07:36 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
Are there any errors reported in sendmail's log (probably /var/log/maillog)? If so, can you post them here please? If not, have you checked apache's logs for error messages?
 
Old 10-23-2007, 11:39 PM   #3
tsaravan
Member
 
Registered: Jun 2005
Location: India
Posts: 101

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by gilead View Post
Are there any errors reported in sendmail's log (probably /var/log/maillog)? If so, can you post them here please? If not, have you checked apache's logs for error messages?
Hi,

Thank you for your reply.

The following is the log of maillog which i am not sure, because i have created ticket through helpdesk software where email did not send and after that i checked maillog which has not updated. The following entries are the same before i created a ticket.

Oct 24 04:02:14 neptunelinux sendmail[3488]: l9NMWESN003488: from=root, size=37285, class=0, nrcpts=1, msgid=<200710232232.l9NMWESN003488@localhost.localdomain>, relay=root@localhost
Oct 24 04:02:14 neptunelinux sendmail[3489]: l9NMWEV9003489: from=<root@localhost.localdomain>, size=37591, class=0, nrcpts=1, msgid=<200710232232.l9NMWESN003488@localhost.localdomain>, proto=ESMTP, daemon=MTA, relay=neptunelinux [127.0.0.1]
Oct 24 04:02:14 neptunelinux sendmail[3488]: l9NMWESN003488: to=root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=67285, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (l9NMWEV9003489 Message accepted for delivery)
Oct 24 04:02:15 neptunelinux sendmail[3490]: l9NMWEV9003489: to=<root@localhost.localdomain>, ctladdr=<root@localhost.localdomain> (0/0), delay=00:00:01, xdelay=00:00:00, mailer=local, pri=67819, dsn=2.0.0, stat=Sent


Further, no errors are found in error_log under httpd.

regards,

T. Saravana
 
Old 10-24-2007, 12:49 AM   #4
tsaravan
Member
 
Registered: Jun 2005
Location: India
Posts: 101

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by tsaravan View Post
Hi,

Thank you for your reply.

The following is the log of maillog which i am not sure, because i have created ticket through helpdesk software where email did not send and after that i checked maillog which has not updated. The following entries are the same before i created a ticket.

Oct 24 04:02:14 neptunelinux sendmail[3488]: l9NMWESN003488: from=root, size=37285, class=0, nrcpts=1, msgid=<200710232232.l9NMWESN003488@localhost.localdomain>, relay=root@localhost
Oct 24 04:02:14 neptunelinux sendmail[3489]: l9NMWEV9003489: from=<root@localhost.localdomain>, size=37591, class=0, nrcpts=1, msgid=<200710232232.l9NMWESN003488@localhost.localdomain>, proto=ESMTP, daemon=MTA, relay=neptunelinux [127.0.0.1]
Oct 24 04:02:14 neptunelinux sendmail[3488]: l9NMWESN003488: to=root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=67285, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (l9NMWEV9003489 Message accepted for delivery)
Oct 24 04:02:15 neptunelinux sendmail[3490]: l9NMWEV9003489: to=<root@localhost.localdomain>, ctladdr=<root@localhost.localdomain> (0/0), delay=00:00:01, xdelay=00:00:00, mailer=local, pri=67819, dsn=2.0.0, stat=Sent


Further, no errors are found in error_log under httpd.

regards,

T. Saravana
Hi

I forgot to mention that the helpdesk software uses smtp class file to send email. Do you think the problem could be related to this.

regards,

T. Saravana
 
Old 10-24-2007, 06:10 AM   #5
tsaravan
Member
 
Registered: Jun 2005
Location: India
Posts: 101

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by tsaravan View Post
Hi

I forgot to mention that the helpdesk software uses smtp class file to send email. Do you think the problem could be related to this.

regards,

T. Saravana
Hi,

I was trying using class.phpmailer.php where i could not succeed and the following is the log of maillog

Oct 24 11:14:48 neptunelinux sendmail[8415]: l9O5imlV008415: from=apache, size=411, class=0, nrcpts=1, msgid=<0ac9fd9955091849fc9b470146ddaecb@192.168.0.2>, relay=apache@localhost
Oct 24 11:14:48 neptunelinux sendmail[8415]: l9O5imlV008415: to=tsaravan@teri.res.in, delay=00:00:00, mailer=esmtp, pri=30411, dsn=4.4.3, stat=queued
Oct 24 15:21:11 neptunelinux sm-msp-queue[11022]: l9O5imlV008415: l9O9pAVD011022: sender notify: Warning: could not send message for past 4 hours
Oct 24 15:21:11 neptunelinux sendmail[11023]: l9O9pBDT011023: from=<>, size=2185, class=0, nrcpts=1, msgid=<200710240951.l9O9pAVD011022@localhost.localdomain>, proto=ESMTP, daemon=MTA, relay=neptunelinux [127.0.0.1]
Oct 24 15:21:11 neptunelinux sm-msp-queue[11022]: l9O9pAVD011022: to=apache, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=31593, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (l9O9pBDT011023 Message accepted for delivery)
Oct 24 15:21:12 neptunelinux sendmail[11024]: l9O9pBDT011023: to=root, delay=00:00:01, xdelay=00:00:00, mailer=local, pri=32396, dsn=2.0.0, stat=Sent
 
Old 10-24-2007, 01:22 PM   #6
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
That log output shows the message queued after not being able to send after a 4 hour delay. Delays like that are usually caused by the receiving server not being available to accept the mail. Have you checked that you can resolve and connect to the receiving server? You can also use tools like tcpdump and wireshark to examine the traffic leaving your server to see what is happening to it.
 
Old 10-24-2007, 03:18 PM   #7
TooSlow
LQ Newbie
 
Registered: Sep 2005
Posts: 17

Rep: Reputation: 0
Tsaravan - It could have to do with SMTP. By default, Notes replication takes place under its own protocol when done between servers or a server and client. If you are using SMTP on the Linux computer, you will want to make sure that SMTP is enabled on the Lotus Notes email server. If this particular Notes server routes your mail to the Internet, then SMTP should already be active, but I wanted to make you aware of this.

If SMTP is running on the Lotus Notes server, there are a couple things to check. First check the server log (log.nsf) on the Notes server and under messaging you should see some reference to the Linux server trying to connect to the server. If not, then try a manual telnet test (telnet <ip address of Notes server> 25) from the Linux box to the Lotus Notes server to further diagnose the issue.

If you are seeing references in the Notes log that the Linux server is connecting, see if there is an error message. Most Notes mail servers are set to deny an email if one of the addresses do not contain a reference to your domain. So for instance on the Helpdesk software, you may want to set it so that it sends with an address of helpdesk@yourdomain.com.

If the Notes logs show that the Linux server connected successfully and transferred the message, but you can't find it then on the Notes server check the mailbox file (mail.box) to see if it is residing there with an error as to why it can't be delivered.
 
Old 10-25-2007, 12:32 AM   #8
tsaravan
Member
 
Registered: Jun 2005
Location: India
Posts: 101

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by gilead View Post
That log output shows the message queued after not being able to send after a 4 hour delay. Delays like that are usually caused by the receiving server not being available to accept the mail. Have you checked that you can resolve and connect to the receiving server? You can also use tools like tcpdump and wireshark to examine the traffic leaving your server to see what is happening to it.
Hi,

I think your reply indicates i am near to the problem. Can u please let me know how to check whether i am able to resolve and connect to the receiving server. My linux box is being configured as follows:

1) having two NICs, LAN on eth0 (192.168.0.1, 192.168.0.2, 192.168.0.244) and eth1 (Internet broadband connection with static public ip)

2) DNS Configuration

//
// named.conf for Red Hat caching-nameserver
//

options {
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
// query-source address * port 53;
// forward first;
// forwarders {
// 61.1.96.69;
// 61.1.96.71;
// };
};

//
// a caching only nameserver config
//
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};

zone "." IN {
type hint;
file "named.ca";
};

zone "localdomain" IN {
type master;
file "localdomain.zone";
allow-update { none; };
};

zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};

zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
};

zone "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa" IN {
type master;
file "named.ip6.local";
allow-update { none; };
};

zone "255.in-addr.arpa" IN {
type master;
file "named.broadcast";
allow-update { none; };
};

zone "0.in-addr.arpa" IN {
type master;
file "named.zero";
allow-update { none; };
};

zone "teri.res.in" IN {
type slave;
file "slaves/teri.res.in.hosts";
masters {
172.16.0.41;
};
};
zone "src.teri.res.in" IN {
type slave;
file "slaves/src.teri.res.in.hosts";
masters {
172.16.0.41;
};
};
include "/etc/rndc.key";

3) resolv.conf
nameserver 127.0.0.1

Further we have VPN box configured another ISP's broadband connection whose private ip is 192.168.0.3 and this has been assigned to all the users in our LAN as gateway for accessing internal services provided by Head Office such as Intranet, ESS etc. Hence linux box is serving as squid proxy where all the users browser is being configured this IP as a proxy.

I hope, i am not confusing or diverting by giving above details. This is just to diagonise the problem if i am wrong in anything else.

regards,

T. Saravana
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
sendmail slows down webpage / where to start troubleshooting? neocontrol Linux - Server 4 04-23-2007 09:22 PM
Troubleshooting RPM yachendra Linux - Software 2 04-20-2007 05:47 PM
Troubleshooting problem Bhambra Linux - Software 1 04-18-2007 11:39 PM
troubleshooting how-to? chilehead Linux - Hardware 2 02-06-2005 04:58 PM
Troubleshooting StartX Neb Linux - General 2 06-17-2003 09:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration