Real Software Forums
http://forums.realsoftware.com/

Postfix Queue files and Email... Classes
http://forums.realsoftware.com/viewtopic.php?f=8&t=28105
Page 1 of 1

Author:  bineo [ Mon May 18, 2009 2:06 am ]
Post subject:  Postfix Queue files and Email... Classes

Hi

I hope somebody can answer this :D
Is it possible to Process the Queuefiles of the Postfix Mailsystem with the E-mail-class Objects in RB ?

I got a Spam/Virus filtering System (Mailscanner) that stores Spam or Virus infected Mails as complete queue files.
If you open them in a Editor you got basically the complete Message with some special carracters...

thanks for your thoughts...

Author:  Kevin [ Mon May 25, 2009 6:47 pm ]
Post subject:  Re: Postfix Queue files and Email... Classes

The file(s) are stored in the standard mailbox format the classes from my inspection are for TCP protocols SMTP, POP3 etc. You can have most MTAs deliver questionable mail to a specific mailbox then you may retrieve it using standard TCP mail protocols. This is not recommended it is considered very dangerous best to use read the file(s) directly in mailbox format.

Author:  bineo [ Mon May 25, 2009 11:51 pm ]
Post subject:  Re: Postfix Queue files and Email... Classes

Quote:
...best to use read the file(s) directly in mailbox format.


Is there a way doing this in RB ?? I found out that i can fill in the message in a class if read it in through postcat. Which is the same as if i use pop3 or simillar, no ?
SO how can i process the files directly ? Would i need to read them binary or something ?

Author:  Kevin [ Tue May 26, 2009 12:54 pm ]
Post subject:  Re: Postfix Queue files and Email... Classes

I have seen Postcat used in several situation and it was very useful. The key here is to utilize a program(s) without any implicit processing. Perl developers seem to favor processing the files in a user mailbox (~/MailDir) as root since each file is a individual message it is simple. I personally have the MTA deliver all messages to a specific account then do all my processing via the mailbox (~/MailDir). This is more of personal preference than anything.

As usual your mileage may vary,
Kevin

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/