Re: permit_sasl_authenticated ONLY from one interface

2008-11-30 Thread Simone Felici
Simone Felici ha scritto: Hi to all! I've tested successfully a simple smtp server with SMTP authenticated. Now I would like do the following: My server has two interfaces with IP1 and IP2. I would like to setup postfix to permit AUTH-SMTP only for sessions incoming on IP1 and normal SMTP sess

Re: Permission denied error [SOLVED]

2008-11-30 Thread Daryl
All has been solved!! /var had 700 permissions. Changing to 755 corrected everything.

Re: Permission denied error

2008-11-30 Thread Daryl
On 1 Dec 2008 at 0:45, Bill Cole wrote: > Daryl wrote: > > On 30 Nov 2008 at 21:30, Bill Cole wrote: > > > >> Daryl wrote: > >>> Greetings, > >>> For the second time in a month I have a postfix/sendmail: > >>> fatal: chdir > >>> /var/spool/postfix Permission denied error. > >>> The

Re: Send stdout from command down a pipe

2008-11-30 Thread Magnus Bäck
On Monday, December 01, 2008 at 03:14 CET, Adrian Overbury <[EMAIL PROTECTED]> wrote: > Is it possible, if I specify a mailbox_command in my main.cf, to pipe > any output that produces on stdout to somewhere else? Like, say, to > another command? Postfix itself won't help you with this, but

Re: Permission denied error

2008-11-30 Thread Bill Cole
Daryl wrote: On 30 Nov 2008 at 21:30, Bill Cole wrote: Daryl wrote: Greetings, For the second time in a month I have a postfix/sendmail: fatal: chdir /var/spool/postfix Permission denied error. There are no possible solutions in my logs, and googling, has found nothing. My permis

Re: Intercepting messages in queue

2008-11-30 Thread Ville Walveranta
I have in master.cf: #client for sending emails to smtpprox scan unix - - n - 10 smtp -o smtp_send_xforward_command=yes -o disable_mime_output_conversion=yes -o smtp_generic_maps= #return interface for the mail filtered through smtpprox localhost:10026

Re: Intercepting messages in queue

2008-11-30 Thread Victor Duchovni
On Sun, Nov 30, 2008 at 11:13:11PM -0600, Johnson, S wrote: > Anyone know of any documentation on how to manipulate the incoming > message queues? I want to intercept inbound messages and process them > with an external program that I will be writing. http://www.postfix.org/CONTENT_INSPECTIO

Re: remote smtp auth clients - header rewrite question

2008-11-30 Thread Victor Duchovni
On Sun, Nov 30, 2008 at 06:40:18PM -0500, Dan Langille wrote: > I tried it like this: > > 10.0.0.1:smtps inet n - n - - smtpd > -o smtpd_sasl_auth_enable=yes > -o > smtpd_recipient_restrictions > =permit_sasl_authenticated,reject_unauth_desti > -o smtpd_sasl

Intercepting messages in queue

2008-11-30 Thread Johnson, S
Anyone know of any documentation on how to manipulate the incoming message queues? I want to intercept inbound messages and process them with an external program that I will be writing. Thanks Scott

Re: Permission denied error

2008-11-30 Thread Terry Carmen
Daryl wrote: On 30 Nov 2008 at 21:30, Bill Cole wrote: Daryl wrote: Greetings, For the second time in a month I have a postfix/sendmail: fatal: chdir /var/spool/postfix Permission denied error. There are no possible solutions in my logs, and googling, has found nothing.

Re: Permission denied error

2008-11-30 Thread Daryl
On 30 Nov 2008 at 21:30, Bill Cole wrote: > Daryl wrote: > > Greetings, > > For the second time in a month I have a postfix/sendmail: > > fatal: chdir > > /var/spool/postfix Permission denied error. > > There are no possible solutions in my logs, and googling, has found > > nothing

Re: Permission denied error

2008-11-30 Thread Bill Cole
Daryl wrote: Greetings, For the second time in a month I have a postfix/sendmail: fatal: chdir /var/spool/postfix Permission denied error. There are no possible solutions in my logs, and googling, has found nothing. My permissions for postfix are correct; #ls -ld /var/spool/postf

Re: Permission denied error

2008-11-30 Thread Sahil Tandon
Daryl <[EMAIL PROTECTED]> wrote: > Greetings, > For the second time in a month I have a postfix/sendmail: fatal: > chdir > /var/spool/postfix Permission denied error. > There are no possible solutions in my logs, and googling, has found nothing. > My permissions > for postfix are

Send stdout from command down a pipe

2008-11-30 Thread Adrian Overbury
Is it possible, if I specify a mailbox_command in my main.cf, to pipe any output that produces on stdout to somewhere else? Like, say, to another command? What I'm trying to do is have procmail write its log output to stdout, then pipe that into logger so I have it end up in syslog in a forma

Permission denied error

2008-11-30 Thread Daryl
Greetings, For the second time in a month I have a postfix/sendmail: fatal: chdir /var/spool/postfix Permission denied error. There are no possible solutions in my logs, and googling, has found nothing. My permissions for postfix are correct; #ls -ld /var/spool/postfix drwxrwx---

