Re: python framework for a policy daemon?

2009-09-11 Thread Zhang Huangbin
On Sep 9, 2009, at 5:50 PM, Ralf Hildebrandt wrote: Is there a ready to use python framework for a policy daemon? I have a nice idea for a policy daemon :) Reference: http://www.apolicy.org/cgi-bin/moin.cgi -- Best Regards. Zhang Huangbin - Open Source Mail Server Solution for Red Hat(R)

Re: Writing an after-queue content filter in php

2009-09-11 Thread Mathias Tausig
Am Donnerstag, den 10.09.2009, 10:18 -0400 schrieb Wietse Venema: [...] This is an output buffering problem. You need to flush output after each reply, perhaps by calling the flush() function. Hy! No, I am afraid that this is not the problem. I am sendig you a few details of my setup Here

Re: Configuration question

2009-09-11 Thread Duncan B.
On Fri, 11 Sep 2009, Sahil Tandon wrote: The list of CIDR IP ranges to relay for is in the mynetworks variable, so I can't do the recipient domain verification in smtpd_recipient_restrictions because I need permit_mynetworks, so that my networks can relay through the box! permit_mynetworks

Re: Configuration question

2009-09-11 Thread Duncan B.
On Fri, 11 Sep 2009, Sahil Tandon wrote: Why don't you reject_unknown_recipient_domain BEFORE permitting your networks (and/or SASL authenticated clients) in smtpd_recipient_restrictions? So, how do I make mynetworks exempt from the smtpd_recipient_restrictions, yet make mynetworks able to

Re: Force smtpauth for all mails including myhostname bound mails

2009-09-11 Thread ram
On Wed, 2009-09-09 at 11:25 -0400, Victor Duchovni wrote: On Wed, Sep 09, 2009 at 08:06:09PM +0530, ram wrote: RCPT TO:postmas...@mumbai.nstest.com 250 2.1.5 Ok Mail to $address_verify_sender (qualified with @$myorigin if a bare user name) is not subject to recipient restrictions,

Mail relay to own virtual domains

2009-09-11 Thread Gabriele
Greetings, my mail server runs postfix+dovecot+mysql and has a dozen of virtual domains. Users need to authenicate to the SMTP to send mail. The problem is that my postfix does not ask for authentication if the recipient is inside any virtual domains of my server, so any user can connect to

Re: Formatting of 544- ... lines in Undelivered Mail Returned to Sender

2009-09-11 Thread Wietse Venema
Robin Whittle: http://tools.ietf.org/html/rfc3464#section-2.3.6 diagnostic-code-field = Diagnostic-Code : diagnostic-type ; *text Since the Status code will sometimes be less precise than the actual transport diagnostic code, the Diagnostic-Code field is provided

Re: Writing an after-queue content filter in php

2009-09-11 Thread Wietse Venema
Mathias Tausig: Am Donnerstag, den 10.09.2009, 10:18 -0400 schrieb Wietse Venema: [...] This is an output buffering problem. You need to flush output after each reply, perhaps by calling the flush() function. Hy! No, I am afraid that this is not the problem. I am sendig you a few

Re: Force smtpauth for all mails including myhostname bound mails

