Re: headerchecks

2009-09-16 Thread Henrik K
On Wed, Sep 16, 2009 at 07:53:51AM -0600, LuKreme wrote: > On 16-Sep-2009, at 05:28, Laurence Moughan wrote: >> postmap -q "boarding" regexp:/etc/postfix/headerchecks >> >> This comes back with nothing - i thought it might coma back with a >> match ? > >> /^From:(.*)boarding_...@domain\.com/ REJE

Re: Rewrite destination domain

2009-09-16 Thread Victor Duchovni
On Wed, Sep 16, 2009 at 10:13:19PM -0400, Sahil Tandon wrote: > On Wed, 16 Sep 2009, Victor Duchovni wrote: > > > On Wed, Sep 16, 2009 at 07:14:35PM -0400, Sahil Tandon wrote: > > > > > # main.cf > > > recipient_canonical_maps = cdb:/usr/local/etc/postfix/canonical > > > > > > # /usr/local/e

Re: Rewrite destination domain

2009-09-16 Thread Sahil Tandon
On Wed, 16 Sep 2009, Victor Duchovni wrote: > On Wed, Sep 16, 2009 at 07:14:35PM -0400, Sahil Tandon wrote: > > > # main.cf > > recipient_canonical_maps = cdb:/usr/local/etc/postfix/canonical > > > > # /usr/local/etc/postfix/canonical > > @exmaple.org @example.org > > I strongly discourage

Re: Rewrite destination domain

2009-09-16 Thread Victor Duchovni
On Wed, Sep 16, 2009 at 07:14:35PM -0400, Sahil Tandon wrote: > # main.cf > recipient_canonical_maps = cdb:/usr/local/etc/postfix/canonical > > # /usr/local/etc/postfix/canonical > @exmaple.org @example.org I strongly discourage "recipient_canonical_maps". Use canonical_maps instead. Unlike

Re: Postfix mail headers for locally sent mail (sendmail command)

2009-09-16 Thread Steve Fatula
>If you do not want to process local mail via SpamAssassin then don't >send locally submitted mail to SpamAssassin. Precisely, and the question was how to recognize locally submitted mail vs other mail given that we had to process on delivery via procmail, and, each user can have different Spam

Re: Postfix mail headers for locally sent mail (sendmail command)

2009-09-16 Thread Sahil Tandon
On Wed, 16 Sep 2009, Steve Fatula wrote: > It is likely you are not aware of the problem I am speaking of then as > Spamassassin does NOT recognize locally sent mail the way it "should", > it uses a test called NO_RELAYS for locally sent postfix mail. I don't > want to process the local mail at al

Re: Rewrite destination domain

2009-09-16 Thread Sahil Tandon
On Wed, 16 Sep 2009, LuKreme wrote: > On 16-Sep-2009, at 14:32, Noel Jones wrote: > > >@yaho.com @yahoo.com > > I can just put that in my normal virtue? That's very cool. Yes. > All seems to work, huzzah! Indeed, but note that virtual alias mapping affects only the envelope recipient address

Re: Postfix mail headers for locally sent mail (sendmail command)

2009-09-16 Thread Steve Fatula
>I use postfix and spamassassin, and I have no problem. I don't rewrite >headers. I don't whitelist senders. ... etc. It is likely you are not aware of the problem I am speaking of then as Spamassassin does NOT recognize locally sent mail the way it "should", it uses a test called NO_RELAYS for

Re: Postfix mail headers for locally sent mail (sendmail command)

2009-09-16 Thread mouss
Steve Fatula a écrit : >>> Is this a true statement. If a message is sent to postfix via smtp, in the >>> message headers will ALWAYS be at least one header of the form: >>> >>> Received: from... >>> >>> I believe this to be the case, which means the only messages without that >>> are the locally

Re: Postfix mail headers for locally sent mail (sendmail command)

2009-09-16 Thread mouss
Steve Fatula a écrit : >> Why? What problem are you trying to solve. >> if you inist, force it to go to smtpd by using a content_filter in the >> pickup service in master.cf. > > > The problem to be solved is that various filters we use, spamassassin, dcc, > etc., use the receive from header in

Re: Rewrite destination domain

2009-09-16 Thread LuKreme
On 16-Sep-2009, at 14:32, Noel Jones wrote: @yaho.com @yahoo.com I can just put that in my normal virtue? That's very cool. I figured I would need to create a separate virtual file that is called under smtpd_recipient_restrictions or something. All seems to work, huzzah! -- Can I tell y

Re: Rewrite destination domain

2009-09-16 Thread Noel Jones
On 9/16/2009 3:10 PM, LuKreme wrote: you can add a virtual_alias_maps entry to rewrite it. This works for any domain. u...@yaho.com u...@yahoo.com But in that case I'd have to specify every possible user? What I need to do is be able to, for example, rewrite (.*)@yaho\.com to $...@yahoo.com

Re: Rewrite destination domain

2009-09-16 Thread LuKreme
On 16-Sep-2009, at 12:41, Evan Platt wrote: Not a 'postfix' answer, but what mail client does he use? Is it one (or two or 3) e-mail addresses? No, it's a large number of email addresses and a constantly changing list. On 16-Sep-2009, at 13:01, Noel Jones wrote: you can add a virtual_alia

