Adding an address to smtpd_sender_restrictions thru email ?

2010-11-18 Thread Frank Bonnet
Hello I use smtpd_sender_restrictions map to filter undesirable addresses actually I had manually a bunch of addresses every day. I wonder if it would be possible to do that by forwarding this SPAM to a "special" email address ? I mean the fact to forward the email would start a script on the M

Re: Extra characters in from

2010-11-18 Thread Ralf Hildebrandt
* vr : > > /^(prvs=[0-9a-f]+=)?sen...@senderdomain\.tld$/ OK > > > > This allows both > > prvs=...=sen...@senderdomain.tld > > and > > sen...@senderdomain.tld > > > > Is there a way, maybe within a hash, to include all characters to the > left of a portion of an email address? domain.tld

How to replace underscores in hostnames to a valid character?

2010-11-18 Thread J. Roeleveld
Hi All, I've been having issues where emails are being rejected by Cyrus because the "From" address contains an underscore in the domain name. Example address: u...@lists_example.org What I am looking for is a way to parse email addresses and replace all underscores to dashes, eg. the followin

Re: How to replace underscores in hostnames to a valid character?

2010-11-18 Thread Ralf Hildebrandt
* J. Roeleveld : > Hi All, > > I've been having issues where emails are being rejected by Cyrus because the > "From" address contains an underscore in the domain name. Envelope or header? > Example address: u...@lists_example.org > > What I am looking for is a way to parse email addresses and

Re: How to replace underscores in hostnames to a valid character?

2010-11-18 Thread J. Roeleveld
On Thursday 18 November 2010 10:15:19 Ralf Hildebrandt wrote: > * J. Roeleveld : > > Hi All, > > > > I've been having issues where emails are being rejected by Cyrus because > > the "From" address contains an underscore in the domain name. > > Envelope or header? My guess is header: ** Unexpecte

Re: Adding an address to smtpd_sender_restrictions thru email ?

2010-11-18 Thread Stan Hoeppner
Frank Bonnet put forth on 11/18/2010 2:22 AM: > Hello > > I use smtpd_sender_restrictions map to filter undesirable addresses > actually I had manually a bunch of addresses every day. > > I wonder if it would be possible to do that by forwarding this SPAM to > a "special" email address ? > > I m

Re: How to replace underscores in hostnames to a valid character?

2010-11-18 Thread Ralf Hildebrandt
* J. Roeleveld : > My guess is header: No, envelope > Out: MAIL FROM: SIZE=7510 BODY=7BIT > > sender_canonical_maps regexp:/etc/postfix/cyrus_sucks > > > > with /etc/postfix/cyrus_sucks containing something like: > > > > /^(.*)_(.*)$/ $1-$2 > > Thanks, I'll give this a try It should work,

Re: How to replace underscores in hostnames to a valid character?

2010-11-18 Thread J. Roeleveld
On Thursday 18 November 2010 10:46:34 Ralf Hildebrandt wrote: > * J. Roeleveld : > > My guess is header: > No, envelope Ok, need to read up on the actual difference between the two. Thought "envelope" is the whole "history", eg. where the email has been. And "header" is the "from/to/subject/.." f

Re: assistance with a CIDR issue

2010-11-18 Thread Michael Weissenbacher
Hi again! > > OK, yes I see my error, however it's still a valid range. > I do mean 94.149.64.0-255 and 94.149.65.0-255 It isn't valid CIDR notation. Maybe this little tool will help you: http://www.subnet-calculator.com/cidr.php - key in your numbers and you'll see that it will correct your range

Re: How to replace underscores in hostnames to a valid character?

2010-11-18 Thread Ralf Hildebrandt
* J. Roeleveld : > On Thursday 18 November 2010 10:46:34 Ralf Hildebrandt wrote: > > * J. Roeleveld : > > > My guess is header: > > No, envelope > > Ok, need to read up on the actual difference between the two. > Thought "envelope" is the whole "history", eg. where the email has been. No, that's

Re: How to replace underscores in hostnames to a valid character?

2010-11-18 Thread J. Roeleveld
On Thursday 18 November 2010 11:04:23 Ralf Hildebrandt wrote: > * J. Roeleveld : > > On Thursday 18 November 2010 10:46:34 Ralf Hildebrandt wrote: > > > * J. Roeleveld : > > > > My guess is header: > > > No, envelope > > > > Ok, need to read up on the actual difference between the two. > > Thought

Re: no plain text subject

2010-11-18 Thread Matthias Andree
Am 18.11.2010 01:28, schrieb Stan Hoeppner: > Subject: > =?iso-8859-1?Q?Le_invitamos_a_asistir_a_la_Presentaci=F3n_de_la_Oportunid?= > > =?iso-8859-1?Q?ad_de_negocio_en_ACN_Marketing_y_Servicios_de_Telecomunica?= > =?iso-8859-1?Q?ciones?= > > Does anyone have a header_checks pcre that

Re: Adding an address to smtpd_sender_restrictions thru email ?

2010-11-18 Thread Reinaldo de Carvalho
On Thu, Nov 18, 2010 at 5:22 AM, Frank Bonnet wrote: > Hello > > I use smtpd_sender_restrictions map to filter undesirable addresses > actually I had manually a bunch of addresses every day. > Avoiding spam rejecting sender address is unproductive. I suggest you reject client hostname or IP addre

Re: How to replace underscores in hostnames to a valid character?

2010-11-18 Thread Noel Jones
On 11/18/2010 3:12 AM, J. Roeleveld wrote: Hi All, I've been having issues where emails are being rejected by Cyrus because the "From" address contains an underscore in the domain name. ... PS. I have contacted the domain admins where these are coming from, but I'm not convinced the user is

Re: How to replace underscores in hostnames to a valid character?

2010-11-18 Thread J. Roeleveld
On Thursday 18 November 2010 13:55:14 Noel Jones wrote: > On 11/18/2010 3:12 AM, J. Roeleveld wrote: > > Hi All, > > > > I've been having issues where emails are being rejected by Cyrus because > > the "From" address contains an underscore in the domain name. > > ... > > > PS. I have contacted t

Re: How to replace underscores in hostnames to a valid character?

2010-11-18 Thread Bron Gondwana
On Thu, Nov 18, 2010 at 06:55:14AM -0600, Noel Jones wrote: > On 11/18/2010 3:12 AM, J. Roeleveld wrote: > >Hi All, > > > >I've been having issues where emails are being rejected by Cyrus because the > >"From" address contains an underscore in the domain name. > > > ... > > > >PS. I have contacted

Re: no plain text subject

2010-11-18 Thread Noel Jones
On 11/18/2010 12:49 AM, Stan Hoeppner wrote: Victor Duchovni put forth on 11/17/2010 11:53 PM: On Wed, Nov 17, 2010 at 06:28:21PM -0600, Stan Hoeppner wrote: >>> Does anyone have a header_checks pcre that would allow me to reject or discard any email with an encoded subject This is unwise.

Re: How to replace underscores in hostnames to a valid character?

2010-11-18 Thread Jerry
On Fri, 19 Nov 2010 00:14:28 +1100 Bron Gondwana articulated: > Yeah, we're on it. Seriously considering not being so strict > about the domain name. There was stuff from Brad Fitzpatrick > when LiveJournal allowed them a few years ago - saying pretty > much everything allows underscores in we

multiple hosts for single domain

2010-11-18 Thread Matteo Cazzador
Hello, i've a question: i'need to configure various postfix server to receive mail with the same domain (but filtered by receiver) and send it. Example: Host A have 2 account w...@example.com and d...@example.com Host B have other 2 account q...@example.com and r...@exam

Re: How to replace underscores in hostnames to a valid character?

2010-11-18 Thread Wietse Venema
Jerry: > On Fri, 19 Nov 2010 00:14:28 +1100 > Bron Gondwana articulated: > > > Yeah, we're on it. Seriously considering not being so strict > > about the domain name. There was stuff from Brad Fitzpatrick > > when LiveJournal allowed them a few years ago - saying pretty > > much everything all

Re: How to replace underscores in hostnames to a valid character?

2010-11-18 Thread J. Roeleveld
On Thursday 18 November 2010 15:20:47 Wietse Venema wrote: > Jerry: > > On Fri, 19 Nov 2010 00:14:28 +1100 > > > > Bron Gondwana articulated: > > > Yeah, we're on it. Seriously considering not being so strict > > > about the domain name. There was stuff from Brad Fitzpatrick > > > when LiveJou

Re: multiple hosts for single domain

