Sendmail with e-mail

Silly Blond Question:

Do I need to have a sendmail server running on the same machine I have rt2
on in order to receive e-mail to rt and make a new ticket? I’d like to
know how other people did it without running sendmail on their systems –
do you put the configuration in the /etc/aliases on the machine running
sendmail? if so, (1) how do I change rt’s address to point to the right
return address, and (2) how does the remote machine know to go to the rt2
machine to make the ticket, or correspond, or whatever?

Sheeri Kritzer
Systems Administrator
University Systems Group
Tufts University
617-627-3925
skritz01@emerald.tufts.edu

Sheeri Kritzer wrote:

Do I need to have a sendmail server running on the same machine I have rt2
on in order to receive e-mail to rt and make a new ticket?

No, you can do it using something like fetchmail, but running a mail
server (not necessarily sendmail) is probably simplest.

I’d like to
know how other people did it without running sendmail on their systems –
do you put the configuration in the /etc/aliases on the machine running
sendmail?

No, you’d deliver direct to a local mailbox and have fetchmail POP or
IMAP the mail off there and funnel it through rt-mailgate.

if so, (1) how do I change rt’s address to point to the right
return address,

That’s in the queue configuration.

and (2) how does the remote machine know to go to the rt2
machine to make the ticket, or correspond, or whatever?

It doesn’t, but the rt2 machine knows where to get the mail from. :slight_smile:

(Disclaimer: I haven’t done this… others have, and can probably
supply more details.)

Is there any reason you can’t use sendmail on the local server? It would
make your left alot easier!From: Phil Homewood [mailto:pdh@lineo.com]
Sent: Thursday, August 30, 2001 3:20 PM
To: Sheeri Kritzer
Cc: rt-users@fsck.com
Subject: Re: [rt-users] sendmail with e-mail

Sheeri Kritzer wrote:

Do I need to have a sendmail server running on the same machine I have rt2
on in order to receive e-mail to rt and make a new ticket?

No, you can do it using something like fetchmail, but running a mail
server (not necessarily sendmail) is probably simplest.

I’d like to
know how other people did it without running sendmail on their systems –
do you put the configuration in the /etc/aliases on the machine running
sendmail?

No, you’d deliver direct to a local mailbox and have fetchmail POP or
IMAP the mail off there and funnel it through rt-mailgate.

if so, (1) how do I change rt’s address to point to the right
return address,

That’s in the queue configuration.

and (2) how does the remote machine know to go to the rt2
machine to make the ticket, or correspond, or whatever?

It doesn’t, but the rt2 machine knows where to get the mail from. :slight_smile:

(Disclaimer: I haven’t done this… others have, and can probably
supply more details.)

rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users

typo… life alot easier :)From: Taylor, Bryant
Sent: Thursday, August 30, 2001 3:27 PM
To: ‘Phil Homewood’; ‘Sheeri Kritzer’
Cc: ‘rt-users@fsck.com’
Subject: RE: [rt-users] sendmail with e-mail

Is there any reason you can’t use sendmail on the local server? It would
make your left alot easier!

From: Phil Homewood [mailto:pdh@lineo.com]
Sent: Thursday, August 30, 2001 3:20 PM
To: Sheeri Kritzer
Cc: rt-users@fsck.com
Subject: Re: [rt-users] sendmail with e-mail

Sheeri Kritzer wrote:

Do I need to have a sendmail server running on the same machine I have rt2
on in order to receive e-mail to rt and make a new ticket?

No, you can do it using something like fetchmail, but running a mail
server (not necessarily sendmail) is probably simplest.

I’d like to
know how other people did it without running sendmail on their systems –
do you put the configuration in the /etc/aliases on the machine running
sendmail?

No, you’d deliver direct to a local mailbox and have fetchmail POP or
IMAP the mail off there and funnel it through rt-mailgate.

if so, (1) how do I change rt’s address to point to the right
return address,

That’s in the queue configuration.

and (2) how does the remote machine know to go to the rt2
machine to make the ticket, or correspond, or whatever?

It doesn’t, but the rt2 machine knows where to get the mail from. :slight_smile:

(Disclaimer: I haven’t done this… others have, and can probably
supply more details.)

rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users

Sheeri Kritzer wrote:

Silly Blond Question:

Do I need to have a sendmail server running on the same machine I have rt2
on in order to receive e-mail to rt and make a new ticket? I’d like to

Nope.

You can have the database seperate to the web and email handlers. I’m just
finishing testing having the Web UI on a seperate machine (ain’t mysql a
bitch?). You just need to install RT on the email box, and configure it to
look at a remote machine for database access.

T�o de Hesselle, | Kites rise highest against
Unix Systems Administrator | the wind – not with it.
|
University of Technology, Sydney | – Winston Churchill

On a somewhat similar train of thought:

I would like to import old mail into RT so we can search and sort it. I have
all the mail in MBOX format which should be fine to download… I am just
not sure how to download mail into RT. We have about 30 000 emails from the
last few years of customer service / contests / perpetual whininess etc.

Can I somehow use fetchmail for this?On 8/30/01 6:19 PM, “Phil Homewood” pdh@lineo.com wrote:

Sheeri Kritzer wrote:

Do I need to have a sendmail server running on the same machine I have rt2
on in order to receive e-mail to rt and make a new ticket?

No, you can do it using something like fetchmail, but running a mail
server (not necessarily sendmail) is probably simplest.

I’d like to
know how other people did it without running sendmail on their systems –
do you put the configuration in the /etc/aliases on the machine running
sendmail?

No, you’d deliver direct to a local mailbox and have fetchmail POP or
IMAP the mail off there and funnel it through rt-mailgate.

if so, (1) how do I change rt’s address to point to the right
return address,

That’s in the queue configuration.

and (2) how does the remote machine know to go to the rt2
machine to make the ticket, or correspond, or whatever?

It doesn’t, but the rt2 machine knows where to get the mail from. :slight_smile:

(Disclaimer: I haven’t done this… others have, and can probably
supply more details.)


rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users

I have a handy script to take a MBOX file and resend it. As root:

------ Begin Included File

#!/usr/bin/perl

(c)2001 Jeff Ballard <ballardATengr.wisc.edu>

$DESTINATION = “your_rt_address@your.site”;

while(<>) {
if ($_ =~ /^From /) {
$first++;
open (FILE, “| sendmail $DESTINATION”);
#open (FILE, “| cat”);
}
print FILE $_;
}

------- End Included File

(extra $_'s added for clarity).

Its run by:

./resend_mbox.pl < mboxfilename

Now, granted, if you have 30,000 messages, it could be slow, but its an option
nevertheless. I use it for when people leave, but forget to forward their
mail. I have them set a forward, then run the resender on it. In the popular
MUA’s (eg Eudora), they look at the headers of the original message to get the
date it was sent. I don’t think RT will (so all of them will probably start
at 0sec old).

Regards,

-Jeff

Jeff Ballard ballard@engr.wisc.edu 608-265-5090
Unix Systems Manager
Computer-Aided Engineering

Too cool man thanks!On 8/31/01 9:13 AM, “Jeff Ballard” ballard@engr.wisc.edu wrote:

I have a handy script to take a MBOX file and resend it. As root:

------ Begin Included File

#!/usr/bin/perl

(c)2001 Jeff Ballard <ballardATengr.wisc.edu>

$DESTINATION = “your_rt_address@your.site”;

while(<>) {
if ($_ =~ /^From /) {
$first++;
open (FILE, “| sendmail $DESTINATION”);
#open (FILE, “| cat”);
}
print FILE $_;
}

------- End Included File

(extra $_'s added for clarity).

Its run by:

./resend_mbox.pl < mboxfilename

Now, granted, if you have 30,000 messages, it could be slow, but its an option
nevertheless. I use it for when people leave, but forget to forward their
mail. I have them set a forward, then run the resender on it. In the popular
MUA’s (eg Eudora), they look at the headers of the original message to get the
date it was sent. I don’t think RT will (so all of them will probably start
at 0sec old).

Regards,

-Jeff

You’re welcome.

-Jeff

Too cool man thanks!

I have a handy script to take a MBOX file and resend it. As root:

------ Begin Included File

#!/usr/bin/perl

(c)2001 Jeff Ballard <ballardATengr.wisc.edu>

$DESTINATION = “your_rt_address@your.site”;

while(<>) {
if ($_ =~ /^From /) {
$first++;
open (FILE, “| sendmail $DESTINATION”);
#open (FILE, “| cat”);
}
print FILE $_;
}

------- End Included File

(extra $_'s added for clarity).

Its run by:

./resend_mbox.pl < mboxfilename

Now, granted, if you have 30,000 messages, it could be slow, but its an opt
ion
nevertheless. I use it for when people leave, but forget to forward their
mail. I have them set a forward, then run the resender on it. In the popu
lar
MUA’s (eg Eudora), they look at the headers of the original message to get
the
date it was sent. I don’t think RT will (so all of them will probably star
t
at 0sec old).

Regards,

-Jeff

Jeff Ballard ballard@engr.wisc.edu 608-265-5090
Unix Systems Manager
Computer-Aided Engineering

Well, I can use sendmail to send mail, but I don’t want a SERVER on it.
Trying to minimize processes on a machine, so there are fewer things to
bring it down. :wink: I would rather not have e-mail capabilities than run a
mail server on the machine. It’s already a jumpstart/cfengine server, and
rt, that’s plenty.

-SheeriOn Thu, 30 Aug 2001, Taylor, Bryant wrote:

Is there any reason you can’t use sendmail on the local server? It would
make your left alot easier!

Sheeri Kritzer
Systems Administrator
University Systems Group
Tufts University
617-627-3925
skritz01@emerald.tufts.edu

If sendmail is too much for this server, you should not install RT on it,
wich requires much more resources than sendmail handling emails for your rt
system.
Steve Poirier
Directeur d�veloppement / Project Manager
Inet-Technologies inc.From: “Sheeri Kritzer” skritz01@emerald.tufts.edu
To: “Taylor, Bryant” btaylor@virata.com
Cc: “‘Phil Homewood’” pdh@lineo.com; rt-users@fsck.com
Sent: Friday, August 31, 2001 12:04 PM
Subject: RE: [rt-users] sendmail with e-mail

Well, I can use sendmail to send mail, but I don’t want a SERVER on it.
Trying to minimize processes on a machine, so there are fewer things to
bring it down. :wink: I would rather not have e-mail capabilities than run a
mail server on the machine. It’s already a jumpstart/cfengine server, and
rt, that’s plenty.

-Sheeri

Is there any reason you can’t use sendmail on the local server? It
would
make your left alot easier!

Sheeri Kritzer
Systems Administrator
University Systems Group
Tufts University
617-627-3925
skritz01@emerald.tufts.edu


rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users

I don’t want to get into an argument about this. If you want the reasons,
we can take it offlist.

Either there’s no way to do it without having a sendmail server, or there
is. If there isn’t, just tell me.

if there is, will some kind soul please point me to documentation or send
me a note saying they’ve done it and how.

-SheeriOn Fri, 31 Aug 2001, Steve Poirier wrote:

If sendmail is too much for this server, you should not install RT on it,
wich requires much more resources than sendmail handling emails for your rt
system.
__
Steve Poirier
Directeur développement / Project Manager
Inet-Technologies inc.

----- Original Message -----
From: “Sheeri Kritzer” skritz01@emerald.tufts.edu
To: “Taylor, Bryant” btaylor@virata.com
Cc: “‘Phil Homewood’” pdh@lineo.com; rt-users@fsck.com
Sent: Friday, August 31, 2001 12:04 PM
Subject: RE: [rt-users] sendmail with e-mail

Well, I can use sendmail to send mail, but I don’t want a SERVER on it.
Trying to minimize processes on a machine, so there are fewer things to
bring it down. :wink: I would rather not have e-mail capabilities than run a
mail server on the machine. It’s already a jumpstart/cfengine server, and
rt, that’s plenty.

-Sheeri

On Thu, 30 Aug 2001, Taylor, Bryant wrote:

Is there any reason you can’t use sendmail on the local server? It
would
make your left alot easier!

Sheeri Kritzer
Systems Administrator
University Systems Group
Tufts University
617-627-3925
skritz01@emerald.tufts.edu


rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users

Sheeri Kritzer
Systems Administrator
University Systems Group
Tufts University
617-627-3925
skritz01@emerald.tufts.edu

To receive emails, maybe this can help:

It is possible to ‘cat’ email text directly to rt-mailgate

Example:
/www/rt/bin/rt-mailgate --queue Support --action correspond < email.txt

Maybe you can do something on your server receiving mail to transfert emails
to your rt server/mail-gate.
(Like a script…)

Hope this help,

Regards,
Steve Poirier
Directeur d�veloppement / Project Manager
Inet-Technologies inc.From: “Sheeri Kritzer” skritz01@emerald.tufts.edu
To: “Steve Poirier” steve@inet-technologies.com
Cc: rt-users@lists.fsck.com
Sent: Friday, August 31, 2001 12:52 PM
Subject: Re: [rt-users] sendmail with e-mail

I don’t want to get into an argument about this. If you want the reasons,
we can take it offlist.

Either there’s no way to do it without having a sendmail server, or there
is. If there isn’t, just tell me.

if there is, will some kind soul please point me to documentation or send
me a note saying they’ve done it and how.

-Sheeri

If sendmail is too much for this server, you should not install RT on
it,
wich requires much more resources than sendmail handling emails for your
rt
system.
__
Steve Poirier
Directeur d�veloppement / Project Manager
Inet-Technologies inc.

----- Original Message -----
From: “Sheeri Kritzer” skritz01@emerald.tufts.edu
To: “Taylor, Bryant” btaylor@virata.com
Cc: “‘Phil Homewood’” pdh@lineo.com; rt-users@fsck.com
Sent: Friday, August 31, 2001 12:04 PM
Subject: RE: [rt-users] sendmail with e-mail

Well, I can use sendmail to send mail, but I don’t want a SERVER on
it.
Trying to minimize processes on a machine, so there are fewer things
to
bring it down. :wink: I would rather not have e-mail capabilities than
run a
mail server on the machine. It’s already a jumpstart/cfengine server,
and
rt, that’s plenty.

-Sheeri

Is there any reason you can’t use sendmail on the local server? It
would
make your left alot easier!

Sheeri Kritzer
Systems Administrator
University Systems Group
Tufts University
617-627-3925
skritz01@emerald.tufts.edu


rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users

Sheeri Kritzer
Systems Administrator
University Systems Group
Tufts University
617-627-3925
skritz01@emerald.tufts.edu

Either there’s no way to do it without having a sendmail server, or there
is. If there isn’t, just tell me.

if there is, will some kind soul please point me to documentation or send
me a note saying they’ve done it and how.

I doubt there is because everything goes thru the mail gateway. The
web interface just generates mail that the mail gateway processes and
then inserts into the database. At least that’s my understanding of
how it is glued together.

The only way I could see this working is if RT were installed on a RT
server, as well as on the mail gateway. Their configs would have to point
to the same SQL server. The RT server would have the web interface, the
mail server wouldn’t, it would just run the rt-mailgate commands. Since
they share the same ticket info, it might work.

Thoughts anyone?
Joe Gooch

I’m kind of busy today, so this is going to be rather terse.

Your options include:

Installing RT on your mail server (pointing to the same DB as
on your rt server…just make sure you have the same config file :wink:
This does not require running the web ui on your mail server

Running fetchmail on your RT server, which can slurp mail off of a remote
pop/imap server. Note that this probably still requires a local sendmail,
but it doesn’t have to talk to the outside world at all. Having a sendmail
bound to the loopback interface kicking around isn’t that big a deal. really.

Longer term, if folks are interested, I’d be happy to explore a mail-gateway
that could run on your mail server and talk to a remote mail server.

-jOn Fri, Aug 31, 2001 at 12:52:05PM -0400, Sheeri Kritzer wrote:

I don’t want to get into an argument about this. If you want the reasons,
we can take it offlist.

Either there’s no way to do it without having a sendmail server, or there
is. If there isn’t, just tell me.

if there is, will some kind soul please point me to documentation or send
me a note saying they’ve done it and how.

-Sheeri

On Fri, 31 Aug 2001, Steve Poirier wrote:

If sendmail is too much for this server, you should not install RT on it,
wich requires much more resources than sendmail handling emails for your rt
system.
__
Steve Poirier
Directeur développement / Project Manager
Inet-Technologies inc.

----- Original Message -----
From: “Sheeri Kritzer” skritz01@emerald.tufts.edu
To: “Taylor, Bryant” btaylor@virata.com
Cc: “‘Phil Homewood’” pdh@lineo.com; rt-users@fsck.com
Sent: Friday, August 31, 2001 12:04 PM
Subject: RE: [rt-users] sendmail with e-mail

Well, I can use sendmail to send mail, but I don’t want a SERVER on it.
Trying to minimize processes on a machine, so there are fewer things to
bring it down. :wink: I would rather not have e-mail capabilities than run a
mail server on the machine. It’s already a jumpstart/cfengine server, and
rt, that’s plenty.

-Sheeri

On Thu, 30 Aug 2001, Taylor, Bryant wrote:

Is there any reason you can’t use sendmail on the local server? It
would
make your left alot easier!

Sheeri Kritzer
Systems Administrator
University Systems Group
Tufts University
617-627-3925
skritz01@emerald.tufts.edu


rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users

Sheeri Kritzer
Systems Administrator
University Systems Group
Tufts University
617-627-3925
skritz01@emerald.tufts.edu


rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users

http://www.bestpractical.com/products/rt – Trouble Ticketing. Free.