Ok, looks like Postfix builds in a sendmail command of its own:

 

http://www.postfix.org/sendmail.1.html

 

So, in theory my procmail recipe should work as is!

 

________________________________

From: Bailo, John 
Sent: Monday, November 17, 2008 10:34 AM
To: Bailo, John; 'postfix-users@postfix.org'
Subject: RE: Auto Responder

 

I guess what I really want to is to continue using the procmail recipe
I'm using with sendmail.

 

I've already enabled procmail for use with Postfix in the main.cf

 

It seems like it would work with Postfix except for the last line, where
the away message is sent from a formail loop.

 

How do I convert:

 

cat message.text )| /usr/bin/sendmail -oi -t

 

To postfix?

 

 

Here is the entire script I'm using:

 

:/home/auto-reply # cat .procmailrc

VERBOSE=off

LOGFILE=$HOME/procmail.log

MAILDIR=$HOME

SENDMAIL=/usr/sbin/sendmail

 

#LOCKFILE=$HOME/mylockfile.lock

CACHEFILE=$HOME/.pm-already.cache

 

#########################################

# Auto-responder for vacations. Please

# insert text in $MAILDIR/message.txt

#########################################

 

:0 Whc:   /home/auto-reply/mylockfile.lock

# Reply if mail is addressed to me

# Don't reply to daemons or mailing lists

# Avoid mail loops (don't reply to mail I might send myself

* [EMAIL PROTECTED]

*!^FROM_DAEMON

*!^X-Loop: [EMAIL PROTECTED]

# Store sender's address in cache if not there already

| formail -rD 8192 ${CACHEFILE}

:0 ehc

|(formail -r -A "Precedence: Auto" \

- -I"From: My Company<[EMAIL PROTECTED]> " \

- -I"Subject: Automated acknowledgement" \

- -A"Content-type: text/html" \

- -A "X-Loop: [EMAIL PROTECTED]"; \

cat message.text )| $SENDMAIL -oi -t

 

 

 

 

________________________________

From: Bailo, John 
Sent: Monday, November 17, 2008 9:17 AM
To: 'postfix-users@postfix.org'
Subject: Auto Responder

 

Can I set up an Auto-Responder using Postfix?

 

 

Using sendmail/procmail I used a recipe...but now I'm using
Postfix/Fetchmail.

 

John Bailo
Web Developer
______________________________________

Bowne & Co, Inc.
20017 72nd Ave S
Kent, WA 98032
Office: 253/437-7085
Cell: 253/217-2776
Fax: 253/872-5602

 


CONFIDENTIALITY NOTICE: The information in this Internet email is confidential 
and may be legally privileged. It is intended solely for the addressee. Access 
to this email by anyone else is unauthorized. 

Reply via email to