2010-11-18 Thread Victor Duchovni
On Thu, Nov 18, 2010 at 03:17:36PM +0100, Matteo Cazzador wrote: > Hello, i've a question: i'need to configure various postfix server to > receive mail with the same domain (but filtered by receiver) and send it. > Example: > > Host A have 2 account > w...@example.com and d...@example

Postscreen presentation from LISA 2010

2010-11-18 Thread Wietse Venema
I uploaded the "new developments" segment of my 2010 LISA invited talk (last week in San Jose). It shows some new results that I got when Ralf kindly ran postscreen on two sites in Europe. One of the more bizarre pictures is on page 21. This has been compared with spitting on the floor, or being s

Re: multiple hosts for single domain

2010-11-18 Thread Matteo Cazzador
Thank's a lot, but in this configuration i've only one node by MX dns record? So all mail goes to one ip first (MX record) and then it forwarded for extenal users to another host? There is no method to have a round robin of these hosts? Thank's a lot Il 18/11/2010 16:47, Victor Duchovni ha scri

Re: multiple hosts for single domain

2010-11-18 Thread Victor Duchovni
On Thu, Nov 18, 2010 at 05:00:31PM +0100, Matteo Cazzador wrote: > Thank's a lot, but in this configuration i've only one node by MX dns > record? You could list both hosts for resiliency. Each will forward mail it does not own to the other. > So all mail goes to one ip first (MX record) and th

Re: multiple hosts for single domain

2010-11-18 Thread Matteo Cazzador
Il 18/11/2010 17:08, Victor Duchovni ha scritto: On Thu, Nov 18, 2010 at 05:00:31PM +0100, Matteo Cazzador wrote: Thank's a lot, but in this configuration i've only one node by MX dns record? You could list both hosts for resiliency. Each will forward mail it does not own to the other. Tha

Re: multiple hosts for single domain

2010-11-18 Thread Victor Duchovni
On Thu, Nov 18, 2010 at 05:14:04PM +0100, Matteo Cazzador wrote: > > > Il 18/11/2010 17:08, Victor Duchovni ha scritto: >> On Thu, Nov 18, 2010 at 05:00:31PM +0100, Matteo Cazzador wrote: >> >>> Thank's a lot, but in this configuration i've only one node by MX dns >>> record? >> You could list bot

Re: multiple hosts for single domain

2010-11-18 Thread Matteo Cazzador
Thank's a lot Il 18/11/2010 17:23, Victor Duchovni ha scritto: On Thu, Nov 18, 2010 at 05:14:04PM +0100, Matteo Cazzador wrote: Il 18/11/2010 17:08, Victor Duchovni ha scritto: On Thu, Nov 18, 2010 at 05:00:31PM +0100, Matteo Cazzador wrote: Thank's a lot, but in this configuration i've on

Re: multiple hosts for single domain

2010-11-18 Thread Wietse Venema
Victor Duchovni: > On Thu, Nov 18, 2010 at 05:14:04PM +0100, Matteo Cazzador wrote: > > > > > > > Il 18/11/2010 17:08, Victor Duchovni ha scritto: > >> On Thu, Nov 18, 2010 at 05:00:31PM +0100, Matteo Cazzador wrote: > >> > >>> Thank's a lot, but in this configuration i've only one node by MX dns

myorigin, myhostname and mydomain usage behind a NAT router - what's the best approach?

2010-11-18 Thread Chris G
I have several machines behind a NAT router which run postfix. Some of these machines are desktop machines with real users who create and send mail while others are (usually headless) servers where the only mail is generally that sent by cron jobs and other similar status information. All of the

Re: myorigin, myhostname and mydomain usage behind a NAT router - what's the best approach?

2010-11-18 Thread Wietse Venema
Chris G: > I have several machines behind a NAT router which run postfix. Some of > these machines are desktop machines with real users who create and send > mail while others are (usually headless) servers where the only mail is > generally that sent by cron jobs and other similar status informat

Re: myorigin, myhostname and mydomain usage behind a NAT router - what's the best approach?

2010-11-18 Thread Victor Duchovni
On Thu, Nov 18, 2010 at 06:03:26PM +, Chris G wrote: > E.g. I want messages from postmaster/root/cron on my dps server to be > distinguishable from similar messages from the server called mws. http://www.postfix.org/MULTI_INSTANCE_README.html#quick > This means (I think) that I want to set t

