Mail server on different machine

Hi,

I need help with installation of RT. Can someone explain me main idea
(or detailed step-by-step how-to) of installing RT on a different
machine than mail server is? I am using qmail on 192.168.1.1 and
planning to install RT+MySQL+Apache on second computer 192.168.1.2. I
don’t understand how to setup RT and Qmail to work together. Shall I
install something more (procmail, …) or is qmail and RT enough?

This is part of rt-mailgate help:

“Note that you don’t have to run your RT server on your mail server, as
the mail gateway will happily relay to a different machine.”

and this too:

//
Next, you need to route mail to “rt-mailgate” for the queues you’re
monitoring. For instance, if you’re using /etc/aliases and you have a
“bugs” queue, you will want something like this:

       bugs:         "|/opt/rt3/bin/rt-mailgate --queue bugs 

–action correspond
–url http://rt.mycorp.com/"
//

So, when I have Qmail on machine1 and install RT on machine2, how can I
put “/opt/rt3/bin/rt-mailgate” in qmail alias on machine1. There is no
such file on the machine1. Or does “run” mean something else then install?

May be I missed something important…

Thanks for any help.

Peter.

go there:

wiki.bestpractical.com

and read everything you can about installation, this will give you a
good idea on how RT works.

The article about Fetchmail will probably be a good start :wink:

Jean-Yan

Peter Jamriško wrote:

Probably your best solution is what we did. Just make a subdoimain for rt
email and have your main email server forward on that subdomain email to the
rt box. Our main email server is not on linux so i couldnt help you with
how to have qmail forward mail for a sub domain. but as for rt you just set
it up like a standard install. Hope that helps.

-Karl PietriFrom: “Peter Jamriďż˝ko” peter.jamrisko@advantel.cz
To: rt-users@lists.bestpractical.com
Sent: Thursday, May 13, 2004 10:35 AM
Subject: [rt-users] mail server on different machine

Hi,

I need help with installation of RT. Can someone explain me main idea
(or detailed step-by-step how-to) of installing RT on a different
machine than mail server is? I am using qmail on 192.168.1.1 and
planning to install RT+MySQL+Apache on second computer 192.168.1.2. I
don’t understand how to setup RT and Qmail to work together. Shall I
install something more (procmail, …) or is qmail and RT enough?

This is part of rt-mailgate help:

“Note that you don’t have to run your RT server on your mail server, as
the mail gateway will happily relay to a different machine.”

and this too:

//
Next, you need to route mail to “rt-mailgate” for the queues you’re
monitoring. For instance, if you’re using /etc/aliases and you have a
“bugs” queue, you will want something like this:

       bugs:         "|/opt/rt3/bin/rt-mailgate --queue bugs

–action correspond
–url http://rt.mycorp.com/"
//

So, when I have Qmail on machine1 and install RT on machine2, how can I
put “/opt/rt3/bin/rt-mailgate” in qmail alias on machine1. There is no
such file on the machine1. Or does “run” mean something else then install?

May be I missed something important…

Thanks for any help.

Peter.


The rt-users Archives

RT Developer and Administrator training is coming to LA, DC and Frankfurt
this spring and summer.
http://bestpractical.com/services/training.html

Sign up early, as class space is limited.

I recently setup the exact thing that your trying to do.

Box with RT is running postfix. I directed postfix to forard all email to my
main mail server.

/etc/postfix/transport:
mydomain.org smtp:[192.168.1.1]

Now on your qmail machine, add an alias like this:

/var/qmail/alias/.qmail-fwd1-rt
&rt@myRTserver.mydomain.org

And to your /var/qmail/control/virtualdomains:
rt@mydomain.org:alias-fwd1

this will forward email from the qmail box to the RT machine, and when you
reply from the RT machine, it’ll forward to your qmail box.

Hope this helps,

-Rak

::On Thursday 13 May 2004 10:35 am, Peter Jamriško
peter.jamrisko@advantel.cz wrote:
::Hi,
::
::I need help with installation of RT. Can someone explain me main idea
::(or detailed step-by-step how-to) of installing RT on a different
::machine than mail server is? I am using qmail on 192.168.1.1 and
::planning to install RT+MySQL+Apache on second computer 192.168.1.2. I
::don’t understand how to setup RT and Qmail to work together. Shall I
::install something more (procmail, …) or is qmail and RT enough?
::
::This is part of rt-mailgate help:
::
::“Note that you don’t have to run your RT server on your mail server, as
::the mail gateway will happily relay to a different machine.”
::
::and this too:
::
:://
::Next, you need to route mail to “rt-mailgate” for the queues you’re
::monitoring. For instance, if you’re using /etc/aliases and you have a
::“bugs” queue, you will want something like this:
::
:: bugs: “|/opt/rt3/bin/rt-mailgate --queue bugs
::–action correspond
:: --url http://rt.mycorp.com/
:://
::
::So, when I have Qmail on machine1 and install RT on machine2, how can I
::put “/opt/rt3/bin/rt-mailgate” in qmail alias on machine1. There is no
::such file on the machine1. Or does “run” mean something else then install?
::
::May be I missed something important…
::
::Thanks for any help.
::
::Peter.
::
::_______________________________________________
::The rt-users Archives
::
::RT Developer and Administrator training is coming to LA, DC and Frankfurt
:: this spring and summer. http://bestpractical.com/services/training.html
::
::Sign up early, as class space is limited.

