LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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, 11: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 11:57 AM.
 
Old 06-26-2013, 12:55 PM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,962

Rep: Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341
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, 01: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 Images
File Type: jpg untitled.JPG (17.2 KB, 11 views)
 
Old 06-26-2013, 01:38 PM   #4
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,962

Rep: Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341
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, 02: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, 02:54 PM   #6
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,962

Rep: Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341
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, 03: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, 05:16 PM   #8
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,962

Rep: Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341
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, 09: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, 12:13 PM   #10
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,962

Rep: Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 03:33 AM
LXer: Request Tracker, the best Trouble Ticket on Linux LXer Syndicated Linux News 0 10-06-2010 11:00 AM


All times are GMT -5. The time now is 08:54 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration