Re: how to pipe mail to external program?

2005-02-24 Thread Tuna Sundae
On Thu, 24 Feb 2005 19:45:33 -0700, Craig White [EMAIL PROTECTED] wrote:
 On Thu, 2005-02-24 at 21:03 -0500, Tuna Sundae wrote:
  Hi, when I used to use sendmail, I used aliasname: |/path/to/app in
  /etc/aliases to pipe mail to a program. Now, I used postfix with
  cyrus' deliver as the delivery mechanism. How do I have cyrus pipe
  certain aliases to applications?:
 
 
 you asked the question the other day - I think that you use
 the /usr/sbin/sendmail binary supplied by your postfix installation,
 much the same as you would if you were using sendmail but I think in a
 way, that begs your question...wouldn't you use postfix aliasmaps much
 like you used aliases in sendmail? Are you sure that this is a cyrus
 question?

That's the thing... I can't get postfix to check the alias map before
giving the mail to cyrus' deliver. So I was hoping there was a cyrus
way to do this.

Is anyone using postfix/cyrus and having it first look at /etc/aliases
before delivering to 'deliver'?
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: how to pipe mail to external program?

2005-02-24 Thread Edward Rudd
On Thu, 2005-02-24 at 22:29, Tuna Sundae wrote:
 On Thu, 24 Feb 2005 19:45:33 -0700, Craig White [EMAIL PROTECTED] wrote:
 
 That's the thing... I can't get postfix to check the alias map before
 giving the mail to cyrus' deliver. So I was hoping there was a cyrus
 way to do this.
 
 Is anyone using postfix/cyrus and having it first look at /etc/aliases
 before delivering to 'deliver'?

First, this is definitely a postfix question belonging on the postfix
mailing list.  

Second, you most likely don't have /etc/aliases in your postfix
alias_maps configuration. a default install of postfix uses
/etc/postfix/aliases, but /etc/aliases can be added by editing main.cf
(read the postfix documentation on postfix.org, or post to the
postfix-users mailing list for more assistance)

Third, unless you have a REAL need to use 'deliver' you should be using
LMTP to inject mail into cyrus, as it provides better performance.

 ---
 Cyrus Home Page: http://asg.web.cmu.edu/cyrus
 Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
 List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
-- 
Edward Rudd [EMAIL PROTECTED]
Website http://www.outoforder.cc/

---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: how to pipe mail to external program?

2005-02-24 Thread Forrest Aldrich
Tuna Sundae wrote:
On Thu, 24 Feb 2005 19:45:33 -0700, Craig White [EMAIL PROTECTED] wrote:
 

On Thu, 2005-02-24 at 21:03 -0500, Tuna Sundae wrote:
   

Hi, when I used to use sendmail, I used aliasname: |/path/to/app in
/etc/aliases to pipe mail to a program. Now, I used postfix with
cyrus' deliver as the delivery mechanism. How do I have cyrus pipe
certain aliases to applications?:
 


you asked the question the other day - I think that you use
the /usr/sbin/sendmail binary supplied by your postfix installation,
much the same as you would if you were using sendmail but I think in a
way, that begs your question...wouldn't you use postfix aliasmaps much
like you used aliases in sendmail? Are you sure that this is a cyrus
question?
   

That's the thing... I can't get postfix to check the alias map before
giving the mail to cyrus' deliver. So I was hoping there was a cyrus
way to do this.
Is anyone using postfix/cyrus and having it first look at /etc/aliases
before delivering to 'deliver'?
 

I ran into a similar problem recently.
It was explained to me that if you explicity define the transport for 
lmtp in transports you then disable piping to commands in Postifx (and 
a few other issues).   What you need to do is comment out that 
definition in transports (presuming this is the case here) and define:

mailbox_transport = lmtp:unix:/var/imap/socket/lmtp
(modify as appropriate for your system)
And then the pipe-to-commands should work.   There are more specifics 
about why this is so - but that's what solved this for me.


Forrest
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html