Re: mailing infrastructure / layout - best common practices

2008-11-30 Thread Sahil Tandon
john mickler <[EMAIL PROTECTED]> wrote: > I have one other question about BCP for mailing infrastructure. > > In our current setup we have: > > INBOUND > a.mx -- > b.mx mail > c.mx -- [...] > So for BCP on mailing infrastructure, is this a good design? Are the > correct services r

Re: remote smtp auth clients - header rewrite question

2008-11-30 Thread Dan Langille
On Nov 30, 2008, at 4:13 PM, mouss wrote: Dan Langille a écrit : Following one from John's success, I'm failing. One difference between John's setup and mine is my header_checks directive. It was defined in master.cf: -o header_checks=pcre:/usr/local/etc/postfix/obscure_smtp_auth did

Re: mailing infrastructure / layout - best common practices

2008-11-30 Thread john mickler
On Sun, Nov 30, 2008 at 3:50 PM, Wietse Venema <[EMAIL PROTECTED]> wrote: > john mickler: >> I have one other question about BCP for mailing infrastructure. >> >> In our current setup we have: >> >> INBOUND >> a.mx -- >> b.mx mail >> c.mx -- >> >> OUTBOUND >> {local servers} --> >> rem

Re: remote smtp auth clients - header rewrite question

2008-11-30 Thread mouss
Dan Langille a écrit : > Following one from John's success, I'm failing. One difference between > John's setup and mine is my header_checks directive. It was defined in > master.cf: > > -o header_checks=pcre:/usr/local/etc/postfix/obscure_smtp_auth > did you add that to an smtpd service? see

Re: remote smtp auth clients - header rewrite question

2008-11-30 Thread Dan Langille
john mickler wrote: On Sun, Nov 30, 2008 at 12:18 AM, Victor Duchovni <[EMAIL PROTECTED]> wrote: It should work if the newline is part of a ${n} sub-pattern match: # ${3} matches Newline + folding white-space /^(Received): (.*?)(\n[\t\x20])(.*)$/ ${1}: ${2}${3}(my comment)${3}$

Re: mailing infrastructure / layout - best common practices

2008-11-30 Thread Wietse Venema
john mickler: > I have one other question about BCP for mailing infrastructure. > > In our current setup we have: > > INBOUND > a.mx -- > b.mx mail > c.mx -- > > OUTBOUND > {local servers} --> > remote-smtp-auth --> smtp --> {INTERNET} Makes sense to me, but then it's been a whi

mailing infrastructure / layout - best common practices

2008-11-30 Thread john mickler
I have one other question about BCP for mailing infrastructure. In our current setup we have: INBOUND a.mx -- b.mx mail c.mx -- OUTBOUND {local servers} --> remote-smtp-auth --> smtp --> {INTERNET} a.mx, b.mx, c.mx do not handle local delivery, they only pass "acceptable" mail b

Re: remote smtp auth clients - header rewrite question

2008-11-30 Thread john mickler
On Sun, Nov 30, 2008 at 12:22 PM, mouss <[EMAIL PROTECTED]> wrote: > john mickler a écrit : >> The pcre example above indeed passes the newline through as mentioned. >> Here's an adjusted expression to fit my situation, as well as an >> example header after the replacement: >> >> main.cf: >> heade

Re: remote smtp auth clients - header rewrite question

2008-11-30 Thread Victor Duchovni
On Sun, Nov 30, 2008 at 12:18:45PM -0500, john mickler wrote: > /^(Received): (.*?)(\n[\t\x20])(.*)$/ REPLACE ${1}: from smtp-auth > (smtp-auth.mycompany.com [55.55.55.55]${3}${4} > > > resulting replaced header- > > Received: from smtp-auth (smtp-auth.mycompany.com [55.55.55.55] > (usi

Re: remote smtp auth clients - header rewrite question

2008-11-30 Thread mouss
john mickler a écrit : > The pcre example above indeed passes the newline through as mentioned. > Here's an adjusted expression to fit my situation, as well as an > example header after the replacement: > > main.cf: > header_checks = /usr/local/etc/postfix/maps/header_checks.pcre > > header_chec

Re: remote smtp auth clients - header rewrite question

2008-11-30 Thread john mickler
On Sun, Nov 30, 2008 at 12:18 AM, Victor Duchovni <[EMAIL PROTECTED]> wrote: > It should work if the newline is part of a ${n} sub-pattern match: > ># ${3} matches Newline + folding white-space >/^(Received): (.*?)(\n[\t\x20])(.*)$/ >${1}: ${2}${3}(my comment)${3}${4} > > With t

Re: remote smtp auth clients - header rewrite question

2008-11-30 Thread Wietse Venema
Victor Duchovni: > On Sat, Nov 29, 2008 at 10:24:25PM -0600, Noel Jones wrote: > > > john mickler wrote: > > > > > >As for the newline insertion mentioned on the website, I'm wondering > > >if using a pcre instead of standard regex would allow this. I'm going > > >to translate and give it a try.