Re: myorigin, myhostname and mydomain usage behind a NAT router - what's the best approach?

2010-11-18 Thread Chris G
On Thu, Nov 18, 2010 at 01:14:29PM -0500, Wietse Venema wrote: > Chris G: > > I have several machines behind a NAT router which run postfix. Some of > > these machines are desktop machines with real users who create and send > > mail while others are (usually headless) servers where the only mail

Re: myorigin, myhostname and mydomain usage behind a NAT router - what's the best approach?

2010-11-18 Thread Chris G
On Thu, Nov 18, 2010 at 01:15:24PM -0500, Victor Duchovni wrote: > On Thu, Nov 18, 2010 at 06:03:26PM +, Chris G wrote: > > > E.g. I want messages from postmaster/root/cron on my dps server to be > > distinguishable from similar messages from the server called mws. > > http://www.postfix.org/

Re: no plain text subject

2010-11-18 Thread Stan Hoeppner
Matthias Andree put forth on 11/18/2010 4:23 AM: > Am 18.11.2010 01:28, schrieb Stan Hoeppner: >> Subject: >> =?iso-8859-1?Q?Le_invitamos_a_asistir_a_la_Presentaci=F3n_de_la_Oportunid?= >> >> =?iso-8859-1?Q?ad_de_negocio_en_ACN_Marketing_y_Servicios_de_Telecomunica?= >> =?iso-8859-1?Q?ci

Re: myorigin, myhostname and mydomain usage behind a NAT router - what's the best approach?

2010-11-18 Thread Victor Duchovni
On Thu, Nov 18, 2010 at 06:31:27PM +, Chris G wrote: > > Avoid sender_canonical_maps, it is semantically wrong in most cases. > > Avoid masquerading (at least for inbound mail) as it is difficult to > > combine with recipient validation. > > Thanks too - I'll go and have a good read. Enjoy!

Re: myorigin, myhostname and mydomain usage behind a NAT router - what's the best approach?

2010-11-18 Thread Chris G
On Thu, Nov 18, 2010 at 01:39:34PM -0500, Victor Duchovni wrote: > > Larger sites tend to run with virtual_alias_domains valid both inside > and outside, with internal rewriting to direct each user's mail to the > right mail store. Internal-only email address namespaces are more in > SOHO sites, y

Re: no plain text subject

2010-11-18 Thread Wietse Venema
Stan Hoeppner: > Matthias Andree put forth on 11/18/2010 4:23 AM: > > Am 18.11.2010 01:28, schrieb Stan Hoeppner: > >> Subject: > >> =?iso-8859-1?Q?Le_invitamos_a_asistir_a_la_Presentaci=F3n_de_la_Oportunid?= > >> > >> =?iso-8859-1?Q?ad_de_negocio_en_ACN_Marketing_y_Servicios_de_Telecomunica?=

Re: no plain text subject

2010-11-18 Thread Victor Duchovni
On Thu, Nov 18, 2010 at 12:34:21PM -0600, Stan Hoeppner wrote: > The fact that the Subject: header lines are encoded > probably has much more to do with the email being composed in a language > that requires special characters. No, various english MUAs defensively, and unnecessarily, encode the S

Re: no plain text subject

2010-11-18 Thread Stan Hoeppner
Noel Jones put forth on 11/18/2010 7:24 AM: > On 11/18/2010 12:49 AM, Stan Hoeppner wrote: >> Victor Duchovni put forth on 11/17/2010 11:53 PM: >>> On Wed, Nov 17, 2010 at 06:28:21PM -0600, Stan Hoeppner wrote: Does anyone have a header_checks pcre that would allow me to reject or di

Re: no plain text subject

2010-11-18 Thread Stan Hoeppner
Victor Duchovni put forth on 11/18/2010 12:52 PM: > This filter is too fragile IMHO. My best advice is to find filters that > detect spam. I think you've missed some of my previous posts regarding my spam filtering setup. I kill about 99.5+% of it at SMTP time, without resorting to body filters

Re: no plain text subject

2010-11-18 Thread Victor Duchovni
On Thu, Nov 18, 2010 at 02:06:12PM -0600, Stan Hoeppner wrote: > Victor Duchovni put forth on 11/18/2010 12:52 PM: > > > This filter is too fragile IMHO. My best advice is to find filters that > > detect spam. > > I think you've missed some of my previous posts regarding my spam > filtering setu

Re: no plain text subject

2010-11-18 Thread mouss
Le 18/11/2010 21:06, Stan Hoeppner a écrit : Victor Duchovni put forth on 11/18/2010 12:52 PM: This filter is too fragile IMHO. My best advice is to find filters that detect spam. I think you've missed some of my previous posts regarding my spam filtering setup. I kill about 99.5+% of it at

Can a milter split one message into multiple messages?

2010-11-18 Thread Jack Bates
Can a "milter" split one message with multiple RCPT into multiple messages, each with one RCPT and different return addresses? I started writing a milter to rewrite the envelope from and the From: header such that messages to each different RCPT have different return addresses Works for messages

hold without reload?

2010-11-18 Thread Patrick Ben Koetter
I know I can put a transport to hold if I specify its name in $defer_transports. This requires "postfix reload" to put it to effect immediately and issuing the reload will requeue all mail - not what I want if I can avoid it. Could I specify hold: in my transport map? AFAIK Postfix processes will

Re: hold without reload?

2010-11-18 Thread Wietse Venema
Patrick Ben Koetter: > I know I can put a transport to hold if I specify its name in > $defer_transports. This requires "postfix reload" to put it to effect > immediately and issuing the reload will requeue all mail - not what I want if > I can avoid it. defer_transports is implemented by the queu

Re: hold without reload?

2010-11-18 Thread Victor Duchovni
On Fri, Nov 19, 2010 at 12:49:36AM +0100, Patrick Ben Koetter wrote: > I know I can put a transport to hold if I specify its name in > $defer_transports. Don't confuse "hold" and "defer". > This requires "postfix reload" to put it to effect > immediately and issuing the reload will requeue all m

Re: Can a milter split one message into multiple messages?

2010-11-18 Thread Wietse Venema
Jack Bates: > Can a "milter" split one message with multiple RCPT into multiple > messages, each with one RCPT and different return addresses? It would have to submit another copy of the message into Postfix via the SMTP port or via the Postfix sendmail command line. > I started writing a milter

Re: hold without reload?

2010-11-18 Thread Victor Duchovni
On Thu, Nov 18, 2010 at 07:02:17PM -0500, Wietse Venema wrote: > You may be surprised to learn that defer_transports is implemented > by sending mail to the retry(8) delivery agent (Postfix 2.4 and > later). If you specify retry: in a transport map then it will have > the same effect. > > This al

Re: Can a milter split one message into multiple messages?

2010-11-18 Thread Victor Duchovni
On Thu, Nov 18, 2010 at 03:33:16PM -0800, Jack Bates wrote: > Can a "milter" split one message with multiple RCPT into multiple > messages, each with one RCPT and different return addresses? No. This cannot be done reliably within the SMTP transaction model. This is fundamental, not specific to h

RE: Can a milter split one message into multiple messages?

2010-11-18 Thread Murray S. Kucherawy
> -Original Message- > From: owner-postfix-us...@postfix.org > [mailto:owner-postfix-us...@postfix.org] On Behalf Of Jack Bates > Sent: Thursday, November 18, 2010 3:33 PM > To: postfix-users@postfix.org > Subject: Can a milter split one message into multiple messages? > > Can a "milter"

Round robin outgoing smtp?

2010-11-18 Thread Simon
Hi There, We have a postfix server running on debian lenny. We are wondering what the best way would be to disperse outgoing mail via a ip range rather than one single IP? E.g. have 6 IPs on the one server, and have postfix round robin the mail out? This is all legitimate mail on with customers wh

Re: Round robin outgoing smtp?

2010-11-18 Thread Simon
Hi There, i have answered my own question. Sorry for the email. On Fri, Nov 19, 2010 at 2:53 PM, Simon wrote: > Hi There, > > We have a postfix server running on debian lenny. We are wondering > what the best way would be to disperse outgoing mail via a ip range > rather than one single IP? E.g.

postfix won't start, no messages anywhere

2010-11-18 Thread Len Conrad
Had a power failure on a linux RHEL and postfix. disk got messed up a little bit but linux seemed to fix it up. all apps and services are running except postfix. I've had this problem before on another machine, and it was permissions. postfix set-permissions ... doesn't solve it postfix