Re: Newb question - simple script

2010-10-12 Thread jimmy zoto
Thanks for the reply. I'm aware it's not a good design, which is why I also asked for suggestions for better ways to accomplish my purpose :) I'm going to try the subethasmtp java smtp server. From: Victor Duchovni To: postfix-users@postfix.org Sent: Mon, O

search message body

2010-10-12 Thread Tom Kinghorn
 Morning list. Apologies for the post. I have alot of queued mail and would like to know if it is possible to serach for a string in the body of mails which are queued? i.e, i would like to find the message-id's of all queued mail with  "reply if we ca

LDAP, groups and users without local accounts

2010-10-12 Thread Jakob Lenfers
Hi, perhaps you guys can help me. I'm integrating postfix into our ldap environment. We have groups (posixGroup) with memberUids in them (e.g. lenfers for me). Adding mail info to those groups works and all local users get resolved correctly. But sometimes there are users (e.g. externuser) th

Re: Queue full of double-bounce

2010-10-12 Thread Patric Falinder
Wietse Venema skrev 2010-10-11 23:00: Patric Falinder: then you have found the timer bug that causes Postfix to deliver only one message probe per 300 seconds, and we can start looking for workarounds (such as changing the src/util/events.c module and replacing zero delay requests by 1 millisec

hide (do not disclose) reject reason to client but log as usual

2010-10-12 Thread Costin Gusa
Hello, I would like to be able to configure smtpd so that a generic smtp session reject code to be given without explanation (ex. helo command rejected, user unknown, client host rbl, etc) while at the same time detail the reject reason in mail.log as usual. Is this possible? Thank you

Re: adding recipient

2010-10-12 Thread Noel Jones
On 10/12/2010 1:12 AM, Tom Kinghorn wrote: Good morning List. I just wanted to know if it is possible to add a recipient to a message which is queued? I come from an exim background where we could do so using *exim -Ma*r /message-id/ *new-recipient-address*. Thanks in advance. Tom Postfix

Re: adding recipient

2010-10-12 Thread Tom Kinghorn
On 2010/10/12 01:05 PM, Noel Jones wrote: I come from an exim background where we could do so using *exim -Ma*r /message-id/ *new-recipient-address*. Thanks in advance. Tom Postfix has no such mechanism. Thanks for the response Noel. Regards Tom

best way to send "raw" email (files)?

2010-10-12 Thread Tomasz Chmielewski
I have a legacy application which produces emails as text files (email headers, body). I was wondering, what would be the best way to send mails "delivered" in such format? Some more background: - application is running on a Windows system, - it writes the files to the Samba share (same se

Re: Queue full of double-bounce

2010-10-12 Thread Patric Falinder
Patric Falinder skrev 2010-10-12 10:37: Wietse Venema skrev 2010-10-11 23:00: Patric Falinder: then you have found the timer bug that causes Postfix to deliver only one message probe per 300 seconds, and we can start looking for workarounds (such as changing the src/util/events.c module and re

Mail redirecting

2010-10-12 Thread Jonas Cammaer
I've been thinking for a while about a setup I would like to achieve, and I still have some questions about it. What I'm trying to build is basically a Postfix server which checks the received mail against a MySQL database and checks what to do next with the email. The MySQL database would contain

Re: LDAP, groups and users without local accounts

2010-10-12 Thread Victor Duchovni
On Tue, Oct 12, 2010 at 10:05:10AM +0200, Jakob Lenfers wrote: > perhaps you guys can help me. I'm integrating postfix into our ldap > environment. We have groups (posixGroup) with memberUids in them (e.g. > lenfers for me). Adding mail info to those groups works and all local users > get resol

Re: Queue full of double-bounce

2010-10-12 Thread Wietse Venema
Patric Falinder: > > as a result, so I guess it doesn't have to do with the timer thing!? No you cannot prove the absence of this bug. Perhaps it triggers when you run lots of instances of my test program in parallel. We have no idea of what all the other virtual machines are doing and we have no

Re: search message body

2010-10-12 Thread Victor Duchovni
On Tue, Oct 12, 2010 at 09:47:44AM +0200, Tom Kinghorn wrote: > Morning list. > >Apologies for the post. > >I have alot of queued mail and would like to know if it is possible to >serach for a string in the body of mails which are queued? > >i.e, i would like to find the mes

Re: best way to send "raw" email (files)?

2010-10-12 Thread Wietse Venema
Tomasz Chmielewski: > cat /samba/emails/somefile.eml | sendmail -t sendmail -t < filename assuming that the file does not contain garbage such as Control-Z at the end of the file. Only slightly faster would be to use one of the mini-sendmail programs that read a message on standard input and sub

Re: Queue full of double-bounce

2010-10-12 Thread Wietse Venema
Wietse Venema: > Patric Falinder: > > > as a result, so I guess it doesn't have to do with the timer thing!? > > No you cannot prove the absence of this bug. Perhaps it triggers Forget it, according to your other message you are sending mail with Postfix into an MTA that rejects your address prob

Re: adding recipient

2010-10-12 Thread Wietse Venema
Tom Kinghorn: > I just wanted to know if it is possible to add a recipient to a > message which is queued? By design you cannot add a record when a file is already committed to the queue. The reason for this is that there is no way to "undo" the change in case of failure (disk full or what

Re: best way to send "raw" email (files)?

2010-10-12 Thread Tomasz Chmielewski
On 12.10.2010 16:40, Wietse Venema wrote: Tomasz Chmielewski: cat /samba/emails/somefile.eml | sendmail -t sendmail -t< filename Thanks for the tip. assuming that the file does not contain garbage such as Control-Z at the end of the file. Only slightly faster would be to use one of the

exclude sender from aliases

2010-10-12 Thread Lukas Pirl
"Hello" to the community! :) Sorry for bothering the list initially with a technical question. I have setup a mail forwarder, that is getting the aliases (mailing lists) from a MySQL database. How can I avoid, that the sender receives its own mail when he is on the mailing list? I thought about

Re: exclude sender from aliases

2010-10-12 Thread Wietse Venema
Lukas Pirl: > "Hello" to the community! :) > > Sorry for bothering the list initially with a technical question. > > I have setup a mail forwarder, that is getting the aliases (mailing > lists) from a MySQL database. > How can I avoid, that the sender receives its own mail when he is on the > mai

Re: exclude sender from aliases

2010-10-12 Thread Lukas Pirl
Hello! hmmm, sad story ;) If the request for this feature will rise suddenly: I think the easiest way is to have a expanding variable like %[sudSUD] from mysql_table one could use in its MySQL query. Now, I will redirect all mail to a script that will care for all my conditions. This is a little

Re: Block all but a few from sending mail offsite

2010-10-12 Thread John Swift
Hello, master.cf: smtp inet n - n - - smtpd pickupfifo n - n 1 1 pickup cleanup unix n - n - 0 cleanup qmgr fifo n - n 300 1 qmgr tlsmgrunix - -

Re: Messages w/ No Subject

2010-10-12 Thread Jeroen Geilman
On 10/12/2010 01:41 AM, Carlos Mennens wrote: I was wondering how mail administrators using Postfix handle messages w/o any subject material? I don't know if this is an RFC guideline that requires email to have a subject but I find it extremely annoying when email doesn't have a subject. I don't

Re: Newb question - simple script

2010-10-12 Thread Jeroen Geilman
On 10/11/2010 11:07 PM, jimmy zoto wrote: I'm trying to copy all incoming mail to a local FIFO file for special purpose processing by a Java program. I don't know the best way to do this. FIFO certainly isn't it. If you must go this route, use a pipe(8) transport fed by always_bcc so you c

Re: adding recipient

2010-10-12 Thread Jeroen Geilman
On 10/12/2010 08:12 AM, Tom Kinghorn wrote: Good morning List. I just wanted to know if it is possible to add a recipient to a message which is queued? What could possibly be the reason for this ? You forgot to list a recipient ? so re-send the message. There are ways to re-direct and re-in

Re: exclude sender from aliases

2010-10-12 Thread Jeroen Geilman
On 10/12/2010 05:46 PM, Lukas Pirl wrote: Hello! hmmm, sad story ;) If you need this functionality, you can install a mailing list manager. They do take the sender into account. -- J.

