LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-31-2003, 07:31 AM   #1
Claus
Member
 
Registered: Jul 2003
Location: Santiago de Chile
Distribution: Debian testing/unstable
Posts: 74

Rep: Reputation: 15
How to communicate to IMAP/Cyrus server through SOCKETS?


I'm working in a college project and i have to develop an application to administer IMAP/Cyrus servers using sockets instead cyradm.

But i can't find the commands that the IMAP/Cyrus protocol accept directly.. only references to cyradm commands

does somebody know where i can find that info????

thank you
 
Old 10-31-2003, 10:39 AM   #2
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
It won't accept administrative commands over the IMAP protocol, since that's strictly an e-mail protocol. Try using netstat to view the ports listening on your system. When you find an open port, try
Code:
grep number-of-port /etc/services
to see what that port is for. If it's not listed in /etc/services, it could be used by another application for some type of out-of-band management. Try doing a
Code:
telnet number-of-port
(if it's a TCP port) and see if there is some type of banner displayed indicating what service it is.

You can also try running a sniffer, such as ethereal or tcpdump on the host while you send commands over the web GUI. You can see which port those commands are going to on the backend.
 
Old 10-31-2003, 12:56 PM   #3
Claus
Member
 
Registered: Jul 2003
Location: Santiago de Chile
Distribution: Debian testing/unstable
Posts: 74

Original Poster
Rep: Reputation: 15
I know what port it is... is the 143

But i need to know what i have to send thrught the sockets to make the tasks....

I know, by example, that the following string is is what i need to write to the socket if i want to know the quota of the user lala:

. getquota user.lala\n

But i don't know what others commands are availabile....
 
Old 10-31-2003, 01:11 PM   #4
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
I seriously doubt it's 143. That is the actual port that mail is retreived on. Are you positive that's the port you're supposed to use???

You need to figure out how cyradm passes commands to the program. Although there is an outside possibility that it uses the same port as mail traffic, it's very unlikely. That's what I was trying to help you with above. Basically you want to reverse engineer cyradm.

Check out http://www.web-cyradm.org/documentat...-cyradm.pdf.gz for some good information about setting up web/db integrated administration for Cyrus. I did not see anything in my brief scan that indicated it would act directly on the IMAP port.

For a list of IMAP RFCs, check out http://www.networksorcery.com/enp/pr.../imap.htm#RFCs

Pretty much anything listed as a command under IMAP4 should be supported by modern IMAP daemons.
 
Old 10-31-2003, 02:19 PM   #5
Claus
Member
 
Registered: Jul 2003
Location: Santiago de Chile
Distribution: Debian testing/unstable
Posts: 74

Original Poster
Rep: Reputation: 15
Yeah, it's 143.... i'm absolutely sure ...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with mail delivery procmail>cyrus imap (using sendmail,procmail,cyrus,imap) bwana Linux - Software 2 03-24-2005 07:01 PM
Email Server: Cyrus IMAP problems Dragons_Way Linux - Software 1 03-07-2005 08:53 AM
Mail Server: Cyrus IMAP/Postfix novaprime Linux - Software 1 01-17-2005 11:29 AM
Installing IMAP/Cyrus server in RedHat. Claus Red Hat 2 12-07-2003 06:58 AM
Using Cyrus IMAP Server RKris Linux - Software 0 03-04-2003 06:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration