Re: proxymap performance with cidr, pcre, regexp, hash

2010-11-23 Thread Stan Hoeppner
Victor Duchovni put forth on 11/23/2010 11:05 PM: > On Tue, Nov 23, 2010 at 10:04:47PM -0600, Stan Hoeppner wrote: > >> I'm guessing the >> latency is actually higher when smtpd queries proxymap than when timing >> postmap -q. Is this the case? > > Not necessarily, it depends on how memory-const

RE: OT, but mail related

2010-11-23 Thread Gary Smith
> "My general advice WRT to VPS/colo/hosting outfits such as Softlayer, > Limestone, Sharktech, Hostnoc, Colocation America, Colo4, SingleHop, > Liquid Web, ServePath, GigeNet, WholeSale Internet, FDCservers, > CarolinaNet, Hurricane Electric, et al is to SMTP block their entire IP > space and then

Re: OT, but mail related

2010-11-23 Thread Stan Hoeppner
Gary Smith put forth on 11/23/2010 2:17 PM: > I've been using the same IP's for years but I'm moving all my equipment to a > new facility in the coming days. Is there a checklist of things that you > guys suggest when setting up mail servers on a brand new range? > > I'm expecting to setup 5 IP

Re: proxymap performance with cidr, pcre, regexp, hash

2010-11-23 Thread Victor Duchovni
On Tue, Nov 23, 2010 at 10:04:47PM -0600, Stan Hoeppner wrote: > I'm guessing the > latency is actually higher when smtpd queries proxymap than when timing > postmap -q. Is this the case? Not necessarily, it depends on how memory-constrained your system is. Paging in a large table in a large num

Re: proxymap performance with cidr, pcre, regexp, hash