reverse the polarity of the neutron flow

2010-10-12 Thread The Doctor
Doctor Who saying in the 1970s. What do I need to reverse. Tried another MTA and got reports that people were not getting e-mail. All right switch back. Forgot that the 'sendmail' was not the correct one. No problem, just use the postfix sendmail. Hmm!! No mail is getting delievered. What di

Re: reverse the polarity of the neutron flow

2010-10-12 Thread Jeroen Geilman
On 10/12/2010 09:42 PM, The Doctor wrote: Doctor Who saying in the 1970s. What do I need to reverse. Tried another MTA and got reports that people were not getting e-mail. All right switch back. Forgot that the 'sendmail' was not the correct one. No problem, just use the postfix sendmail. H

Re: hide (do not disclose) reject reason to client but log as usual

2010-10-12 Thread mouss
Le 12/10/2010 12:09, Costin Gusa a écrit : Hello, I would like to be able to configure smtpd so that a generic smtp session reject code to be given without explanation (ex. helo command rejected, user unknown, client host rbl, etc) while at the same time detail the reject reason in mail.log as u

Re: Block all but a few from sending mail offsite

2010-10-12 Thread mouss
Le 12/10/2010 01:45, John Swift a écrit : Hello, For my Postfix web server, I was able to get the example working that was at the bottom of the web page here: http://www.postfix.org/RESTRICTION_CLASS_README.html#external. In that section of the web page, it says "It is left as an exercise for