2009-09-11 Thread Victor Duchovni
On Fri, Sep 11, 2009 at 03:25:36PM +0530, ram wrote: On Wed, 2009-09-09 at 11:25 -0400, Victor Duchovni wrote: On Wed, Sep 09, 2009 at 08:06:09PM +0530, ram wrote: RCPT TO:postmas...@mumbai.nstest.com 250 2.1.5 Ok Mail to $address_verify_sender (qualified with @$myorigin if

Re: Writing an after-queue content filter in php

2009-09-11 Thread Mathias Tausig
Am Freitag, den 11.09.2009, 08:38 -0400 schrieb Wietse Venema: Mathias Tausig: Am Donnerstag, den 10.09.2009, 10:18 -0400 schrieb Wietse Venema: [...] This is an output buffering problem. You need to flush output after each reply, perhaps by calling the flush() function. Hy!

Re: Configuration question

2009-09-11 Thread Noel Jones
On 9/11/2009 3:30 AM, Duncan B. wrote: I tried putting permit_mynetworks at the end of the smtpd_recipient_restrictions instead, but it still just allows all relaying from mynetworks: smtpd_recipient_restricions = reject_unauth_destination, reject_non_fqdn_recipient,

Re: Configuration question

2009-09-11 Thread Duncan B.
On Fri, 11 Sep 2009, Noel Jones wrote: smtpd_recipient_restricions = reject_unauth_destination, reject_non_fqdn_recipient, reject_unknown_recipient_domain, permit_mynetworks Am I doing something wrong? It seems to me that the restrictions aren't processed in the order that you specify them

Reject if no listed in sender list

2009-09-11 Thread michel
hello list Turns out I use a webmail (horde) in my workplace but apparently has a bug, somehow are generating large numbers of messages to various servers on the internet, yahoo, aol, hotmail and others. to keep me look like an open relay server. This webmail delivers to a local server

Re: Writing an after-queue content filter in php

2009-09-11 Thread Wietse Venema
The php-net-smtp PEAR module implements an SMTP client; you may be able to pick some pieces to do the server portion of the protocol. Wietse

Re: Writing an after-queue content filter in php

2009-09-11 Thread Mikael Bak
Mathias Tausig wrote: I just tried to replace the \n with \r\l, but to no avail. The same problem remains. I can be wrong here, but shouldn't that be \r\n ? HTH, Mikael

Re: Configuration question

2009-09-11 Thread Noel Jones
On 9/11/2009 8:40 AM, Duncan B. wrote: or perhaps you misspelled restricions in main.cf like you did in this message. Always check your postconf -n output to verify that postfix see what you expect. Ahh this is more than possible .. Would 'postfix reload' not complain about a syntax error? I'm

public/pickup error message

2009-09-11 Thread Quanah Gibson-Mount
I'm seeing this continually from postfix: Sep 11 09:24:05 zimbra postfix/postdrop[89912]: warning: unable to look up public/pickup: No such file or directory What's odd, is this file does exist, and it seems that pickup is actually running fine? zimbra:public root# ps aux | grep pickup

Re: public/pickup error message

2009-09-11 Thread Victor Duchovni
On Fri, Sep 11, 2009 at 09:56:49AM -0700, Quanah Gibson-Mount wrote: zimbra:public root# pwd /opt/zimbra/data/postfix/spool/public zimbra:public root# ls -l total 0 srw-rw-rw- 1 _postfix _postdrop 0 Sep 11 17:49 cleanup srw-rw-rw- 1 _postfix _postdrop 0 Sep 11 17:49 flush prw--w--w-

Re: public/pickup error message

2009-09-11 Thread Quanah Gibson-Mount
--On Friday, September 11, 2009 1:21 PM -0400 Victor Duchovni victor.ducho...@morganstanley.com wrote: On Fri, Sep 11, 2009 at 09:56:49AM -0700, Quanah Gibson-Mount wrote: zimbra:public root# pwd /opt/zimbra/data/postfix/spool/public zimbra:public root# ls -l total 0 srw-rw-rw- 1 _postfix

Re: public/pickup error message

2009-09-11 Thread Quanah Gibson-Mount
--On Friday, September 11, 2009 1:35 PM -0400 Victor Duchovni victor.ducho...@morganstanley.com wrote: On Fri, Sep 11, 2009 at 10:27:55AM -0700, Quanah Gibson-Mount wrote: Any ideas on why this would be reporting above error every few minutes, when everything seems to be correct? Some nss

Re: public/pickup error message

2009-09-11 Thread Quanah Gibson-Mount
--On Friday, September 11, 2009 1:49 PM -0400 Wietse Venema wie...@porcupine.org wrote: Quanah Gibson-Mount: Sep 11 09:24:05 zimbra postfix/postdrop[89912]: warning: unable to look up public/pickup: No such file or directory postdrop will chdir to the queue directory in `postconf -dh

Re: public/pickup error message

2009-09-11 Thread Quanah Gibson-Mount
--On Friday, September 11, 2009 1:58 PM -0400 Victor Duchovni victor.ducho...@morganstanley.com wrote: zimbra:~ zimbra$ postconf -dh config_directory /opt/zimbra/postfix-2.6.2.2z/conf zimbra:~ zimbra$ cd /opt/zimbra/postfix-2.6.2.2z/conf zimbra:conf zimbra$ grep -i queue main.cf

Re: public/pickup error message

2009-09-11 Thread Wietse Venema
Wietse Venema: Quanah Gibson-Mount: Sep 11 09:24:05 zimbra postfix/postdrop[89912]: warning: unable to look up public/pickup: No such file or directory postdrop will chdir to the queue directory in `postconf -dh config_directory`/main.cf You can't override this unless the

Re: public/pickup error message

2009-09-11 Thread Victor Duchovni
On Fri, Sep 11, 2009 at 11:04:49AM -0700, Quanah Gibson-Mount wrote: Also which postdrop is reporting errors? Is there more than one postdrop on the system? More than one Postfix-related sendmail(1) with a different default config directory? ... There is not one running that I see. Our

Re: public/pickup error message

2009-09-11 Thread Quanah Gibson-Mount
--On Friday, September 11, 2009 2:16 PM -0400 Victor Duchovni victor.ducho...@morganstanley.com wrote: On Fri, Sep 11, 2009 at 11:12:58AM -0700, Quanah Gibson-Mount wrote: Speaking of which, how many postdrop executables exist on the system? Two. And the system postfix is still running

Re: public/pickup error message

2009-09-11 Thread Victor Duchovni
On Fri, Sep 11, 2009 at 11:49:03AM -0700, Quanah Gibson-Mount wrote: Don't forget that sendmail(1) is outside the persistent master-managed Postfix service and can en-queue mail (to disk) for later delivery, even when Postfix is *not* running (provided it does run eventually...). Yeah, cron

Re: public/pickup error message

2009-09-11 Thread Quanah Gibson-Mount
--On Friday, September 11, 2009 2:53 PM -0400 Victor Duchovni victor.ducho...@morganstanley.com wrote: The solution is not to manually create FIFOs. Rather, you should either run a second Postfix service, or replace the system sendmail(1) with a symlink to the custom-built binary. Eh, this

Fast up the mail queue

2009-09-11 Thread Alejandro Facultad
Dear all, I have Debian Etch + Postfix 2.3.8 and I want to fast up te mail queue, because sometines I notice that the messages are delivered with some delay. How can acelerate the sending of messages in Postfix ??? Thanks a lot alexandro Yahoo! Cocina Encontra las mejores recetas

Re: public/pickup error message

2009-09-11 Thread Wietse Venema
Victor Duchovni: On Fri, Sep 11, 2009 at 02:53:17PM -0400, Victor Duchovni wrote: On Fri, Sep 11, 2009 at 11:49:03AM -0700, Quanah Gibson-Mount wrote: Don't forget that sendmail(1) is outside the persistent master-managed Postfix service and can en-queue mail (to disk) for later

Re: Fast up the mail queue

2009-09-11 Thread Wietse Venema
Alejandro Facultad: Dear all, I have Debian Etch + Postfix 2.3.8 and I want to fast up te mail queue, because sometines I notice that the messages are delivered with some delay. The reason for the delay is logged in the maillog file. How can acelerate the sending of messages in Postfix ???

Re: Problem with spam messages

2009-09-11 Thread mouss
an...@iguanait.com a écrit : Hi, in our two mail servers i see last weeks this: non-SMTP command from 250.84.221.62.dyn.idknet.com[62.221.84.250]: From: ? VIAGRA ? Official Site How can i block these accesses? add reject_rbl_client zen.spamhaus.org to your

NDR status written to headers rather than body?

2009-09-11 Thread Paul Cockings
Hi List - I send a mail to d...@gdshgf.ggg via my postfix server I get a an NDR back with the a 550 Host or domain name not found (in the body) - That works like normal Now I'd like to alter things; When I get an NDR I'd like to parse the header only to find who the message was oringally

Re: NDR status written to headers rather than body?

2009-09-11 Thread Ralf Hildebrandt
* Paul Cockings p...@cytringan.co.uk: Hi List - I send a mail to d...@gdshgf.ggg via my postfix server I get a an NDR back with the a 550 Host or domain name not found (in the body) - That works like normal Now I'd like to alter things; When I get an NDR I'd like to parse the header

Re: NDR status written to headers rather than body?

2009-09-11 Thread Paul Cockings
Ralf Hildebrandt wrote: * Paul Cockings p...@cytringan.co.uk: Hi List - I send a mail to d...@gdshgf.ggg via my postfix server I get a an NDR back with the a 550 Host or domain name not found (in the body) - That works like normal Now I'd like to alter things; When I get an NDR I'd like

Re: NDR status written to headers rather than body?

2009-09-11 Thread Ralf Hildebrandt
* Paul Cockings p...@cytringan.co.uk: That seems like a much better idea - Thanks! A bit of code sends mail to $...@$2: /usr/sbin/sendmail -N failure,success -f sender+$1...@charite.de $...@$2 EOF From: sender sender+$1...@charite.de To: $...@$2 Errors-To: sender+$1...@charite.de

Re: NDR status written to headers rather than body?

2009-09-11 Thread Ralf Hildebrandt
* Ralf Hildebrandt ralf.hildebra...@charite.de: * Paul Cockings p...@cytringan.co.uk: That seems like a much better idea - Thanks! A bit of code sends mail to $...@$2: /usr/sbin/sendmail -N failure,success -f sender+$1...@charite.de $...@$2 EOF From: sender sender+$1...@charite.de To:

Re: NDR status written to headers rather than body?

2009-09-11 Thread Wietse Venema
Paul Cockings: Hi List - I send a mail to d...@gdshgf.ggg via my postfix server I get a an NDR back with the a 550 Host or domain name not found (in the body) - That works like normal Now I'd like to alter things; When I get an NDR I'd like to parse the header only to find who the

Reject if no listed in sender list

2009-09-11 Thread michel
hello list Turns out I use a webmail (horde) in my workplace but apparently has a bug, somehow are generating large numbers of messages to various servers on the internet, yahoo, aol, hotmail and others. to keep me look like an open relay server. This webmail delivers to a local server

ulimit throttling observed on AIX

2009-09-11 Thread Kenneth Stephen
Hi, I have a .forward file on an AIX system running postfix which sends the mail to a program. Here is what I've observed on that machine: userid = x machine = somehost from a login session for x: $ ulimit -a | grep file file(blocks) 2097151 from the program invoked over the

Re: ulimit throttling observed on AIX

2009-09-11 Thread Wietse Venema
Kenneth Stephen: [ Charset ISO-8859-1 unsupported, converting... ] Hi, I have a .forward file on an AIX system running postfix which sends the mail to a program. Here is what I've observed on that machine: userid = x machine = somehost from a login session for x: $ ulimit -a |

Re: Reject if no listed in sender list

2009-09-11 Thread Noel Jones
On 9/11/2009 4:58 PM, mic...@casa.co.cu wrote: this is generated by webmail - this small pierce of the logs , as you see are many destinations Sep 11 03:01:43 serverlinux postfix/pickup[30772]: 902E78F327: uid=48 from=p...@poon.org Your webmail application submits mail via sendmail(1), not

Re: Reject if no listed in sender list

2009-09-11 Thread Wietse Venema
mic...@casa.co.cu: hello list Turns out I use a webmail (horde) in my workplace but apparently has a bug, somehow are generating large numbers of messages to various servers on the internet, yahoo, aol, hotmail and others. to keep me look like an open relay server. Sep 11 03:01:43

error message

2009-09-11 Thread ghe
I don't understand this line from today's logwatch report: 308 *Warning: Database file needs update I looked and didn't find it in the mail logs, but logwatch is saying it was found 308 times. Google led me to a number of pages that denied me access and a CVS server that didn't make

Re: error message

2009-09-11 Thread Mike Cappella
On 9/11/09 4:48 PM, ghe wrote: I don't understand this line from today's logwatch report: 308 *Warning: Database file needs update This message appears when you have a map file that requires postmap'ing to bring the db file up to date relative to the source file. Look at the log messages

Re: error message

2009-09-11 Thread ghe
On Sep 11, 2009, at 5:51 PM, Mike Cappella wrote: I don't understand this line from today's logwatch report: 308 *Warning: Database file needs update This message appears when you have a map file that requires postmap'ing to bring the db file up to date relative to the source file.

Re: ulimit throttling observed on AIX

2009-09-11 Thread Kenneth Stephen
On Fri, Sep 11, 2009 at 5:58 PM, Wietse Venema wie...@porcupine.org wrote: Try:    postconf -d | grep 10 This is the Postfix mailbox size limit. To enforce the limit, the recipient cannot create a file larger than this.        Wietse Wietse, Thanks for the quick response. The

Re: error message

2009-09-11 Thread Wietse Venema
ghe: On Sep 11, 2009, at 5:51 PM, Mike Cappella wrote: I don't understand this line from today's logwatch report: 308 *Warning: Database file needs update This message appears when you have a map file that requires postmap'ing to bring the db file up to date relative to the

Re: error message

2009-09-11 Thread Sahil Tandon
On Fri, 11 Sep 2009, ghe wrote: On Sep 11, 2009, at 5:51 PM, Mike Cappella wrote: I don't understand this line from today's logwatch report: 308 *Warning: Database file needs update This message appears when you have a map file that requires postmap'ing to bring the db file up to date

Re: error message

2009-09-11 Thread Mike Cappella
On 9/11/09 5:05 PM, ghe wrote: On Sep 11, 2009, at 5:51 PM, Mike Cappella wrote: I don't understand this line from today's logwatch report: 308 *Warning: Database file needs update This message appears when you have a map file that requires postmap'ing to bring the db file up to date

Re: error message

2009-09-11 Thread ghe
On Sep 11, 2009, at 6:18 PM, Wietse Venema wrote: Also since I didn't find it, I just re-postmapped 'em all. Postfix includes the name of the file that is out-of-date: warning: database /etc/postfix/access.db is older than source file /etc/postfix/access This is logged when the

Re: error message

2009-09-11 Thread Mike Cappella
On 9/11/09 5:57 PM, ghe wrote: On Sep 11, 2009, at 6:18 PM, Wietse Venema wrote: Also since I didn't find it, I just re-postmapped 'em all. Postfix includes the name of the file that is out-of-date: warning: database /etc/postfix/access.db is older than source file /etc/postfix/access

Re: Reject if no listed in sender list

2009-09-11 Thread michel
Wietse Venema wie...@porcupine.org escribió: mic...@casa.co.cu: hello list Turns out I use a webmail (horde) in my workplace but apparently has a bug, somehow are generating large numbers of messages to various servers on the internet, yahoo, aol, hotmail and others. to keep me look like an

Re: Reject if no listed in sender list

2009-09-11 Thread michel
Noel Jones njo...@megan.vbhcs.org escribió: On 9/11/2009 4:58 PM, mic...@casa.co.cu wrote: this is generated by webmail - this small pierce of the logs , as you see are many destinations Sep 11 03:01:43 serverlinux postfix/pickup[30772]: 902E78F327: uid=48 from=p...@poon.org Your webmail

Re: Reject if no listed in sender list

2009-09-11 Thread /dev/rob0
On Friday 11 September 2009 20:43:47 mic...@casa.co.cu wrote: Turns out I use a webmail (horde) in my workplace but apparently has a bug, somehow are generating large numbers of messages to various servers on the internet, yahoo, aol, hotmail and others. to keep me look like an open relay

Re: Formatting of 544- ... lines in Undelivered Mail Returned to Sender

2009-09-11 Thread Robin Whittle
Hi Wietse, You wrote: What benefits could there be to Postfix's reformatting of the diagnostic information? For security reasons Postfix never presents error messages and responses as is especially when information does not have a known-to-be trusted origin. Instead, Postfix removes