postfix configuration to a generic handler

2013-09-15 Thread Tim Prepscius
Hello, This has probably been answered in some thread, however I'm having a hard time finding it. I'm reading through the documentation, and it is not clear how I would fashion a configuration. I would like to run postfix in the following fashion: 1. post fix receives mail from anyuser@anydom

Re: postfix configuration to a generic handler

2013-09-15 Thread Tim Prepscius
On 9/15/13, Wietse Venema wrote: > Tim Prepscius: >> Hello, >> >> This has probably been answered in some thread, however I'm having a >> hard time finding it. >> I'm reading through the documentation, and it is not clear how I would >> fashion a co

Re: postfix configuration to a generic handler

2013-09-15 Thread Tim Prepscius
ox_domains = pcre:/etc/postfix/virtual_domains.pcre ... this postfix is great lol. the man pages are really intimidating though. lol. I really appreciate the advice, -tim On 9/15/13, Wietse Venema wrote: > Tim Prepscius: >> oh wow, this worked, first time too. jeeze.. that's

configuration of virtual_domains

2013-09-23 Thread Tim Prepscius
Hey there, So I'm continuing to configuration postfix. I'm having some problems with virtual domains. The goal of the virtual domains is to enumerate the domains which I'm ok with receiving mail. So in my main.cf file I have: virtual_mailbox_domains = hash:/etc/postfix/config/virtual_domains

Re: configuration of virtual_domains

2013-09-23 Thread Tim Prepscius
Thank you for this. 1 configuration down! ;-) -tim On 9/23/13, Viktor Dukhovni wrote: > On Mon, Sep 23, 2013 at 04:58:07PM -0400, Tim Prepscius wrote: > >> I'm having some problems with virtual domains. The goal of the >> virtual domains is to enumerate the do

piping command stdout to disk

2013-09-23 Thread Tim Prepscius
Hey, Thank again for the help on the previous configuration issue. Ok, so now I'm looking to revise my: main.cf: javapipe_destination_recipient_limit = 1 virtual_transport = javapipe master.cf: javapipe unix - n n - - pipe user=postfix-user flags=DRhuX argv=

Re: piping command stdout to disk

2013-09-23 Thread Tim Prepscius
Ok, I will do as you suggest. I have one more question for today, I'll start another thread. -tim On 9/23/13, Viktor Dukhovni wrote: > On Mon, Sep 23, 2013 at 05:37:27PM -0400, Tim Prepscius wrote: > >> I'd like to pipe the stdout to a log file. >> Can I d

on send call command

2013-09-23 Thread Tim Prepscius
Hey, Again, thank you very much for the previous configuration questions. So, at the moment, when a mail is received it correctly spawns the java process and does whatever it needs to do. I would also like to hook this same process in when a send event occurs. So: Bob talks to SMTP, sends an

Re: on send call command

2013-09-23 Thread Tim Prepscius
I *do* want the mail to be sent. I just want to record exactly what it looks like before it gets sent out. -tim On 9/23/13, Tim Prepscius wrote: > Hey, > > Again, thank you very much for the previous configuration questions. > > > So, at the moment, when a mail is received i

Re: on send call command

2013-09-23 Thread Tim Prepscius
Umm, I'm looking for something more canonical. I want to get exactly what will be sent over the network, right before it is sent, or when it is queued. -tim On 9/23/13, Wietse Venema wrote: > Tim Prepscius: >> Hey, >> >> Again, thank you very much for the previo

Re: on send call command

2013-09-23 Thread Tim Prepscius
der: owner-postfix-us...@postfix.org Is there a way? -tim On 9/23/13, Wietse Venema wrote: > Tim Prepscius: >> Umm, I'm looking for something more canonical. >> >> I want to get exactly what will be sent over the network, right before >> it is sent, or when it is

Re: on send call command

2013-09-23 Thread Tim Prepscius
On 9/23/13, /dev/rob0 wrote: > On Mon, Sep 23, 2013 at 10:18:42PM -0400, Tim Prepscius wrote: >> On 9/23/13, Wietse Venema wrote: >> > Tim Prepscius: >> >> Umm, I'm looking for something more canonical. >> >> >> >> I want to get exac

Re: on send call command

2013-09-23 Thread Tim Prepscius
logging would most likely be a kludge. On a side note, are you encrypting the queue files? -tim On 9/23/13, Noel Jones wrote: > On 9/23/2013 9:18 PM, Tim Prepscius wrote: >> No, I don't mean network dump. >> >> I mean the full mime-message. >> With all the

Re: on send call command

2013-09-24 Thread Tim Prepscius
Ok I have two questions. 1. Does always_bcc modify the original message? 2. Could I somehow plug in to whatever is queueing the message to disk? -tim On 9/24/13, Noel Jones wrote: > On 9/23/2013 11:08 PM, Tim Prepscius wrote: >> I need to save the original, of all messages le

Re: on send call command

2013-09-24 Thread Tim Prepscius
Ah.. I think the http://www.postfix.org/FILTER_README.html is what I need -- perhaps -- I'll find out. Thank you for all the pointers so far, -tim On 9/24/13, Wietse Venema wrote: > Tim Prepscius: >> Ok I have two questions. >> >> >> 1. Does always

Re: Save mails into custom DB

2013-10-20 Thread Tim Prepscius
search for my name on this mailing list I'm doing about the same thing.. It turns out you can probably use most of the java code you wrote for james. Unfortunately pipe will not be enough to catch the outgoing mail. You will need to write a filter. But a first cut can be a bash script which call

postfix after queue content filter

2014-03-18 Thread Tim Prepscius
Greetings, I'm having troubles setting up the postfix after queue content filter. http://www.postfix.org/FILTER_README.html In a nutshell, the filter works correctly, however the sendmail command re-inserts the mail into the queue, and it hits the content filter again. (which in turn re-inserts i

Re: postfix after queue content filter

2014-03-19 Thread Tim Prepscius
I'm looking through the docs of sendmail, seeing how I can get it to send to a specific port. But not seeing it. Am I looking in the wrong place? -tim On 3/19/14, Lewin Bormann wrote: > It seems that the local delivery (pickup?) uses the content filter which > it shouldn't, AFAIK. > If that is

Re: postfix after queue content filter

2014-03-19 Thread Tim Prepscius
work with this scenario? http://www.postfix.org/FILTER_README.html -tim On 3/19/14, li...@rhsoft.net wrote: > as lonf you are talking about pickup there is no port > involved at all and no smtp/smtpd setting is relevant > because it's just not SMTP > > Am 19.03.2014 20:49,

Re: postfix after queue content filter

2014-03-19 Thread Tim Prepscius
queue, etc. -tim On 3/19/14, li...@rhsoft.net wrote: > Am 19.03.2014 20:59, schrieb Tim Prepscius: >> so let's say I wanted to do what Lewin said, >> >> have normal mail on 25, and then special non filtered mail (mail that >> has already gone through the filte