Re: reverse the polarity of the neutron flow

2010-10-12 Thread Joe
On 10/12/2010 12:42 PM, The Doctor wrote: Doctor Who saying in the 1970s. What do I need to reverse. Tried another MTA and got reports that people were not getting e-mail. All right switch back. Forgot that the 'sendmail' was not the correct one. No problem, just use the postfix sendmail. H

Re: Messages w/ No Subject

2010-10-12 Thread mouss
Le 12/10/2010 01:41, Carlos Mennens a écrit : I was wondering how mail administrators using Postfix handle messages w/o any subject material? I don't know if this is an RFC guideline that requires email to have a subject but I find it extremely annoying when email doesn't have a subject. I don't

Re: best way to send "raw" email (files)?

2010-10-12 Thread Victor Duchovni
On Tue, Oct 12, 2010 at 04:49:39PM +0200, Tomasz Chmielewski wrote: >> How do you know when the input file is complete? You should not >> start submission of a file that is still being written to. > > I wanted to check with lsof if it's still opened or not. > lsof does not know about other NFS cl

Re: reverse the polarity of the neutron flow

2010-10-12 Thread Bastian Blank
On Tue, Oct 12, 2010 at 01:42:25PM -0600, The Doctor wrote: > What did I forget? * rm -rf / (Read mail, really fast) * A name * http://www.postfix.org/DEBUG_README.html#mail Bastian -- We fight only when there is no other choice. We prefer the ways of peaceful contact. -- Kirk,

Re: hide (do not disclose) reject reason to client but log as usual

2010-10-12 Thread Costin Gusa
On Wed, Oct 13, 2010 at 00:04, mouss wrote: >  Le 12/10/2010 12:09, Costin Gusa a écrit : >> >> Hello, >> I would like to be able to configure smtpd so that a generic smtp >> session reject code to be given without explanation (ex. helo command >> rejected, user unknown, client host rbl, etc) whil

Re: hide (do not disclose) reject reason to client but log as usual

2010-10-12 Thread Costin Gusa
see, mouss, that's the reason in my systems this email would have never got a chance for "220 OK", even without any external spam filter in place. On Tue, Oct 12, 2010 at 22:42, The Doctor wrote: > Doctor Who saying in the 1970s. > > What do I need to reverse. > > Tried another MTA and got report

Re: reverse the polarity of the neutron flow

2010-10-12 Thread Jose Ildefonso Camargo Tolosa
Hi! People, I just don't get it, what is the point of comments such as: > > What did I forget? > > In my opinion ? A brain. and > > What did I forget? > > * rm -rf / (Read mail, really fast) > * A name > * http://www.postfix.org/DEBUG_README.html#mail > Jeroen and Bastian, I think that was too

Re: hide (do not disclose) reject reason to client but log as usual

2010-10-12 Thread Noel Jones
On 10/12/2010 5:33 PM, Costin Gusa wrote: On Wed, Oct 13, 2010 at 00:04, mouss wrote: Le 12/10/2010 12:09, Costin Gusa a écrit : Hello, I would like to be able to configure smtpd so that a generic smtp session reject code to be given without explanation (ex. helo command rejected, user unkn

Re: hide (do not disclose) reject reason to client but log as usual

2010-10-12 Thread Wietse Venema
Costin Gusa: > for example: I don't want the text "helo command rejected" to be > prepended to my custom "REJECT internal code 123" Postfix will "reveal" both the name and the value of the element (client, helo, sender, recipient) that triggers a reject, because down over here in the real world, P

Re: hide (do not disclose) reject reason to client but log as usual

2010-10-12 Thread Costin Gusa
On Wed, Oct 13, 2010 at 03:12, Wietse Venema wrote: > Costin Gusa: >> for example: I don't want the text "helo command rejected" to be >> prepended to my custom "REJECT internal code 123" > > Postfix will "reveal" both the name and the value of the element > (client, helo, sender, recipient) that

Re: LDAP, groups and users without local accounts

2010-10-12 Thread Jakob Lenfers
On 12.10.2010 16:29, Victor Duchovni wrote: On Tue, Oct 12, 2010 at 10:05:10AM +0200, Jakob Lenfers wrote: external mail account. I cannot find a setup so that this is resolved accordingly, because postfix tries to deliver the mail to the memberUids (externuser instead of externu...@gmail.com)