Re: trivial-rewrite regular expression substitution

2008-09-30 Thread David DeFranco
I need data that's in the user part of the address to determine the nexthop. Obviously doing this dynamically is easier that maintaining a huge map file. My server is an internal mail router and only one recipient domain would be subject to this transport. Just out of curiosity, what kind of sec

Re: trivial-rewrite regular expression substitution

2008-09-30 Thread Victor Duchovni
On Tue, Sep 30, 2008 at 09:27:59PM -0600, David DeFranco wrote: > According to the man page I can't do regular expression substitution in > transport maps with Postfix 2.3 or later. > > The trivial-rewrite(8) server disallows regular expression > substitution of $1 etc. in regular expressio

trivial-rewrite regular expression substitution

2008-09-30 Thread David DeFranco
According to the man page I can't do regular expression substitution in transport maps with Postfix 2.3 or later. The trivial-rewrite(8) server disallows regular expression substitution of $1 etc. in regular expression lookup tables, because that could open a security hole (Postfix version

Re: Trouble setting up SASL authentication with postfix

2008-09-30 Thread Lists
Hi here is my postconf (I have changed domain and hostname and RELAY IP) - I have attached the output from saslfinger -s Thanks command_directory = /usr/sbin config_directory = /etc/postfix daemon_directory = /usr/libexec/postfix debug_peer_level = 2 header_checks = regexp:/etc/postfix/header_che

Re: Trouble setting up SASL authentication with postfix

2008-09-30 Thread Sahil Tandon
Lists <[EMAIL PROTECTED]> wrote: > Not sure if this is the right place to post, apologies if it is not. > > This is my first MailScanner / Postfix install - on CentOS 5.2 > > I have attempted to setup the smtp authentication using SASL following > various tutorials. > When I attempted to authenti

Trouble setting up SASL authentication with postfix

2008-09-30 Thread Lists
Hi all, Not sure if this is the right place to post, apologies if it is not. This is my first MailScanner / Postfix install - on CentOS 5.2 I have attempted to setup the smtp authentication using SASL following various tutorials. When I attempted to authenticate I am getting the following err

Re: postfix/virtual and dovecot/deliver

2008-09-30 Thread Wietse Venema
Wietse Venema > If root can do "cat /etc/postfix/mysql/virtual-mailbox-maps.cf" > but the Postfix virtual delivery agent running as root can open can -> cannot > the file, then you have something that interferes with file system > access, like Selinux, Apparmor, Systrace, and so on. Configuring >

Re: postfix/virtual and dovecot/deliver

2008-09-30 Thread Stephen Holmes
Wietse Venema wrote > If root can do "cat /etc/postfix/mysql/virtual-mailbox-maps.cf" > but the Postfix virtual delivery agent running as root can open > the file, then you have something that interferes with file system > access, like Selinux, Apparmor, Systrace, and so on. Configuring > such syst

Re: postfix/virtual and dovecot/deliver

2008-09-30 Thread Wietse Venema
Wietse Venema: > Stephen Holmes: > > Hmm, then it gets stranger. /etc/postfix/mysql/virtual-mailbox-maps.cf > > is a file in the local file system, as are the postfix binaries and in > > fact the /var/spool/postfix queues. All that's hosted on the remote NFS > > server is the actual user mailboxes

Re: postfix/virtual and dovecot/deliver

2008-09-30 Thread Wietse Venema
Stephen Holmes: > Hmm, then it gets stranger. /etc/postfix/mysql/virtual-mailbox-maps.cf > is a file in the local file system, as are the postfix binaries and in > fact the /var/spool/postfix queues. All that's hosted on the remote NFS > server is the actual user mailboxes. The MySQL files are ro

Re: postfix/virtual and dovecot/deliver

2008-09-30 Thread Stephen Holmes
Wietse Venema wrote: > Stephen Holmes: > mail postfix/virtual[1063]: fatal: open /etc/postfix/mysql/virtual-mailbox-maps.cf: Permission denied > ... > >> When I see this >> error, is it referring to (a) access to the .cf file itself or (b) >> access to the folder gall

Re: postfix/virtual and dovecot/deliver

2008-09-30 Thread Wietse Venema
Stephen Holmes: > >> mail postfix/virtual[1063]: fatal: open > >> /etc/postfix/mysql/virtual-mailbox-maps.cf: Permission denied ... > When I see this > error, is it referring to (a) access to the .cf file itself or (b) > access to the folder galloping.com/stephen (with /vmail prefixed) ? The erro

Re: When is the "received for" Header inserted

2008-09-30 Thread Eddy Beliveau
Hi! You can add the following single line to your header_check_file: /^(Received:.*for.<).*(@netcore.co.in>.*)$/ REPLACE {1}hidden${2} /etc/postfix/main.cf must contains: header_checks = regexp:/etc/postfix/header_checks Check that /etc/postfix/master.cf does not contains, for your services: -

Re: How to send 7bit mail to certain users when mime headers are missing (are missing headers the problem?)

2008-09-30 Thread Wietse Venema
Wietse Venema: > rc: > > > MIME conversions are defined only for mail that plays by the rules > > > of the MIME protocols. So it is your job to provide MIME compliant > > > messages. > > > > Wietse, > > > > since I do not have proper access to the application sending these > > simple 8bit emails

Re: How to send 7bit mail to certain users when mime headers are missing (are missing headers the problem?)

2008-09-30 Thread Wietse Venema
rc: > > MIME conversions are defined only for mail that plays by the rules > > of the MIME protocols. So it is your job to provide MIME compliant > > messages. > > Wietse, > > since I do not have proper access to the application sending these > simple 8bit emails (extended ascii) and I am running

Re: When is the "received for" Header inserted

2008-09-30 Thread mouss
ram wrote: On Tue, 2008-09-30 at 16:48 +0200, mouss wrote: ram wrote: I would like to hide the recipient (alias) address in the header of the mail. Unfortunately the header on the mail contains "received from for ... " why? Because our client does not want his end users to see which a

Re: postfix-pipe complains: no such file or directory

2008-09-30 Thread Jordi Moles Blanco
En/na Wietse Venema ha escrit: Jordi Moles Blanco: En/na Wietse Venema ha escrit: Jordi Moles Blanco: Hi everyone, i was wondering if someone has experienced this problem i've been having for 2 weeks now. I'm running Freebsd 7.0 and postfix-2.5.1. The thing is that i've

Re: When is the "received for" Header inserted

2008-09-30 Thread ram
On Tue, 2008-09-30 at 16:48 +0200, mouss wrote: > ram wrote: > > I would like to hide the recipient (alias) address in the header of the > > mail. Unfortunately the header on the mail contains "received from > > for ... " > > > > why? Because our client does not want his end users to see

Re: How to send 7bit mail to certain users when mime headers are missing (are missing headers the problem?)

2008-09-30 Thread Victor Duchovni
On Tue, Sep 30, 2008 at 04:07:36PM +0200, rc wrote: > How do I tell Postfix to do 8bit->7bit conversion then? Postfix only does 8bit->7bit conversion when content is declared to be 8bit. Postfix does not "detect" 8bit content by looking at the characters in message bodies. > I have tried some di

Re: How to send 7bit mail to certain users when mime headers are missing (are missing headers the problem?)

2008-09-30 Thread rc
> MIME conversions are defined only for mail that plays by the rules > of the MIME protocols. So it is your job to provide MIME compliant > messages. Wietse, since I do not have proper access to the application sending these simple 8bit emails (extended ascii) and I am running a dedicated postfix

Re: postfix/virtual and dovecot/deliver

