Re: external postfix content filter poc doesn't work

2014-04-23 Thread Gökhan Alkan
Hi Thanks for your replies. Best regards On Thursday, April 24, 2014, Wietse Venema wrote: > G?khan Alkan: > > Hi all, > > > > Thank you for your reply again. > > > > I assume that receive data from 10025/tcp and send to 10026 is enough for > > this purpose. But i think, i am wrong this subjec

Re: external postfix content filter poc doesn't work

2014-04-23 Thread Wietse Venema
G?khan Alkan: > Hi all, > > Thank you for your reply again. > > I assume that receive data from 10025/tcp and send to 10026 is enough for > this purpose. But i think, i am wrong this subject. I should send data both > client which connect to 10025 and other side which i will connect to 10026. >

Re: external postfix content filter poc doesn't work

2014-04-23 Thread Gökhan Alkan
Hi all, Thank you for your reply again. I assume that receive data from 10025/tcp and send to 10026 is enough for this purpose. But i think, i am wrong this subject. I should send data both client which connect to 10025 and other side which i will connect to 10026. I will explore this project na

Re: external postfix content filter poc doesn't work

2014-04-23 Thread Wietse Venema
G?khan Alkan: > Hi all, > > Thank you for your reply. Your program copies only in one direction. SMTP requires that you copy data in both directions between the client that connects to port 10025/tcp, and the server that listens on port 10026/tcp. Look in with a search engine for smtpprox. It s

Re: external postfix content filter poc doesn't work

2014-04-23 Thread Gökhan Alkan
Hi all, Thank you for your reply. - You recommened me that use netcat. But what for ? (debugging, sending test email vs vs ...) Can you explain a bit more please ? - As you said i added the code error handling. But when i run this poc code and try to send email postfix again says me "451 4.3.0

Re: external postfix content filter poc doesn't work

2014-04-23 Thread Wietse Venema
G?khan Alkan: > I try to develop poc code for postfix content filtering. All i need is read > the 10025/tcp and send all data which i can read to 10026/tcp. Below is my > poc code. But i try to send email it doesn't work and postfix show me "451 > 4.3.0 Error: queue file write error". I recommend

external postfix content filter poc doesn't work

2014-04-23 Thread Gökhan Alkan
I try to develop poc code for postfix content filtering. All i need is read the 10025/tcp and send all data which i can read to 10026/tcp. Below is my poc code. But i try to send email it doesn't work and postfix show me "451 4.3.0 Error: queue file write error". #include #include #include #inc