Re: need help with regexp in header_checks

2013-11-13 Thread Stan Hoeppner
On 11/14/2013 12:41 AM, Viktor Dukhovni wrote: > On Thu, Nov 14, 2013 at 12:32:45AM -0600, Stan Hoeppner wrote: > >> In recent years CPUs have become so blindingly fast it makes no >> difference. Any excess cycles burned by a non anchored regex were idle >> cycles anyway. There are good argument

Re: need help with regexp in header_checks

2013-11-13 Thread tejas sarade
I think .* will match everythig. On Nov 13, 2013 8:32 PM, "Noel Jones" wrote:

Re: Postfix Repos

2013-11-13 Thread Stan Hoeppner
On 11/13/2013 11:16 AM, Steffan A. Cline wrote: > I asked this under a thread but am asking again in its own thread to see > if I get better visibility. > > Does anyone know of any good bleeding edge postfix repos? http://postfix.wl0.org/en/available-packages/ Postfix 2.9 for RHEL 5/6, which als

Re: need help with regexp in header_checks

2013-11-13 Thread Viktor Dukhovni
On Thu, Nov 14, 2013 at 12:32:45AM -0600, Stan Hoeppner wrote: > In recent years CPUs have become so blindingly fast it makes no > difference. Any excess cycles burned by a non anchored regex were idle > cycles anyway. There are good arguments for anchoring expressions, but > saving CPU cycles i

Re: need help with regexp in header_checks

2013-11-13 Thread Stan Hoeppner
On 11/13/2013 9:50 AM, Bill Cole wrote: > On 13 Nov 2013, at 6:39, Stan Hoeppner wrote: >> Also, note that the carat (^) anchor isn't necessary. The header fields >> you're testing for are in the left most position. Thus no reason to >> left anchor your expression. > > There absolutely ARE reas

transferring a virtual domain to new server, get 550 5.1.1

2013-11-13 Thread lists
I have Postfix/Dovecot/MySQL installation with several virtual domains, all is well. I need to transfer several virtual domains to a new server, I was given an out of the box Postfix/Dovecot/MySQL, similar release levels I've copied the sql database across, the new server seems OK (as far as I ca

Re: Postfix Repos

2013-11-13 Thread Wijatmoko U. Prayitno
On Thu, 14 Nov 2013 17:50:13 +1300 Peter wrote: > On 11/14/2013 06:16 AM, Steffan A. Cline wrote: > > Does anyone know of any good bleeding edge postfix repos? > > > > I am using whatever the CentOS distros come with and it appears to be an > > older version. > > postfix 2.10.2 is in the ghetto

Re: Postfix Repos

2013-11-13 Thread Peter
On 11/14/2013 06:16 AM, Steffan A. Cline wrote: > Does anyone know of any good bleeding edge postfix repos? > > I am using whatever the CentOS distros come with and it appears to be an > older version. postfix 2.10.2 is in the ghettoforge gf-plus repo for both CentOS 5 and CentOS 6 and is built w

Re: Transport to script

2013-11-13 Thread Jeroen Geilman
On 11/13/2013 11:12 PM, List wrote: On 11/13/13, 11:52 AM, Viktor Dukhovni wrote: On Wed, Nov 13, 2013 at 11:18:32AM -0600, List wrote: I am building a script to handle some specific recipients so I will be using transport to handle their domain. The script may run for a long period of time (

Re: Transport to script

2013-11-13 Thread Wietse Venema
List: > > If you really want your own queue, you can do that of course, but > > it is not clear why you would. > > The script itself handles persistence of the message. Is postfix even > capable of being configured to hand off a message via the pipe and > return immediately or is it always goin

Re: Postfix Repos

2013-11-13 Thread Jeroen Geilman
On 11/13/2013 06:16 PM, Steffan A. Cline wrote: I asked this under a thread but am asking again in its own thread to see if I get better visibility. Does anyone know of any good bleeding edge postfix repos? I am using whatever the CentOS distros come with and it appears to be an older version.

Re: Transport to script

2013-11-13 Thread List
On 11/13/13, 11:52 AM, Viktor Dukhovni wrote: On Wed, Nov 13, 2013 at 11:18:32AM -0600, List wrote: I am building a script to handle some specific recipients so I will be using transport to handle their domain. The script may run for a long period of time (up to 30 seconds) and I am wondering

Re: Spam from DKIM verified senders.

2013-11-13 Thread Benny Pedersen
Jeremy Bowen skrev den 2013-11-13 21:07: X-Spam-Status: No, score=-1.829 tagged_above=- required=5.31 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VERIFIED=-1.5, HTML_IMAGE_ONLY_20=1.546, HTML_MESSAGE=0.001, RCVD_IN_BRBL_LASTEXT=1.449, RP_M

Re: Spam from DKIM verified senders.

2013-11-13 Thread Wietse Venema
Jeremy Bowen: > Over the last few months I've been receiving a lot of spam from various > different DKIM and SPF verified senders. This tends to slide right past > my anti-spam measures (SpamAssassin/Amavis/RBLs) and straight into my inbox. DKIM, SPF, etc. are authentication technologies. They tel

Re: LDAP Fallback Question

2013-11-13 Thread Benny Pedersen
Viktor Dukhovni skrev den 2013-11-13 20:08: On Wed, Nov 13, 2013 at 08:02:17PM +0100, Benny Pedersen wrote: > server_host = ldap.example.com > ldap2.example2.com You miss protocol in front of hostname, else postfix wont know its ldap or http, ... This is silly, LDAP servers are

Re: LDAP Fallback Question

2013-11-13 Thread Viktor Dukhovni
On Wed, Nov 13, 2013 at 08:02:17PM +0100, Benny Pedersen wrote: > > server_host = ldap.example.com > > ldap2.example2.com > > You miss protocol in front of hostname, else postfix wont know its > ldap or http, ... This is silly, LDAP servers are not web servers, and neither Postfix

Re: LDAP Fallback Question

2013-11-13 Thread Benny Pedersen
Marko Weber | ZBF skrev den 2013-11-13 18:49: server_host = ldap://ldap.example.com:1444 ldap://ldap2.example.com:1444 i´ve tried it that way: server_host = ldap.example.com ldap2.example2.com you miss protocol in front of host

Re: Postfix Repos

2013-11-13 Thread Mike
I asked this under a thread but am asking again in its own thread to see if I get better visibility. Does anyone know of any good bleeding edge postfix repos? I am using whatever the CentOS distros come with and it appears to be an older version. I¹d like to look into some of the newer features

Re: Transport to script

2013-11-13 Thread Noel Jones
On 11/13/2013 11:18 AM, List wrote: > I am building a script to handle some specific recipients so I will > be using transport to handle their domain. The script may run for a > long period of time (up to 30 seconds) and I am wondering if there > is a way for the script to let postfix know I have

Re: Transport to script

2013-11-13 Thread Viktor Dukhovni
On Wed, Nov 13, 2013 at 11:18:32AM -0600, List wrote: > I am building a script to handle some specific recipients so I will > be using transport to handle their domain. The script may run for a > long period of time (up to 30 seconds) and I am wondering if there > is a way for the script to let p

Re: Postfix Repos

2013-11-13 Thread Benny Pedersen
Steffan A. Cline skrev den 2013-11-13 18:16: Does anyone know of any good bleeding edge postfix repos? dont know, i dont use centos from last centoury :=) https://sites.google.com/site/ghidit/how-to-2/centos-mail-server-setup-postfix-dovecot-mysql-virtual-users-sasl-postfixadmin-tls/postfix-d

Re: LDAP Fallback Question

2013-11-13 Thread Marko Weber | ZBF
hallo patrick, Am 2013-11-13 10:29, schrieb Patrick Ben Koetter: * Marko Weber | ZBF : hello list, we use LDAP in Postfix for User Management. Now i should setup a second LDAP server and postfix should use the second LDAP server when the first is not longer available. i searched inet but did

Re: SPAM through postfix+postscreen

2013-11-13 Thread Benny Pedersen
HL skrev den 2013-11-13 13:01: "Why did this spam passed through ???"  postscreen is not yet a spoof protector https://launchpad.net/pypolicyd-spf

Re: SPAM through postfix+postscreen

2013-11-13 Thread Benny Pedersen
Paul C skrev den 2013-11-13 11:52: From what I see from the spam scoring, you have a -100 from the domain being whitelisted, i.e. google.com [4] in your example. This gave the total spam score a value of less than 0, and based on the header it if pypolicyd-spf was used in mta stage this mail wa

Re: SPAM through postfix+postscreen

2013-11-13 Thread Benny Pedersen
HL skrev den 2013-11-13 11:41: X-Spam-Status: No, score=-88.74 required=6.31 tests=[BAYES_80=2, FILL_THIS_FORM=0.001, FILL_THIS_FORM_LONG=3.404, HELO_DYNAMIC_IPADDR=1.951, SPF_SOFTFAIL=0.665, URIBL_BLACK=1.725, URIBL_RHS_DOB=1.514, USER_IN_WHITELIST=-100] autolearn=no

Transport to script

2013-11-13 Thread List
I am building a script to handle some specific recipients so I will be using transport to handle their domain. The script may run for a long period of time (up to 30 seconds) and I am wondering if there is a way for the script to let postfix know I have received the message and let it continue

Postfix Repos

2013-11-13 Thread Steffan A. Cline
I asked this under a thread but am asking again in its own thread to see if I get better visibility. Does anyone know of any good bleeding edge postfix repos? I am using whatever the CentOS distros come with and it appears to be an older version. I¹d like to look into some of the newer features

Re: How to expand aliases before applying content filters?

2013-11-13 Thread Viktor Dukhovni
On Thu, Nov 14, 2013 at 12:08:27AM +0700, Hoang Xuan Phu wrote: > I'm trying to configure gpg-mailgate[1] to encrypt my incoming > emails. So far everything is good, except for those emails for root. > According to the logs[2], the alias is expanded after the content > filter. In fact, it is only

Re: postfix is unable to send email

2013-11-13 Thread Viktor Dukhovni
On Wed, Nov 13, 2013 at 08:34:51AM -0800, boson code wrote: > Whenever I try to send an email from my server, I get the following error: > > Nov 13 06:37:21 xyz postfix/smtpd[6730]:connect from unknown[a.b.c.d] > Nov 13 06:37:21 xyz postfix/smtp[6729]: warning: host X.com[x.y.z.d]:25 > greeted me

How to expand aliases before applying content filters?

2013-11-13 Thread Hoang Xuan Phu
Hi, On my server I have an alias from root to my email address, let's say it's test...@phunehehe.net. This has been working for a while. When programs on the server send emails to root I will get it in my inbox. I'm trying to configure gpg-mailgate[1] to encrypt my incoming emails. So far ev

Re: Save mails into custom DB

2013-11-13 Thread Robert Sander
Am 13.11.2013 17:52, schrieb Merve Temizer: > Should i do something like this: > >> javapipe unix - n n - - pipe > > user=pstfx flags=DRhuX argv=java /path/to/my/jar -args ${mailbox} > > > > and in java code go to the "mailbox" directory and do whatever i want > with the mail in that directory

Re: Save mails into custom DB

2013-11-13 Thread Merve Temizer
Should i do something like this: > javapipe unix - n n - - pipe > user=pstfx flags=DRhuX argv=java /path/to/my/jar -args ${mailbox} and in java code go to the "mailbox" directory and do whatever i want with the mail in that directory? Is this the way, did i understand it? Thanks very much f

postfix is unable to send email

2013-11-13 Thread boson code
Whenever i try to send an email from my server, i get the following error: Nov 13 06:37:21 xyz postfix/smtpd[6730]:connect from unknown[a.b.c.d] Nov 13 06:37:21 xyz postfix/smtp[6729]: warning: host X.com[x.y.z.d]:25 greeted me with my own hostname xyz.biz Nov 13 06:37:21 xyz postfix/smtp[6729]:

Re: need help with regexp in header_checks

2013-11-13 Thread Bill Cole
On 13 Nov 2013, at 3:34, naser sonbaty wrote: Hi, I need help with postfix regexp in header_checks. Start by reading the documentation, including the man pages for header_checks and regexp_table and Postfix's BUILTIN_FILTER_README. Also: following the advice in the last ~50 lines of the DEB

Re: Save mails into custom DB

2013-11-13 Thread Merve Temizer
There is no mime message parameter below, does it mean i can not get mime message as a parameter through pipe? ${client_address} This macro expands to the remote client net- work address. This feature is available as of Postfix 2.2. ${client_helo} This macro expands to the remote client HELO com

Re: SPAM through postfix+postscreen

2013-11-13 Thread Kris Deugau
HL wrote: > On 13/11/2013 12:52 μμ, Paul C wrote: >> From what I see from the spam scoring, you have a -100 from the domain >> being whitelisted, > But there seem to be a zillion mail servers out there that do not comply > with the RFC, > > most of the times DNS and Reverse DNS and IP ADDRESSES a

Re: need help with regexp in header_checks

2013-11-13 Thread Bill Cole
On 13 Nov 2013, at 6:39, Stan Hoeppner wrote: On 11/13/2013 2:34 AM, naser sonbaty wrote: Hi, I need help with postfix regexp in header_checks. I want discard all emails(any domain) from admin@ I use following: /^(To|From|Cc|Reply-To): admin@(.*)/DISCARD but its not working Tests f

Re: need help with regexp in header_checks

2013-11-13 Thread Jan P. Kessler
Also, note that the carat (^) anchor isn't necessary. The header fields you're testing for are in the left most position. Thus no reason to left anchor your expression. Of course there is. - Anchored expressions are executed faster (the parser has to check the pattern only against the begi

Re: Save mails into custom DB

2013-11-13 Thread Wietse Venema
Merve Temizer: > here in below code, what should i write after d or something else to get > all mimemessage and parameter, and how can i handle that parameter, how > will it come, as a java object??? > > javapipe unix - n n - - pipe > user=pstfx flags=DRhuX argv=echo 'merveee' -d ${recipient} The

Re: need help with regexp in header_checks

2013-11-13 Thread moparisthebest
Agreed. Why would you want to discard my emails? :( Is there something wrong with having an email named admin? On 11/13/2013 10:01 AM, Noel Jones wrote: > On 11/13/2013 2:34 AM, naser sonbaty wrote: >> Hi, >> >> I need help with postfix regexp in header_checks. >> I want discard all emails(any d

Re: need help with regexp in header_checks

2013-11-13 Thread Noel Jones
On 11/13/2013 2:34 AM, naser sonbaty wrote: > Hi, > > I need help with postfix regexp in header_checks. > I want discard all emails(any domain) from admin@ > > I use following: > /^(To|From|Cc|Reply-To): admin@(.*)/DISCARD > > but its not working > > thx for help WARNING: This looks l

Re: Save mails into custom DB

2013-11-13 Thread Merve Temizer
here in below code, what should i write after d or something else to get all mimemessage and parameter, and how can i handle that parameter, how will it come, as a java object??? javapipe unix - n n - - pipe user=pstfx flags=DRhuX argv=echo 'merveee' -d ${recipient} 2013/11/13 Merve Temizer >

Re: Save mails into custom DB

2013-11-13 Thread Merve Temizer
hi, i am going to copy your solution but i need to know how can i pass all mime message to my java main method in jar. thanks 2013/10/20 Tim Prepscius > search for my name on this mailing list > > I'm doing about the same thing.. > It turns out you can probably use most of the java code you w

Re: SPAM through postfix+postscreen

2013-11-13 Thread Stan Hoeppner
On 11/13/2013 5:38 AM, Wijatmoko U. Prayitno wrote: > On Wed, 13 Nov 2013 05:52:28 -0500 > Paul C wrote: > >> ip and helo name do not match google. I don't use those content filters to >> know enough to tell you what to do, but that's why the emails are getting >> in. I'd be interested in hearing

Re: SPAM through postfix+postscreen

2013-11-13 Thread HL
On 13/11/2013 12:52 μμ, Paul C wrote: From what I see from the spam scoring, you have a -100 from the domain being whitelisted, i.e. google.com in your example. This gave the total spam score a value of less than 0, and based on the header it says a 6.31 score or higher woul

Re: need help with regexp in header_checks

2013-11-13 Thread Stan Hoeppner
On 11/13/2013 2:34 AM, naser sonbaty wrote: > Hi, > > I need help with postfix regexp in header_checks. > I want discard all emails(any domain) from admin@ > > I use following: > /^(To|From|Cc|Reply-To): admin@(.*)/DISCARD > > but its not working Tests fine here: $ cat test.regexp /^(T

Re: SPAM through postfix+postscreen

2013-11-13 Thread Wijatmoko U. Prayitno
On Wed, 13 Nov 2013 05:52:28 -0500 Paul C wrote: > ip and helo name do not match google. I don't use those content filters to > know enough to tell you what to do, but that's why the emails are getting > in. I'd be interested in hearing the solution to this as well. > you could try http://www.ha

Re: SPAM through postfix+postscreen

2013-11-13 Thread Paul C
>From what I see from the spam scoring, you have a -100 from the domain being whitelisted, i.e. google.com in your example. This gave the total spam score a value of less than 0, and based on the header it says a 6.31 score or higher would cause the message to be blocked. So the spammer is spoofing

Re: LDAP Fallback Question

2013-11-13 Thread Patrick Ben Koetter
* Marko Weber | ZBF : > hello list, > > we use LDAP in Postfix for User Management. > > Now i should setup a second LDAP server and postfix should use the > second LDAP server when the first is not longer available. > > i searched inet but didnt really find a solution. can u help me or > guide m

LDAP Fallback Question

2013-11-13 Thread Marko Weber | ZBF
hello list, we use LDAP in Postfix for User Management. Now i should setup a second LDAP server and postfix should use the second LDAP server when the first is not longer available. i searched inet but didnt really find a solution. can u help me or guide me? thank you marko

need help with regexp in header_checks

2013-11-13 Thread naser sonbaty
Hi, I need help with postfix regexp in header_checks. I want discard all emails(any domain) from admin@ I use following: /^(To|From|Cc|Reply-To): admin@(.*)/DISCARD but its not working thx for help