2008-09-30 Thread Stephen Holmes
Wietse Venema wrote: > Stephen Holmes: > >> I've had to use dovecot/deliver for mail delivery because >> postfix/virtual continues to give... >> >> mail postfix/virtual[1063]: fatal: open >> /etc/postfix/mysql/virtual-mailbox-maps.cf: Permission denied >> > > The Postfix virtual delivery a

Re: When is the "received for" Header inserted

2008-09-30 Thread mouss
ram wrote: I would like to hide the recipient (alias) address in the header of the mail. Unfortunately the header on the mail contains "received from for ... " why? How can I configure postfix not to insert this header you can rewrite the header with header_checks and REPLACE.

Re: postfix/virtual and dovecot/deliver

2008-09-30 Thread Wietse Venema
Stephen Holmes: > I've had to use dovecot/deliver for mail delivery because > postfix/virtual continues to give... > > mail postfix/virtual[1063]: fatal: open > /etc/postfix/mysql/virtual-mailbox-maps.cf: Permission denied The Postfix virtual delivery agent opens such files before it gives up ro

Re: How to send 7bit mail to certain users when mime headers are missing (are missing headers the problem?)

2008-09-30 Thread Wietse Venema
rc: > My ultimate goal: Send 7bit mail to certain users > > I have tried the brute force smtp_never_send_ehlo=yes in the mail.cf and > I have tried the more elegant solution using > master.cf > sevenbit unix - - n - - smtp > -o smtp_never_send_ehlo=yes > > and

postfix/virtual and dovecot/deliver

2008-09-30 Thread Stephen Holmes
I've had to use dovecot/deliver for mail delivery because postfix/virtual continues to give... mail postfix/virtual[1063]: fatal: open /etc/postfix/mysql/virtual-mailbox-maps.cf: Permission denied ...errors in the logged output. It doesn't show this error when I set virtual_transport=dovecot an

How to send 7bit mail to certain users when mime headers are missing (are missing headers the problem?)

2008-09-30 Thread rc
My ultimate goal: Send 7bit mail to certain users I have tried the brute force smtp_never_send_ehlo=yes in the mail.cf and I have tried the more elegant solution using master.cf sevenbit unix - - n - - smtp -o smtp_never_send_ehlo=yes and transport file Both s

Re: pipe target not found

2008-09-30 Thread Len Conrad
>> >What is output of: >> > >> >ls -ld / /var /var/spool /var/spool/snfilter >> >> >> mx1# ls -ld / /var /var/spool /var/spool/snfilter >> >> drwxr-xr-x 19 root wheel 512 Jul 24 19:02 / >> drwxr-xr-x 25 root wheel 512 Sep 29 17:13 /var >> drwxr-xr-x 12 root wheel

Re: pipe target not found

2008-09-30 Thread Wietse Venema
Len Conrad: > > >What is output of: > > > >ls -ld / /var /var/spool /var/spool/snfilter > > > mx1# ls -ld / /var /var/spool /var/spool/snfilter > > drwxr-xr-x 19 root wheel 512 Jul 24 19:02 / > drwxr-xr-x 25 root wheel 512 Sep 29 17:13 /var > drwxr-xr-x 12 root wheel

Re: pipe target not found

2008-09-30 Thread Len Conrad
>What is output of: > >ls -ld / /var /var/spool /var/spool/snfilter mx1# ls -ld / /var /var/spool /var/spool/snfilter drwxr-xr-x 19 root wheel 512 Jul 24 19:02 / drwxr-xr-x 25 root wheel 512 Sep 29 17:13 /var drwxr-xr-x 12 root wheel 512 Sep 28 19:06 /var/spool

Re: postfix-pipe complains: no such file or directory

2008-09-30 Thread Wietse Venema
Jordi Moles Blanco: > En/na Wietse Venema ha escrit: > > Jordi Moles Blanco: > > > >> Hi everyone, > >> > >> i was wondering if someone has experienced this problem i've been having > >> for 2 weeks now. > >> > >> I'm running Freebsd 7.0 and postfix-2.5.1. > >> > >> The thing is that i've set u

