[rt-users] fetchmail

Maciak, TJ tmaciak at ci.grand-rapids.mi.us
Wed Jun 29 11:54:46 EDT 2005


ok I think I know what the problem is but how do I solve it?
on Fedora Core 3 - I have edited the /etc/aliases files to:
 
rt: "|/etc/smrsh/rt-mailgate --queue 'Solutions Queue' --action correspond
--url  <http://helpdesk/rt/> http://helpdesk/rt/" 
rt-comment: "|/opt/rt3/bin/rt-mailgate --queue general --action comment
--url  <http://helpdesk/rt/> http://helpdesk/rt/" 

however, upon looking at /var/log/maillog I see the old command being run:

Jun 29 11:45:13 helpdesk sendmail[8046]: j5TFQ6LD007797:
to="|/opt/rt3/bin/rt-mailgate --queue general --action correspond --url htt
p://serverDev/rt/", ctladdr=<rt at helpdesk <mailto:rt at helpdesk> > (8/0),
delay=00:19:07, xdelay=00:00:02, mailer=prog, pri=300497, dsn=4.0.0,
stat=Deferred: prog
 mailer (/usr/sbin/smrsh) exited with EX_TEMPFAIL

as you can see, it is pointing to the wrong server name (serverDev) which is
what was in the original aliases file.
 
I have done a "makemap hash aliases <aliases" and see this:
 
Jun 29 11:45:11 helpdesk sendmail[8040]: alias database /etc/aliases rebuilt
by tmaciak
Jun 29 11:45:11 helpdesk sendmail[8040]: /etc/aliases: 82 aliases, longest
105 bytes, 1239 bytes total
Jun 29 11:45:11 helpdesk sendmail[8045]: starting daemon (8.13.1):
SMTP+queueing at 01:00:00 <mailto:SMTP+queueing at 01:00:00> 
Jun 29 11:45:11 helpdesk sm-msp-queue[8053]: starting daemon (8.13.1):
queueing at 01:00:00 <mailto:queueing at 01:00:00> 
 
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.
 
Is this configured somewhere else?  or is there some other service I have to
restart in order for aliases.db to get read correctly?
 
HELP!
 
T.J. Maciak

Internet/Intranet Developer
Department of IT
City of Grand Rapids
P: (616)456-3713
F: (616)456-3448


 

  _____  

From: rt-users-bounces at lists.bestpractical.com
[mailto:rt-users-bounces at lists.bestpractical.com] On Behalf Of Maciak, TJ
Sent: Wednesday, June 29, 2005 10:24 AM
To: Rainer Duffner
Cc: rt-users at lists.bestpractical.com
Subject: RE: [rt-users] fetchmail



Ok thanks that is helpful for the aliases part!  so I have placed: 

rt: "|/etc/smrsh/rt-mailgate --queue 'Solutions Queue' --action correspond
--url http://helpdesk/rt/ <http://helpdesk/rt/> " 
rt-comment: "|/opt/rt3/bin/rt-mailgate --queue general --action comment
--url http://helpdesk/rt/ <http://helpdesk/rt/> " 

I placed the /etc/smrsh/rt-mailgate as stated for Redhat Distros (checked
the directory and the rt-mailgate was already there)

into the /etc/aliases file as I read in the documentation. 

I then send a test message to each queue, 

echo 'hello1018' | mail -s "Test subject" rt-comment 

And 

echo 'hello1015' | mail -s "Test subject" rt 


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.

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

Yet the tickets are not created.  I also restarted apache as stated in the
documentation. 

T.J. Maciak 

Internet/Intranet Developer 
Department of IT 
City of Grand Rapids 
P: (616)456-3713 
F: (616)456-3448 



-----Original Message----- 
From: Rainer Duffner [mailto:rainer at ultra-secure.de
<mailto:rainer at ultra-secure.de> ] 
Sent: Wednesday, June 29, 2005 9:54 AM 
To: Maciak, TJ 
Cc: rt-users at lists.bestpractical.com 
Subject: Re: [rt-users] fetchmail 

Maciak, TJ wrote: 

> I am running RT as root and do not have a user on my Fedora Core 3 
> system called "RT". 
>  
> If I run fetchmail to process email that it grabs from an exchange 
> server and place into a specified queue do I need to create a 
> rt at localhost <mailto:rt at localhost <mailto:rt at localhost> > (on the rt
server) user or can I 
> just place the .fetchmailrc file into the /root directory? 
>  
> Also does anybody have some tips on how/where to enter the aliases for 
> rt: and rt-comment:  ? 
> this is in reference to the archive list on fetchmail at 
> http://lists.bestpractical.com/pipermail/rt-users/2005-April/030786.ht
<http://lists.bestpractical.com/pipermail/rt-users/2005-April/030786.ht>  
> ml 
>  



You might want to go to wiki.bestpractical.com and search for "fetchmail". 
The setup discribed in the article works very well. 



Rainer 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20050629/11b85899/attachment.htm>


More information about the rt-users mailing list