Re: [rt-users] Mail Alias Setup

2009-09-03 Thread Joe Hartley
Baskaraganesan Natarajan writes:
 rt: |/etc/smrsh/rt-mailgate --queue 'general' --action correspond --url 
 http://rt3-host/
 
 Can you please explain what this line mean.  I understand that “rt” is a 
 mailer alias and any mail sent to rt in this server will be sent to user 
 in the second column.

The pipe in a UNIX shell takes the output from a program or process and 
sends it to be the input of another.

When the second half of an alias begins with a pipe, it takes the output
from sendmail (the email message) and pipes it to the command listed in
the alias to be used as that program's input - in this case, the 
rt-mailgate program.  



--
Joe Hartley | Sr. Linux SysAdmin
Retail Solutions, Inc.
40 Sharpe Drive
Cranston, RI 02920
joe.hart...@retailsolutions.com 
+1 401.824.5040 (o) | +1 401.824.5002 (f)

 
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sa...@bestpractical.com


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com

Re: [rt-users] Drop Attachments or Deny attachments

2009-02-02 Thread Joe Hartley
I use a script called stripmime to take out attachments and HTML
formatting in emails going to RT.  It's at
http://www.phred.org/~alex/stripmime.html

 

--

Joe Hartley | Sr. Linux SysAdmin
Retail Solutions, Inc.
40 Sharpe Drive
Cranston, RI 02920
joe.hart...@retailsolutions.com 

+1 401.824.5040 (o) | +1 401.824.5002 (f)

 

From: rt-users-boun...@lists.bestpractical.com
[mailto:rt-users-boun...@lists.bestpractical.com] On Behalf Of Rana
Tanveer
Sent: Friday, January 30, 2009 3:57 PM
To: RT Users
Subject: [rt-users] Drop Attachments or Deny attachments

 

Hi RT Admins/Users

I want to stop attachemt received at RT, means RT is configured in a way
that it should not receive any attachment throug mails.
is there any way to configure RT in such a way.

i try to use DropAttachments like methods but attachemts are still there

i want to deny/stop/drop attachments via RT if possible please give me
guideline so i can implement this.



-- 
-
 Rana Tanveer
+923224194457
http://www.sysadminsline.com
-

___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sa...@bestpractical.com


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com

Re: [rt-users] Autocreated users and ldap auth

2008-12-18 Thread Joe Hartley
 I'm using Authen::ExternalAuth and it seems to be working.  If a user
logs in to RT using Active Directory credentials, they get in and get
autocreated.  

 

 However, if before RT login, they submit a ticket, they cannot log in:
rt complains that the email address is already in use (AD lookup finds
the email they submitted from) and says it's in use.  I think I've
misunderstood: I thought RT would treat identical info as one account,
and LDAP lookup would take precedence.  How can I merge them so ldap
lookup is always used, whether they submitted a ticket or not..?

 

 I'm not sure I'm asking this clearly.  Should I be turning off the
create-on-ticket-submit functionality to achieve this?

 

I just ran into this myself when setting up our LDAP authentication.
Our problem was that the LDAP server did not actually have the email
address stored, so the username created in RT was the email address.  I
had to go in and manually change the usernames of all the accounts with
email addresses in the username field.

 

What's the value of 'attr_match_list' and 'attr_map' in your
RT_SiteConfig.pm file?

___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sa...@bestpractical.com


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com

Re: [rt-users] LDAP authentication and existing users

2008-12-10 Thread Joe Hartley
I feel like I'm heading deeper and deeper down a rathole here...