Re: pipe target not found

2008-09-30 Thread Wietse Venema
Len Conrad: > >What on FreeBSD 6.3 could be doing this? > > > >Maybe you can insert a ktrace command: > > > >snfilter unix - n n - 10 pipe > > flags=q user=snfilter argv=/usr/bin/ktrace -f /tmp/ktrace.out > > /var/spool/snfilter/sniffer -f ${sender}

Re: pipe target not found

2008-09-30 Thread PauAmma
On Tue, 30 Sep 2008, Len Conrad wrote: mx1# ll /var/spool/snfilter/sniffer -rwxrwxrwx 1 snfilter snfilter 4013 Sep 29 20:54 /var/spool/snfilter/sniffer Why is your PROGRAM file WRITABLE? a temporary ploy to eliminate perms as the problem. If you really must do that, use 555 (or 755), n

Re: pipe target not found

2008-09-30 Thread Len Conrad
>> > mx1# ll /var/spool/snfilter/sniffer >> > -rwxrwxrwx 1 snfilter snfilter 4013 Sep 29 20:54 >> > /var/spool/snfilter/sniffer >> >> Why is your PROGRAM file WRITABLE? a temporary ploy to eliminate perms as the problem. >> > sniffer contains: >> > >> > #!/bin/sh >> ... >> > >> > Sep 29

Re: postfix-pipe complains: no such file or directory

2008-09-30 Thread Jordi Moles Blanco
En/na Wietse Venema ha escrit: Jordi Moles Blanco: Hi everyone, i was wondering if someone has experienced this problem i've been having for 2 weeks now. I'm running Freebsd 7.0 and postfix-2.5.1. The thing is that i've set up a filter written in C using postfix's "pipe" feature. The fi

When is the "received for" Header inserted

2008-09-30 Thread ram
I would like to hide the recipient (alias) address in the header of the mail. Unfortunately the header on the mail contains "received from for ... " How can I configure postfix not to insert this header Thanks Ram

Re: postfix-pipe complains: no such file or directory

2008-09-30 Thread Wietse Venema
Jordi Moles Blanco: > Hi everyone, > > i was wondering if someone has experienced this problem i've been having > for 2 weeks now. > > I'm running Freebsd 7.0 and postfix-2.5.1. > > The thing is that i've set up a filter written in C using postfix's > "pipe" feature. The filter works great mos

Re: pipe target not found

2008-09-30 Thread Wietse Venema
Wietse Venema: > Len Conrad: > > master.cf > > > > snfilter unix - n n - 10 pipe > > flags=q user=snfilter argv=/var/spool/snfilter/sniffer > > -f ${sender} ${recipient} > > > > mx1# ll /var/spool/snfilter/sniffer > > -rwxrwxrwx 1 snfilter snfilte

Re: pipe target not found

2008-09-30 Thread Wietse Venema
Len Conrad: > master.cf > > snfilter unix - n n - 10 pipe > flags=q user=snfilter argv=/var/spool/snfilter/sniffer > -f ${sender} ${recipient} > > mx1# ll /var/spool/snfilter/sniffer > -rwxrwxrwx 1 snfilter snfilter 4013 Sep 29 20:54 > /var/spoo

Re: transferring one vdomain away, aliases Q

2008-09-30 Thread mouss
Voytek Eymont wrote: I currently have several virtual mail domains with various users/aliases; some mail addresses are aliased like: [EMAIL PROTECTED] > [EMAIL PROTECTED] that all works fine, BUT, mail server for domainAAA.tld is going to be transferred away from here to msexchange server at us

postfix-pipe complains: no such file or directory

2008-09-30 Thread Jordi Moles Blanco
Hi everyone, i was wondering if someone has experienced this problem i've been having for 2 weeks now. I'm running Freebsd 7.0 and postfix-2.5.1. The thing is that i've set up a filter written in C using postfix's "pipe" feature. The filter works great most of the times but every 2-3 da