2010-11-23 Thread Stan Hoeppner
Wietse Venema put forth on 11/23/2010 6:57 PM: > Victor Duchovni: >> On Tue, Nov 23, 2010 at 07:35:49PM -0500, Wietse Venema wrote: >> >>> Victor Duchovni: On Tue, Nov 23, 2010 at 05:20:11PM -0600, Stan Hoeppner wrote: > Would you please give us the run down on why these map types (an

Re: proxymap performance with cidr, pcre, regexp, hash

2010-11-23 Thread Wietse Venema
Victor Duchovni: > On Tue, Nov 23, 2010 at 07:35:49PM -0500, Wietse Venema wrote: > > > Victor Duchovni: > > > On Tue, Nov 23, 2010 at 05:20:11PM -0600, Stan Hoeppner wrote: > > > > > > > Would you please give us the run down on why these map types (and maybe > > > > others) shouldn't be used wit

Re: proxymap performance with cidr, pcre, regexp, hash

2010-11-23 Thread Victor Duchovni
On Tue, Nov 23, 2010 at 07:35:49PM -0500, Wietse Venema wrote: > Victor Duchovni: > > On Tue, Nov 23, 2010 at 05:20:11PM -0600, Stan Hoeppner wrote: > > > > > Would you please give us the run down on why these map types (and maybe > > > others) shouldn't be used with proxymap due to performance r

Re: proxymap performance with cidr, pcre, regexp, hash

2010-11-23 Thread Wietse Venema
Victor Duchovni: > On Tue, Nov 23, 2010 at 05:20:11PM -0600, Stan Hoeppner wrote: > > > Would you please give us the run down on why these map types (and maybe > > others) shouldn't be used with proxymap due to performance reasons? You > > mentioned something about this long ago but I can't seem

Re: OT, but mail related

2010-11-23 Thread Patrick Ben Koetter
* Gary Smith : > I've been using the same IP's for years but I'm moving all my equipment to a > new facility in the coming days. Is there a checklist of things that you > guys suggest when setting up mail servers on a brand new range? Get a reputation for your domain i.e. DKIM et al. If you don't

Re: proxymap performance with cidr, pcre, regexp, hash

2010-11-23 Thread Victor Duchovni
On Tue, Nov 23, 2010 at 05:20:11PM -0600, Stan Hoeppner wrote: > Would you please give us the run down on why these map types (and maybe > others) shouldn't be used with proxymap due to performance reasons? You > mentioned something about this long ago but I can't seem to locate that > email in m

proxymap performance with cidr, pcre, regexp, hash

2010-11-23 Thread Stan Hoeppner
Victor, Would you please give us the run down on why these map types (and maybe others) shouldn't be used with proxymap due to performance reasons? You mentioned something about this long ago but I can't seem to locate that email in my archives. IIRC you didn't go into much technical detail as t

Postfix stable/legacy release 2.7.2, 2.6.8, 2.5.11, and 2.4.15

2010-11-23 Thread Wietse Venema
An on-line version of this announcement will be available at http://www.postfix.org/announcements/postfix-2.7.2.html The stable release Postfix 2.7.2 addresses the defects described below. These defects are also addressed in the legacy releases that are still maintained. Note: Postfix 2.3 and ea

Re: OT, but mail related

2010-11-23 Thread mouss
Le 23/11/2010 22:28, Gary Smith a écrit : you can try a lookup of these IPs in multiple RBLs, and lookup the "surrounding subnet" (/24 for example) on: http://www.senderbase.org/ you may want to keep the old servers for some time. (from experience, I've found MS to "cache" reputation for

RE: OT, but mail related

2010-11-23 Thread Gary Smith
> For receiving emails, you don't have too much to worry about. Just make > sure to set your DNS TTL pretty low a few days before you make the > actual switch. Yeah, that's the easy part. In the process of modifying TTL's as we speak. For my clients I have a backup MX that uses the same rules a

Re: OT, but mail related

2010-11-23 Thread Will Fong
On Nov 23, 2010, at 1:19 PM, Gary Smith wrote: > > Makes sense. I will keep a set of MX servers at the original COLO setup to > accept emails from my new range and forward outgoing email through them until > we verify the new one. > > Gary Smith For receiving emails, you don't have too much

RE: OT, but mail related

2010-11-23 Thread Gary Smith
> you can try a lookup of these IPs in multiple RBLs, and lookup the > "surrounding subnet" (/24 for example) on: > http://www.senderbase.org/ > > you may want to keep the old servers for some time. > (from experience, I've found MS to "cache" reputation for a long long > time. That once for

Re: Mysql queries being performed for domains not in virtual_alias_domains

2010-11-23 Thread mouss
Le 23/11/2010 21:19, Andrew Beverley a écrit : On Tue, 2010-11-23 at 13:21 -0600, Noel Jones wrote: There is nothing significant wrong with your config -- postfix is working correctly and performing the queries required. My only suggestion is to be careful what you put in the "access" table und

Re: OT, but mail related

2010-11-23 Thread mouss
Le 23/11/2010 21:17, Gary Smith a écrit : I've been using the same IP's for years but I'm moving all my equipment to a new facility in the coming days. Is there a checklist of things that you guys suggest when setting up mail servers on a brand new range? I'm expecting to setup 5 IP's for out

RE: OT, but mail related

2010-11-23 Thread Gary Smith
> > I'm expecting to setup 5 IP's for outgoing email and as such the RNDS > records for them as well. I just want to make sure that there's little, > if any, problems for myself and my customers that use my services. > > > Hi Gary, > > You'll probably want to warm up those IPs first. Generally

Re: OT, but mail related

2010-11-23 Thread Will Fong
On Nov 23, 2010, at 12:17 PM, Gary Smith wrote: > I'm expecting to setup 5 IP's for outgoing email and as such the RNDS records > for them as well. I just want to make sure that there's little, if any, > problems for myself and my customers that use my services. Hi Gary, You'll probably want

Re: How can I rewrite "from address" - one specific destination

2010-11-23 Thread Noel Jones
On 11/23/2010 2:16 PM, CT wrote: I accidentally replied to a thread instead of starting my own..oops.. Postfix Version: postfix-2.5.1-1.rhel5 I have an internal relay with an external NAT. The internal relay is not visible to the outside.. The receiving destination gives the error: There i

OT, but mail related

2010-11-23 Thread Gary Smith
I've been using the same IP's for years but I'm moving all my equipment to a new facility in the coming days. Is there a checklist of things that you guys suggest when setting up mail servers on a brand new range? I'm expecting to setup 5 IP's for outgoing email and as such the RNDS records fo

Re: Mysql queries being performed for domains not in virtual_alias_domains

2010-11-23 Thread Andrew Beverley
On Tue, 2010-11-23 at 14:22 -0500, Victor Duchovni wrote: > On Tue, Nov 23, 2010 at 06:53:44PM +, Andrew Beverley wrote: > > > > Note, that the above applies also to "bare" domain queries, so tables > > > with "domain =" constraints cannot be used to store the list of > > > virtual_alias_domai

Re: Mysql queries being performed for domains not in virtual_alias_domains

2010-11-23 Thread Andrew Beverley
On Tue, 2010-11-23 at 13:21 -0600, Noel Jones wrote: > On 11/23/2010 12:48 PM, Andrew Beverley wrote: > > On Sun, 2010-11-21 at 16:50 -0500, Jerrale G wrote: > >> On 11/21/2010 4:40 PM, Andrew Beverley wrote: > >>> Hi, > >>> > >>> I have noticed that my Postfix (version 2.3.8) is performing a > >>>

How can I rewrite "from address" - one specific destination

2010-11-23 Thread CT
I accidentally replied to a thread instead of starting my own..oops.. Postfix Version: postfix-2.5.1-1.rhel5 I have an internal relay with an external NAT. The internal relay is not visible to the outside.. The receiving destination gives the error: -- 550 [PERMFAIL] xxx.xxx.net requires valid

rewrite "from address" - one specific destination

2010-11-23 Thread CT
Postfix Version: postfix-2.5.1-1.rhel5 I have an internal relay with an external NAT. The internal relay is not visible to the outside.. The receiving destination gives the error: -- 550 [PERMFAIL] xxx.xxx.net requires valid sender domain (in reply to RCPT TO command)) -- My question What is t

Re: Mysql queries being performed for domains not in virtual_alias_domains

2010-11-23 Thread Victor Duchovni
On Tue, Nov 23, 2010 at 06:53:44PM +, Andrew Beverley wrote: > > Note, that the above applies also to "bare" domain queries, so tables > > with "domain =" constraints cannot be used to store the list of > > virtual_alias_domains, virtual_mailbox_domains, ... Not a problem, > > since after hard

Re: Mysql queries being performed for domains not in virtual_alias_domains

2010-11-23 Thread Noel Jones
On 11/23/2010 12:48 PM, Andrew Beverley wrote: On Sun, 2010-11-21 at 16:50 -0500, Jerrale G wrote: On 11/21/2010 4:40 PM, Andrew Beverley wrote: Hi, I have noticed that my Postfix (version 2.3.8) is performing a virtual_alias_maps mysql database query for every email that it is processing, eve

Re: Data check before accepting a letter

2010-11-23 Thread Неворотин Вадим
Yes, now I use address extensions for this task. But all users, who are not very friendly with computers, such as managers, has a lot of problems with it. They can't understand extensions. There must be only one constant email for each user without any variable extensions, or you will have a lot of

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

2010-11-23 Thread J. Roeleveld
On Tuesday 23 November 2010 16:58:34 mouss wrote: > Le 22/11/2010 08:55, J. Roeleveld a écrit : > > [snip] > > > > There is only 1 email address causing issues, eg. am only rewriting that > > specific one. > > if so, then simply use > > u...@lists_example_orgu...@lists-example.or

Re: Mysql queries being performed for domains not in virtual_alias_domains

2010-11-23 Thread Andrew Beverley
On Sun, 2010-11-21 at 17:13 -0500, Victor Duchovni wrote: > On Sun, Nov 21, 2010 at 04:50:21PM -0500, Jerrale G wrote: > > > On 11/21/2010 4:40 PM, Andrew Beverley wrote: > >> Hi, > >> > >> I have noticed that my Postfix (version 2.3.8) is performing a > >> virtual_alias_maps mysql database query

Re: Mysql queries being performed for domains not in virtual_alias_domains

2010-11-23 Thread Andrew Beverley
On Sun, 2010-11-21 at 16:50 -0500, Jerrale G wrote: > On 11/21/2010 4:40 PM, Andrew Beverley wrote: > > Hi, > > > > I have noticed that my Postfix (version 2.3.8) is performing a > > virtual_alias_maps mysql database query for every email that it is > > processing, even if the domain is not listed

Re: Relayhost

2010-11-23 Thread Noel Jones
On 11/23/2010 5:54 AM, Angelo Amoruso wrote: Hi, is there any way for postfix to change the outgoing relayhost using a sort of policy server? Postfix doesn't directly support that, although there may be workarounds for some situations. What information will you use to determine the relayhos

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

2010-11-23 Thread mouss
Le 22/11/2010 08:55, J. Roeleveld a écrit : [snip] There is only 1 email address causing issues, eg. am only rewriting that specific one. if so, then simply use u...@lists_example_org u...@lists-example.org better reject the address and let the sender fix his ratware... That is

Re: Block A Sender in Postfix

2010-11-23 Thread mouss
Le 22/11/2010 20:04, Carlos Mennens a écrit : On Mon, Nov 22, 2010 at 1:00 PM, Rich Shepard wrote: Carlos, I use a badaddr file that lists domains from whom I will not accept messages. The content looks like these: hostforreal.com 550 Rejected domain D23 nasty-mailin

Re: Data check before accepting a letter

2010-11-23 Thread Wietse Venema
> The task: if mail has some passphrase in subject (eg [passme]), > then do not apply greylistnig, RBL etc and transfer a mail to LDA. If you whitelist based on a string in the message, then why not whitelist based on a string in the RECIPIENT ADDRESS? Postfix supports address extensions, like thi

Re: Data check before accepting a letter

2010-11-23 Thread Неворотин Вадим
Thanks! I've read it but I still can't understand how to combine content check and SMTP headers check. The task: if mail has some passphrase in subject (eg [passme]), then do not apply greylistnig, RBL etc and transfer a mail to LDA. If doesn't contain passphrase then check greylisting etc in a usu

Re: Data check before accepting a letter

2010-11-23 Thread Wietse Venema
> I need to check letter's heading (subject) and if subject doesn't contain > some passphrase check this letter with greylisting or rbl. I can't > understand how can I solve such problem with postfix. My server should check To inspect (and reject) content during the SMTP DATA command, see: http://

Re: Oddly formatted date (malfomed even)

2010-11-23 Thread Wietse Venema
Chris G: > I have a mail sent across my LAN (from postfix to postfix) whose headers > start as follows:- > > From r...@zbmc.eu Tue Nov 23 08: 2:13 2010 Please verify that this line is from Postfix and not from procmail or some other software. In the case of Postfix, the time+date stamp is p

Data check before accepting a letter

2010-11-23 Thread Неворотин Вадим
I need to check letter's heading (subject) and if subject doesn't contain some passphrase check this letter with greylisting or rbl. I can't understand how can I solve such problem with postfix. My server should check all smtpd_*_restrictions for SMTP headers, then start to receive data and if data

Re: Are subdomains in mydestination redundant?

2010-11-23 Thread Chris G
On Tue, Nov 23, 2010 at 06:42:11AM -0600, Noel Jones wrote: > On 11/23/2010 6:00 AM, Chris G wrote: > >Currently my mydestination line looks like:- > > > > zbmc.eu, dps.zbmc.eu, localhost > > > >This is on the mail server which receives E-Mail from the 'outside > >world' from whose point of vie

Re: Are subdomains in mydestination redundant?

2010-11-23 Thread Noel Jones
On 11/23/2010 6:00 AM, Chris G wrote: Currently my mydestination line looks like:- zbmc.eu, dps.zbmc.eu, localhost This is on the mail server which receives E-Mail from the 'outside world' from whose point of view my system is zbmc.eu. Is the dps.zbmc.eu entry actually necessary or will m

Are subdomains in mydestination redundant?

2010-11-23 Thread Chris G
Currently my mydestination line looks like:- zbmc.eu, dps.zbmc.eu, localhost This is on the mail server which receives E-Mail from the 'outside world' from whose point of view my system is zbmc.eu. Is the dps.zbmc.eu entry actually necessary or will mail for dps.zbmc.eu be accepted anyway be

Relayhost

2010-11-23 Thread Angelo Amoruso
Hi, is there any way for postfix to change the outgoing relayhost using a sort of policy server? So far I've seen in the docs it's possible to change the relay host using a sender dependant map, but it would be a static approach, not a dynamic one. One idea that pops up in my mind is using

Oddly formatted date (malfomed even)

2010-11-23 Thread Chris G
I have a mail sent across my LAN (from postfix to postfix) whose headers start as follows:- From r...@zbmc.eu Tue Nov 23 08: 2:13 2010 Return-Path: X-Original-To: root Delivered-To: r...@zbmc.eu Received: by mws.zbmc.eu (Postfix, from userid 0) id 1282856013B; Tue