From: Rich West [mailto:[EMAIL PROTECTED] 
 With the default settings in 
 local/plugins/RT-Authen-ExternalAuth/etc/RT_SiteConfig.pm, new users 
 will get created with their AD account name.  At least, that is the
way 
 it behaved for me.  

That'll be brilliant, I'll have to find someone who hasn't submitted a
ticket
To try it out!

 The down side was that external users with the same 
 account name (from a different domain, for example) could not open 
 tickets because of conflicting names.  Once I changed the 
 'attr_match_list' to just the EmailAddress, the accounts started
getting 
 created with the email address as the account name.

 More than likely, at some point in time, you adjusted the 
 'attr_match_list' to only include the email address like so:
 'attr_match_list'   = ['EmailAddress' ],

I've only been hacking at this a couple of days now, the only change was
to
Make attr_match_list = ['Name', 'EmailAddress'], which is the new
default.

 However, your users can log in to RT's interface using their email
address.

This is not working for me, but I may be confused as to how it's
supposed to
work.  Example:  User John Doe has submitted a ticket in the past via
email.
A user was created in RT with the username, email and real name of 
[EMAIL PROTECTED]  John was unable to log into RT using his email
address.
The logs show that the error on LDAP authentication is User not found
or
more than one user found.

What's even worse for me is that if John uses his network username to
log in,
he's successful, but RT creates a new user with the ID, so he doesn't
see his
tickets, and I can't change the username on the user account that is the

requestor of the tickets, because now a user with that name exists.

This Active Directory stuff is of the devil, I tell ya!

Thanks for the info, I appreciate it.

___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com


Re: [rt-users] LDAP authentication and existing users - done

2008-12-10 Thread Joe Hartley
To close the thread here, I've changed all the RT accounts to use the AD
login name as the username within RT.  All's well with the
authentication, users can see their tickets in the self-service
interface.

On the downside, a new ticket created by an email from a user unknown to
the system did not get created with the AD username, but that's because
the AD server did not have a value entered for the user's email, a
side-effect of having an email service that does not use our AD for any
authentication.

Thanks for the help!

--
Joe Hartley | Sr. Linux SysAdmin
Retail Solutions, Inc. (formerly VeriSign RDS)
40 Sharpe Drive
Cranston, RI 02920
[EMAIL PROTECTED] 
+1 401.824.5040 (o) | +1 401.824.5002 (f)



___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com


[rt-users] LDAP authentication and existing users

2008-12-09 Thread Joe Hartley
I've been working on using LDAP authentication in our RT 3.6.6
installation using ExternAuth and have gotten quite a way on my own, but
have run into a minor speedbump.

People here have gotten used to submitting tickets to RT via email but
now we want to roll out the self-service interface, and authenticate
against our Active Directory server to log in.  The problem I have is
that when RT automatically created the users, the RT username was set to
the email address of the requestor.

Now, I've discovered that the user cannot access the self-service
interface unless their username is changed from their email address to
their AD login.  Has anyone ever seen a script that would take a list of
email addresses and look up the login name?

Also, does anyone know how I can get RT to use the login name instead of
the email address when it auto-creates a user upon getting a ticket from
a new user via email?

Thanks for any pointers tossed out here - I'm a newbie when it comes to
the world of LDAP and Active Directory!

--
Joe Hartley | Sr. Linux SysAdmin
Retail Solutions, Inc. (formerly VeriSign RDS)
40 Sharpe Drive
Cranston, RI 02920
[EMAIL PROTECTED] 
+1 401.824.5040 (o) | +1 401.824.5002 (f)


___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com


Re: [rt-users] Help with Fetchmail

2008-12-05 Thread Joe Hartley
You have a space between the double dashes and url.

--
Joe Hartley | Sr. Linux SysAdmin
Retail Solutions, Inc. (formerly VeriSign RDS)
[EMAIL PROTECTED] 


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Friday, December 05, 2008 12:26 PM
To: rt-users@lists.bestpractical.com
Subject: [rt-users] Help with Fetchmail

Hi Folks!

Need some help on the final step of an RT 3.6.7 installation on a
CentOS box and fetchmail.

Here's what we did:

1. Created a file called .fetchmailrc on /root/ with:
-
#!/bin/sh
set logfile /opt/rt3/fetchmail.log

# 30 sec:
set daemon 30
poll 192.168.100.1 proto pop3:
username peter there with password peter1 mda
/opt/rt3/bin/rt-mailgate  -- url http://rt.domain.com/ --queue
'Peter' --action correspond

2. On rc.local added:
usr/bin/fetchmail
su -c fetchmail -d 60 root

Looking throw the fetchmail.log i get this:

No url provided to mail gateway!
fetchmail: reading message [EMAIL PROTECTED]:3 of 3 (2399 octets)
(log message incomplete)fetchmail: MDA returned nonzero status 255
fetchmail:  not flushed
fetchmail: 1 message for implementaciones at 192.168.100.1 (1460
octets).
/opt/rt3/bin/rt-mailgate invoked improperly

Any Clue?
I know i missed or mess something!
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com


Re: [rt-users] No ReplyToTicket, but I can still reply?

2008-07-08 Thread Joe Hartley
 Todd Chapman wrote:
 Tooting my own horn:

 The RightsMatrix extension can show you exactly how a user gets a
right.


http://search.cpan.org/~htchapman/RTx-RightsMatrix-0.03.00/lib/RTx/Right
sMatrix.pm

This is a very nice tool!  Thanks for writing it and putting it out
there.

--
Joe Hartley | Sr. Linux SysAdmin
Retail Solutions, Inc. (formerly VeriSign RDS)
40 Sharpe Drive
Cranston, RI 02920
[EMAIL PROTECTED] 
+1 401.824.5040 (o) | +1 401.824.5002 (f)

___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com


Re: [rt-users] Intergrating wo MS Exchange

2008-03-27 Thread Joe Hartley
This is done in the RT_SiteConfig.pm file.

http://wiki.bestpractical.com/view/EmailInterface has much to say on the
subject.

--
Joe Hartley | Sr. Linux SysAdmin
Retail Solutions, Inc. (formerly VeriSign RDS)
6 Blackstone Valley Place, Suite 402
Lincoln, RI 02865
[EMAIL PROTECTED] 
+1 401.642.1140 (o) | +1 401.642.1101 (f)


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Nelson
Pereira
Sent: Thursday, March 27, 2008 7:55 AM
To: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Intergrating wo MS Exchange

How do you setup RT to send mail via sendmail (like auto responses) with
a specific username?

All the emails sent from RT must be (for testing purposes) sent from
[EMAIL PROTECTED]

How do I accomplish this?

PS: RT on CentOS5 with sendmail as MTA.

Thanks




Nelson Pereira 
Senior Network Administrator 

Protus IP Solutions Inc. 
[EMAIL PROTECTED] 
phone: 613.733. ext.528 
MyFax: 613.822.5083 
www.myfax.com 

Refer your friends and colleagues to MyFax! 
Click here for more information.www.MyFax.com   

-Original Message-
From: Post [mailto:Post] 
Sent: Wednesday, March 26, 2008 2:42 PM
To: Nelson Pereira
Subject: NDN: Re: [rt-users] Intergrating wo MS Exchange

Sorry. Your message could not be delivered to:

Alexander Liebl (Mailbox or Conference is full.)

___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com