This would make a VERY nice wiki !!!-----Original Message-----
From: rt-users-bounces@lists.bestpractical.com [mailto:rt-users-bounces@lists.bestpractical.com]On Behalf Of jeff rak
Sent: Thursday, May 13, 2004 11:41 AM
To: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] mail server on different machine

I recently setup the exact thing that your trying to do.

Box with RT is running postfix. I directed postfix to forard all email to my
main mail server.

/etc/postfix/transport:
mydomain.org smtp:[192.168.1.1]

Now on your qmail machine, add an alias like this:

/var/qmail/alias/.qmail-fwd1-rt
&rt@myRTserver.mydomain.org

And to your /var/qmail/control/virtualdomains:
rt@mydomain.org:alias-fwd1

this will forward email from the qmail box to the RT machine, and when you
reply from the RT machine, it’ll forward to your qmail box.

Hope this helps,

-Rak

::On Thursday 13 May 2004 10:35 am, Peter Jamriško
peter.jamrisko@advantel.cz wrote:
::Hi,
::
::I need help with installation of RT. Can someone explain me main idea
::(or detailed step-by-step how-to) of installing RT on a different
::machine than mail server is? I am using qmail on 192.168.1.1 and
::planning to install RT+MySQL+Apache on second computer 192.168.1.2. I
::don’t understand how to setup RT and Qmail to work together. Shall I
::install something more (procmail, …) or is qmail and RT enough?
::
::This is part of rt-mailgate help:
::
::“Note that you don’t have to run your RT server on your mail server, as
::the mail gateway will happily relay to a different machine.”
::
::and this too:
::
:://
::Next, you need to route mail to “rt-mailgate” for the queues you’re
::monitoring. For instance, if you’re using /etc/aliases and you have a
::“bugs” queue, you will want something like this:
::
:: bugs: “|/opt/rt3/bin/rt-mailgate --queue bugs
::–action correspond
:: --url http://rt.mycorp.com/
:://
::
::So, when I have Qmail on machine1 and install RT on machine2, how can I
::put “/opt/rt3/bin/rt-mailgate” in qmail alias on machine1. There is no
::such file on the machine1. Or does “run” mean something else then install?
::
::May be I missed something important…
::
::Thanks for any help.
::
::Peter.
::
::_______________________________________________
::The rt-users Archives
::
::RT Developer and Administrator training is coming to LA, DC and Frankfurt
:: this spring and summer. http://bestpractical.com/services/training.html
::
::Sign up early, as class space is limited.
The rt-users Archives

RT Developer and Administrator training is coming to LA, DC and Frankfurt this spring and summer.
http://bestpractical.com/services/training.html

Sign up early, as class space is limited.

Hi.

I thought that the actual posting of the email into RT was done via a no-auth URL to the web server.
If that is true, you can put RT on the email server, but without any database connectivity or configuration. Basically, you would just be using the RT package for only the mailgate function.
Email directed at the box would (via the /etc/aliases file) call the mailgate program, which would then post to wherever your real RT server is.
I thought that is what the docs that the original post (below) meant. Can someone please let me know if this is correct?

Thanks!
Brent-----Original Message-----
From: rt-users-bounces@lists.bestpractical.com [mailto:rt-users-bounces@lists.bestpractical.com]On Behalf Of Stefan Leblanc
Sent: Thursday, May 13, 2004 11:45 AM
To: jeff rak; rt-users@lists.bestpractical.com
Subject: RE: [rt-users] mail server on different machine

This would make a VERY nice wiki !!!

-----Original Message-----
From: rt-users-bounces@lists.bestpractical.com [mailto:rt-users-bounces@lists.bestpractical.com]On Behalf Of jeff rak
Sent: Thursday, May 13, 2004 11:41 AM
To: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] mail server on different machine

I recently setup the exact thing that your trying to do.

Box with RT is running postfix. I directed postfix to forard all email to my
main mail server.

/etc/postfix/transport:
mydomain.org smtp:[192.168.1.1]

Now on your qmail machine, add an alias like this:

/var/qmail/alias/.qmail-fwd1-rt
&rt@myRTserver.mydomain.org

And to your /var/qmail/control/virtualdomains:
rt@mydomain.org:alias-fwd1

this will forward email from the qmail box to the RT machine, and when you
reply from the RT machine, it’ll forward to your qmail box.

Hope this helps,

-Rak

::On Thursday 13 May 2004 10:35 am, Peter Jamriško
peter.jamrisko@advantel.cz wrote:
::Hi,
::
::I need help with installation of RT. Can someone explain me main idea
::(or detailed step-by-step how-to) of installing RT on a different
::machine than mail server is? I am using qmail on 192.168.1.1 and
::planning to install RT+MySQL+Apache on second computer 192.168.1.2. I
::don’t understand how to setup RT and Qmail to work together. Shall I
::install something more (procmail, …) or is qmail and RT enough?
::
::This is part of rt-mailgate help:
::
::“Note that you don’t have to run your RT server on your mail server, as
::the mail gateway will happily relay to a different machine.”
::
::and this too:
::
:://
::Next, you need to route mail to “rt-mailgate” for the queues you’re
::monitoring. For instance, if you’re using /etc/aliases and you have a
::“bugs” queue, you will want something like this:
::
:: bugs: “|/opt/rt3/bin/rt-mailgate --queue bugs
::–action correspond
:: --url http://rt.mycorp.com/
:://
::
::So, when I have Qmail on machine1 and install RT on machine2, how can I
::put “/opt/rt3/bin/rt-mailgate” in qmail alias on machine1. There is no
::such file on the machine1. Or does “run” mean something else then install?
::
::May be I missed something important…
::
::Thanks for any help.
::
::Peter.
::
::_______________________________________________
::The rt-users Archives
::
::RT Developer and Administrator training is coming to LA, DC and Frankfurt
:: this spring and summer. http://bestpractical.com/services/training.html
::
::Sign up early, as class space is limited.
The rt-users Archives

RT Developer and Administrator training is coming to LA, DC and Frankfurt this spring and summer.
http://bestpractical.com/services/training.html

Sign up early, as class space is limited.
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

RT Developer and Administrator training is coming to LA, DC and Frankfurt this spring and summer.
http://bestpractical.com/services/training.html

Sign up early, as class space is limited.

This message is intended only for the use of the intended recipient and
may contain information that is PRIVILEGED and/or CONFIDENTIAL. If you
are not the intended recipient, you are hereby notified that any use,
dissemination, disclosure or copying of this communication is strictly
prohibited. If you have received this communication in error, please
destroy all copies of this message and its attachments and notify us
immediately.

Peter Jamriško peter.jamrisko@advantel.cz writes:
<-snip->

So, when I have Qmail on machine1 and install RT on machine2, how
can I put “/opt/rt3/bin/rt-mailgate” in qmail alias on
machine1. There is no such file on the machine1. Or does “run” mean
something else then install?

rt-mailgate is fairly a standalone thing. All it needs is itself,
perl, and the modules it uses, so you can install just the mailgate on
your mailserver and point it at your RT server (the --url option).

Espen Wiborg espenhw@empolis.no
On a Canadian two dollar bill, the flag flying over the Parliament
building is an American flag.

Thanks for your answer.

About Fetchmail I found two articles only - POP3Mailgate and
WindowsOSInstallGuide. Now it’s little bit more clear how to use RT on
different machines. I already read FAQ and documentation FOR RT3, but
not for RT1. There is nothing about this problem in RT3 documentation.
You have just help for rt-mailgate (that i posted before) and faq and
documentation, where just a bit about this = nothong usefull.

I was confused with "you don’t need mail server on ‘rt server’ ", but i
have to have at least sendmail or something similar to be able to send
every uotgoing email to central (in my case Qmail) mail server. I knew,
taht I have to say RT to send emails to qmail, but I didn’t know how to
say it.

So, If I understand it correctly I have few choices:

1.a) set qmail (on machine1) to route (transfer) all emails for rt to
the RT machine2.
1.b) install sendmail (postfix or whatever) on the RT machine2 to be
able to receive email from the qmail machine1 and to send emails back to
qmail machine1
1.c) then make alias for user “rt” on the RT machine2 (something like |
“/usr/local/rt/bin/rt-mailgate rt correspond”)

second possibility:
2.a) let qmail to send every email for rt to local mailbox of user “rt”
on local machnine1
2.b) install fetchmail on RT machine2 and set it up to look for new
emails (on machine1) every 5 minutes (via pop3/IMAP):
//
.fetchmailrc:
poll qmail.machine1 proto pop3 username rt password ***** mda
“/opt/rt3/bin/rt-mailgate --url http://localhost/ --queue general
–action correspond”
Run “fetchmail -d 300” (as the rt user) to have fetchmail run every 300
seconds as a daemon to check for mail on the mail server. You may want
to put this into a startup script.
//
2.c) install sendmail (postfix,…) on the RT machine2 to be able to send
emails to machine1 (qmail), which will then send them to normal users
(to requestors, to owners, …)

Or can I use fetchmail to send emails from the RTmachine2 to the qmail
machine1 as well?
Or are there another ways?

Thanks for help.

Peter

Jean-Yan B�rub� wrote:

Thank for your help. I’m goinig to set it in the same way that you did it.

Thanks again.

Maybe I will have more questions to you :slight_smile:

Peter

jeff rak wrote: