<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=US-ASCII">
<TITLE>RE: [rt-users] fetchmail</TITLE>
<META content="MSHTML 6.00.2800.1498" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=720255115-29062005><FONT face=Arial
color=#0000ff size=2>ok I think I know what the problem is but how do I solve
it?</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=720255115-29062005><FONT face=Arial
color=#0000ff size=2>on Fedora Core 3 - I have edited the /etc/aliases files
to:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=720255115-29062005><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=720255115-29062005><FONT color=#0000ff>
<P><FONT face=Arial size=2>rt: "|/etc/smrsh/rt-mailgate --queue 'Solutions
Queue' --action correspond --url </FONT><A href="http://helpdesk/rt/"
target=_blank></FONT><FONT face=Arial size=2>http://helpdesk/rt/</A><FONT
face=Arial size=2>"</FONT><FONT face=Arial><FONT size=2> <BR>rt-comment:
"|/opt/rt3/bin/rt-mailgate --queue general --action comment --url </FONT><A
href="http://helpdesk/rt/" target=_blank></FONT><FONT
size=2>http://helpdesk/rt/</A><FONT size=2>" </FONT></FONT></P>
<P><SPAN class=720255115-29062005><FONT face=Arial size=2>however, upon looking
at /var/log/maillog I see the old command being run:</FONT></SPAN></P>
<P><SPAN class=720255115-29062005><FONT face=Arial size=2>Jun 29 11:45:13
helpdesk sendmail[8046]: j5TFQ6LD007797: to="|/opt/rt3/bin/rt-mailgate --queue
general --action correspond --url htt<BR>p://serverDev/rt/", ctladdr=<<A
href="mailto:rt@helpdesk">rt@helpdesk</A>> (8/0), delay=00:19:07,
xdelay=00:00:02, mailer=prog, pri=300497, dsn=4.0.0, stat=Deferred:
prog<BR> mailer (/usr/sbin/smrsh) exited with
EX_TEMPFAIL</FONT></SPAN></P></FONT></SPAN></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=720255115-29062005>as you
can see, it is pointing to the wrong server name (serverDev) which is what was
in the original aliases file.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=720255115-29062005>I have
done a "makemap hash aliases <aliases" and see this:</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=720255115-29062005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=720255115-29062005>Jun 29
11:45:11 helpdesk sendmail[8040]: alias database /etc/aliases rebuilt by
tmaciak<BR>Jun 29 11:45:11 helpdesk sendmail[8040]: /etc/aliases: 82 aliases,
longest 105 bytes, 1239 bytes total<BR>Jun 29 11:45:11 helpdesk sendmail[8045]:
starting daemon (8.13.1): <A
href="mailto:SMTP+queueing@01:00:00">SMTP+queueing@01:00:00</A><BR>Jun 29
11:45:11 helpdesk sm-msp-queue[8053]: starting daemon (8.13.1): <A
href="mailto:queueing@01:00:00">queueing@01:00:00</A></SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=720255115-29062005>Also I
have restarted the /etc/init.d/sendmail task but even though the alias db file
has been updated it is still pointing to the old web server.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=720255115-29062005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=720255115-29062005>Is
this configured somewhere else? or is there some other service I have to
restart in order for aliases.db to get read correctly?</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=720255115-29062005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=720255115-29062005>HELP!</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV align=left><SPAN style="FONT-FAMILY: times new roman"><FONT face=Arial
size=2>T.J. Maciak</FONT></SPAN></DIV><SPAN
style="FONT-FAMILY: times new roman">
<DIV align=left><FONT face=Arial color=#0000ff size=2></FONT><BR><FONT
face=Arial size=2>Internet/Intranet Developer<BR>Department of IT<BR>City of
Grand Rapids<BR>P: (616)456-3713</FONT></DIV>
<DIV align=left><FONT face=Arial size=2>F:
(616)456-3448<BR><BR></DIV></FONT></SPAN>
<DIV> </DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> rt-users-bounces@lists.bestpractical.com
[mailto:rt-users-bounces@lists.bestpractical.com] <B>On Behalf Of </B>Maciak,
TJ<BR><B>Sent:</B> Wednesday, June 29, 2005 10:24 AM<BR><B>To:</B> Rainer
Duffner<BR><B>Cc:</B> rt-users@lists.bestpractical.com<BR><B>Subject:</B> RE:
[rt-users] fetchmail<BR></FONT><BR></DIV>
<DIV></DIV>
<P><FONT size=2>Ok thanks that is helpful for the aliases part! so I have
placed:</FONT> </P>
<P><FONT size=2>rt: "|/etc/smrsh/rt-mailgate --queue 'Solutions Queue' --action
correspond --url <A href="http://helpdesk/rt/"
target=_blank>http://helpdesk/rt/</A>"</FONT> <BR><FONT size=2>rt-comment:
"|/opt/rt3/bin/rt-mailgate --queue general --action comment --url <A
href="http://helpdesk/rt/" target=_blank>http://helpdesk/rt/</A>" </FONT></P>
<P><FONT size=2>I placed the /etc/smrsh/rt-mailgate as stated for Redhat Distros
(checked the directory and the rt-mailgate was already there)</FONT></P>
<P><FONT size=2>into the /etc/aliases file as I read in the
documentation.</FONT> </P>
<P><FONT size=2>I then send a test message to each queue, </FONT></P>
<P><FONT size=2>echo 'hello1018' | mail -s "Test subject" rt-comment</FONT> </P>
<P><FONT size=2>And</FONT> </P>
<P><FONT size=2>echo 'hello1015' | mail -s "Test subject" rt</FONT> </P><BR>
<P><FONT size=2>If I do it to some other user, I get an error in my root mailbox
(saying user is not known) so I know the mail part is working.</FONT></P>
<P><FONT size=2>After I send the test messages, I do not get any error or
informational messages in /opt/rt3/var/log/rt.log nor
/var/log/messages</FONT></P>
<P><FONT size=2>Yet the tickets are not created. I also restarted apache
as stated in the documentation.</FONT> </P>
<P><FONT size=2>T.J. Maciak</FONT> </P>
<P><FONT size=2>Internet/Intranet Developer</FONT> <BR><FONT size=2>Department
of IT</FONT> <BR><FONT size=2>City of Grand Rapids</FONT> <BR><FONT size=2>P:
(616)456-3713</FONT> <BR><FONT size=2>F: (616)456-3448</FONT> </P><BR><BR>
<P><FONT size=2>-----Original Message-----</FONT> <BR><FONT size=2>From: Rainer
Duffner [<A
href="mailto:rainer@ultra-secure.de">mailto:rainer@ultra-secure.de</A>]
</FONT><BR><FONT size=2>Sent: Wednesday, June 29, 2005 9:54 AM</FONT> <BR><FONT
size=2>To: Maciak, TJ</FONT> <BR><FONT size=2>Cc:
rt-users@lists.bestpractical.com</FONT> <BR><FONT size=2>Subject: Re: [rt-users]
fetchmail</FONT> </P>
<P><FONT size=2>Maciak, TJ wrote:</FONT> </P>
<P><FONT size=2>> I am running RT as root and do not have a user on my Fedora
Core 3 </FONT><BR><FONT size=2>> system called "RT".</FONT> <BR><FONT
size=2>> </FONT><BR><FONT size=2>> If I run fetchmail to process
email that it grabs from an exchange </FONT><BR><FONT size=2>> server and
place into a specified queue do I need to create a </FONT><BR><FONT size=2>>
rt@localhost <<A href="mailto:rt@localhost">mailto:rt@localhost</A>> (on
the rt server) user or can I </FONT><BR><FONT size=2>> just place the
.fetchmailrc file into the /root directory?</FONT> <BR><FONT size=2>>
</FONT><BR><FONT size=2>> Also does anybody have some tips on how/where to
enter the aliases for</FONT> <BR><FONT size=2>> rt: and rt-comment:
?</FONT> <BR><FONT size=2>> this is in reference to the archive list on
fetchmail at </FONT><BR><FONT size=2>> <A
href="http://lists.bestpractical.com/pipermail/rt-users/2005-April/030786.ht"
target=_blank>http://lists.bestpractical.com/pipermail/rt-users/2005-April/030786.ht</A></FONT>
<BR><FONT size=2>> ml</FONT> <BR><FONT size=2>> </FONT></P><BR><BR>
<P><FONT size=2>You might want to go to wiki.bestpractical.com and search for
"fetchmail".</FONT> <BR><FONT size=2>The setup discribed in the article works
very well.</FONT> </P><BR><BR>
<P><FONT size=2>Rainer</FONT> </P></BODY></HTML>