Re: Postfix mail headers for locally sent mail (sendmail command)

2009-09-16 Thread Steve Fatula
>> Is this a true statement. If a message is sent to postfix via smtp, in the >> message headers will ALWAYS be at least one header of the form: >> >> Received: from... >> >> I believe this to be the case, which means the only messages without that >> are the locally sent emails. Wouldn't that be

Re: Postfix mail headers for locally sent mail (sendmail command)

2009-09-16 Thread Noel Jones
On 9/16/2009 10:53 AM, Steve Fatula wrote: Is this a true statement. If a message is sent to postfix via smtp, in the message headers will ALWAYS be at least one header of the form: Received: from... I believe this to be the case, which means the only messages without that are the locally sen

Re: Rewrite destination domain

2009-09-16 Thread Noel Jones
On 9/16/2009 1:34 PM, LuKreme wrote: I have a user who is constantly mistyping a specific domain that he sends mail to on a regular basis. This has been going on for a couple of years, and every time he complains to be about messages not being delivered, or 'being eaten' or something. He is convi

Re: Rewrite destination domain

2009-09-16 Thread Evan Platt
Not a 'postfix' answer, but what mail client does he use? Is it one (or two or 3) e-mail addresses? Maybe make a addres book entry for the mistyped address to go to the real address? At 11:34 AM 9/16/2009, you wrote: I have a user who is constantly mistyping a specific domain that he sends m

Rewrite destination domain

2009-09-16 Thread LuKreme
I have a user who is constantly mistyping a specific domain that he sends mail to on a regular basis. This has been going on for a couple of years, and every time he complains to be about messages not being delivered, or 'being eaten' or something. He is convinced, every time, that my serve

RE: 2.6 RPM

2009-09-16 Thread Gary Smith
> I recall some months ago seeing a large discussion on someone taking > their time and dedication on creating a pre-packaged RPM of 2.6.X. I > was wondering if anyone has the latest RPM that I can download for my > new RHEL 5 server. I am looking to use 2.6.5 from a packaged RPM > however Redhat

Re: 2.6 RPM

2009-09-16 Thread Robert Schetterer
Carlos Williams schrieb: > I recall some months ago seeing a large discussion on someone taking > their time and dedication on creating a pre-packaged RPM of 2.6.X. I > was wondering if anyone has the latest RPM that I can download for my > new RHEL 5 server. I am looking to use 2.6.5 from a packa

Re: Postfix mail headers for locally sent mail (sendmail command)

2009-09-16 Thread Steve Fatula
Is this a true statement. If a message is sent to postfix via smtp, in the message headers will ALWAYS be at least one header of the form: Received: from... I believe this to be the case, which means the only messages without that are the locally sent emails. Wouldn't that be true?

Re: 2.6 RPM

2009-09-16 Thread Carlos Williams
On Wed, Sep 16, 2009 at 10:22 AM, Brian Collins wrote: > Simon Mudd is the man who makes these RPMs.  We mirror his site.  You can get > the RPMs here: > ftp://mirror.newnanutilities.org/pub/postfix-rpm/official/2.6/ Thanks for that info and I greatly appreciate all the time and effort Simon put

Re: headerchecks

2009-09-16 Thread LuKreme
On 16-Sep-2009, at 05:28, Laurence Moughan wrote: postmap -q "boarding" regexp:/etc/postfix/headerchecks This comes back with nothing - i thought it might coma back with a match ? /^From:(.*)boarding_...@domain\.com/ REJECT junk /^From:(*)boarding(*)\...@adomain\.com/ REJECT junk /^From: *

2.6 RPM

2009-09-16 Thread Carlos Williams
I recall some months ago seeing a large discussion on someone taking their time and dedication on creating a pre-packaged RPM of 2.6.X. I was wondering if anyone has the latest RPM that I can download for my new RHEL 5 server. I am looking to use 2.6.5 from a packaged RPM however Redhat / CentOS o

Re: (more) slow transport not working

2009-09-16 Thread Wietse Venema
fursink: > I am still unclear on this... > > Despite creating a slow transport for yahoo and verifying that the > unix socket 'slow' exists, it seems that it's not being used. Our > connections to yahoo are still occurring at a rate faster than > specified here in main.cf params and there is no 'p

(more) slow transport not working

2009-09-16 Thread fursink
I apologize if this topic seems basic or I'm missing something obvious here, but after much googling and looking to Ralph's book for answers, I am still unclear on this... Despite creating a slow transport for yahoo and verifying that the unix socket 'slow' exists, it seems that it's not being use

Re: headerchecks

2009-09-16 Thread Wietse Venema
Laurence Moughan: > Hi All, > > Would someone just please give me a headsup on the format for reg > exp headerchecks files, This is documented. man 5 regexp_table man 5 header_checks man 7 regex Wietse

Re: Problem starting Postfix: mysql_alias.cf, line 1: missing '='

2009-09-16 Thread Gerard
On Tue, 15 Sep 2009 18:03:48 -0400 (EDT) Rob Foehl wrote: > On Tue, 15 Sep 2009, Jose Carlos Madrid wrote: > > > you were right. I edited the file in Windows. I didn't realize. But > > after save it with vi editor It still keeps giving me this error. > > Notice it is not (line 1: missing '=' af

Re: headerchecks

2009-09-16 Thread Laurence Moughan
Appologies the second post - can someone please also explain the postmap test, eg postmap -q "boarding" regexp:/etc/postfix/headerchecks This comes back with nothing - i thought it might coma back with a match ? Laurence >>> "Laurence Moughan" 16/09/09 12:00:15 >>> Hi All, Would someo

Re: headerchecks

2009-09-16 Thread Martijn de Munnik
On Wed, 16 Sep 2009 12:00:15 +0100, "Laurence Moughan" wrote: > Hi All, > > Would someone just please give me a headsup on the format for reg exp > headerchecks files, > > Im not sure how to format for searching for a string within an email > address, > > eg > > to reject all mail with the

headerchecks

2009-09-16 Thread Laurence Moughan
Hi All, Would someone just please give me a headsup on the format for reg exp headerchecks files, Im not sure how to format for searching for a string within an email address, eg to reject all mail with the word "boarding" eg for the from address boarding...@domain.com and newboarding_pc

Re: Where i can see the received emails

2009-09-16 Thread Patrick Ben Koetter
* Arora, Sumit : > I have done the basic configuration of postfix on my fedora10. > > Can anybody tell me where I can see the received emails. Usually /var/mail/. > Do I need to setup any database for storing emails? No. > I just want to be sure that I'm getting emails or not. Check the log.

Where i can see the received emails

2009-09-16 Thread Arora, Sumit
I have done the basic configuration of postfix on my fedora10. Can anybody tell me where I can see the received emails. Do I need to setup any database for storing emails? I just want to be sure that I'm getting emails or not. Thanks, Sumit Arora

Re: how to pipe the received emails to my java function

2009-09-16 Thread Wietse Venema
Arora, Sumit: > Thanks p...@rick.. > > I read "man 8 pipe".. > > And what I understand is, I need to change the configuration somewhere here > in master.cf: > > # > # > # Other external delivery methods. > # > #ifmailunix

RE: how to pipe the received emails to my java function

2009-09-16 Thread Arora, Sumit
Thanks p...@rick.. I read "man 8 pipe".. And what I understand is, I need to change the configuration somewhere here in master.cf: # # # Other external delivery methods. # #ifmailunix - n n - -

Re: cdb table printout

2009-09-16 Thread Michael Tokarev
Peter Micunek wrote: Hi all, I need to dump lookup table transport.cdb. I tried it via postmap: postmap -s cdb:transport postmap: fatal: cdb table transport.cdb: sequence operation is not supported Hmm. I thought I fixed this? I'll see. Is there any way to do it? Meanwhile, you can use

Re: how to pipe the received emails to my java function

2009-09-16 Thread Patrick Ben Koetter
* Arora, Sumit : > Thanks Erwan > > As I'm new to postfix I couldn't understand what u said, I googled it but > didn't get any result useful to me. Have you read "man 8 pipe" yet? > Can u plz explain with some examples.. You can find some examples in /etc/postfix/master.cf. Look for commands t

cdb table printout

2009-09-16 Thread Peter Micunek
Hi all, I need to dump lookup table transport.cdb. I tried it via postmap: postmap -s cdb:transport postmap: fatal: cdb table transport.cdb: sequence operation is not supported Is there any way to do it? Thanks Peter Micunek --- Stavebna fakulta STU

Re: How did I get this [Sender address rejected: User unknown in virtual alias table] and how do I get rid of it?

2009-09-16 Thread Ansgar Wiechers
On 2009-09-15 Paul Beard wrote: > 554 5.1.0 : Sender address rejected: User unknown > in virtual alias table [...] > virtual_alias_domains = example.org > virtual_alias_maps = hash:/usr/local/etc/postfix/example.cf If mail sent to xx...@example.org should be delivered to local mailbox Y, you n

RE: how to pipe the received emails to my java function

2009-09-16 Thread Arora, Sumit
Thanks Erwan As I'm new to postfix I couldn't understand what u said, I googled it but didn't get any result useful to me. Can u plz explain with some examples.. Many Thanks, Sumit Arora -Original Message- From: owner-postfix-us...@postfix.org [mailto:owner-postfix-us...@postfix.org]

Re: how to pipe the received emails to my java function

2009-09-16 Thread Erwan David
On Wed, Sep 16, 2009 at 09:10:01AM CEST, "Arora, Sumit" said: > Hi All, > > I need to execute my code when I receive email on my postfix smtp server. > > Can anybody tell me what I can do if I want to execute my java function when > I receive email. > Also I need my whole email content in my j

how to pipe the received emails to my java function

2009-09-16 Thread Arora, Sumit
Hi All, I need to execute my code when I receive email on my postfix smtp server. Can anybody tell me what I can do if I want to execute my java function when I receive email. Also I need my whole email content in my java function. It will be great if anyone can show me some examples. Many Tha