LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-26-2013, 10:40 AM   #1
fixingRT
LQ Newbie
 
Registered: Jun 2013
Posts: 5

Rep: Reputation: Disabled
Sendmail not working with Request Tracker on Linux Box


Hi,

I'm trying to configure Sendmail to work with our Relay Server so that Request Tracker is able to send email notifications out.

I installed sendmail and then I configured sendmail with our relay server in the sendmail.mc

So under the "dnl" in the sendmail.mc, I added this:

Code:
define(`SMART_HOST', `OUR_RELAY_SERVER')dnl
dnl #FEATURE(authinfo)dnl
And then in the RT_SiteConfig.pm, I added the following:

Code:
Set($CorrespondAddress, 'OUR_OUTGOING_EMAIL');
In our maillog, we get this when we try to test RT

Code:
Jun 20 18:33:04 lamp sendmail[7673]: r5KIX4Rk007673: from=www-data, size=1180, class=0, nrcpts=1, msgid=<rt-4.0.10-7640-1371753183-1065.17-3-0@example.com>, relay=www-data@localhost
Jun 20 18:33:04 lamp sendmail[7673]: r5KIX4Rk007673: to=TEST_EMAIL, ctladdr=www-data (33/33), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=31180, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]

Last edited by fixingRT; 06-26-2013 at 10:57 AM.
 
Old 06-26-2013, 11:55 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
Jun 20 18:33:04 lamp sendmail[7673]: r5KIX4Rk007673: to=TEST_EMAIL, ctladdr=www-data (33/33), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=31180, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
Are you sure sendmail is running and it's listening on 127.0.0.1 (localhost)?
What give the following 2 commands:
Code:
ps -ef|grep sendmail
netstat -tanpl|grep 25
 
Old 06-26-2013, 12:24 PM   #3
fixingRT
LQ Newbie
 
Registered: Jun 2013
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by bathory View Post
Are you sure sendmail is running and it's listening on 127.0.0.1 (localhost)?
What give the following 2 commands:
Code:
ps -ef|grep sendmail
netstat -tanpl|grep 25
I did both commands, look at screenshot.
Attached Thumbnails
Click image for larger version

Name:	untitled.JPG
Views:	48
Size:	17.2 KB
ID:	12812  
 
Old 06-26-2013, 12:38 PM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
So sendmail is not running.
You didn't mention your distro, but usually running the following will start sendmail
Code:
service sendmail start
After starting sendmail test again if it can send out mail.
 
Old 06-26-2013, 01:27 PM   #5
fixingRT
LQ Newbie
 
Registered: Jun 2013
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by bathory View Post
So sendmail is not running.
You didn't mention your distro, but usually running the following will start sendmail
Code:
service sendmail start
After starting sendmail test again if it can send out mail.
I ran that command and it says that its already running.
 
Old 06-26-2013, 01:54 PM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
Originally Posted by fixingRT View Post
I ran that command and it says that its already running.
Please tell us your linux version, so we could give you better advice.
Anyway, run again the "ps -ef..." command above to verify that sendmail is not actually running. Then find sendmail.pid (usually it's /var/run/sendmail.pid), delete it and try to start the service again
 
Old 06-26-2013, 02:00 PM   #7
fixingRT
LQ Newbie
 
Registered: Jun 2013
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by bathory View Post
Please tell us your linux version, so we could give you better advice.
Anyway, run again the "ps -ef..." command above to verify that sendmail is not actually running. Then find sendmail.pid (usually it's /var/run/sendmail.pid), delete it and try to start the service again
Linux lamp 2.6.32-5-686 #1 Sun May 6 04:01:19 UTC 2012 i686 GNU/Linux

I dont see sendmail.pid in my run folder
 
Old 06-26-2013, 04:16 PM   #8
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
Originally Posted by fixingRT View Post
Linux lamp 2.6.32-5-686 #1 Sun May 6 04:01:19 UTC 2012 i686 GNU/Linux

I dont see sendmail.pid in my run folder
Is iti debian? If it is, then the pid file should exist under /var/run/sendmail.
If it's not there, you can use a search engine like google to see where it's located
 
Old 06-27-2013, 08:55 AM   #9
fixingRT
LQ Newbie
 
Registered: Jun 2013
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by bathory View Post
Is iti debian? If it is, then the pid file should exist under /var/run/sendmail.
If it's not there, you can use a search engine like google to see where it's located
I tested it again, this is in my mail log now

Code:
Jun 27 13:50:49 lamp sm-mta[11045]: STARTTLS=client, relay=OUR_RELAY_ADDRESS, version=TLSv1/SSLv3, verify=FAIL, cipher=AES128-SHA, bits=128/128
Jun 27 13:50:51 lamp sm-mta[11045]: r5RDol6q011043: to=<MY_EMAIL>, ctladdr=<www-data@lamp.ochc.ca> (33/33), delay=00:00:04, xdelay=00:00:04, mailer=relay, pri=120819, relay=relay.ochc.ca. [OUR_RELAY_SERVER_IP], dsn=2.0.0, stat=Sent ( <rt-4.0.10-14298-1372341046-364.17-7-0@example.com> Queued mail for delivery)
 
Old 06-27-2013, 11:13 AM   #10
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
Originally Posted by fixingRT View Post
I tested it again, this is in my mail log now

Code:
Jun 27 13:50:49 lamp sm-mta[11045]: STARTTLS=client, relay=OUR_RELAY_ADDRESS, version=TLSv1/SSLv3, verify=FAIL, cipher=AES128-SHA, bits=128/128
Jun 27 13:50:51 lamp sm-mta[11045]: r5RDol6q011043: to=<MY_EMAIL>, ctladdr=<www-data@lamp.ochc.ca> (33/33), delay=00:00:04, xdelay=00:00:04, mailer=relay, pri=120819, relay=relay.ochc.ca. [OUR_RELAY_SERVER_IP], dsn=2.0.0, stat=Sent ( <rt-4.0.10-14298-1372341046-364.17-7-0@example.com> Queued mail for delivery)
So your mail has reached the smarthost.Beyond that point you cannot do anything, so if you don't receive it, you have to ask the admin of the smarthost.

Regards
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Install Request Tracker on Linux budi123 Linux - General 1 06-08-2011 02:33 AM
LXer: Request Tracker, the best Trouble Ticket on Linux LXer Syndicated Linux News 0 10-06-2010 10:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:03 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